Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2009 19:02:51 +0200
From:      Alexander Motin <mav@FreeBSD.org>
To:        Joe Greco <jgreco@ns.sol.net>
Cc:        freebsd-multimedia@FreeBSD.org
Subject:   Re: Pointers to debug lack-of-audio
Message-ID:  <4B0AC03B.50602@FreeBSD.org>
In-Reply-To: <200911231622.nANGM9Wl048293@aurora.sol.net>
References:  <200911231622.nANGM9Wl048293@aurora.sol.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Joe Greco wrote:
>>> hdac0: Processing audio FG cad=0 nid=1...
>>> hdac0: GPIO: 0x40000004 NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
>>> hdac0:  nid 15 0x9993e133 as  3 seq  3           AUX Fixed jack  3 loc 25 color   White misc 1
>>> hdac0:  nid 16 0x0221101f as  1 seq 15    Headphones  Jack jack  1 loc  2 color   Black misc 0
>>> hdac0:  nid 17 0x9707e120 as  2 seq  0      Line-out Fixed jack  7 loc 23 color   White misc 1
>>> hdac0:  nid 18 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1
>>> hdac0:  nid 19 0x02a11930 as  3 seq  0           Mic  Jack jack  1 loc  2 color   Black misc 9
>>> hdac0:  nid 20 0x01813c31 as  3 seq  1       Line-in  Jack jack  1 loc  1 color    Blue misc 12
>>> hdac0:  nid 21 0x01014c10 as  1 seq  0      Line-out  Jack jack  1 loc  1 color   Green misc 12
>>> hdac0:  nid 22 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1
>>> hdac0: Patching widget caps nid=23 0x00400000 -> 0x00700000
>>> hdac0:  nid 24 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1
>>> hdac0:  nid 25 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1
>>> hdac0: Patched pins configuration:
>>> hdac0:  nid 15 0x9993e133 as  3 seq  3           AUX Fixed jack  3 loc 25 color   White misc 1
>>> hdac0:  nid 16 0x0221101f as  1 seq 15    Headphones  Jack jack  1 loc  2 color   Black misc 0
>>> hdac0:  nid 17 0x9707e120 as  2 seq  0      Line-out Fixed jack  7 loc 23 color   White misc 1
>>> hdac0:  nid 18 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1 [DISABLED]
>>> hdac0:  nid 19 0x02a11930 as  3 seq  0           Mic  Jack jack  1 loc  2 color   Black misc 9
>>> hdac0:  nid 20 0x01813c31 as  3 seq  1       Line-in  Jack jack  1 loc  1 color    Blue misc 12
>>> hdac0:  nid 21 0x01014c10 as  1 seq  0      Line-out  Jack jack  1 loc  1 color   Green misc 12
>>> hdac0:  nid 22 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1 [DISABLED]
>>> hdac0:  nid 24 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1 [DISABLED]
>>> hdac0:  nid 25 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1 [DISABLED]
>>> hdac0: 3 associations found:
>>> hdac0: Association 0 (1) out:
>>> hdac0:  Pin nid=21 seq=0
>>> hdac0:  Pin nid=16 seq=15
>>> hdac0: Association 1 (2) out:
>>> hdac0:  Pin nid=17 seq=0
>>> hdac0: Association 2 (3) in:
>>> hdac0:  Pin nid=19 seq=0
>>> hdac0:  Pin nid=20 seq=1
>>> hdac0:  Pin nid=15 seq=3
>>> hdac0: Tracing association 0 (1)
>>> hdac0:  Pin 21 traced to DAC 2
>>> hdac0:  Pin 16 traced to DAC 2 and hpredir 0
>>> hdac0: Association 0 (1) trace succeeded
>>> hdac0: Tracing association 1 (2)
>>> hdac0:  Unable to trace pin 17 seq 0 with min nid 0
>>> hdac0: Association 1 (2) trace failed
>> Here is at least one bug in codec configuration ^^^. This codec has only
>> one DAC, so it is unable to manage two playback devices.
>>
>>> hdac0: Tracing association 2 (3)
>>> hdac0:  Pin 19 traced to ADC 4
>>> hdac0:  Pin 20 traced to ADC 4
>>> hdac0:  Pin 15 traced to ADC 4
>>> hdac0: Association 2 (3) trace succeeded
>>> hdac0: Tracing input monitor
>>> hdac0: Tracing beeper
>>> hdac0:  nid 23 traced to out
>>> hdac0: Enabling headphone/speaker audio routing switching:
>>> hdac0:  as=0 sense nid=16 [UNSOL]
>>> hdac0: Pin sense: nid=16 res=0x7fffffff
>>> hdac0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
>>> I saw some mention of unmapped or incorrectly mapped audio outputs
>>> with snd_hda, but I'm not sure how to tell what they ought to be.
>>> I see some things are listed as [DISABLED] but haven't figured out
>>> whether that's reasonable or not.
>> Speakers sometimes controlled with setting GPIO signals. You may need to
>> experiment with them. Same time, your output connector configured for
>> automatic audio redirection, with default to speaker, but if it is
>> incapable of signaling jack presence, it won't ever receive any sound.
> 
> 
> Okay, so ... I'm trying, then, to get rid of what's currently listed as
> "Association 1 (2)"?  That's simply "Pin nid=17 seq=0" which maps to
> "nid 17 0x9707e120 as  2 seq  0      Line-out Fixed jack  7 loc 23 color
> White misc 1"
> 
> So would this be
> 
> hint.hdac.0.cad0.nid17.config="as=1 seq=1 device=Line-out"
> 
> ?  I'm kind of guessing here.  This gets me another nonfunctional config,
> 
> hdac0: [MPSAFE]
> hdac0: [ITHREAD]
> hdac0: Probing codec #0...
> hdac0: HDA Codec #0: Realtek ALC260
> hdac0:  HDA Codec ID: 0x10ec0260
> hdac0:        Vendor: 0x10ec
> hdac0:        Device: 0x0260
> hdac0:      Revision: 0x04
> hdac0:      Stepping: 0x00
> hdac0: PCI Subvendor: 0x3011103c
> hdac0:  Found audio FG nid=1 startnode=2 endnode=28 total=26
> hdac0:
> hdac0: Processing audio FG cad=0 nid=1...
> hdac0: GPIO: 0x40000004 NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
> hdac0:  nid 15 0x9993e133 as  3 seq  3           AUX Fixed jack  3 loc 25 color   White misc 1
> hdac0:  nid 16 0x0221101f as  1 seq 15    Headphones  Jack jack  1 loc  2 color   Black misc 0
> hdac0:  nid 17 0x9707e120 as  2 seq  0      Line-out Fixed jack  7 loc 23 color   White misc 1
> hdac0: Patching pin config nid=17 0x9707e120 -> 0x9707e111
> hdac0:  nid 18 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1
> hdac0:  nid 19 0x02a11930 as  3 seq  0           Mic  Jack jack  1 loc  2 color   Black misc 9
> hdac0:  nid 20 0x01813c31 as  3 seq  1       Line-in  Jack jack  1 loc  1 color    Blue misc 12
> hdac0:  nid 21 0x01014c10 as  1 seq  0      Line-out  Jack jack  1 loc  1 color   Green misc 12
> hdac0:  nid 22 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1
> hdac0: Patching widget caps nid=23 0x00400000 -> 0x00700000
> hdac0:  nid 24 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1
> hdac0:  nid 25 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1
> hdac0: Patched pins configuration:
> hdac0:  nid 15 0x9993e133 as  3 seq  3           AUX Fixed jack  3 loc 25 color   White misc 1
> hdac0:  nid 16 0x0221101f as  1 seq 15    Headphones  Jack jack  1 loc  2 color   Black misc 0
> hdac0:  nid 17 0x9707e111 as  1 seq  1      Line-out Fixed jack  7 loc 23 color   White misc 1
> hdac0:  nid 18 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1 [DISABLED]
> hdac0:  nid 19 0x02a11930 as  3 seq  0           Mic  Jack jack  1 loc  2 color   Black misc 9
> hdac0:  nid 20 0x01813c31 as  3 seq  1       Line-in  Jack jack  1 loc  1 color    Blue misc 12
> hdac0:  nid 21 0x01014c10 as  1 seq  0      Line-out  Jack jack  1 loc  1 color   Green misc 12
> hdac0:  nid 22 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1 [DISABLED]
> hdac0:  nid 24 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1 [DISABLED]
> hdac0:  nid 25 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 color   Black misc 1 [DISABLED]
> hdac0: 2 associations found:
> hdac0: Association 0 (1) out:
> hdac0:  Pin nid=21 seq=0
> hdac0:  Pin nid=17 seq=1
> hdac0:  Pin nid=16 seq=15
> hdac0: Association 1 (3) in:
> hdac0:  Pin nid=19 seq=0
> hdac0:  Pin nid=20 seq=1
> hdac0:  Pin nid=15 seq=3
> hdac0: Tracing association 0 (1)
> hdac0:  Pin 21 traced to DAC 2
> hdac0:  Unable to trace pin 17 seq 1 with min nid 0
> hdac0:  Unable to trace pin 21 seq 0 with min nid 3
> hdac0:  Pin 21 traced to DAC 2 with fake redirection
> hdac0:  Unable to trace pin 17 seq 1 with min nid 0
> hdac0:  Unable to trace pin 21 seq 0 with min nid 3
> hdac0: Association 0 (1) trace failed
> hdac0: Tracing association 1 (3)
> hdac0:  Pin 19 traced to ADC 4
> hdac0:  Pin 20 traced to ADC 4
> hdac0:  Pin 15 traced to ADC 4
> hdac0: Association 1 (3) trace succeeded
> hdac0: Tracing input monitor
> hdac0: Tracing beeper
> hdac0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
> 
> But that's also getting "Unable to trace" messages. 

That what you have configured still require two DACs. Only one seq=15
can share DAC with others. You'll have to disable one of them. How much
connectors do you have on case? May be some of configured nids is fake?

Looking on codec datasheet, nid 17 is mono out, so it is a good
candidate to be used for speaker.

> Am I supposed to
> be trying to figure this out before trying to play with gpio signals?

Better solve all possible problems before, as there is quite large
number of combinations.

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B0AC03B.50602>