FreeBSD 10 on iMac 11,1 - sound settings - BSD
fernandel
Installation of FreeBSD 10.0-ALPHA1 on iMac 11,1 was successful but I have problem with sound settings.

cat /dev/sndstat
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <Cirrus Logic CS4206 (Internal Analog 4.0/2.0)> (play/rec) default
pcm2: <Cirrus Logic CS4206 (Rear Analog)> (play/rec)
pcm3: <Cirrus Logic CS4206 (Rear Digital)> (play/rec)

If I use hw.snd.default_unit=2 I get sound in headphones but not internal speaker and microphhone doesn't work. Other unit don't work.

I use boot-verbose and I got:

hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
hdaa0: Subsystem ID: 0x00aa0100
hdaa0: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdaa0: Original pins configuration:
hdaa0: nid 0x as seq device conn jack loc color misc
hdaa0: 3 18560010 1 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: Patched pins configuration:
hdaa0: nid 0x as seq device conn jack loc color misc
hdaa0: 3 18560010 1 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: 1 associations found:
hdaa0: Association 0 (1) out:
hdaa0: Pin nid=3 seq=0
hdaa0: Tracing association 0 (1)
hdaa0: Pin 3 traced to DAC 2
hdaa0: Association 0 (1) trace succeeded
hdaa0: Looking for additional DAC for association 0 (1)
hdaa0: Tracing input monitor
hdaa0: Tracing other input monitors
hdaa0: Tracing beeper
hdaa0: Pin sense: nid=3 sense=0x7fffffff (disconnected, ELD valid)
hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
pcm0: Playback:
pcm0: Stream cap: 0x00000005 AC3 PCM
pcm0: PCM cap: 0x00020070 16 bits, 32 44 48 KHz
pcm0: DAC: 2
pcm0:
pcm0: nid=3 [pin: Digital-out (Jack)]
pcm0: + <- nid=2 [audio output] [src: pcm]
pcm0:
pcm0: Mixer "vol" -> "none": child=0x00000010
pcm0: Mixer "pcm": parent="vol"
pcm0: Soft PCM mixer ENABLED
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (disconnected)
hdacc1: <Cirrus Logic CS4206 HDA CODEC> at cad 0 on hdac1
hdaa1: <Cirrus Logic CS4206 Audio Function Group> at nid 1 on hdacc1
hdaa1: Subsystem ID: 0x106b5100
hdaa1: NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdaa1: GPIO0: disabled
hdaa1: GPIO1: disabled
hdaa1: GPIO2: disabled
hdaa1: GPIO3: output state=0
hdaa1: Original pins configuration:
hdaa1: nid 0x as seq device conn jack loc color misc
hdaa1: 9 012b4050 5 0 Headphones Jack Combo Rear Green 0
hdaa1: 10 90100140 4 0 Speaker Fixed Unknown Internal Unknown 1
hdaa1: 11 90100142 4 2 Speaker Fixed Unknown Internal Unknown 1
hdaa1: 12 018b3020 2 0 Line-in Jack Combo Rear Blue 0
hdaa1: 13 90a00110 1 0 Mic Fixed Unknown Internal Unknown 1
hdaa1: 14 400000f0 15 0 Line-out None Unknown 0x00 Unknown 0
hdaa1: 15 01cbe030 3 0 SPDIF-in Jack Combo Rear White 0
hdaa1: 16 014be060 6 0 SPDIF-out Jack Combo Rear White 0
hdaa1: 18 400000f0 15 0 Line-out None Unknown 0x00 Unknown 0
hdaa1: 21 400000f0 15 0 Line-out None Unknown 0x00 Unknown 0
hdaa1: Patched pins configuration:
hdaa1: nid 0x as seq device conn jack loc color misc
hdaa1: 9 012b4050 5 0 Headphones Jack Combo Rear Green 0
hdaa1: 10 90100140 4 0 Speaker Fixed Unknown Internal Unknown 1
hdaa1: 11 90100142 4 2 Speaker Fixed Unknown Internal Unknown 1
hdaa1: 12 018b3020 2 0 Line-in Jack Combo Rear Blue 0
hdaa1: 13 90a00110 1 0 Mic Fixed Unknown Internal Unknown 1
hdaa1: 14 400000f0 15 0 Line-out None Unknown 0x00 Unknown 0 DISA
hdaa1: 15 01cbe030 3 0 SPDIF-in Jack Combo Rear White 0
hdaa1: 16 014be060 6 0 SPDIF-out Jack Combo Rear White 0
hdaa1: 18 400000f0 15 0 Line-out None Unknown 0x00 Unknown 0 DISA
hdaa1: 21 400000f0 15 0 Line-out None Unknown 0x00 Unknown 0 DISA
hdaa1: 6 associations found:
hdaa1: Association 0 (1) in:
hdaa1: Pin nid=13 seq=0
hdaa1: Association 1 (2) in:
hdaa1: Pin nid=12 seq=0
hdaa1: Association 2 (3) in:
hdaa1: Pin nid=15 seq=0
hdaa1: Association 3 (4) out:
hdaa1: Pin nid=10 seq=0
hdaa1: Pin nid=11 seq=2
hdaa1: Association 4 (5) out:
hdaa1: Pin nid=9 seq=0
hdaa1: Association 5 (6) out:
hdaa1: Pin nid=16 seq=0
hdaa1: Tracing association 0 (1)
hdaa1: Unable to trace pin 13 to ADC 5, undo traces
hdaa1: Pin 13 traced to ADC 6
hdaa1: Association 0 (1) trace succeeded
hdaa1: Tracing association 1 (2)
hdaa1: Pin 12 traced to ADC 5
hdaa1: Association 1 (2) trace succeeded
hdaa1: Tracing association 2 (3)
hdaa1: Pin 15 traced to ADC 7
hdaa1: Association 2 (3) trace succeeded
hdaa1: Tracing association 3 (4)
hdaa1: Pin 10 traced to DAC 3
hdaa1: Pin 11 traced to DAC 4
hdaa1: Association 3 (4) trace succeeded
hdaa1: Tracing association 4 (5)
hdaa1: Pin 9 traced to DAC 2
hdaa1: Association 4 (5) trace succeeded
hdaa1: Tracing association 5 (6)
hdaa1: Pin 16 traced to DAC 8
hdaa1: Association 5 (6) trace succeeded
hdaa1: Looking for additional ADC for association 0 (1)
hdaa1: Looking for additional ADC for association 1 (2)
hdaa1: Looking for additional ADC for association 2 (3)
hdaa1: Looking for additional DAC for association 3 (4)
hdaa1: Looking for additional DAC for association 4 (5)
hdaa1: Looking for additional DAC for association 5 (6)
hdaa1: Tracing input monitor
hdaa1: Tracing other input monitors
hdaa1: Tracing nid 12 to out
hdaa1: Tracing nid 13 to out
hdaa1: Tracing nid 15 to out
hdaa1: Tracing beeper
hdaa1: Pin sense: nid=9 sense=0x80000000 (connected)
hdaa1: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm1: <Cirrus Logic CS4206 (Internal Analog 4.0/2.0)> at nid 10,11 and 13 on hdaa1
pcm1: Playback:
pcm1: Stream cap: 0x00000003 FLOAT32 PCM
pcm1: PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz
pcm1: DAC: 3 4
pcm1:
pcm1: nid=10 [pin: Speaker (Fixed)]
pcm1: + <- nid=3 [audio output] [src: pcm]
pcm1:
pcm1: nid=11 [pin: Speaker (Fixed)]
pcm1: + <- nid=4 [audio output] [src: pcm]
pcm1:
pcm1: Record:
pcm1: Stream cap: 0x00000003 FLOAT32 PCM
pcm1: PCM cap: 0x001e01f5 16 20 24 32 bits, 8 16 32 44 48 88 96 KHz
pcm1: ADC: 6
pcm1:
pcm1: nid=6 [audio input]
pcm1: + <- nid=13 [pin: Mic (Fixed)] [src: monitor]
pcm1:
pcm1: Master Volume (OSS: vol): -57/6dB
pcm1: +- ctl 2 (nid 3 out): -57/6dB (128 steps) + mute
pcm1: +- ctl 3 (nid 4 out): -57/6dB (128 steps) + mute
pcm1:
pcm1: PCM Volume (OSS: pcm): -57/6dB
pcm1: +- ctl 2 (nid 3 out): -57/6dB (128 steps) + mute
pcm1: +- ctl 3 (nid 4 out): -57/6dB (128 steps) + mute
pcm1:
pcm1: Microphone2 Volume (OSS: monitor): 0/30dB
pcm1: +- ctl 5 (nid 6 in 0): -51/12dB (64 steps) + mute
pcm1: +- ctl 7 (nid 13 out): 0/30dB (4 steps)
pcm1:
pcm1: Recording Level (OSS: rec): -51/12dB
pcm1: +- ctl 5 (nid 6 in 0): -51/12dB (64 steps) + mute
pcm1: +- ctl 7 (nid 13 out): 0/30dB (4 steps)
pcm1:
pcm1: Mixer "vol":
pcm1: Mixer "pcm":
pcm1: Mixer "rec":
pcm1: Mixer "monitor":
pcm1: Playback channel set is: Front Left, Front Right, Back Left, Back Right,
pcm1: Playback channel matrix is: 4.0 (unknown)
pcm1: Automatically set rec source to: monitor
pcm1: Recording channel set is: Front Left, Front Right,
pcm1: Recording channel matrix is: 2.0 (unknown)
pcm2: <Cirrus Logic CS4206 (Rear Analog)> at nid 9 and 12 on hdaa1
pcm2: Playback:
pcm2: Stream cap: 0x00000003 FLOAT32 PCM
pcm2: PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz
pcm2: DAC: 2
pcm2:
pcm2: nid=9 [pin: Headphones (Green Jack)]
pcm2: + <- nid=2 [audio output] [src: pcm]
pcm2:
pcm2: Record:
pcm2: Stream cap: 0x00000003 FLOAT32 PCM
pcm2: PCM cap: 0x001e01f5 16 20 24 32 bits, 8 16 32 44 48 88 96 KHz
pcm2: ADC: 5
pcm2:
pcm2: nid=5 [audio input]
pcm2: + <- nid=12 [pin: Line-in (Blue Jack)] [src: line]
pcm2:
pcm2: Master Volume (OSS: vol): -57/6dB
pcm2: +- ctl 1 (nid 2 out): -57/6dB (128 steps) + mute
pcm2:
pcm2: PCM Volume (OSS: pcm): -57/6dB
pcm2: +- ctl 1 (nid 2 out): -57/6dB (128 steps) + mute
pcm2:
pcm2: Line-in Volume (OSS: line): 0/30dB
pcm2: +- ctl 4 (nid 5 in 0): -51/12dB (64 steps) + mute
pcm2: +- ctl 6 (nid 12 out): 0/30dB (4 steps)
pcm2:
pcm2: Recording Level (OSS: rec): -51/12dB
pcm2: +- ctl 4 (nid 5 in 0): -51/12dB (64 steps) + mute
pcm2: +- ctl 6 (nid 12 out): 0/30dB (4 steps)
pcm2:
pcm2: Mixer "vol":
pcm2: Mixer "pcm":
pcm2: Mixer "line":
pcm2: Mixer "rec":
pcm2: Playback channel set is: Front Left, Front Right,
pcm2: Playback channel matrix is: 2.0 (connected)
pcm2: Recording channel set is: Front Left, Front Right,
pcm2: Recording channel matrix is: 2.0 (disconnected)
pcm3: <Cirrus Logic CS4206 (Rear Digital)> at nid 16 and 15 on hdaa1
pcm3: Playback:
pcm3: Stream cap: 0x00000007 AC3 FLOAT32 PCM
pcm3: PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz
pcm3: DAC: 8
pcm3:
pcm3: nid=16 [pin: SPDIF-out (White Jack)]
pcm3: + <- nid=8 [audio output] [src: pcm]
pcm3:
pcm3: Record:
pcm3: Stream cap: 0x00000007 AC3 FLOAT32 PCM
pcm3: PCM cap: 0x001e0570 16 20 24 32 bits, 32 44 48 96 192 KHz
pcm3: ADC: 7
pcm3:
pcm3: nid=7 [audio input]
pcm3: + <- nid=15 [pin: SPDIF-in (White Jack)] [src: dig1]
pcm3:
pcm3: Mixer "vol" -> "none": child=0x00000010
pcm3: Mixer "pcm": parent="vol"
pcm3: Soft PCM mixer ENABLED
pcm3: Playback channel set is: Front Left, Front Right,
pcm3: Playback channel matrix is: 2.0 (unknown)
pcm3: Recording channel set is: Front Left, Front Right,
pcm3: Recording channel matrix is: 2.0 (disconnected)

If you need more information, please ask me :).

Thank you very much.

Fernandel.
jobss
First see if hw.snd.default_unit=3 works. If that does not produce your sound then look to see if your sound is disabled in your BIOS.

If all is fine in your BIOS, do you have both, snd_hda and snd_ich in your kernel?

Look also at `pciconf -lvc` for any sound devices.

&& Welcome to the community!
The world is quaking from our Linux Thoughts!
fernandel
(27-09-2013, 08:09 PM)jobss Wrote: First see if hw.snd.default_unit=3 works. If that does not produce your sound then look to see if your sound is disabled in your BIOS.

If all is fine in your BIOS, do you have both, snd_hda and snd_ich in your kernel?

Look also at `pciconf -lvc` for any sound devices.

&& Welcome to the community!
hdac1@pci0:0:27:0: class=0x040300 card=0x72708086 chip=0x3b568086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
device = '5 Series/3400 Series Chipset High Definition Audio'
class = multimedia
subclass = HDA
cap 01[50] = powerspec 2 supports D0 D3 current D0
cap 05[60] = MSI supports 1 message, 64 bit enabled with 1 message
cap 10[70] = PCI-Express 1 root endpoint max data 128(128) FLR link x0(x0)
ecap 0002[100] = VC 1 max VC1
ecap 0005[130] = Root Complex Link Declaration 1

hdac0@pci0:1:0:1: class=0x040300 card=0xaa30106b chip=0xaa301002 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'RV770 HDMI Audio [Radeon HD 4850/4870]'
class = multimedia
subclass = HDA
cap 01[50] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 10[58] = PCI-Express 2 legacy endpoint max data 128(128) link x16(x16)
speed 5.0(5.0) ASPM disabled(L0s/L1)
cap 05[a0] = MSI supports 1 message, 64 bit enabled with 1 message
ecap 000b[100] = Vendor 1 ID 1


BTW: Live DVD Linux Mint doesn't have problem with sound, Mountain Lion works without problem. I have dual boot Mountain Lion/FreeBSD 10.0-ALPHA1 (rEFIT).

Mixer vol is currently set to 100:100
Mixer pcm is currently set to 100:100
Mixer rec is currently set to 91:91
Mixer monitor is currently set to 100:100
Recording source: monitor

mixer -f /dev/mixer1
Mixer vol is currently set to 100:100
Mixer pcm is currently set to 100:100
Mixer rec is currently set to 91:91
Mixer monitor is currently set to 100:100
Recording source: monitor

(27-09-2013, 08:09 PM)jobss Wrote: First see if hw.snd.default_unit=3 works. If that does not produce your sound then look to see if your sound is disabled in your BIOS.

If all is fine in your BIOS, do you have both, snd_hda and snd_ich in your kernel?

Look also at `pciconf -lvc` for any sound devices.

&& Welcome to the community!

No, it works just UNIT=3 and it works just from headphones. Microphone doesn't work.
jobss
The following is from the Freebsd Forums

add the following:

Code:
hint.hdac.0.config="gpio0 ovref"
hint.hdac.0.cad0.nid21.config="as=4 seq=15"
to /boot/device.hints

link to the article
And by any chance have you looked at alsamixer?
The world is quaking from our Linux Thoughts!
fernandel
(27-09-2013, 08:37 PM)jobss Wrote: The following is from the Freebsd Forums

add the following:

Code:
hint.hdac.0.config="gpio0 ovref"
hint.hdac.0.cad0.nid21.config="as=4 seq=15"
to /boot/device.hints

link to the article
And by any chance have you looked at alsamixer?

I will try. On FreeBSD we use OSS...

Thank you.
jobss
(27-09-2013, 09:20 PM)fernandel Wrote:
(27-09-2013, 08:37 PM)jobss Wrote: The following is from the Freebsd Forums

add the following:

Code:
hint.hdac.0.config="gpio0 ovref"
hint.hdac.0.cad0.nid21.config="as=4 seq=15"
to /boot/device.hints

link to the article
And by any chance have you looked at alsamixer?

I will try. On FreeBSD we use OSS...

Thank you.

Oh, I just always install alsa :P
The world is quaking from our Linux Thoughts!
fernandel
No, it doesn't work.

I know that I should set some hints but I don't know which and how.
For example nid14:

dev.hdaa.1.nid14: pin: Line-out (None) [DISABLED]
Widget cap: 0x0041000b STEREO
Pin cap: 0x00000020 IN
Pin config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
Pin control: 0x00000000
Input amp: 0x00270200 mute=0 step=2 size=39 offset=0 (0/20dB)

dev.hdaa.1.nid14_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
dev.hdaa.1.nid14_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
fernandel
Looks like I am not lucky... Any idea, please?
vompatti
I had the same problem with my EliteBook 8530p. I didn't manage to get both speakers and headphone jack to work at the same time, but that was over 6 months ago so I really don't remember how the things were.

Here is a link to my thread: http://forums.unixhub.net/showthread.php?tid=424

Idea if you get to the same state where I was; So you have speakers and headphone jack working but not at the same time (e.g. you play sound from speakers and plugin your headphones but the sound only comes from speakers), try to find a way to detect when you plugin your audio jack and change the audio output.

And as NeoTerra already said, you should try the FreeBSD forums, there is really experienced guys there.
fernandel
The problem is SOLVED :). I did "play" with gpio and ndio settings ad it works.

Thank you.




Members  |  Stats  |  Night Mode