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.
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)
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
-------------------------------------------------------------
>>> 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
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)
$
for d in /dev/dsp*; do echo $d; cat ~/.profile > $d; sleep 3; done
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:~ #
cat /dev/sndstat
?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"
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:/ #
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:/ #
hdaa1: GPIO0: disabled
hdaa1: GPIO1: disabled
hdaa1: Setting amplifier nid=20 index=0 out mute=0/0 vol=0/0
sysctl -a | grep hda
for determining the association values (as=) and colors for your nids and reassign your device.hints.dev.hdac.0.polling=1
dev.hdac.1.polling=1
# $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"
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
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
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:~ #
mixer: unkown device: line
mixer: unkown device: monitor
mixer: unkown device: mic
mixer: unkown device: mic
mixer: unkown device: mic
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
sound_load="YES"
speaker_load="YES"
snd_hda_load="YES"
snd_ich_load="YES"
hint.pcm.4.eq=1
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"
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
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.
/boot/device.hints
hint.hdac.0.msi="1"
hint.hdac.1.msi="1"
Maybe you have nothing adjusted to mixer's bass device?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"
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.
Sounds like me after upgrading to 12.0you should have seen my face when after 4 days of getting it to work