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

By chance did you see my post a few posts ago, this is in the bottom of dmesg for most nids.
Code:
hdaa1: Setting amplifier nid=20 index=0 out mute=0/0 vol=0/0
its setting the vol to 0
 
Okay will check your posts a little bit later. Im actually in my Smartphone, checking and writing on it is driving me crazy :rolleyes:
 
Upon further research the snd_hda man page states this.

Code:
  Some Hardware/OEM vendors tend to screw up    BIOS settings or use custom
     unusual CODEC wiring that create problems to the driver.  This may    result
     in    missing    pcm devices, or    ==--->>>a state    where the snd_hda driver seems to
     attach and    work, but no sound is played.<<<----====  Some cases can be solved    by
     tuning loader.conf    variables.  But    before trying to fix problem that way,
     make sure that there really is a problem and that the PCM audio device in
     use really    corresponds to the expected audio connector.

     """"""Some vendors use non-standardized General Purpose I/O (GPIO) pins of the
     codec to control external amplifiers.  In some cases setting a combina-
     tion of GPIO bits may be needed to    make sound work    on a specific device.""""""""

     HDMI and DisplayPort audio    may also require support from video driver.

So I may need to play with the gpio settings and I also realize now the gpio pins are disabled because freebsd does not recognize/utilize, want to play nice with them.

Code:
hdaa1:  GPIO0: disabled
hdaa1:  GPIO1: disabled
root@bsd:/home/mike # gpioctl
gpio_open: No such file or directory
root@bsd:/home/mike # dmesg | grep gpio
root@bsd:/home/mike # dmesg | grep driver
pci0: <dasp, performance counters> at device 11.1 (no driver attached)
pci0: <dasp, performance counters> at device 11.2 (no driver attached)
pci0: <dasp, performance counters> at device 16.1 (no driver attached)
pci0: <dasp, performance counters> at device 16.6 (no driver attached)
pci0: <dasp, performance counters> at device 18.1 (no driver attached)
pci1: <unknown> at device 17.0 (no driver attached)
pci1: <simple comms> at device 22.0 (no driver attached)

So I want to put the device options in my kernel config file so I can tune gpio settings. and according to the man page for 11.2 which appears to be wrong.

Code:
NAME
     gpiobus --    GPIO bus system

SYNOPSIS
     To    compile    these devices into your    kernel and use the device hints, place
     the following lines in your kernel    configuration file:

       device gpio
       device gpioc
       device gpioiic
       device gpioled

So i do that and make buildkernel complains,

Code:
-------------------------------------------------------------
>>> Kernel build for bsd started on Wed Dec 12 14:54:53 EST 2018
--------------------------------------------------------------
===> bsd
mkdir -p /usr/obj/usr/src/sys

--------------------------------------------------------------
>>> stage 1: configuring the kernel
--------------------------------------------------------------
cd /usr/src/sys/amd64/conf;  PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin  config  -d /usr/obj/usr/src/sys/bsd  -I '/usr/src/sys/amd64/conf' '/usr/src/sys/amd64/conf/bsd'
WARNING: duplicate option `DEV_CBB' encountered.
WARNING: duplicate device `cbb' encountered.
WARNING: duplicate option `DEV_PCCARD' encountered.   <---==== these three errors are also not there if i take out the gpio devices.
WARNING: duplicate device `pccard' encountered.
WARNING: duplicate option `DEV_CARDBUS' encountered.
WARNING: duplicate device `cardbus' encountered.
                                                                                            config: Error: device "gpioc" is unknown
config: 1 errors
*** Error code 1

Stop.

make[1]: stopped in /usr/src
*** Error code 1

Does anyone know how I can tune gpio settings on freebsd 11.2? Thanks.

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)
$

I think I need to adjust/disable the gpio amplifier setting. its making the volume == 0 for nid20 which is why I hear no sound.

For what its worth when I run this

Code:
for d in /dev/dsp*; do echo $d; cat ~/.profile > $d; sleep 3; done
I get this. And also upon booting there is two errors. Mixer: unknown device: rec and Mixer: unknown device: vol
Code:
root@bsd:~ # sh test
/dev/dsp0.0
/dev/dsp1.0
/dev/dsp2.0
/dev/dsp3.0
/dev/dsp3.p0
test: cannot create /dev/dsp3.p0: Device busy
/dev/dsp4.0
/dev/dsp5.0
/dev/dsp6.0
test: cannot create /dev/dsp6.0: Operation not supported
/dev/dsp7.0
test: cannot create /dev/dsp7.0: Operation not supported
/dev/dsp8.0
test: cannot create /dev/dsp8.0: Operation not supported
/dev/dsp9.0
root@bsd:~ #

When it hits dsp9.0 it outputs noise to my headset. other than that i get nothing out of any other speaker.
 
I can understand that you are frustrated but sometimes haste makes waste. What I want to say is do first things first and take a coffee or a cigarette or maybe a beer from time to time.
Like drhowarddrfine mentioned quit building dozens of kernels. I suppose the cause is located somewhere different. I would suggest starting with GENERIC kernel.
If I understood you right you get sound from your headphones. Better than nothing. I cant comprehend whats your current config status look like.
Could you post your actual sound settings in/etc/sysctl.conf, /boot/loader.conf, /boot/device.hints and the actual output of cat /dev/sndstat?
 
Sure thanks.
Code:
root@bsd:/ # cat /etc/sysctl.conf
# $FreeBSD: releng/11.2/etc/sysctl.conf 112200 2003-03-13 18:43:50Z mux $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0

hw.snd.default_unit=3
hw.snd.verbose=2
hw.snd.maxautovchans=32
dev.pcm.3.play.vchanformat=s16le:5.1
dev.pcm.3.play.vchans=4
dev.pcm.3.rec.vchans=4
dev.hdac.1.pindump=1


root@bsd:/ # cat /boot/loader.conf

speaker_load="YES"
snd_hda_load="YES"
snd_ich_load="YES"
hint.pcm.3.eq=1 
#boot_verbose="YES"
#verbose_loading="YES"
#debug.bootverbose=1

root@bsd:/ # cat /boot/device.hints
# $FreeBSD: releng/11.2/sys/amd64/conf/GENERIC.hints 297243 2016-03-24 20:52:35Z mav $


hint.hdac.1.cad0.nid20.config="as=1 seq=0 device=Speaker"
hint.hdac.1.cad0.nid27.config="as=1 seq=15 device=Headphones"
hint.pcm.3.vol="100"

Code:
FreeBSD Audio Driver (64bit 2009061500/amd64)
Installed devices:
pcm0: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm1: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm2: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm3: <Realtek ALC1150 (Analog 5.1+HP/2.0)> on hdaa1 kld snd_hda (1p:4v/1r:4v) default
pcm4: <Realtek ALC1150 (Digital)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm5: <Realtek ALC1150 (Rear Digital)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm6: <Realtek ALC1150 (Front Analog Mic)> on hdaa1 kld snd_hda (0p:0v/1r:1v)
pcm7: <USB audio> at ? kld snd_uaudio (0p:0v/1r:1v)
pcm8: <USB audio> at ? kld snd_uaudio (0p:0v/1r:1v)
pcm9: <USB audio> at ? kld snd_uaudio (1p:1v/1r:1v)
No devices installed from userspace.
root@bsd:/ #
 
For good measure.

Code:
root@bsd:/ # kldstat
Id Refs Address            Size     Name
1   45 0xffffffff80200000 1d0b290  kernel
2    1 0xffffffff81f0d000 3c18     speaker.ko
3    1 0xffffffff81f11000 44a78    snd_hda.ko
4    5 0xffffffff81f56000 76940    sound.ko
5    1 0xffffffff81fcd000 77e0     snd_ich.ko
6    1 0xffffffff82711000 f4f59    nvidia-modeset.ko
7    1 0xffffffff82806000 c45ec8   nvidia.ko
8    2 0xffffffff8344c000 37528    linux.ko
9    2 0xffffffff83484000 2d28     linux_common.ko
10    1 0xffffffff83487000 c330     snd_uaudio.ko
11    1 0xffffffff83494000 2328     ums.ko
12    1 0xffffffff83497000 1780     uhid.ko
13    1 0xffffffff83499000 9e8      pflog.ko
14    1 0xffffffff8349a000 2fa58    pf.ko
15    1 0xffffffff834ca000 31e50    linux64.ko
root@bsd:/ #

snd_uaudio.ko is for my headset. I disabled it in /etc/devd/usb.conf at one time. I commented it out and it made no difference. So its back now.
 
To defend myself on the comment you made about kernel compiling, not that I think you meant it in any bad way, I know for a fact you didnt, and I get what you guys are trying to say but to justify myself, I have been using linux and freebsd since 1997 (not beating my chest I still have much to learn!) and I am confident about compiling kernels and knowing what I can and cant take out. Besides nowadays you dont go crazy taking things out because theres not much difference like there used to be in performance etc. But point is for that reason I dont remember taking out anything except the snd_* devices because i wanted to try the OSS port and you need to do that for it. I did that because none of this worked and I had the same problem with generic kernel. fwiw. But they are modules now, are loaded, and at one point trying this i had them back in and it still didnt work. I just prefer them as modules. The only reason I want to recompile now is so i can get access to those gpio pins. I really think thats the problem. The amplifier setting is putting the vol at 0 (See above)
Code:
hdaa1:  GPIO0: disabled
hdaa1:  GPIO1: disabled
hdaa1: Setting amplifier nid=20 index=0 out mute=0/0 vol=0/0

But my computer is an i7-5930K I can definitely recompile generic if you think it will help it takes two minutes. Thanks for the help.
 
I didn't wish to offend you, sorry if you got that wrong. Think you are more advanced in kernel games like me cause Im a regular user dont need it usually (although I could improve performance).
Howsoever, lets go back to the topic. Since you got sound from headphones I would suggest that you have a problem with dynamical changing of sound devices. I had a similar problem on a thinkpad once where I got sound from the internal speakers but cant switch to headphones.
Uncomment any sound stuff /boot/loader.conf and disable the sound device hints in /boot/device.hints. Then check sysctl -a | grep hda for determining the association values (as=) and colors for your nids and reassign your device.hints.
Furthermore, some guys succeded with device polling. You can add
Code:
dev.hdac.0.polling=1
dev.hdac.1.polling=1
to your /etc/sysctl.conf, perhaps it will help.
 
Thanks! I actually ddid a lot of that last night, thats the route I was going. Here is what I came up with does it look right to you?
Code:
# $FreeBSD: releng/12.0/sys/amd64/conf/GENERIC.hints 297243 2016-03-24 20:52:35Z mav $

#hint.hdaa.1.gpio.config="0=input"
#hint.hdaa.1.gpio.config="1=input"

hint.hdac.1.cad0.nid17.config="as=15 seq=0 conn=Jack device=Digital-out misc=1"
hint.hdac.1.cad0.nid20.config="as=15 seq=1 conn=Jack device=Speaker misc=2"
hint.hdac.1.cad0.nid21.config="as=15 seq=2 conn=Jack device=Line-out misc=3"
hint.hdac.1.cad0.nid22.config="as=15 seq=3 conn=Jack device=Line-out misc=4"
hint.hdac.1.cad0.nid23.config="as=15 seq=4 conn=Jack device=Line-out misc=5"
hint.hdac.1.cad0.nid24.config="as=15 seq=5 conn=Jack device=Mic misc=6"
hint.hdac.1.cad0.nid25.config="as=15 seq=6 conn=Jack device=Mic misc=7"
hint.hdac.1.cad0.nid26.config="as=15 seq=7 conn=Jack device=Line-in misc=8"
hint.hdac.1.cad0.nid27.config="as=15 seq=8 conn=Jack device=Headphones misc=9"
hint.hdac.1.cad0.nid30.config="as=15 seq=9 conn=Jack device=Spdif-out misc=10"

#hint.hdac.1.cad0.nid20.config="as=1 seq=0 device=Speaker"
#hint.hdac.1.cad0.nid27.config="as=1 seq=15 device=Headphones"
hint.pcm.3.vol="100"

This is the results.

Code:
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

I tried polling earlier but I will try again. I have to go to an appointment in a few minutes but ill add polling and reboot.

Thank you so much.
 
ok i added polling, this is my sysctl.conf

Code:
hw.snd.default_unit=3
hw.snd.verbose=3
hw.snd.maxautovchans=32
dev.pcm.3.play.vchanformat=s16le:5.1
dev.pcm.3.play.vchans=4
dev.pcm.3.rec.vchans=4
dev.hdac.1.pindump=1

dev.hdac.1.polling=1

and /dev/sndstat

Code:
Installed devices:
pcm0: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm1: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm2: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm3: <Realtek ALC1150 (Digital)> on hdaa1 kld snd_hda (1p:4v/0r:0v) default
pcm4: <Realtek ALC1150 (Rear Analog)> on hdaa1 kld snd_hda (1p:1v/1r:1v)
pcm5: <Realtek ALC1150 (Analog)> on hdaa1 kld snd_hda (1p:1v/1r:1v)
pcm6: <Realtek ALC1150 (Rear Analog Line-out)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm7: <Realtek ALC1150 (Analog Line-out)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm8: <Realtek ALC1150 (Front Analog Headphones)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm9: <Realtek ALC1150 (Rear Digital)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm10: <USB audio> at ? kld snd_uaudio (0p:0v/1r:1v)
pcm11: <USB audio> at ? kld snd_uaudio (1p:1v/1r:1v)
pcm12: <USB audio> at ? kld snd_uaudio (0p:0v/1r:1v)
No devices installed from userspace.
root@bsd:~ #

No sound though. **as i write this i see its defaulting to 3 like we wanted but it changed. its digital now, I will update default card and those pcm values to 4 and reboot but i have to go to my appointment. I will let you know asap.

Also these errors are in the bottom of dmesg.

Code:
mixer: unkown device: line

mixer: unkown device: monitor

mixer: unkown device: mic

mixer: unkown device: mic

mixer: unkown device: mic
 
Yeah, hope it will run with pcm4! That may explain why it did not go as smoothly.
Clear your /boot/device.hints before you try again. And start only with these settings in your /etc/sysctl.conf
Code:
hw.snd.default_unit=4
hw.snd.verbose=1
hw.snd.maxautovchans=32
dev.pcm.4.play.vchanformat=s16le:5.1
dev.pcm.4.play.vchans=4
dev.pcm.4.rec.vchans=4
Good luck!
 
I just came back from my appointment and I have sound man. Thank you so much for your help and anyone else here that helped me. I just screamed "It's alive" at the top of my lungs and my wife is thinking about having me commited. No but seriously, I will leave all this here for documentation.

/boot/loader.conf
Code:
sound_load="YES"
speaker_load="YES"
snd_hda_load="YES"
snd_ich_load="YES"
hint.pcm.4.eq=1

/boot/device.hints
Code:
hint.hdac.1.cad0.nid17.config="as=15 seq=0 conn=Jack device=Digital-out misc=1"
hint.hdac.1.cad0.nid20.config="as=15 seq=1 conn=Jack device=Speaker misc=2"
hint.hdac.1.cad0.nid21.config="as=15 seq=2 conn=Jack device=Line-out misc=3"
hint.hdac.1.cad0.nid22.config="as=15 seq=3 conn=Jack device=Line-out misc=4"
hint.hdac.1.cad0.nid23.config="as=15 seq=4 conn=Jack device=Line-out misc=5"
hint.hdac.1.cad0.nid24.config="as=15 seq=5 conn=Jack device=Mic misc=6"
hint.hdac.1.cad0.nid25.config="as=15 seq=6 conn=Jack device=Mic misc=7"
hint.hdac.1.cad0.nid26.config="as=15 seq=7 conn=Jack device=Line-in misc=8"
hint.hdac.1.cad0.nid27.config="as=15 seq=8 conn=Jack device=Headphones misc=9"
hint.hdac.1.cad0.nid30.config="as=15 seq=9 conn=Jack device=Spdif-out misc=10"
hint.pcm.3.vol="100"

/etc/sysctl.conf
Code:
hw.snd.default_unit=4
hw.snd.verbose=3
hw.snd.maxautovchans=32
dev.pcm.4.play.vchanformat=s16le:5.1
dev.pcm.4.play.vchans=4
dev.pcm.4.rec.vchans=4
dev.hdac.1.pindump=1
dev.hdac.1.polling=1

cat /dev/sndstat
Code:
Installed devices:
pcm0: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm1: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm2: <NVIDIA (0x0060) (HDMI/DP 8ch)> on hdaa0 kld snd_hda (1p:1v/0r:0v)
pcm3: <Realtek ALC1150 (Digital)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm4: <Realtek ALC1150 (Rear Analog)> on hdaa1 kld snd_hda (1p:4v/1r:4v) default
pcm5: <Realtek ALC1150 (Analog)> on hdaa1 kld snd_hda (1p:1v/1r:1v)
pcm6: <Realtek ALC1150 (Rear Analog Line-out)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm7: <Realtek ALC1150 (Analog Line-out)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm8: <Realtek ALC1150 (Front Analog Headphones)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm9: <Realtek ALC1150 (Rear Digital)> on hdaa1 kld snd_hda (1p:1v/0r:0v)
pcm10: <USB audio> at ? kld snd_uaudio (0p:0v/1r:1v)
pcm11: <USB audio> at ? kld snd_uaudio (1p:1v/1r:1v)
pcm12: <USB audio> at ? kld snd_uaudio (0p:0v/1r:1v)
No devices installed from userspace.

Seriously thank you all. 4 days of this but this feeling I have right now is why I don't hardly ever give up on things especially when it comes to *nix.
 
I actually have one error in the bottom of dmesg that says "Mixer: unkown device: bass" Can I be a little picky, how do I get rid of that its annoying to me.
 
Glad to here, man! I think you can disable polling now. But now you can start tuning. For example try msi, runs fine for me with Realtek ALC1200
Code:
/boot/device.hints

hint.hdac.0.msi="1"
hint.hdac.1.msi="1"

I actually have one error in the bottom of dmesg that says "Mixer: unkown device: bass" Can I be a little picky, how do I get rid of that its annoying to me.
Maybe you have nothing adjusted to mixer's bass device?

BTW, you can mark this Thread as solved when the topic is off the agenda for you.
 
Glad to here, man! I think you can disable polling now. But now you can start tuning. For example try msi, runs fine for me with Realtek ALC1200
Code:
/boot/device.hints

hint.hdac.0.msi="1"
hint.hdac.1.msi="1"


Maybe you have nothing adjusted to mixer's bass device?

BTW, you can mark this Thread as solved when the topic is off the agenda for you.

I was looking to mark it as solved earlier but i cant find it. I even checked help. Where is it I cant seem to find it thanks.
 
If anyone comes across this, gets it to work, like I did and it suddenly stops working after you boot windows (im currently dual booting windows 10, and Freebsd 12-CURRENT) I dont know what the problem is, but every time I boot windows, in order to get sound working again in freebsd, i have to power the machine completely off, then boot go in the UEFI Bios, (change NOTHING) but save and reset. Then when i boot freebsd i have sound. Windows must set something in the bios that sticks maybe and powering it off and not resetting but saving the bios resets something i dont friggin know. Strange indeed. Who cares at least I figured it out. I dont even know how i figured that out. But you should have seen my face when after 4 days of getting it to work I had no sound again. Hope it helps.
 
Back
Top