Solved I need someone to be nice and help me with these "pins" on a realtek HD audio controller.

I tried understanding why I am not getting sound, and I read about setting these pins which I never had to do before, i have been messing with this all day and I am so frustrated. Can somebody help me please? I do not use nvidia for sound. I use realtek not nvidia, the sound needs to come out of pcm3, thats whats plugged in. I tried putting things in rc.conf, etc/sysctl.conf /boot/device.hints. Nothing works so far.

Code:
$ dmesg | grep hdac
hdac0: <NVIDIA (0x0fbc) HDA Controller> mem 0xfb080000-0xfb083fff irq 44 at device 0.1 numa-domain 0 on pci3
hdac1: <Intel Wellsburg HDA Controller> mem 0xfb230000-0xfb233fff irq 22 at device 27.0 numa-domain 0 on pci1
hdacc0: <NVIDIA (0x0060) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0060) Audio Function Group> at nid 1 on hdacc0
hdacc1: <Realtek ALC1150 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC1150 Audio Function Group> at nid 1 on hdacc1
hdac0: <NVIDIA (0x0fbc) HDA Controller> mem 0xfb080000-0xfb083fff irq 44 at device 0.1 numa-domain 0 on pci3
hdac1: <Intel Wellsburg HDA Controller> mem 0xfb230000-0xfb233fff irq 22 at device 27.0 numa-domain 0 on pci1
hdacc0: <NVIDIA (0x0060) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0060) Audio Function Group> at nid 1 on hdacc0
hdacc1: <Realtek ALC1150 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC1150 Audio Function Group> at nid 1 on hdacc1
$

Code:
 cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0060) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0060) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0060) (HDMI/DP 8ch)> (play)
pcm3: <Realtek ALC1150 (Rear Analog 5.1/2.0)> (play/rec) default
pcm4: <Realtek ALC1150 (Front Analog)> (play/rec)
pcm5: <Realtek ALC1150 (Digital)> (play)
pcm6: <Realtek ALC1150 (Rear Digital)> (play)
No devices installed from userspace.
$

I have a simple setup. I dont need headphones or anything else. I just want my sound to come out of pcm3 thats where its plugged in.

here is my pins if you need them.

[CODE]em0: link state changed to UP
hdaa1: Dumping AFG pins:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1: 17 18561130 3  0  Digital-out   Jack  Digital 0x18       Black   1
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: 20 01014010 1  0  Line-out      Jack  1/8     Rear       Green   0
hdaa1:     Caps: IN OUT HP EAPD      Sense: 0x80000000 (connected)
hdaa1: 21 01011012 1  2  Line-out      Jack  1/8     Rear       Black   0
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 22 01016011 1  1  Line-out      Jack  1/8     Rear       Orange  0
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 23 40040000 0  0  Line-out      None  RCA     0x00       Unknown 0 DISA
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 24 01a19050 5  0  Mic           Jack  1/8     Rear       Pink    0
hdaa1:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa1: 25 02a19060 6  0  Mic           Jack  1/8     Front      Pink    0
hdaa1:     Caps: IN OUT HP      VREF Sense: 0x00000000 (disconnected)
hdaa1: 26 0181305f 5  15 Line-in       Jack  1/8     Rear       Blue    0
hdaa1:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa1: 27 02214020 2  0  Headphones    Jack  1/8     Front      Green   0
hdaa1:     Caps: IN OUT HP EAPD VREF Sense: 0x00000000 (disconnected)
hdaa1: 30 01456140 4  0  SPDIF-out     Jack  Optical Rear       Orange  1
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa1:  GPIO0: disabled
hdaa1:  GPIO1: disabled
sonewconn: pcb 0xfffff8000dc664b0: Listen queue overflow: 8 already in queue awaiting acceptance (1 occurrences)
$



[/CODE]

these are the modules I have loaded. I have sound, snd_ich, and snd_hda IN a custom kernel.

Code:
$ kldstat
Id Refs Address            Size     Name
1   29 0xffffffff80200000 1d68b78  kernel
2    1 0xffffffff82511000 f4f59    nvidia-modeset.ko
3    1 0xffffffff82606000 c45ec8   nvidia.ko
4    2 0xffffffff8324c000 37528    linux.ko
5    2 0xffffffff83284000 2d28     linux_common.ko
6    1 0xffffffff83287000 2328     ums.ko
7    1 0xffffffff8328a000 1780     uhid.ko
8    1 0xffffffff8328c000 9e8      pflog.ko
9    1 0xffffffff8328d000 2fa58    pf.ko
10    1 0xffffffff832bd000 31e50    linux64.ko
$


This is in rc.conf

Code:
### SOUND       ###
snddetect_enable="YES"
mixer_enable="YES"

Thank you so much for anybody that can help me this has been very frustrating today.
 
Check at mixer the “Mixer line” volume levels. I had 1:1 with my Realtek ALC889 .
If no result make sure that was plugged in in the line out jack, works.
 
Ah, ok. I don't have my glasses (changing lens) and I miss this detail. :)

If the volume in mixer(8) is properly set, then it may be something else, indeed.

Another thing, how are you performing the tests? I would advise to test with something simple like cat filename > /dev/dsp (eventually /dev/dspX) to be sure this is not related with specific players.
 
Hi guys, I am making progress. Little. But progress. I am starting to learn how this works. This is what I now have in /etc/sysctl.conf

Code:
hw.snd.default_unit=3
dev.hdac.1.pindump=1

And this is what I learned to put in /boot/device/hints.

I disabled everything I do not need.

Code:
hint.hdac.1.cad0.nid17.config="as=0 seq=5"
hint.hdac.1.cad0.nid20.config="as=1 seq=2 device Line-out"
hint.hdac.1.cad0.nid21.config="as=0 seq=5"
hint.hdac.1.cad0.nid22.config="as=0 seq=5"
hint.hdac.1.cad0.nid23.config="as=0 seq=5"
hint.hdac.1.cad0.nid24.config="as=2 seq=4 device=Mic"
hint.hdac.1.cad0.nid25.config="as=0 seq=4 device=Mic"
hint.hdac.1.cad0.nid26.config="as=0 seq=5"
hint.hdac.1.cad0.nid27.config="as=1 seq=3 device=Headphones"
hint.hdac.1.cad0.nid30.config="as=0 seq=5"

With that in the device.hints, my pins now result in this.

Code:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1: 17 18561105 0  5  Digital-out   Jack  Digital 0x18       Black   1 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: 20 01014012 1  2  Line-out      Jack  1/8     Rear       Green   0
hdaa1:     Caps: IN OUT HP EAPD      Sense: 0x80000000 (connected)
hdaa1: 21 01011005 0  5  Line-out      Jack  1/8     Rear       Black   0 DISA
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 22 01016005 0  5  Line-out      Jack  1/8     Rear       Orange  0 DISA
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 23 40040005 0  5  Line-out      None  RCA     0x00       Unknown 0 DISA
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 24 01a19024 2  4  Mic           Jack  1/8     Rear       Pink    0
hdaa1:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa1: 25 02a19004 0  4  Mic           Jack  1/8     Front      Pink    0 DISA
hdaa1:     Caps: IN OUT HP      VREF Sense: 0x00000000 (disconnected)
hdaa1: 26 01813005 0  5  Line-in       Jack  1/8     Rear       Blue    0 DISA
hdaa1:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa1: 27 02214013 1  3  Headphones    Jack  1/8     Front      Green   0
hdaa1:     Caps: IN OUT HP EAPD VREF Sense: 0x00000000 (disconnected)
hdaa1: 30 01456105 0  5  SPDIF-out     Jack  Optical Rear       Orange  1 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa1:  GPIO0: disabled
hdaa1:  GPIO1: disabled


I still have no sound however. I have these in /dev/

Code:
root@bsd:/home/mike # ls /dev/dsp*
/dev/dsp0.0     /dev/dsp1.0     /dev/dsp2.0     /dev/dsp3.0
root@bsd:/home/mike #

To answer your question on how I am testing, i am running cat /dev/random > /dev/dsp.0, and so on. I will worry about applications later, and one at a time.


Two things I would like to note. one, when I cat /dev/random > /dev/dsp1.0 I do get sound to my monitor speakers, but this is not what I want. and I get nothing from anything else.

Also, when i boot up i get three of these exact messages in order.
**
mixer: unknown device: mic
mixer: unknown device: mic
mixer: unknown device: mic
(*UPDATE* I rebooted, and looked, those errors are not there now that I set the pins.)

I would also like to ask, in my pin results:



Code:
hdaa1: Dumping AFG pins:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1: 17 18561105 0  5  Digital-out   Jack  Digital 0x18       Black   1 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: 20 01014012 1  2  Line-out      Jack  1/8     Rear       Green   0
hdaa1:     Caps: IN OUT HP EAPD      Sense: 0x80000000 (connected)
hdaa1: 21 01011005 0  5  Line-out      Jack  1/8     Rear       Black   0 DISA
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 22 01016005 0  5  Line-out      Jack  1/8     Rear       Orange  0 DISA
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 23 40040005 0  5  Line-out      None  RCA     0x00       Unknown 0 DISA
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 24 01a19024 2  4  Mic           Jack  1/8     Rear       Pink    0
hdaa1:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa1: 25 02a19004 0  4  Mic           Jack  1/8     Front      Pink    0 DISA
hdaa1:     Caps: IN OUT HP      VREF Sense: 0x00000000 (disconnected)
hdaa1: 26 01813005 0  5  Line-in       Jack  1/8     Rear       Blue    0 DISA
hdaa1:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa1: 27 02214013 1  3  Headphones    Jack  1/8     Front      Green   0
hdaa1:     Caps: IN OUT HP EAPD VREF Sense: 0x00000000 (disconnected)
hdaa1: 30 01456105 0  5  SPDIF-out     Jack  Optical Rear       Orange  1 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa1:  GPIO0: disabled
hdaa1:  GPIO1: disabled

To the right of each thing I want enabled, for example nid 20, 24, and 27
what is that to the right that says MISC should that be 0?

(OH and her is my mixer like you asked)

Code:
$ mixer
Mixer vol      is currently set to  85:85
Mixer pcm      is currently set to 100:100
Mixer mic      is currently set to  67:67
Mixer mix      is currently set to  74:74
Mixer rec      is currently set to  37:37
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to 100:100
Recording source: mic

$ mixer -f mixer0
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to 100:100
$ mixer -f mixer1
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to 100:100
$ mixer -f mixer2
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to 100:100
$ mixer -f mixer3
Mixer vol      is currently set to  85:85
Mixer pcm      is currently set to 100:100
Mixer mic      is currently set to  67:67
Mixer mix      is currently set to  74:74
Mixer rec      is currently set to  37:37
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to 100:100
Recording source: mic
$

Why so many mixers? And why do i not have a standard /dev/dsp" but instead other ones?


Anyway I dont know where to go from here. I thought I made a lot of progress but I still get no Lynrd skynrd love.

Thanks for any help!
 
Those sound things are some times like Greek for me (I can't understand a thing). We have some folks in here who really understand about sound(4), and they should appear at some point. But just to be clear I just have /dev/dsp5.0 and I have hw.snd.default_unit=5.
 
Yeah I am waiting patiently for the "masters" I know there are a lot of smart people here thats why I came and I am confident they will help me meet my goal. I first used freebsd when it was 4.6 but I took a break and I still have a lot to learn. Its hard to keep up because its always changing but thats how software works fortunately. I do understand how hw.snd.default_unit works, but the problem is I get sound out of dsp1.0 (monitor speakers but not prefered.) and i get nothing out of dsp2.0 or dsp3.0. I also just went in the bios and changed front panel from HD AUDIO to AC97 but it made no difference (didnt know if it even would, was worth a shot.) so i switched it back.
 
I enabled hw.snd.verbose=4 if this helps. Why does realtek report "BUSY"

Code:
root@bsd:/dev # cat /dev/sndstat
FreeBSD Audio Driver (64bit 2009061500/amd64)
Installed devices:
pcm0: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0  (1p:1v/0r:0v)
        snddev flags=0x2e7<SIMPLEX,AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
        [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004
        interrupts 157, underruns 0, feed 157, ready 0 [b:4096/2048/2|bs:4096/2048/2]
        channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
        {userland} -> feeder_mixer(0x00200010) -> {hardware}
        pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 8000/48000, fmt 0x00100008/0x00200010, flags 0x10000000, 0x0000006b
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:4096/128/32]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00100008) -> feeder_format(0x00100008 -> 0x00100010) -> feeder_rate(0x00100010 q:1 8000 -> 48000) -> feeder_matrix(1.0 -> 2.0) -> feeder_volume(0x00200010) -> {hardware}
pcm1: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0  (1p:1v/0r:0v)
        snddev flags=0x2e7<SIMPLEX,AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
        [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004
        interrupts 109, underruns 0, feed 109, ready 0 [b:4096/2048/2|bs:4096/2048/2]
        channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
        {userland} -> feeder_mixer(0x00200010) -> {hardware}
        pcm1:play:dsp1.p0[pcm1:virtual:dsp1.vp0]: spd 8000/48000, fmt 0x00100008/0x00200010, flags 0x10000000, 0x0000006b
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:4096/128/32]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00100008) -> feeder_format(0x00100008 -> 0x00100010) -> feeder_rate(0x00100010 q:1 8000 -> 48000) -> feeder_matrix(1.0 -> 2.0) -> feeder_volume(0x00200010) -> {hardware}
pcm2: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0  (1p:1v/0r:0v)
        snddev flags=0x2e7<SIMPLEX,AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
        [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004
        interrupts 125, underruns 0, feed 125, ready 0 [b:4096/2048/2|bs:4096/2048/2]
        channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
        {userland} -> feeder_mixer(0x00200010) -> {hardware}
        pcm2:play:dsp2.p0[pcm2:virtual:dsp2.vp0]: spd 8000/48000, fmt 0x00100008/0x00200010, flags 0x10000000, 0x0000006b
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:4096/128/32]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00100008) -> feeder_format(0x00100008 -> 0x00100010) -> feeder_rate(0x00100010 q:1 8000 -> 48000) -> feeder_matrix(1.0 -> 2.0) -> feeder_volume(0x00200010) -> {hardware}
pcm3: <Realtek ALC1150 (Analog 4ch/2.0)> on hdaa1  (1p:1v/2r:1v) default
        snddev flags=0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
        [pcm3:play:dsp3.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004
        interrupts 122, underruns 0, feed 122, ready 0 [b:4096/2048/2|bs:4096/2048/2]
        channel flags=0x2100<BUSY,HAS_VCHAN>
        {userland} -> feeder_mixer(0x00200010) -> {hardware}
        pcm3:play:dsp3.p0[pcm3:virtual:dsp3.vp0]: spd 8000/48000, fmt 0x00100008/0x00200010, flags 0x10000000, 0x0000006b
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:4096/128/32]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00100008) -> feeder_format(0x00100008 -> 0x00100010) -> feeder_rate(0x00100010 q:1 8000 -> 48000) -> feeder_matrix(1.0 -> 2.0) -> feeder_volume(0x00200010) -> {hardware}
        [pcm3:record:dsp3.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
        interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2]
        channel flags=0x2100<BUSY,HAS_VCHAN>
        {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
        [pcm3:record:dsp3.r1]: spd 8000, fmt 0x00100008, flags 0x00000000, 0x00000000
        interrupts 0, overruns 0, feed 0, hfree 65536, sfree 0 [b:65536/32768/2|bs:0/0/0]
        channel flags=0x0
        {hardware} -> feeder_root(0x00000000) -> {userland}
        pcm3:record:dsp3.r0[pcm3:virtual:dsp3.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
        interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
        channel flags=0x10000000<VIRTUAL>
        {hardware} -> feeder_root(0x00000000) -> {userland}
No devices installed from userspace.
 
I removed all the pin assignments in device.hints. The default look correct. anyway.

I think this is the problem.

Code:
$ cat /dev/random > /dev/dsp3.p0
/bin/sh: cannot create /dev/dsp3.p0: Device busy
$

You guys are awful quiet today. Anybody have an idea?

if i cat /dev/random > /dev/dsp it is created, and i hear (BARELY) a very faint hiss while its running, but mixer is at 100
 
There are few threads about this on this forum. I tried getting my headphones to work, though audio through speakers does, and went through some of the same wrestling as you without any luck though I'll admit it was while trying to juggle at the same time. I remember just trying to make sense of the documentation was a struggle and having a little more hand holding would help but I am not the one to be able to do that, unfortunately.
 
I know you would if you could i'll just wait for someone to come along. I do however appreciate the gesture. I am still going crazy trying to figure this out I have rebooted a thousand times, compiled different kernels, numerous settings in numerous files, i even went as far as compiling a new kernel again and installing oss from ports. It seems it never recognizes my hardware even though in the modules directory in /usr/local/lib/oss/modules there is oss_hdaudio.ko and oss_ich.ko. I just dont understand this. Someone will come along I just have to be patient. It is a workweek afterall.
 
I needed to take out all the snd_ modules to install the oss port. It wouldnt load with those built in the kernel.
 
I dont think its the pins though. the default setup looks fine. the problem is the dsp3.p0 is "busy" if i try to cat to it and thats the one i need. i get sound out of my headphones fine. others i cat to i hear a faint sound its there but just barely. look at this i think this is the problem.

Code:
hdaa1: Setting amplifier nid=20 index=0 out mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=12 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=2 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=12 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=21 index=0 out mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=13 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=3 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=13 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=22 index=0 out mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=14 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=4 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=14 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=2 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=12 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=3 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=13 index=0 in mute=0/0 vol=0/0

those are in dmesg. what is amplifier, and why is it setting the volume to "0" and i am trying to figure out how to change it.
 
Hi. Im by far not an expert in sound(4) but maybe I can help a little bit.
Normally the snd_hda module will be loaded by default. There is no need to ennable snddetect and mixer knobs via /etc/rc.conf. For a better understanding, during boot process the nvidia chip will be detected at first so a lower controller indication will be assigned (hdac0) than for the Realtek chip (hdac1). Check your devices with cat /dev/sndstat.
snd_hda activates 2.0 sound by default, therefore stereo. For surround sound via analog sockets of your mainboard you need additional channels (maybe two or four speakers and a subwoofer). For 4 channels e.g., add this to your /etc/sysctl.conf
Code:
hw.snd.default_unit=3
hw.snd.verbose=1
hw.snd.maxautovchans=32
dev.pcm.1.play.vchanformat=s16le:5.1
dev.pcm.1.play.vchans=4
dev.pcm.1.rec.vchans=4
To enable the equalizer add this to your /boot/loader.conf
Code:
hint.pcm.3.eq=1
(I assume pcm3 is expected to be your standard device).
After a reboot cat /dev/sndstat should show something like this
Code:
pcm3: <Realtek ALC1150 (Rear Analog 7.1/2.0)> on hdaa1 (1p:1v/1r:4v) default
(Could slightly differ for you). Then check your sound, you could also use speaker-test from the audio/alsa-utils pkg. If you have trouble any longer check your verbose boot output for hdaa3 rows with nid 20 to nid 23 - these compley with colored sockets for external speakers (green, black, orange, grey). Play with changing channels in your /boot/device.hints. I would try this first
Code:
hint.hdac.1.cad0.nid20.config="as=1 seq=0 device=Speaker"
If you want to plug in your headphones, say in the green front socket, add something like this
Code:
hint.hdac.1.cad0.nid27.config="as=1 seq=15 device=Headphones"
Search your output for the correct nids. Good luck!:)
 
Thats a lot of good information thank you so much I am going to get started. One thing I dont understand is you tell me to put

Code:
dev.pcm.1.play.vchanformat=s16le:5.1
dev.pcm.1.play.vchans=4
dev.pcm.1.rec.vchans=4

shouldnt that be pcm.3? Thanks
 
Great just checking. I did all that but this is what i got. Here is a verbose=4 cat /dev/sndstat. I only pasted the relevant pcm3 device. Mixer looks fine, actually now it says ANALOG5.1+HP so that worked. But speaker-test and catting to the various dsp files produce no noise I am afraid.

Code:
pcm3: <Realtek ALC1150 (Analog 5.1+HP/2.0)> on hdaa1 kld snd_hda (1p:4v/1r:4v) default
        snddev flags=0xee2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC,EQ,EQ_ENABLED>
        [pcm3:play:dsp3.p0]: spd 48000, fmt 0x08600010, flags 0x00002100, 0x00000014
        interrupts 20129, underruns 0, feed 20129, ready 0 [b:7680/3840/2|bs:8184/4092/2]
        channel flags=0x2100<BUSY,HAS_VCHAN>
        {userland} -> feeder_mixer(0x08600010) -> feeder_eq(0x08600010) -> {hardware}
        pcm3:play:dsp3.p0[pcm3:virtual:dsp3.vp0]: spd 48000, fmt 0x00100010/0x08600010, flags 0x10000000, 0x00000061
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:32768/1024/32]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00100010) -> feeder_matrix(1.0 -> 5.1) -> feeder_volume(0x08600010) -> {hardware}
        pcm3:play:dsp3.p0[pcm3:virtual:dsp3.vp1]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00000000) -> {hardware}
        pcm3:play:dsp3.p0[pcm3:virtual:dsp3.vp2]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00000000) -> {hardware}
        pcm3:play:dsp3.p0[pcm3:virtual:dsp3.vp3]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
        channel flags=0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00000000) -> {hardware}
        [pcm3:record:dsp3.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
        interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2]
        channel flags=0x2100<BUSY,HAS_VCHAN>
        {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
        pcm3:record:dsp3.r0[pcm3:virtual:dsp3.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
        interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
        channel flags=0x10000000<VIRTUAL>
        {hardware} -> feeder_root(0x00000000) -> {userland}
root@bsd:/dev #

These are my pins. everything seems to be fine.

Code:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1: 17 18561130 3  0  Digital-out   Jack  Digital 0x18       Black   1
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: 20 01114010 1  0  Speaker       Jack  1/8     Rear       Green   0
hdaa1:     Caps: IN OUT HP EAPD      Sense: 0x80000000 (connected)
hdaa1: 21 01011012 1  2  Line-out      Jack  1/8     Rear       Black   0
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 22 01016011 1  1  Line-out      Jack  1/8     Rear       Orange  0
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 23 40040000 0  0  Line-out      None  RCA     0x00       Unknown 0 DISA
hdaa1:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa1: 24 01a19050 5  0  Mic           Jack  1/8     Rear       Pink    0
hdaa1:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa1: 25 02a19060 6  0  Mic           Jack  1/8     Front      Pink    0
hdaa1:     Caps: IN OUT HP      VREF Sense: 0x00000000 (disconnected)
hdaa1: 26 0181305f 5  15 Line-in       Jack  1/8     Rear       Blue    0
hdaa1:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa1: 27 0221401f 1  15 Headphones    Jack  1/8     Front      Green   0
hdaa1:     Caps: IN OUT HP EAPD VREF Sense: 0x00000000 (disconnected)
hdaa1: 30 01456140 4  0  SPDIF-out     Jack  Optical Rear       Orange  1
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa1:  GPIO0: disabled
hdaa1:  GPIO1: disabled

Does that all look right to you? Thank you so much for the help. This is going on three days now. The only sound I need is out of that connected green speaker jack in the rear. I hardly use my headset.

Just "mixer" the volumes are fine. And if I specify device I get this.

Code:
$ mixer -f /dev/dsp3.p0
Mixer vol      is currently set to 100:100
Mixer bass     is currently set to  50:50
Mixer treble   is currently set to  50:50
Mixer pcm      is currently set to 100:100
Mixer line     is currently set to   1:1
Mixer mic      is currently set to  67:67
Mixer mix      is currently set to  74:74
Mixer rec      is currently set to  37:37
Mixer igain    is currently set to  47:47
Mixer ogain    is currently set to 100:100
Recording source: mic
$ mixer -f /dev/dsp3.p0 line 100
Setting the mixer line from 1:1 to 100:100.
$ speaker-test
But no love.
 
Code:
for d in /dev/dsp*; do echo $d; cat ~/.profile > $d; sleep 3; done

running this only gives me sound out of my headset when it hits dsp9.0
 
Code:
hdaa1:  GPIO0: disabled
hdaa1:  GPIO1: disabled
hdaa1: Setting amplifier nid=20 index=0 out mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=12 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=2 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=12 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=21 index=0 out mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=13 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=3 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=13 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=22 index=0 out mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=14 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=4 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=14 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=27 index=0 out mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=12 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=2 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=12 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=2 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=12 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=3 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=13 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=4 index=0 out mute=0/0 vol=87/87
hdaa1: Setting amplifier nid=14 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=26 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=11 index=2 in mute=0/0 vol=23/23
hdaa1: Setting amplifier nid=35 index=2 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=24 index=0 in mute=0/0 vol=2/2
hdaa1: Setting amplifier nid=11 index=0 in mute=0/0 vol=23/23
hdaa1: Setting amplifier nid=35 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=12 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=13 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=14 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=35 index=8 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=11 index=0 in mute=0/0 vol=23/23
hdaa1: Setting amplifier nid=11 index=2 in mute=0/0 vol=23/23
hdaa1: Setting amplifier nid=8 index=0 in mute=0/0 vol=23/23
hdaa1: Setting amplifier nid=35 index=0 in mute=0/0 vol=0/0
hdaa1: Setting amplifier nid=35 index=2 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=35 index=8 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=12 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=13 index=1 in mute=1/1 vol=0/0
hdaa1: Setting amplifier nid=14 index=1 in mute=1/1 vol=0/0
hdaa0: Unsolicited response 14000001
hdaa0: Pin sense: nid=5 sense=0x80000000 (connected)
pcm1: Playback channel matrix is: unknown, assuming 7.1 (connected)
hdaa0: Unsolicited response 14000003
hdaa0: Pin sense: nid=5 sense=0xc0000000 (connected, ELD valid)
hdaa0: ELD nid=5: ELD_Ver=2 Baseline_ELD_Len=8
hdaa0: ELD nid=5: CEA_EDID_Ver=3 MNL=13
hdaa0: ELD nid=5: SAD_Count=1 Conn_Type=0 S_AI=0 HDCP=0
hdaa0: ELD nid=5: Aud_Synch_Delay=0ms
hdaa0: ELD nid=5: Channels=0x1<FLR>
hdaa0: ELD nid=5: Port_ID=0x0002000000000000
hdaa0: ELD nid=5: Manufacturer_Name=0x06b3
hdaa0: ELD nid=5: Product_Code=0xa124
hdaa0: ELD nid=5: Monitor_Name_String='VG245
       '
hdaa0: ELD nid=5: LPCM 2ch freqs=0x7<48,44,32> sizes=0x7<24,20,16>
pcm1: Playback channel set is: Front Left, Front Right,
pcm1: Playback channel matrix is: 2.0 (connected)
$



That is the last few things in dmesg. What is "amplifier" and why is it setting vol=0 on nid20 thats the jack I need. I have searched everywhere for how to change that setting and tried disabling it with a command i forget that was in the snd_hda manpage I think i disabled or added noeapdinv but it didnt have any effect.
 
Thanks

Code:
speaker-test 1.1.2

Playback device is surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Channels count (6) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
root@bsd:~ #
 
Back
Top