Questions about enabling the sound card in FreeBSD on a mac mini 5.1

Hi everyone! Today i decided to install FreeBSD 13 and KDE 5 on my mac mini 5,1(mid 2011) and when i installed all necessary tools i noticed that the sound indicator is available but if i try to change the volume it does not playing sound. My sound card is Cirrus Logic CS4206 and also output of
Bash:
sysctl -a | grep hda
:
Code:
hdac0: <Intel Cougar Point HDA Controller> mem 0xa0900000-0xa0903fff at device 27.0 on pci0
hdacc0: <Cirrus Logic CS4206 HDA CODEC> at cad 0 on hdac0
hdaa0: <Cirrus Logic CS4206 Audio Function Group> at nid 1 on hdacc0
pcm0: <Cirrus Logic CS4206 (Analog)> at nid 11 and 12 on hdaa0
pcm1: <Cirrus Logic CS4206 (Digital)> at nid 16 and 15 on hdaa0
pcm2: <Cirrus Logic CS4206 (Analog Headphones)> at nid 10 on hdaa0
hdacc1: <Intel Cougar Point HDA CODEC> at cad 3 on hdac0
hdaa1: <Intel Cougar Point Audio Function Group> at nid 1 on hdacc1
hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (6) in association 1! Disabling association.
hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (7) in association 1! Disabling association.
hdac0: <Intel Cougar Point HDA Controller> mem 0xa0900000-0xa0903fff at device 27.0 on pci0
hdacc0: <Cirrus Logic CS4206 HDA CODEC> at cad 0 on hdac0
hdaa0: <Cirrus Logic CS4206 Audio Function Group> at nid 1 on hdacc0
pcm0: <Cirrus Logic CS4206 (Analog)> at nid 11 and 12 on hdaa0
pcm1: <Cirrus Logic CS4206 (Digital)> at nid 16 and 15 on hdaa0
pcm2: <Cirrus Logic CS4206 (Analog Headphones)> at nid 10 on hdaa0
hdacc1: <Intel Cougar Point HDA CODEC> at cad 3 on hdac0
hdaa1: <Intel Cougar Point Audio Function Group> at nid 1 on hdacc1
hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (6) in association 1! Disabling association.
hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (7) in association 1! Disabling association.
device    snd_hda
irq32: hdac0:67 @cpu0(domain0): 58112
dev.pcm.2.%parent: hdaa0
dev.pcm.1.%parent: hdaa0
dev.pcm.0.%parent: hdaa0
dev.hdaa.1.init_clear: 0
dev.hdaa.1.reconfig: 0
dev.hdaa.1.gpo_config:
dev.hdaa.1.gpo_state:
dev.hdaa.1.gpio_config:
dev.hdaa.1.gpio_state:
dev.hdaa.1.gpi_state:
dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.1.nid8: vendor widget [DISABLED]
dev.hdaa.1.nid7_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid7_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid7: pin: Digital-out (Jack) [DISABLED]
dev.hdaa.1.nid6_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid6_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid6: pin: Digital-out (Jack) [DISABLED]
dev.hdaa.1.nid5_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid5_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid5: pin: Digital-out (Jack) [DISABLED]
dev.hdaa.1.nid4: audio output [DISABLED]
dev.hdaa.1.nid3: audio output [DISABLED]
dev.hdaa.1.nid2: audio output [DISABLED]
dev.hdaa.1.%parent: hdacc1
dev.hdaa.1.%pnpinfo: type=0x01 subsystem=0x80860101
dev.hdaa.1.%location: nid=1
dev.hdaa.1.%driver: hdaa
dev.hdaa.1.%desc: Intel Cougar Point Audio Function Group
dev.hdaa.0.init_clear: 0
dev.hdaa.0.reconfig: 0
dev.hdaa.0.gpo_config:
dev.hdaa.0.gpo_state:
dev.hdaa.0.gpio_config: 0=keep 1=set 2=keep 3=set
dev.hdaa.0.gpio_state: 0=disabled 1=output(1) 2=disabled 3=output(1)
dev.hdaa.0.gpi_state:
dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.0.nid21_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid21_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid21: pin: Line-out (None) [DISABLED]
dev.hdaa.0.nid20: audio output [DISABLED]
dev.hdaa.0.nid19: beep widget
dev.hdaa.0.nid18_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid18_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid18: pin: Line-out (None) [DISABLED]
dev.hdaa.0.nid17: vendor widget [DISABLED]
dev.hdaa.0.nid16_original: 0x004be050 as=5 seq=0 device=SPDIF-out conn=Jack ctype=Combo loc=0x00 color=White misc=0
dev.hdaa.0.nid16_config: 0x004be050 as=5 seq=0 device=SPDIF-out conn=Jack ctype=Combo loc=0x00 color=White misc=0
dev.hdaa.0.nid16: pin: SPDIF-out (White Jack)
dev.hdaa.0.nid15_original: 0x00cbe020 as=2 seq=0 device=SPDIF-in conn=Jack ctype=Combo loc=0x00 color=White misc=0
dev.hdaa.0.nid15_config: 0x00cbe020 as=2 seq=0 device=SPDIF-in conn=Jack ctype=Combo loc=0x00 color=White misc=0
dev.hdaa.0.nid15: pin: SPDIF-in (White Jack)
dev.hdaa.0.nid14_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid14_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid14: pin: Line-out (None) [DISABLED]
dev.hdaa.0.nid13_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid13_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid13: pin: Line-out (None) [DISABLED]
dev.hdaa.0.nid12_original: 0x008b3010 as=1 seq=0 device=Line-in conn=Jack ctype=Combo loc=0x00 color=Blue misc=0
dev.hdaa.0.nid12_config: 0x008b3010 as=1 seq=0 device=Line-in conn=Jack ctype=Combo loc=0x00 color=Blue misc=0
dev.hdaa.0.nid12: pin: Line-in (Blue Jack)
dev.hdaa.0.nid11_original: 0x90100130 as=3 seq=0 device=Speaker conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1
dev.hdaa.0.nid11_config: 0x90100130 as=3 seq=0 device=Speaker conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1
dev.hdaa.0.nid11: pin: Speaker (Fixed)
dev.hdaa.0.nid10_original: 0x002b4040 as=4 seq=0 device=Headphones conn=Jack ctype=Combo loc=0x00 color=Green misc=0
dev.hdaa.0.nid10_config: 0x002b4040 as=4 seq=0 device=Headphones conn=Jack ctype=Combo loc=0x00 color=Green misc=0
dev.hdaa.0.nid10: pin: Headphones (Green Jack)
dev.hdaa.0.nid9_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid9_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.0.nid9: pin: Line-out (None) [DISABLED]
dev.hdaa.0.nid8: audio output
dev.hdaa.0.nid7: audio input
dev.hdaa.0.nid6: audio input [DISABLED]
dev.hdaa.0.nid5: audio input
dev.hdaa.0.nid4: audio output
dev.hdaa.0.nid3: audio output
dev.hdaa.0.nid2: audio output [DISABLED]
dev.hdaa.0.%parent: hdacc0
dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x106b2100
dev.hdaa.0.%location: nid=1
dev.hdaa.0.%driver: hdaa
dev.hdaa.0.%desc: Cirrus Logic CS4206 Audio Function Group
dev.hdaa.%parent:
dev.hdacc.1.%parent: hdac0
dev.hdacc.1.%pnpinfo: vendor=0x8086 device=0x2805 revision=0x00 stepping=0x00
dev.hdacc.1.%location: cad=3
dev.hdacc.1.%driver: hdacc
dev.hdacc.1.%desc: Intel Cougar Point HDA CODEC
dev.hdacc.0.%parent: hdac0
dev.hdacc.0.%pnpinfo: vendor=0x1013 device=0x4206 revision=0x03 stepping=0x02
dev.hdacc.0.%location: cad=0
dev.hdacc.0.%driver: hdacc
dev.hdacc.0.%desc: Cirrus Logic CS4206 HDA CODEC
dev.hdacc.%parent:
dev.hdac.0.polling: 0
dev.hdac.0.pindump: 0
dev.hdac.0.wake: 0
dev.hdac.0.%parent: pci0
dev.hdac.0.%pnpinfo: vendor=0x8086 device=0x1c20 subvendor=0x8086 subdevice=0x7270 class=0x040300
dev.hdac.0.%location: slot=27 function=0 dbsf=pci0:0:27:0 handle=\_SB_.PCI0.HDEF
dev.hdac.0.%driver: hdac
dev.hdac.0.%desc: Intel Cougar Point HDA Controller
dev.hdac.%parent:
What i need to do for enable sound card?
-From newbie in FreeBSD.
 
Less:
pcm0: <Cirrus Logic CS4206 (Analog)> at nid 11 and 12 on hdaa0
pcm1: <Cirrus Logic CS4206 (Digital)> at nid 16 and 15 on hdaa0
pcm2: <Cirrus Logic CS4206 (Analog Headphones)> at nid 10 on hdaa0
pcm0 is the first audio device detected by the audio driver, so it is likely trying to play there by default.

You change the default audio device by modifying the hw.snd.default_unit kernel variable. It should be known that the hw.snd.default_unit variable only accepts numbers, so don't give it 'pcm1' or 'pcm2', just '1' or '2'.

This can by done with sysctl(8) manually:
sh:
sysctl hw.snd.default_unit=(value)
or made to automatically be set on boot by placing it in /etc/sysrc.conf:
Less:
(...other sysctl entries)
hw.snd.default_unit=(value)

The device you are looking for is probably pcm2, but if its not its as simple as changing the command to have 1 as its value.

You might want to read sound(4), snd_hda(4), sysctl(8), and sysctl.conf(5) for more information.
 
Back
Top