Re: again config problem with new snd_hda driver

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Thu, 23 Oct 2008 22:05:28 +0300
Hi.

Tobias Kirschstein wrote:
> since your new snd_hda driver came in i lost some functionality which
> really annoys me by now. i suppose that there is just a little
> configuration needed, but i am and was never into this sound device
> stuff and so i want to ask you to help me get my microphone working
> again.
> previously i booted and all input/output channels, devices or whatever
> worked out of the box. since i upgraded my kernel the last time i miss
> my microphone volume and recording settings. neither the builtin nor
> the external microphone is working.
> i'm sure your patch is really great work, but unfortunately the new
> driver killed some basic features for me :)
> 
> my notebook is a thinkpad X60 tablet running freebsd 8.0 current. here
> is some debug info, please let me know if you need more to help me
> restoring the default behavior of my sound card.
> 
> 
> dev.hdac.0.pindump:
> -------------------
> hdac0: Dumping AFG cad=0 nid=1 pins:
> hdac0:  nid 5 0xc4014110 as  1 seq  0      Line-out  Both jack  1 loc  4 color   Green misc 1
> hdac0:        Caps: IN OUT HP EAPD VREF Sense: 0x7fff7f7e
> hdac0:  nid 6 0x422140f0 as 15 seq  0    Headphones  None jack  1 loc  2 color   Green misc 0 [DISABLED]
> hdac0:        Caps:    OUT HP           Sense: 0x7fffffdd
> hdac0:  nid 7 0x591311f0 as 15 seq  0       Speaker  None jack  3 loc 25 color   Black misc 1 [DISABLED]
> hdac0:        Caps:    OUT             
> hdac0:  nid 8 0xc4a1502e as  2 seq 14           Mic  Both jack  1 loc  4 color     Red misc 0
> hdac0:        Caps: IN             VREF Sense: 0x7fffffe7
> hdac0:  nid 9 0x418130f0 as 15 seq  0       Line-in  None jack  1 loc  1 color    Blue misc 0 [DISABLED]
> hdac0:        Caps: IN OUT         VREF Sense: 0x7ffff53d
> hdac0:  nid 10 0x414411f0 as 15 seq  0     SPDIF-out  None jack  4 loc  1 color   Black misc 1 [DISABLED]
> hdac0:        Caps:    OUT             
> hdac0:  nid 22 0x59f311f0 as 15 seq  0         Other  None jack  3 loc 25 color   Black misc 1 [DISABLED]
> hdac0:        Caps: IN                 
> hdac0:  nid 23 0x599311f0 as 15 seq  0           AUX  None jack  3 loc 25 color   Black misc 1 [DISABLED]
> hdac0:        Caps: IN                  Sense: 0x7fffcfef
> hdac0:  nid 24 0x41a190f0 as 15 seq  0           Mic  None jack  1 loc  1 color    Pink misc 0 [DISABLED]
> hdac0:        Caps: IN OUT         VREF Sense: 0x7fffff7f
> hdac0:  nid 25 0x9933e120 as  2 seq  0            CD Fixed jack  3 loc 25 color   White misc 1
> hdac0:        Caps: IN                 
> hdac0: NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
> hdac0: GPIO: data=0x00000009 enable=0x00000000 direction=0x00000000
> hdac0:       wake=0x00000000  unsol=0x00000000    sticky=0x00000000

As we can see here, there is one output pin and two inputs - Mic and CD 
defined by BIOS. To get to know which pin is related to which connector 
you can use "Sense" values. Values should change on connector insertion.

> from dmesg:
> -----------
> hdac0: <Intel 82801G High Definition Audio Controller> mem 0xee240000-0xee243fff irq 17 at device 27.0 on pci0
> hdac0: HDA Driver Revision: 20081013_0113
> hdac0: [ITHREAD]
> hdac0: HDA Codec #0: Analog Devices AD1981HD
> hdac0: HDA Codec #1: Conexant (Unknown)
> pcm0: <HDA Analog Devices AD1981HD PCM #0> at cad 0 nid 1 on hdac0

To understand current driver behavior I need to see verbose kernel boot 
messages. Read them yourself and send them to me.

-- 
Alexander Motin
Received on Thu Oct 23 2008 - 17:05:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:36 UTC