Hi all,

Just setting on /boot/device.hints below

Code:
hint.hdac.0.cad0.nid20.config="as=1"
hint.hdac.0.cad0.nid22.config="as=2 seq=15"


Speaker works with very good sound quality. headphone have no sound but sounds still came out of speaker. I tried several configurations but no one worked.

Can someone help me?
 
You should give more information like:
cat /dev/sndstat
sysctl -a | grep snd
sysctl -a | grep hda

There are some new post in the forum which maybe help you...

Fernandel
 
The nid parameters vary depending on the make/model and manufacturer. Posting that information is a good start. More specifically, you can obtain the present nid assignments by doing a verbose boot and posting the sound portion of the dmesg.

My main goal in these posts is to have you understand what you are doing to your FreeBSD system. I would recommend you go through snd_hda(4) so you have some sense of how the core FreeBSD sound system works.

hint.hdac.0.cad0.nid20.config="as=1"
hint.hdac.0.cad0.nid22.config="as=2 seq=15"

There is an error in this already. The "as" parameter stands for association. Associations are either outputs or inputs - not both. If nid22 is really pinned to your headphone plug (the verbose dmesg would tell us), then it should have the same association assignment (=1) as the speakers.

Code:
hint.hdac.0.cad0.nid20.config="as=1"
hint.hdac.0.cad0.nid22.config="as=1 seq=15"
 
Here is the sound portion of dmesg:
Code:
hdacc0: <Realtek ALC1200 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC1200 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC1200 (Analog 8ch/2.0)> at nid 20,21,23,22 and 24,25 on hdaa0
pcm1: <Realtek ALC1200 (Analog)> at nid 27 and 28 on hdaa0
pcm2: <Realtek ALC1200 (Rear Digital)> at nid 30 on hdaa0

/dev/sndstat

Code:
pcm0: <Realtek ALC1200 (Analog 8ch/2.0)> (play/rec)
pcm1: <Realtek ALC1200 (Analog)> (play/rec) default
pcm2: <Realtek ALC1200 (Rear Digital)> (play)

sysctl -a | grep snd
Code:
device    snd_cmi
device    snd_csa
device    snd_emu10kx
device    snd_es137x
device    snd_hda
device    snd_ich
device    snd_via8233
hw.snd.maxautovchans: 16
hw.snd.default_unit: 1
hw.snd.version: 2009061500/i386
hw.snd.default_auto: 0
hw.snd.verbose: 0
hw.snd.vpc_mixer_bypass: 1
hw.snd.feeder_rate_quality: 1
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.basename_clone: 1
hw.snd.compat_linux_mmap: 0
hw.snd.vpc_reset: 0
hw.snd.vpc_0db: 45
hw.snd.vpc_autoreset: 1
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_matrix: 1
hw.snd.report_soft_formats: 1

sysctl -a | grep hda

Code:
device    snd_hda
dev.pcm.2.%parent: hdaa0
dev.pcm.1.%parent: hdaa0
dev.pcm.0.%parent: hdaa0
dev.hdaa.0.reconfig: 0
dev.hdaa.0.gpo_config: 
dev.hdaa.0.gpo_state: 
dev.hdaa.0.gpio_config: 0=keep 1=keep
dev.hdaa.0.gpio_state: 0=disabled 1=disabled
dev.hdaa.0.gpi_state: 
dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.0.nid38: audio mixer
dev.hdaa.0.nid37: audio output
dev.hdaa.0.nid36: vendor widget [DISABLED]
dev.hdaa.0.nid35: audio mixer
dev.hdaa.0.nid34: audio mixer
dev.hdaa.0.nid33: vendor widget [DISABLED]
dev.hdaa.0.nid32: vendor widget [DISABLED]
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.nid31_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid31: pin: Speaker (None) [DISABLED]
dev.hdaa.0.nid30_original: 0x01446130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=RCA loc=Rear color=Orange misc=1
dev.hdaa.0.nid30_config: 0x01446130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=RCA loc=Rear color=Orange misc=1
dev.hdaa.0.nid30: pin: SPDIF-out (Orange Jack)
dev.hdaa.0.nid29_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid29_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid29: beep widget
dev.hdaa.0.nid28_original: 0x01813050 as=5 seq=0 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0
dev.hdaa.0.nid28_config: 0x01813050 as=5 seq=0 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0
dev.hdaa.0.nid28: pin: Line-in (Blue Jack)
dev.hdaa.0.nid27_original: 0x02214c20 as=2 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=12
dev.hdaa.0.nid27_config: 0x02214c20 as=2 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=12
dev.hdaa.0.nid27: pin: Headphones (Green Jack)
dev.hdaa.0.nid26_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid26_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid26: pin: Speaker (None) [DISABLED]
dev.hdaa.0.nid25_original: 0x02a19c4f as=4 seq=15 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=12
dev.hdaa.0.nid25_config: 0x02a19c4f as=4 seq=15 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=12
dev.hdaa.0.nid25: pin: Mic (Pink Jack)
dev.hdaa.0.nid24_original: 0x01a19840 as=4 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=8
dev.hdaa.0.nid24_config: 0x01a19840 as=4 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=8
dev.hdaa.0.nid24: pin: Mic (Pink Jack)
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.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: pin: Line-out (Grey Jack)
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.nid22_config: 0x0101601f as=1 seq=15 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Orange misc=0
dev.hdaa.0.nid22: pin: Line-out (Orange Jack)
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.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: pin: Line-out (Black Jack)
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.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: pin: Line-out (Green Jack)
dev.hdaa.0.nid19: vendor widget [DISABLED]
dev.hdaa.0.nid18: vendor widget [DISABLED]
dev.hdaa.0.nid17_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid17_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid17: pin: Speaker (None) [DISABLED]
dev.hdaa.0.nid16: audio output [DISABLED]
dev.hdaa.0.nid15: audio mixer
dev.hdaa.0.nid14: audio mixer
dev.hdaa.0.nid13: audio mixer
dev.hdaa.0.nid12: audio mixer
dev.hdaa.0.nid11: audio mixer
dev.hdaa.0.nid10: audio input [DISABLED]
dev.hdaa.0.nid9: audio input
dev.hdaa.0.nid8: audio input
dev.hdaa.0.nid7: vendor widget [DISABLED]
dev.hdaa.0.nid6: audio output
dev.hdaa.0.nid5: audio output
dev.hdaa.0.nid4: audio output
dev.hdaa.0.nid3: audio output
dev.hdaa.0.nid2: audio output
dev.hdaa.0.%parent: hdacc0
dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x103c2a61
dev.hdaa.0.%location: nid=1
dev.hdaa.0.%driver: hdaa
dev.hdaa.0.%desc: Realtek ALC1200 Audio Function Group
dev.hdaa.%parent: 
dev.hdacc.0.%parent: hdac0
dev.hdacc.0.%pnpinfo: vendor=0x10ec device=0x0888 revision=0x01 stepping=0x01
dev.hdacc.0.%location: cad=0
dev.hdacc.0.%driver: hdacc
dev.hdacc.0.%desc: Realtek ALC1200 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=0x10de device=0x03f0 subvendor=0x103c subdevice=0x2a61 class=0x040300
dev.hdac.0.%location: slot=5 function=0 handle=\_SB_.PCI0.AZAD
dev.hdac.0.%driver: hdac
dev.hdac.0.%desc: NVIDIA MCP61 HDA Controller
dev.hdac.%parent:

Thanks.
 
Looking at the output of
sysctl -a | grep hda


you have both front (nid25) and rear (nid31) outputs. It appears that the configuration presently is for pcm1 "the front" jacks to be stereo 2.0 and pcm0 "the rear" jacks to be 7.1 surround sound. Does this match your physical configuration? This is why it is necessary for you to post your make/model of your hardware (2nd request for this information!!). No forum user can guess what is sitting in front of you, have any idea if you are using internal speakers in a laptop or what jack you have plugged into which receptacle.

You also will have to decide how you want your configuration, For example front green jack =headphones that mutes rear line out stereo 2.0 speakers?
 
I solved the problem using this:

Code:
hint.hdac.0.cad0.nid20.config="as=1"
hint.hdac.0.cad0.nid27.config="as=1 seq=15"

Now when I plug the headphone the speakers are muted.

Using as=1 for both and seq=15 for the headphone solved the problem.

fernandel and shepper were helpful. FreeBSD community are great.


Thanks.
 
Back
Top