PDA

View Full Version : 5.1 audio channels in PC- BSD


carlosalvet
09-17-2010, 04:32 AM
Hi I am new in Free BSD so that I am using PC-BSD for comfort.

Before i was using Ubuntu and i decided for this SO thinking in more stable system.

I have a 5.1 audio channel speakers and i don't know how to configure them in my PC-BSD i could read about a virtual channel but i didn't understand very well. Someone can tell me how can i do to has my 5.1 audio channel output working very well?

thanks before hand!

carlosalvet
09-17-2010, 07:52 AM
in this page http://www.freebsd.org/cgi/man.cgi?q...eBSD+8-current i found a several steps

cat /etc/sndstat

FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <HDA Realtek ALC885 PCM #0 Analog> (play/rec) default
pcm1: <HDA Realtek ALC885 PCM #1 Analog> (play/rec)
pcm2: <HDA Realtek ALC885 PCM #2 Digital> (play/rec)

my sound driver is: snd_hda_load="YES"

it says in

http://www.freebsd.org/cgi/man.cgi?query=snd_hda&manpath=FreeBSD+8-current

and I added this control in /etc/sysctl.conf with:

snd_hda_load="YES"

and then add the hints to start in the reboot

hint.pcm.0.at="isa"
hint.pcm.0.irq="5"
hint.pcm.0.drq="1"
hint.pcm.0.flags="0x0"

and with the hints the sound drivers crash so after reboot the devices are undetected and i can't continue

in the first link following the instructions found with this hints added.


#hint.hdac.0.cad0.nid20.config="as=1 seq=0"
#hint.hdac.0.cad0.nid24.config="as=1 seq=1 device=Line-out"
#hint.hdac.0.cad0.nid26.config="as=1 seq=2 device=Line-out"
#hint.hdac.0.cad0.nid21.config="as=2 seq=0"


what's the meaning of "nid #" or where can i read about these? why 20,24 and 26? which may i use?

here is the data sheet of my sound card realtek ALC889

http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=28&Level=5&Conn=4&ProdID=173&DownTypeID=1&GetDown=false&Downloads=true

I am really looking for information to my problem.

with this hints the 3th device is lost it and the SO recognize 2 sound drivers divece #0 and #1 but it doesn't care because these don't play any sound, just follow the song with play and without any sound.

thanks before hand!

carlosalvet
09-19-2010, 05:13 AM
using this driver hda i can play 2.1 channel audio.

i read in datasheet and i can play the front principal channel 2.1, but the other 2 jack don't work.

i found this:

FRONT (Port D); Pin: 35.36; Location: Rear Panel; Front Channel Line Output and Amplified Output
SURR (Port A); Pin: 39,41; Location: Rear Panel; Surround Channel Line Output
CENTER/LFE(Port-G); Pin: 43,44; Location: Rear Panel; Center and Low Frecuency Channel Line Output
SIDE(Port-H); Pin: 45,46; Location: Rear Panel;Side Surround Chanel Output
MIC1(Port-B); Pin: 21,22; Location: Rear Panel; Analog Microphone Input
LINE1(Port-C); Pin: 21,24; Location: Rear Panel;Analog Line Output
LINE2(Port-E); Pin: 14,15; Location: Front Panel; Re-Tasking Jack Support Headphone Out (Default), Microphone Input and Line Input
MIC2(Port-F); Pin: 16,17; Location: Front Panel; Re-Tasking Jack Support Microphone Input (Default), Microphone Input and Line Input and Headphone Output

configuring my hints only could set up my front channel with


hint.hdac.0.cad0.nid35.config="as=1 seq=0 device = Line-out"


treat with

hint.hdac.0.cad0.nid35.config="as=1 seq=0 device = Line-out"
hint.hdac.0.cad0.nid14.config="as=1 seq=1 device = Line-out"
hint.hdac.0.cad0.nid39.config="as=1 seq=2 device = Line-out"


with no positive results just work 2.1 audio channels and no more.

Fatmice
09-19-2010, 07:40 PM
You need to read the snd_hda man pages closer. It tells you what the nid# means.

More importantly, you shouldn't really need to mess with them. They are there to provide override to BIOS provided values.

You should get a verbose dmesg first to see what those are. Enable verbose as root by echo 'boot_verbose="YES"' >> /boot/loader.conf. After boot, dmesg | grep hdac and post it here. Also include the pcmX lines.

I've never setup 5.1 sound but maybe we can muddle through this.

*If you do not want to modify loader.conf then choose option number 5 to boot with verbose messages turned on. When the machine has booted, use the grep utility to find startup messages related to the sound system

carlosalvet
09-21-2010, 01:49 AM
i did the

echo 'boot_verbose="YES"' >> /boot/loader.conf


like says in your last post and then search with dmesg and find this, I think that is good information for that


# dmesg
+--------------------------------------+
pcm0: | DUMPING PCM Playback/Record Channels |
pcm0: +--------------------------------------+
pcm0:
pcm0: Playback:
pcm0:
pcm0: Stream cap: 0x00000001
pcm0: PCM
pcm0: PCM cap: 0x000e0560
pcm0: 16 20 24 bits, 44 48 96 192 KHz
pcm0: DAC: 2 3 4 5
pcm0:
pcm0: Record:
pcm0:
pcm0: Stream cap: 0x00000001
pcm0: PCM
pcm0: PCM cap: 0x000e0560
pcm0: 16 20 24 bits, 44 48 96 192 KHz
pcm0: ADC: 7
pcm0:
pcm0: +-------------------------------+
pcm0: | DUMPING Playback/Record Paths |
pcm0: +-------------------------------+
pcm0:
pcm0: Playback:
pcm0:
pcm0: nid=20 [pin: Line-out (Green Jack)]
pcm0: |
pcm0: + <- nid=12 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=2 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: nid=22 [pin: Line-out (Orange Jack)]
pcm0: |
pcm0: + <- nid=13 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=3 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: nid=21 [pin: Line-out (Black Jack)]
pcm0: |
pcm0: + <- nid=14 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=4 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: nid=23 [pin: Line-out (Grey Jack)]
pcm0: |
pcm0: + <- nid=15 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=5 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]

carlosalvet
09-21-2010, 01:52 AM
[/code]
hdac0: <ATI SB600 High Definition Audio Controller> mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xfe024000
hdac0: [MPSAFE]
hdac0: [ITHREAD]
hdac0: Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256
hdac0: Probing codec #0...
hdac0: HDA Codec #0: Realtek ALC885
hdac0: HDA Codec ID: 0x10ec0885
hdac0: Vendor: 0x10ec
hdac0: Device: 0x0885
hdac0: Revision: 0x01
hdac0: Stepping: 0x01
hdac0: PCI Subvendor: 0xa0021458
hdac0: Found audio FG nid=1 startnode=2 endnode=39 total=37
hdac0:
hdac0: Processing audio FG cad=0 nid=1...
hdac0: GPIO: 0x40000002 NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdac0: nid 20 0x01014410 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 4
hdac0: nid 21 0x01011412 as 1 seq 2 Line-out Jack jack 1 loc 1 color Black misc 4
hdac0: nid 22 0x01016411 as 1 seq 1 Line-out Jack jack 1 loc 1 color Orange misc 4
hdac0: nid 23 0x01012414 as 1 seq 4 Line-out Jack jack 1 loc 1 color Grey misc 4
hdac0: nid 24 0x01a19c40 as 4 seq 0 Mic Jack jack 1 loc 1 color Pink misc 12
hdac0: nid 25 0x02a19c50 as 5 seq 0 Mic Jack jack 1 loc 2 color Pink misc 12
hdac0: nid 26 0x0181344f as 4 seq 15 Line-in Jack jack 1 loc 1 color Blue misc 4
hdac0: nid 27 0x02214c20 as 2 seq 0 Headphones Jack jack 1 loc 2 color Green misc 12
hdac0: nid 28 0x593301f0 as 15 seq 0 CD None jack 3 loc 25 color Unknown misc 1
hdac0: Patching widget caps nid=29 0x00400000 -> 0x00700000
hdac0: nid 30 0x014b6130 as 3 seq 0 SPDIF-out Jack jack 11 loc 1 color Orange misc 1
hdac0: nid 31 0x01cb7160 as 6 seq 0 SPDIF-in Jack jack 11 loc 1 color Yellow misc 1
hdac0: Patched pins configuration:
hdac0: nid 20 0x01014410 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 4
hdac0: nid 21 0x01011412 as 1 seq 2 Line-out Jack jack 1 loc 1 color Black misc 4
hdac0: nid 22 0x01016411 as 1 seq 1 Line-out Jack jack 1 loc 1 color Orange misc 4
hdac0: nid 23 0x01012414 as 1 seq 4 Line-out Jack jack 1 loc 1 color Grey misc 4
hdac0: nid 24 0x01a19c40 as 4 seq 0 Mic Jack jack 1 loc 1 color Pink misc 12
hdac0: nid 25 0x02a19c50 as 5 seq 0 Mic Jack jack 1 loc 2 color Pink misc 12
hdac0: nid 26 0x0181344f as 4 seq 15 Line-in Jack jack 1 loc 1 color Blue misc 4
hdac0: nid 27 0x02214c20 as 2 seq 0 Headphones Jack jack 1 loc 2 color Green misc 12
hdac0: nid 28 0x593301f0 as 15 seq 0 CD None jack 3 loc 25 color Unknown misc 1 [DISABLED]
hdac0: nid 30 0x014b6130 as 3 seq 0 SPDIF-out Jack jack 11 loc 1 color Orange misc 1
hdac0: nid 31 0x01cb7160 as 6 seq 0 SPDIF-in Jack jack 11 loc 1 color Yellow misc 1
hdac0: 6 associations found:
hdac0: Association 0 (1) out:
hdac0: Pin nid=20 seq=0
hdac0: Pin nid=22 seq=1
hdac0: Pin nid=21 seq=2
hdac0: Pin nid=23 seq=4
hdac0: Association 1 (2) out:
hdac0: Pin nid=27 seq=0
hdac0: Association 2 (3) out:
hdac0: Pin nid=30 seq=0
hdac0: Association 3 (4) in:
hdac0: Pin nid=24 seq=0
hdac0: Pin nid=26 seq=15
hdac0: Association 4 (5) in:
hdac0: Pin nid=25 seq=0
hdac0: Association 5 (6) in:
hdac0: Pin nid=31 seq=0
hdac0: Tracing association 0 (1)
hdac0: Pin 20 traced to DAC 2
hdac0: Pin 22 traced to DAC 3
hdac0: Pin 21 traced to DAC 4
hdac0: Pin 23 traced to DAC 5
hdac0: Association 0 (1) trace succeeded
hdac0: Tracing association 1 (2)
hdac0: Pin 27 traced to DAC 37
hdac0: Association 1 (2) trace succeeded
hdac0: Tracing association 2 (3)
hdac0: Pin 30 traced to DAC 6
hdac0: Association 2 (3) trace succeeded
hdac0: Tracing association 3 (4)
hdac0: Pin 24 traced to ADC 7
hdac0: Pin 26 traced to ADC 7
hdac0: Association 3 (4) trace succeeded
hdac0: Tracing association 4 (5)
hdac0: Pin 25 traced to ADC 8
hdac0: Association 4 (5) trace succeeded
hdac0: Tracing association 5 (6)
hdac0: Unable to trace pin 31 to ADC 9, undo traces
hdac0: Pin 31 traced to ADC 10
hdac0: Association 5 (6) trace succeeded
hdac0: Tracing input monitor
hdac0: Tracing nid 11 to out
hdac0: nid 11 is input monitor
hdac0: Tracing nid 35 to out
hdac0: Tracing nid 36 to out
hdac0: Tracing other input monitors
hdac0: Tracing nid 24 to out
hdac0: Tracing nid 25 to out
hdac0: Tracing nid 26 to out
hdac0: Tracing nid 31 to out
hdac0: Tracing beeper
hdac0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
[/code]

the result of

dmesg | grep hdac


is so extended and to post it is most than 10000 characters which is permited, you neet to see somthing in special or post it everything

carlosalvet
09-21-2010, 01:59 AM
hdac0: +-------------------+
hdac0: | DUMPING HDA NODES |
hdac0: +-------------------+
hdac0:
hdac0: Default Parameter
hdac0: -----------------
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0: IN amp: 0x00000000
hdac0: OUT amp: 0x00000000
hdac0:
hdac0: nid: 2
hdac0: Name: audio output
hdac0: Widget cap: 0x00000011
hdac0: STEREO
hdac0: Association: 0 (0x00000001)
hdac0: OSS: pcm (pcm)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0:
hdac0: nid: 3
hdac0: Name: audio output
hdac0: Widget cap: 0x00000011
hdac0: STEREO
hdac0: Association: 0 (0x00000002)
hdac0: OSS: pcm (pcm)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0:
hdac0: nid: 4
hdac0: Name: audio output
hdac0: Widget cap: 0x00000011
hdac0: STEREO
hdac0: Association: 0 (0x00000004)
hdac0: OSS: pcm (pcm)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0:
hdac0: nid: 5
hdac0: Name: audio output
hdac0: Widget cap: 0x00000011
hdac0: STEREO
hdac0: Association: 0 (0x00000010)
hdac0: OSS: pcm (pcm)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0:
hdac0: nid: 6
hdac0: Name: audio output
hdac0: Widget cap: 0x00000211
hdac0: DIGITAL STEREO
hdac0: Association: 2 (0x00000001)
hdac0: OSS: pcm (pcm)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x001e05e0
hdac0: 16 20 24 32 bits, 44 48 88 96 192 KHz
hdac0:
hdac0: nid: 7
hdac0: Name: audio input
hdac0: Widget cap: 0x0010011b
hdac0: STEREO
hdac0: Association: 3 (0x00008001)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0: Input amp: 0x80032e10
hdac0: mute=1 step=46 size=3 offset=16
hdac0: connections: 1
hdac0: |
hdac0: + <- nid=36 [audio mixer]
hdac0:
hdac0: nid: 8
hdac0: Name: audio input
hdac0: Widget cap: 0x0010011b
hdac0: STEREO
hdac0: Association: 4 (0x00000001)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0: Input amp: 0x80032e10
hdac0: mute=1 step=46 size=3 offset=16
hdac0: connections: 1
hdac0: |
hdac0: + <- nid=35 [audio mixer]
hdac0:
hdac0: nid: 9 [DISABLED]
hdac0: Name: audio input
hdac0: Widget cap: 0x0010011b
hdac0: STEREO
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0: Input amp: 0x80032e10
hdac0: mute=1 step=46 size=3 offset=16
hdac0: connections: 1
hdac0: |
hdac0: + [DISABLED] <- nid=34 [audio mixer] [DISABLED]
hdac0:
hdac0: nid: 10
hdac0: Name: audio input
hdac0: Widget cap: 0x00100391
hdac0: DIGITAL UNSOL STEREO
hdac0: Association: 5 (0x00000001)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x001e0560
hdac0: 16 20 24 32 bits, 44 48 96 192 KHz
hdac0: connections: 1
hdac0: |
hdac0: + <- nid=31 [pin: SPDIF-in (Yellow Jack)]
hdac0:
hdac0: nid: 11
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010b
hdac0: STEREO
hdac0: Association: 3 (0x00008001)
hdac0: OSS: mix (mix)
hdac0: Input amp: 0x80051f17
hdac0: mute=1 step=31 size=5 offset=23
hdac0: connections: 10
hdac0: |
hdac0: + <- nid=24 [pin: Mic (Pink Jack)]
hdac0: + [DISABLED] <- nid=25 [pin: Mic (Pink Jack)]
hdac0: + <- nid=26 [pin: Line-in (Blue Jack)]
hdac0: + [DISABLED] <- nid=27 [pin: Headphones (Green Jack)]
hdac0: + [DISABLED] <- nid=28 [pin: CD (None)] [DISABLED]
hdac0: + <- nid=29 [beep widget]
hdac0: + [DISABLED] <- nid=20 [pin: Line-out (Green Jack)]
hdac0: + [DISABLED] <- nid=21 [pin: Line-out (Black Jack)]
hdac0: + [DISABLED] <- nid=22 [pin: Line-out (Orange Jack)]
hdac0: + [DISABLED] <- nid=23 [pin: Line-out (Grey Jack)]
hdac0:
hdac0: nid: 12
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010f
hdac0: STEREO
hdac0: Association: 0 (0x00000001)
hdac0: OSS: pcm, mix
hdac0: Output amp: 0x00034040
hdac0: mute=0 step=64 size=3 offset=64
hdac0: Input amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: connections: 2
hdac0: |
hdac0: + <- nid=2 [audio output]
hdac0: + <- nid=11 [audio mixer]
hdac0:
hdac0: nid: 13
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010f
hdac0: STEREO
hdac0: Association: 0 (0x00000002)
hdac0: OSS: pcm, mix
hdac0: Output amp: 0x00034040
hdac0: mute=0 step=64 size=3 offset=64
hdac0: Input amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: connections: 2
hdac0: |
hdac0: + <- nid=3 [audio output]
hdac0: + <- nid=11 [audio mixer]
hdac0:
hdac0: nid: 14
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010f
hdac0: STEREO
hdac0: Association: 0 (0x00000004)
hdac0: OSS: pcm, mix
hdac0: Output amp: 0x00034040
hdac0: mute=0 step=64 size=3 offset=64
hdac0: Input amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: connections: 2
hdac0: |
hdac0: + <- nid=4 [audio output]
hdac0: + <- nid=11 [audio mixer]
hdac0:
hdac0: nid: 15
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010f
hdac0: STEREO
hdac0: Association: 0 (0x00000010)
hdac0: OSS: pcm, mix
hdac0: Output amp: 0x00034040
hdac0: mute=0 step=64 size=3 offset=64
hdac0: Input amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: connections: 2
hdac0: |
hdac0: + <- nid=5 [audio output]
hdac0: + <- nid=11 [audio mixer]

carlosalvet
09-21-2010, 02:02 AM
hdac0: nid: 16 [DISABLED]
hdac0: Name: vendor widget
hdac0: Widget cap: 0x00f00000
hdac0:
hdac0: nid: 17 [DISABLED]
hdac0: Name: vendor widget
hdac0: Widget cap: 0x00f00000
hdac0:
hdac0: nid: 18 [DISABLED]
hdac0: Name: vendor widget
hdac0: Widget cap: 0x00f00000
hdac0:
hdac0: nid: 19 [DISABLED]
hdac0: Name: vendor widget
hdac0: Widget cap: 0x00f00000
hdac0:
hdac0: nid: 20
hdac0: Name: pin: Line-out (Green Jack)
hdac0: Widget cap: 0x0040018f
hdac0: UNSOL STEREO
hdac0: Association: 0 (0x00000001)
hdac0: Pin cap: 0x0000373c
hdac0: PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
hdac0: Pin config: 0x01014410
hdac0: Pin control: 0x00000040 OUT
hdac0: Output amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: Input amp: 0x00270300
hdac0: mute=0 step=3 size=39 offset=0
hdac0: connections: 5
hdac0: |
hdac0: + <- nid=12 [audio mixer] (selected)
hdac0: + [DISABLED] <- nid=13 [audio mixer]
hdac0: + [DISABLED] <- nid=14 [audio mixer]
hdac0: + [DISABLED] <- nid=15 [audio mixer]
hdac0: + [DISABLED] <- nid=38 [audio mixer]
hdac0:
hdac0: nid: 21
hdac0: Name: pin: Line-out (Black Jack)
hdac0: Widget cap: 0x0040018f
hdac0: UNSOL STEREO
hdac0: Association: 0 (0x00000004)
hdac0: Pin cap: 0x0000373c
hdac0: PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
hdac0: Pin config: 0x01011412
hdac0: Pin control: 0x00000040 OUT
hdac0: Output amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: Input amp: 0x00270300
hdac0: mute=0 step=3 size=39 offset=0
hdac0: connections: 5
hdac0: |
hdac0: + [DISABLED] <- nid=12 [audio mixer]
hdac0: + [DISABLED] <- nid=13 [audio mixer]
hdac0: + <- nid=14 [audio mixer] (selected)
hdac0: + [DISABLED] <- nid=15 [audio mixer]
hdac0: + [DISABLED] <- nid=38 [audio mixer]
hdac0:
hdac0: nid: 22
hdac0: Name: pin: Line-out (Orange Jack)
hdac0: Widget cap: 0x0040018f
hdac0: UNSOL STEREO
hdac0: Association: 0 (0x00000002)
hdac0: Pin cap: 0x0000003c
hdac0: PDC HP OUT IN
hdac0: Pin config: 0x01016411
hdac0: Pin control: 0x00000040 OUT
hdac0: Output amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: Input amp: 0x00270300
hdac0: mute=0 step=3 size=39 offset=0
hdac0: connections: 5
hdac0: |
hdac0: + [DISABLED] <- nid=12 [audio mixer]
hdac0: + <- nid=13 [audio mixer] (selected)
hdac0: + [DISABLED] <- nid=14 [audio mixer]
hdac0: + [DISABLED] <- nid=15 [audio mixer]
hdac0: + [DISABLED] <- nid=38 [audio mixer]
hdac0:
hdac0: nid: 23
hdac0: Name: pin: Line-out (Grey Jack)
hdac0: Widget cap: 0x0040018f
hdac0: UNSOL STEREO
hdac0: Association: 0 (0x00000010)
hdac0: Pin cap: 0x0000003c
hdac0: PDC HP OUT IN
hdac0: Pin config: 0x01012414
hdac0: Pin control: 0x00000040 OUT
hdac0: Output amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: Input amp: 0x00270300
hdac0: mute=0 step=3 size=39 offset=0
hdac0: connections: 5
hdac0: |
hdac0: + [DISABLED] <- nid=12 [audio mixer]
hdac0: + [DISABLED] <- nid=13 [audio mixer]
hdac0: + [DISABLED] <- nid=14 [audio mixer]
hdac0: + <- nid=15 [audio mixer] (selected)
hdac0: + [DISABLED] <- nid=38 [audio mixer]
hdac0:
hdac0: nid: 24
hdac0: Name: pin: Mic (Pink Jack)
hdac0: Widget cap: 0x0040018f
hdac0: UNSOL STEREO
hdac0: Association: 3 (0x00000001)
hdac0: OSS: mic (mic)
hdac0: Pin cap: 0x0000373c
hdac0: PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
hdac0: Pin config: 0x01a19c40
hdac0: Pin control: 0x00000025 IN VREFs
hdac0: Output amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: Input amp: 0x00270300
hdac0: mute=0 step=3 size=39 offset=0
hdac0: connections: 5
hdac0: |
hdac0: + [DISABLED] <- nid=12 [audio mixer] (selected)
hdac0: + [DISABLED] <- nid=13 [audio mixer]
hdac0: + [DISABLED] <- nid=14 [audio mixer]
hdac0: + [DISABLED] <- nid=15 [audio mixer]
hdac0: + [DISABLED] <- nid=38 [audio mixer]
hdac0:
hdac0: nid: 25
hdac0: Name: pin: Mic (Pink Jack)
hdac0: Widget cap: 0x0040018f
hdac0: UNSOL STEREO
hdac0: Association: 4 (0x00000001)
hdac0: OSS: monitor (monitor)
hdac0: Pin cap: 0x0000373c
hdac0: PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
hdac0: Pin config: 0x02a19c50
hdac0: Pin control: 0x00000025 IN VREFs
hdac0: Output amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: Input amp: 0x00270300
hdac0: mute=0 step=3 size=39 offset=0
hdac0: connections: 5
hdac0: |
hdac0: + [DISABLED] <- nid=12 [audio mixer] (selected)
hdac0: + [DISABLED] <- nid=13 [audio mixer]
hdac0: + [DISABLED] <- nid=14 [audio mixer]
hdac0: + [DISABLED] <- nid=15 [audio mixer]
hdac0: + [DISABLED] <- nid=38 [audio mixer]
hdac0:
hdac0: nid: 26
hdac0: Name: pin: Line-in (Blue Jack)
hdac0: Widget cap: 0x0040018f
hdac0: UNSOL STEREO
hdac0: Association: 3 (0x00008000)
hdac0: OSS: line (line)
hdac0: Pin cap: 0x0000373c
hdac0: PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
hdac0: Pin config: 0x0181344f
hdac0: Pin control: 0x00000025 IN VREFs
hdac0: Output amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: Input amp: 0x00270300
hdac0: mute=0 step=3 size=39 offset=0
hdac0: connections: 5
hdac0: |
hdac0: + [DISABLED] <- nid=12 [audio mixer] (selected)
hdac0: + [DISABLED] <- nid=13 [audio mixer]
hdac0: + [DISABLED] <- nid=14 [audio mixer]
hdac0: + [DISABLED] <- nid=15 [audio mixer]
hdac0: + [DISABLED] <- nid=38 [audio mixer]
hdac0:
hdac0: nid: 27
hdac0: Name: pin: Headphones (Green Jack)
hdac0: Widget cap: 0x0040018f
hdac0: UNSOL STEREO
hdac0: Association: 1 (0x00000001)
hdac0: Pin cap: 0x0000373c
hdac0: PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
hdac0: Pin config: 0x02214c20
hdac0: Pin control: 0x000000c0 HP OUT
hdac0: Output amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: Input amp: 0x00270300
hdac0: mute=0 step=3 size=39 offset=0
hdac0: connections: 5
hdac0: |
hdac0: + [DISABLED] <- nid=12 [audio mixer]
hdac0: + [DISABLED] <- nid=13 [audio mixer]
hdac0: + [DISABLED] <- nid=14 [audio mixer]
hdac0: + [DISABLED] <- nid=15 [audio mixer]
hdac0: + <- nid=38 [audio mixer] (selected)
hdac0:
hdac0: nid: 28 [DISABLED]
hdac0: Name: pin: CD (None)
hdac0: Widget cap: 0x00400001
hdac0: STEREO
hdac0: Pin cap: 0x00000020
hdac0: IN
hdac0: Pin config: 0x593301f0
hdac0: Pin control: 0x00000000
hdac0:
hdac0: nid: 29
hdac0: Name: beep widget
hdac0: Widget cap: 0x00700000
hdac0: Association: -2 (0x00000000)
hdac0: OSS: speaker (speaker)
hdac0:
hdac0: nid: 30
hdac0: Name: pin: SPDIF-out (Orange Jack)
hdac0: Widget cap: 0x00400300
hdac0: DIGITAL
hdac0: Association: 2 (0x00000001)
hdac0: Pin cap: 0x00000010
hdac0: OUT
hdac0: Pin config: 0x014b6130
hdac0: Pin control: 0x00000040 OUT
hdac0: connections: 1
hdac0: |
hdac0: + <- nid=6 [audio output]
hdac0:
hdac0: nid: 31
hdac0: Name: pin: SPDIF-in (Yellow Jack)
hdac0: Widget cap: 0x00400200
hdac0: DIGITAL
hdac0: Association: 5 (0x00000001)
hdac0: OSS: dig1 (dig1)
hdac0: Pin cap: 0x00000020
hdac0: IN
hdac0: Pin config: 0x01cb7160
hdac0: Pin control: 0x00000020 IN
hdac0:
hdac0: nid: 32 [DISABLED]
hdac0: Name: vendor widget
hdac0: Widget cap: 0x00f00040
hdac0: PROC
hdac0:
hdac0: nid: 33 [DISABLED]
hdac0: Name: volume widget
hdac0: Widget cap: 0x00600080
hdac0: UNSOL

carlosalvet
09-21-2010, 02:03 AM
hdac0:
hdac0: nid: 34 [DISABLED]
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010b
hdac0: STEREO
hdac0: Input amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: connections: 11
hdac0: |
hdac0: + [DISABLED] <- nid=24 [pin: Mic (Pink Jack)]
hdac0: + [DISABLED] <- nid=25 [pin: Mic (Pink Jack)]
hdac0: + [DISABLED] <- nid=26 [pin: Line-in (Blue Jack)]
hdac0: + [DISABLED] <- nid=27 [pin: Headphones (Green Jack)]
hdac0: + [DISABLED] <- nid=28 [pin: CD (None)] [DISABLED]
hdac0: + [DISABLED] <- nid=29 [beep widget]
hdac0: + [DISABLED] <- nid=20 [pin: Line-out (Green Jack)]
hdac0: + [DISABLED] <- nid=21 [pin: Line-out (Black Jack)]
hdac0: + [DISABLED] <- nid=22 [pin: Line-out (Orange Jack)]
hdac0: + [DISABLED] <- nid=23 [pin: Line-out (Grey Jack)]
hdac0: + [DISABLED] <- nid=11 [audio mixer]
hdac0: hdac0: nid: 35
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010b
hdac0: STEREO
hdac0: Association: 4 (0x00000001)
hdac0: OSS: speaker, monitor
hdac0: Input amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: connections: 11
hdac0: |
hdac0: + [DISABLED] <- nid=24 [pin: Mic (Pink Jack)]
hdac0: + <- nid=25 [pin: Mic (Pink Jack)]
hdac0: + [DISABLED] <- nid=26 [pin: Line-in (Blue Jack)]
hdac0: + [DISABLED] <- nid=27 [pin: Headphones (Green Jack)]
hdac0: + [DISABLED] <- nid=28 [pin: CD (None)] [DISABLED]
hdac0: + <- nid=29 [beep widget]
hdac0: + [DISABLED] <- nid=20 [pin: Line-out (Green Jack)]
hdac0: + [DISABLED] <- nid=21 [pin: Line-out (Black Jack)]
hdac0: + [DISABLED] <- nid=22 [pin: Line-out (Orange Jack)]
hdac0: + [DISABLED] <- nid=23 [pin: Line-out (Grey Jack)]
hdac0: + [DISABLED] <- nid=11 [audio mixer]
hdac0:
hdac0: nid: 36
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010b
hdac0: STEREO
hdac0: Association: 3 (0x00008001)
hdac0: OSS: speaker, line, mic, mix
hdac0: Input amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: connections: 11
hdac0: |
hdac0: + <- nid=24 [pin: Mic (Pink Jack)]
hdac0: + [DISABLED] <- nid=25 [pin: Mic (Pink Jack)]
hdac0: + <- nid=26 [pin: Line-in (Blue Jack)]
hdac0: + [DISABLED] <- nid=27 [pin: Headphones (Green Jack)]
hdac0: + [DISABLED] <- nid=28 [pin: CD (None)] [DISABLED]
hdac0: + <- nid=29 [beep widget]
hdac0: + [DISABLED] <- nid=20 [pin: Line-out (Green Jack)]
hdac0: + [DISABLED] <- nid=21 [pin: Line-out (Black Jack)]
hdac0: + [DISABLED] <- nid=22 [pin: Line-out (Orange Jack)]
hdac0: + [DISABLED] <- nid=23 [pin: Line-out (Grey Jack)]
hdac0: + <- nid=11 [audio mixer]
hdac0:
hdac0: nid: 37
hdac0: Name: audio output
hdac0: Widget cap: 0x00000011
hdac0: STEREO
hdac0: Association: 1 (0x00000001)
hdac0: OSS: pcm (pcm)
hdac0: Stream cap: 0x00000001
hdac0: PCM
hdac0: PCM cap: 0x000e0560
hdac0: 16 20 24 bits, 44 48 96 192 KHz
hdac0:
hdac0: nid: 38
hdac0: Name: audio mixer
hdac0: Widget cap: 0x0020010f
hdac0: STEREO
hdac0: Association: 1 (0x00000001)
hdac0: OSS: pcm, mix
hdac0: Output amp: 0x00034040
hdac0: mute=0 step=64 size=3 offset=64
hdac0: Input amp: 0x80000000
hdac0: mute=1 step=0 size=0 offset=0
hdac0: connections: 2
hdac0: |
hdac0: + <- nid=37 [audio output]
hdac0: + <- nid=11 [audio mixer]
hdac0:
pcm0: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac0
pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 0 nid 1 on hdac0

Fatmice
09-21-2010, 04:58 PM
So according to your diagnostics, the portion that you really need is pcm0: +-------------------------------+
pcm0: | DUMPING Playback/Record Paths |
pcm0: +-------------------------------+
pcm0:
pcm0: Playback:
pcm0:
pcm0: nid=20 [pin: Line-out (Green Jack)]
pcm0: |
pcm0: + <- nid=12 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=2 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: nid=22 [pin: Line-out (Orange Jack)]
pcm0: |
pcm0: + <- nid=13 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=3 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: nid=21 [pin: Line-out (Black Jack)]
pcm0: |
pcm0: + <- nid=14 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=4 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: nid=23 [pin: Line-out (Grey Jack)]
pcm0: |
pcm0: + <- nid=15 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=5 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]

hdac0: <ATI SB600 High Definition Audio Controller> mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xfe024000
hdac0: [MPSAFE]
hdac0: [ITHREAD]
hdac0: Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256
hdac0: Probing codec #0...
hdac0: HDA Codec #0: Realtek ALC885
hdac0: HDA Codec ID: 0x10ec0885
hdac0: Vendor: 0x10ec
hdac0: Device: 0x0885
hdac0: Revision: 0x01
hdac0: Stepping: 0x01
hdac0: PCI Subvendor: 0xa0021458
hdac0: Found audio FG nid=1 startnode=2 endnode=39 total=37
hdac0:
hdac0: Processing audio FG cad=0 nid=1...
hdac0: GPIO: 0x40000002 NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdac0: nid 20 0x01014410 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 4
hdac0: nid 21 0x01011412 as 1 seq 2 Line-out Jack jack 1 loc 1 color Black misc 4
hdac0: nid 22 0x01016411 as 1 seq 1 Line-out Jack jack 1 loc 1 color Orange misc 4
hdac0: nid 23 0x01012414 as 1 seq 4 Line-out Jack jack 1 loc 1 color Grey misc 4
hdac0: nid 24 0x01a19c40 as 4 seq 0 Mic Jack jack 1 loc 1 color Pink misc 12
hdac0: nid 25 0x02a19c50 as 5 seq 0 Mic Jack jack 1 loc 2 color Pink misc 12
hdac0: nid 26 0x0181344f as 4 seq 15 Line-in Jack jack 1 loc 1 color Blue misc 4
hdac0: nid 27 0x02214c20 as 2 seq 0 Headphones Jack jack 1 loc 2 color Green misc 12
hdac0: nid 28 0x593301f0 as 15 seq 0 CD None jack 3 loc 25 color Unknown misc 1
hdac0: Patching widget caps nid=29 0x00400000 -> 0x00700000
hdac0: nid 30 0x014b6130 as 3 seq 0 SPDIF-out Jack jack 11 loc 1 color Orange misc 1
hdac0: nid 31 0x01cb7160 as 6 seq 0 SPDIF-in Jack jack 11 loc 1 color Yellow misc 1
hdac0: Patched pins configuration:
hdac0: nid 20 0x01014410 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 4
hdac0: nid 21 0x01011412 as 1 seq 2 Line-out Jack jack 1 loc 1 color Black misc 4
hdac0: nid 22 0x01016411 as 1 seq 1 Line-out Jack jack 1 loc 1 color Orange misc 4
hdac0: nid 23 0x01012414 as 1 seq 4 Line-out Jack jack 1 loc 1 color Grey misc 4
hdac0: nid 24 0x01a19c40 as 4 seq 0 Mic Jack jack 1 loc 1 color Pink misc 12
hdac0: nid 25 0x02a19c50 as 5 seq 0 Mic Jack jack 1 loc 2 color Pink misc 12
hdac0: nid 26 0x0181344f as 4 seq 15 Line-in Jack jack 1 loc 1 color Blue misc 4
hdac0: nid 27 0x02214c20 as 2 seq 0 Headphones Jack jack 1 loc 2 color Green misc 12
hdac0: nid 28 0x593301f0 as 15 seq 0 CD None jack 3 loc 25 color Unknown misc 1 [DISABLED]
hdac0: nid 30 0x014b6130 as 3 seq 0 SPDIF-out Jack jack 11 loc 1 color Orange misc 1
hdac0: nid 31 0x01cb7160 as 6 seq 0 SPDIF-in Jack jack 11 loc 1 color Yellow misc 1
hdac0: 6 associations found:
hdac0: Association 0 (1) out:
hdac0: Pin nid=20 seq=0
hdac0: Pin nid=22 seq=1
hdac0: Pin nid=21 seq=2
hdac0: Pin nid=23 seq=4
hdac0: Association 1 (2) out:
hdac0: Pin nid=27 seq=0
hdac0: Association 2 (3) out:
hdac0: Pin nid=30 seq=0
hdac0: Association 3 (4) in:
hdac0: Pin nid=24 seq=0
hdac0: Pin nid=26 seq=15
hdac0: Association 4 (5) in:
hdac0: Pin nid=25 seq=0
hdac0: Association 5 (6) in:
hdac0: Pin nid=31 seq=0
hdac0: Tracing association 0 (1)
hdac0: Pin 20 traced to DAC 2
hdac0: Pin 22 traced to DAC 3
hdac0: Pin 21 traced to DAC 4
hdac0: Pin 23 traced to DAC 5
hdac0: Association 0 (1) trace succeeded
hdac0: Tracing association 1 (2)
hdac0: Pin 27 traced to DAC 37
hdac0: Association 1 (2) trace succeeded
hdac0: Tracing association 2 (3)
hdac0: Pin 30 traced to DAC 6
hdac0: Association 2 (3) trace succeeded
hdac0: Tracing association 3 (4)
hdac0: Pin 24 traced to ADC 7
hdac0: Pin 26 traced to ADC 7
hdac0: Association 3 (4) trace succeeded
hdac0: Tracing association 4 (5)
hdac0: Pin 25 traced to ADC 8
hdac0: Association 4 (5) trace succeeded
hdac0: Tracing association 5 (6)
hdac0: Unable to trace pin 31 to ADC 9, undo traces
hdac0: Pin 31 traced to ADC 10
hdac0: Association 5 (6) trace succeeded
hdac0: Tracing input monitor
hdac0: Tracing nid 11 to out
hdac0: nid 11 is input monitor
hdac0: Tracing nid 35 to out
hdac0: Tracing nid 36 to out
hdac0: Tracing other input monitors
hdac0: Tracing nid 24 to out
hdac0: Tracing nid 25 to out
hdac0: Tracing nid 26 to out
hdac0: Tracing nid 31 to out
hdac0: Tracing beeperSo the default nids that you want are 20,21,22,23. Those are the four outputs.

/etc/loader.conf should already have
snd_hda_load="YES"Lets remove all the stuff that you added into device.hints The multichannel should work out of the box. Only use device.hint to make swap outputs.

If that doesn't work, we'll figure something else.

carlosalvet
09-22-2010, 01:11 AM
well i had

snd_hda_load="YES"

activated yet.

and erase all hints before wrote and added:

hint.hdac.0.cad0.nid20.config="as=1 seq=0 device = Line-out"
hint.hdac.0.cad0.nid21.config="as=1 seq=2 device = Line-out"
hint.hdac.0.cad0.nid22.config="as=1 seq=1 device = Line-out"
hint.hdac.0.cad0.nid23.config="as=1 seq=4 device = Line-out"


in difference with before, It don't throw error messages, device not found or something like that.

I did a prove with phonon and with amarok and still sounds 2.1 audio channels the difference is without error messages, jeje.

it can be somthing with the mixer or something like that, the volume is mute or something, how can see the volume of the mixer in new channels?

the mixer shows:


[XXXXX@pcbsd-2342] /home/carlos# mixer
Mixer vol is currently set to 100:100
Mixer pcm is currently set to 75:75
Mixer speaker is currently set to 75:75
Mixer line is currently set to 100:100
Mixer mic is currently set to 40:40
Mixer mix is currently set to 68:68
Mixer rec is currently set to 75:75
Mixer igain is currently set to 73:73


but i can see the new channels

the tracing association would have relationship?

thanks before hand

Fatmice
09-22-2010, 08:10 PM
By default, nid 20,21,22,23 is already as(0). You should leave them as is.

hdac0: Association 0 (1) out:
hdac0: Pin nid=20 seq=0
hdac0: Pin nid=22 seq=1
hdac0: Pin nid=21 seq=2
hdac0: Pin nid=23 seq=4

Again, you shouldn't really need to mess with device.hints unless you want to swap the purpose of each of your nid.

carlosalvet
09-22-2010, 10:13 PM
can I configure the hdac0 with out the device.hints? are there another way?

Excuse me if I understand at first, i am Mexican and my english is not very good.

thanks before hand!

Fatmice
09-23-2010, 12:06 AM
By default yes. You do not need to mess with device.hints. Comment out those lines in device.hints and see first if it work.

carlosalvet
09-23-2010, 01:52 AM
but that the lines are recognized by the kernel need to be without comments and reboot, or not?

I use the same configuration in hint.devices sorry, but with these added lines in /etc/sysctl:

dev.pcm.0.play.vchanformat=s16le:7.1


the sound device is 7.1 channels, just my sound speakers has 5.1.

and the better thing is that sound the lfe channel but the rear speakers, just front speakers, subwoofer and lfe, but with mp3 just front speakers, the difference is in OS into sound and out sound, it sounds with the 4 channels, in mp3 sound just 3 channels.


the questions is what about the other 2 channels, rear speakers? and what about the mp3? why intro sound is in 4 channel and mp3 just in three?

I was looking for and found this



http://forums.freebsd.org/archive/index.php/t-10746.html


at last caesius says something about this. I suppose it is the problem, but i am not sure.

Fatmice
09-23-2010, 02:51 AM
If you add lines to /etc/sysctl.conf then you need to reboot to take effect.

If you want to tweak without reboot, then sysctl dev.pcm.0.play.vchanformat=s16le:7.1All changes to /etc/device.hints must reboot to take effect.

As for getting 5.1 sound, you need to be playing a 5.1 encoded media. Not all mp3 are like that.

carlosalvet
09-23-2010, 05:30 AM
when i use the sentence:

sysctl dev.pcm.0.play.vchanformat=s16le:7.1


are they take effect immediatly?

and are there a prefix to alter device.hint like sysclt on terminal?

the change in sysctl the speakers sound perfect with a 5.1 surround tester!!. But just with KMPlayer and dragon player crash in rear speakers.

then play a DVD and without effect 2.1 output. again! so strange.

thanks for the help!

Fatmice
09-23-2010, 06:44 AM
Tweaks done via the sysctl command take immediate effect so becareful =)

For tweaks to stay through reboot, add them to /etc/sysctl.conf

device.hints is read by loader to present a modification to BIOS values before hardware probing so no, there is no "sysctl" command equivalent.

Essentially, sysctl offers kernel fine tunning without modification to underlying hardware layout. Another analogy is redecorating the house and not tearing up the foundation or woodwork.

Edit: sysctl is a command that you must issue. Do man sysctl for more information.

carlosalvet
09-23-2010, 07:02 AM
I play using vlc and works perfect the DVD!!!

thanks for the help!! a little hard and slow and stressing jajja but finally is done!, the mp3 don't sound what i hopped but it's OK! the 5.1 audio output is configured with an appropriate player!.

Thanks for whole the help Fatmice!!

Fatmice
09-23-2010, 03:47 PM
That's very good to hear. You should post a summary of what you did.

carlosalvet
09-23-2010, 09:11 PM
At beginning this summary is a little embarrassing jajaja is not difficult like i did.

first check your sound card and you can see it with:

cat /dev/sndstat

in your terminal.

in my case I have a mod hda, you can check the mod for your sound card in

http://wiki.freebsd.org/Sound

at first you must set up on your mod hda in /boot/loader.conf like root:

snd_hda_load="YES"


with that your module for the sound card is on.

Then you need to set up your 5.1 channels, by default is 2.1 or you can put 7.1 stead of,.

In /etc/sysctl.conf like root, you do that. you have to add the line with your multichannel output audio system. in this link talks about this parameters:

http://www.freebsd.org/cgi/man.cgi?query=sound&sektion=4

Now just add this to 7.1 output multichannel audio:

dev.pcm.0.play.vchanformat=s16le:7.1

or

sysctl dev.pcm.0.play.vchanformat=s16le:7.1

to alter dynamically and see the results

if you need 5.1 you need to change 7.1 to 5.1 or take a sight to the link fore more information.

NOTE: The device.hint don't need to be altered, I erase every sentences added in /boot/device.hint.

Thanks to Fatmice for help!

yggdrasil
08-25-2014, 09:19 PM
I'd like to tag on here. I, too, have a problem with 5.1 Sound in PCBSD. All I can get is 2.0 sound, while it works well under other OS. System is fully up to date, and the problem is an old one (since 9.1 at least), I just didn't bother till now.

cat /dev/sndstat yields this:

Installed devices:
pcm0: <Realtek ALC887 (Rear Analog 7.1/2.0)> (play/rec) default
pcm1: <Realtek ALC887 (Front Analog)> (play/rec)
pcm2: <Realtek ALC887 (Rear Digital)> (play)
pcm3: <Realtek ALC887 (Onboard Digital)> (play)


When I look at sysctl -a | grep vchanformat, I get this:

dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.rec.vchanformat: s16le:2.0
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.3.play.vchanformat: s16le:2.0


In this thread, it was part of the solution to change this to s16le:5.1 (or 7.1, since I have a 7.1 sound chip), but I can't to that


dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.1.play.vchanformat: s16le:5.1
dev.pcm.1.rec.vchanformat: s16le:2.0
dev.pcm.2.play.vchanformat: s16le:5.1
dev.pcm.3.play.vchanformat: s16le:5.1

pcm 1 through 3 can be changed to 5.1, but pcm0 cannot even be changed to 2.1.

This is the output of sysctl -a | grep seq= | sort -k3

Pin config: 0x01011012 as=1 seq=2 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Black misc=0
Pin config: 0x01012014 as=1 seq=4 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Grey misc=0
Pin config: 0x01014010 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=0
Pin config: 0x01016011 as=1 seq=1 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Orange misc=0
Pin config: 0x01456130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Optical loc=Rear color=Orange misc=1
Pin config: 0x0181305f as=5 seq=15 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0
Pin config: 0x01a19850 as=5 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=8
Pin config: 0x02214120 as=2 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=1
Pin config: 0x02a19960 as=6 seq=0 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=9
Pin config: 0x4005e601 as=0 seq=1 device=Line-out conn=None ctype=Optical loc=0x00 color=White misc=6
Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
Pin config: 0x99430140 as=4 seq=0 device=SPDIF-out conn=Fixed ctype=ATAPI loc=Onboard color=Unknown misc=1
dev.hdaa.0.nid29_config: 0x4005e601 as=0 seq=1 device=Line-out conn=None ctype=Optical loc=0x00 color=White misc=6
dev.hdaa.0.nid29_original: 0x4005e601 as=0 seq=1 device=Line-out conn=None ctype=Optical loc=0x00 color=White misc=6
dev.hdaa.0.nid20_config: 0x01014010 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=0
dev.hdaa.0.nid20_original: 0x01014010 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=0
dev.hdaa.0.nid22_config: 0x01016011 as=1 seq=1 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Orange misc=0
dev.hdaa.0.nid22_original: 0x01016011 as=1 seq=1 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Orange misc=0
dev.hdaa.0.nid21_config: 0x01011012 as=1 seq=2 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Black misc=0
dev.hdaa.0.nid21_original: 0x01011012 as=1 seq=2 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Black misc=0
dev.hdaa.0.nid23_config: 0x01012014 as=1 seq=4 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Grey misc=0
dev.hdaa.0.nid23_original: 0x01012014 as=1 seq=4 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Grey misc=0
dev.hdaa.0.nid18_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid18_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid28_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid28_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid31_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid31_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid27_config: 0x02214120 as=2 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=1
dev.hdaa.0.nid27_original: 0x02214120 as=2 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=1
dev.hdaa.0.nid17_config: 0x01456130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Optical loc=Rear color=Orange misc=1
dev.hdaa.0.nid17_original: 0x01456130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Optical loc=Rear color=Orange misc=1
dev.hdaa.0.nid30_config: 0x99430140 as=4 seq=0 device=SPDIF-out conn=Fixed ctype=ATAPI loc=Onboard color=Unknown misc=1
dev.hdaa.0.nid30_original: 0x99430140 as=4 seq=0 device=SPDIF-out conn=Fixed ctype=ATAPI loc=Onboard color=Unknown misc=1
dev.hdaa.0.nid24_config: 0x01a19850 as=5 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=8
dev.hdaa.0.nid24_original: 0x01a19850 as=5 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=8
dev.hdaa.0.nid26_config: 0x0181305f as=5 seq=15 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0
dev.hdaa.0.nid26_original: 0x0181305f as=5 seq=15 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0
dev.hdaa.0.nid25_config: 0x02a19960 as=6 seq=0 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=9
dev.hdaa.0.nid25_original: 0x02a19960 as=6 seq=0 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=9


and this is dmesg | grep hda:


hdac0: <ATI SB600 HDA Controller> mem 0xf7300000-0xf7303fff irq 16 at device 20.2 on pci0
hdacc0: <Realtek ALC887 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC887 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC887 (Rear Analog 7.1/2.0)> at nid 20,22,21,23 and 24,26 on hdaa0
pcm1: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa0
pcm2: <Realtek ALC887 (Rear Digital)> at nid 17 on hdaa0
pcm3: <Realtek ALC887 (Onboard Digital)> at nid 30 on hdaa0


Any help would be appreciated.