Subject: Re: kern/34071: azalia device driver doesn't support pin sensing
To: None <kent@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: netbsd-bugs
Date: 02/17/2007 00:05:03
The following reply was made to PR kern/34071; it has been noted by GNATS.
From: Berndt Josef Wulf <wulf@ping.net.au>
To: gnats-bugs@netbsd.org
Cc: kent@netbsd.org
Subject: Re: kern/34071: azalia device driver doesn't support pin sensing
Date: Sat, 17 Feb 2007 21:03:19 +1030
after starting afresh with new kernel sources as of 17/02/2007 and azalia
patch applied progress was made.
Insertion and removal of headphone from the line-in socket is now reported -
see below:
Feb 17 20:46:11 barossa /netbsd: azalia_open: flags=0x2
Feb 17 20:46:11 barossa /netbsd: azalia_round_blocksize: resultant block size
=
9600
Feb 17 20:46:11 barossa last message repeated 7 times
Feb 17 20:46:11 barossa /netbsd: azalia_trigger_output: this=0xc1dbb000
start=0x
cbb11000 end=0xcbb1f100 blk=9600 {enc=6 2ch 16/16bit 48000Hz}
Feb 17 20:46:11 barossa /netbsd: azalia_codec_connect_stream: fmt=0x0011
number=
1
Feb 17 20:46:11 barossa /netbsd: azalia_codec_connect_stream: leave with 0
Feb 17 20:46:26 barossa /netbsd: azalia_rirb_kick_unsol_events: codec#=0 tag=0
Feb 17 20:46:26 barossa /netbsd: stac9220_unsol_event: headphone has been
insert
ed.
Feb 17 20:46:36 barossa /netbsd: azalia_rirb_kick_unsol_events: codec#=0 tag=0
Feb 17 20:46:36 barossa /netbsd: stac9220_unsol_event: headphone has been
pulled
out.
Feb 17 20:46:44 barossa /netbsd: azalia_halt_output
Feb 17 20:46:44 barossa /netbsd: azalia_close
Audio is muted when headphone is plugged in, however, there is no audio at the
headphone. The microphone still doesn't work, no audio appears to be received
from this input.
Below is azalia related boot output
[...]
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
azalia0: interrupting at irq 11
azalia0: host: Intel 82801GB/GR High Definition Audio Controller (rev. 1)
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
azalia_attach: resetting
azalia_attach: reset counter = 5000
azalia_attach: reset counter = 4991
azalia0: found a codec at #0
azalia0: found a codec at #1
azalia_init_corb: CORB allocation succeeded.
azalia_init_corb: CORBWP=0; size=256
azalia_init_rirb: RIRB allocation succeeded.
azalia_init_rirb: RIRBRP=0, size=256
azalia0: information of codec[0] follows:
azalia_codec_init_vtbl: vid=83847690 subid=01cd1028
azalia0: codec[0]: Sigmatel STAC9220 (rev. 34.1)
azalia0: codec[0]: High Definition Audio rev. 1.0
azalia_codec_init: nidstart=1 #functions=1
azalia_codec_init: FTYPE result = 0x00000101
azalia_codec_init: There are 19 widgets in the audio function.
azalia0: dac02 wcap=d0401<POWER,STEREO>
azalia0: adc03 wcap=1d0541<POWER,CONNLIST,PROC,STEREO>
azalia0: adc04 wcap=140311<DIGITAL,CONNLIST,FORMATOV,STEREO>
azalia0: dac05 wcap=40211<DIGITAL,FORMATOV,STEREO>
azalia0: widget06 wcap=f30201<DIGITAL,STEREO>
azalia0: sel07 wcap=300901<LRSWAP,CONNLIST,STEREO>
azalia0: unknown08 wcap=430681<POWER,DIGITAL,UNSOL,STEREO>
azalia0: unknown09 wcap=400301<DIGITAL,CONNLIST,STEREO>
azalia0: sel0a wcap=30090d<LRSWAP,CONNLIST,AMPOV,OUTAMP,STEREO>
azalia0: sel0b wcap=300105<CONNLIST,OUTAMP,STEREO>
azalia0: sel0c wcap=30010d<CONNLIST,AMPOV,OUTAMP,STEREO>
azalia0: black0d wcap=400181<CONNLIST,UNSOL,STEREO>
azalia0: unknown0e wcap=400181<CONNLIST,UNSOL,STEREO>
azalia0: unknown0f wcap=400181<CONNLIST,UNSOL,STEREO>
azalia0: black10 wcap=400181<CONNLIST,UNSOL,STEREO>
azalia0: unknown11 wcap=400104<CONNLIST,OUTAMP>
azalia0: unknown12 wcap=400001<STEREO>
azalia0: mix13 wcap=200100<CONNLIST>
azalia0: beep14 wcap=70000c<AMPOV,OUTAMP>
azalia_codec_init: dacgroup[0]: 02
azalia_codec_init: dacgroup[1]: 05
azalia0: playback: max channels=2, encodings=1<PCM>
azalia0: playback: PCM
formats=e07e0<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz>
azalia0: recording: max channels=2, encodings=1<PCM>
azalia0: recording: PCM
formats=e07e0<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz>
azalia0: information of codec[1] follows:
azalia_codec_init_vtbl: vid=14f12bfa subid=01cd1028
azalia0: codec[1]: 0x14f1/0x2bfa (rev. 0.0)
azalia0: codec[1]: High Definition Audio rev. 0.9
azalia_codec_init: nidstart=2 #functions=1
azalia_codec_init: FTYPE result = 0x00000102
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1] has no audio function groups
azalia0: using the #0 codec
audio0 at azalia0: full duplex, independent
[...]
and sysinfo
barossa: {15} uname -a
NetBSD barossa 4.99.10 NetBSD 4.99.10 (GENERIC) #0: Sat Feb 17 20:32:13 CST
2007 wulf@barossa:/sys/arch/i386/compile/GENERIC i386
cheerio Berndt