Subject: kern/36645: Sound loops on a VT8237A/VT8251 HDA controller
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <danieldk@pobox.com>
List: netbsd-bugs
Date: 07/13/2007 20:55:00
>Number:         36645
>Category:       kern
>Synopsis:       Sound loops on a VT8237A/VT8251 HDA controller
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 13 20:55:00 +0000 2007
>Originator:     Daniel de Kok
>Release:        NetBSD 4.0_BETA2 (Jul 13 2007)
>Environment:
	
	
System: NetBSD mindbender.taickim.com 4.0_BETA2 NetBSD 4.0_BETA2 (MINDBENDER) #1: Fri Jul 13 22:32:42 CEST 2007  root@mindbender.taickim.com:/usr/src/sys/arch/i386/compile/MINDBENDER i386 
Architecture: i386
Machine: i386
>Description:
Every sound played on this VT8237A/VT8251 HDA controller with a realtek
Realtek ALC888 codec(?) is repeated about 70 times. When a sound is played
(e.g. by CenterICQ), the following messages are printed before the sequence
(with AZALIA_DEBUG defined):

azalia_open: flags=0x2
azalia_round_blocksize: resultant block size = 9600
azalia_round_blocksize: resultant block size = 9600
azalia_round_blocksize: resultant block size = 9600
azalia_round_blocksize: resultant block size = 8704
azalia_trigger_output: this=0xc1fe8000 start=0xcbc9f000 end=0xcbcade00 blk=8704 
{enc=6 2ch 16/16bit 44100Hz}
azalia_codec_connect_stream: fmt=0x4011 number=1
azalia_codec_connect_stream: leave with 0

and after the loop has finished:

azalia_halt_output
azalia_round_blocksize: resultant block size = 9600
azalia_round_blocksize: resultant block size = 8704
azalia_round_blocksize: resultant block size = 9600
azalia_round_blocksize: resultant block size = 8704
azalia_close

Relevant boot-time dmesg snippets:

azalia0 at pci4 dev 1 function 0: Generic High Definition Audio Controller
azalia0: interrupting at ioapic0 pin 11 (irq 11)
azalia0: host: VIA Technologies VT8237A/VT8251 High Definition Audio Controller 
(rev. 16)
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

[...]

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=10ec0888 subid=e0281631
azalia0: codec[0]: Realtek ALC888 (rev. 0.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 37 widgets in the audio function.
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz>
azalia0:    inamp: mute=0 size=0 steps=0 offset=0
azalia0:    outamp: mute=0 size=0 steps=0 offset=0
azalia0: dac02 wcap=11<FORMATOV,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz>
azalia0: dac03 wcap=11<FORMATOV,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz>
azalia0: dac04 wcap=11<FORMATOV,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz>
azalia0: dac05 wcap=11<FORMATOV,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz>
azalia0: dac06 wcap=211<DIGITAL,FORMATOV,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=1e05e0<32bit,24bit,20bit,16bit,192kHz,96kHz,88.2kHz,48kH
z,44.1kHz>
azalia0: widget07 wcap=f00000
azalia0: adc08 wcap=10011b<CONNLIST,FORMATOV,AMPOV,INAMP,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=60160<20bit,16bit,96kHz,48kHz,44.1kHz>
azalia0:    connections=0x23; selected=0x23
azalia0:    inamp: mute=1 size=5 steps=31 offset=11
azalia0: adc09 wcap=10011b<CONNLIST,FORMATOV,AMPOV,INAMP,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=60160<20bit,16bit,96kHz,48kHz,44.1kHz>
azalia0:    connections=0x22; selected=0x22
azalia0:    inamp: mute=1 size=5 steps=31 offset=11
azalia0: adc0a wcap=100391<DIGITAL,CONNLIST,UNSOL,FORMATOV,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=1e0560<32bit,24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kH
z>
azalia0:    connections=0x1f; selected=0x1f
azalia0: mix0b wcap=20010b<CONNLIST,AMPOV,INAMP,STEREO>
azalia0:    connections=0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x14,0x15,0x16,0x17; selec
ted=0x18
azalia0:    inamp: mute=1 size=5 steps=31 offset=23
azalia0: mix0c wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    connections=0x2,0xb; selected=0x2
azalia0:    inamp: mute=1 size=0 steps=0 offset=0
azalia0:    outamp: mute=0 size=5 steps=31 offset=31
azalia0: mix0d wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    connections=0x3,0xb; selected=0x3
azalia0:    inamp: mute=1 size=0 steps=0 offset=0
azalia0:    outamp: mute=0 size=5 steps=31 offset=31
azalia0: mix0e wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    connections=0x4,0xb; selected=0x4
azalia0:    inamp: mute=1 size=0 steps=0 offset=0
azalia0:    outamp: mute=0 size=5 steps=31 offset=31
azalia0: mix0f wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    connections=0x5,0xb; selected=0x5
azalia0:    inamp: mute=1 size=0 steps=0 offset=0
azalia0:    outamp: mute=0 size=5 steps=31 offset=31
azalia0: widget10 wcap=f00000
azalia0: widget11 wcap=f00000
azalia0: widget12 wcap=f00000
azalia0: widget13 wcap=f00000
azalia0: green14 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    pin config; device=line-out color=green assoc=1 seq=0 cap=3e<INPUT,O
UTPUT,HEADPHONE,PRESENCE,TRIGGER>
azalia0:    connections=0xc,0xd,0xe,0xf,0x26; selected=0xc
azalia0:    inamp: mute=0 size=39 steps=3 offset=0
azalia0:    outamp: mute=1 size=0 steps=0 offset=0
azalia0: black15 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    pin config; device=line-out color=black assoc=1 seq=2 cap=3e<INPUT,O
UTPUT,HEADPHONE,PRESENCE,TRIGGER>
azalia0:    connections=0xc,0xd,0xe,0xf,0x26; selected=0xd
azalia0:    inamp: mute=0 size=39 steps=3 offset=0
azalia0:    outamp: mute=1 size=0 steps=0 offset=0
azalia0: orange16 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    pin config; device=line-out color=orange assoc=1 seq=1 cap=36<INPUT,
OUTPUT,PRESENCE,TRIGGER>
azalia0:    connections=0xc,0xd,0xe,0xf,0x26; selected=0xe
azalia0:    inamp: mute=0 size=39 steps=3 offset=0
azalia0:    outamp: mute=1 size=0 steps=0 offset=0
azalia0: gray17 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    pin config; device=line-out color=gray assoc=1 seq=4 cap=36<INPUT,OU
TPUT,PRESENCE,TRIGGER>
azalia0:    connections=0xc,0xd,0xe,0xf,0x26; selected=0xf
azalia0:    inamp: mute=0 size=39 steps=3 offset=0
azalia0:    outamp: mute=1 size=0 steps=0 offset=0
azalia0: pink18 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    pin config; device=mic color=pink assoc=4 seq=0 cap=373e<INPUT,OUTPU
T,HEADPHONE,PRESENCE,TRIGGER>
azalia0:    connections=0xc,0xd,0xe,0xf,0x26; selected=0xc
azalia0:    inamp: mute=0 size=39 steps=3 offset=0
azalia0:    outamp: mute=1 size=0 steps=0 offset=0
azalia0: pink19 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    pin config; device=mic color=pink assoc=5 seq=0 cap=373e<INPUT,OUTPU
T,HEADPHONE,PRESENCE,TRIGGER>
azalia0:    connections=0xc,0xd,0xe,0xf,0x26; selected=0xc
azalia0:    inamp: mute=0 size=39 steps=3 offset=0
azalia0:    outamp: mute=1 size=0 steps=0 offset=0
azalia0: blue1a wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    pin config; device=line-in color=blue assoc=4 seq=1 cap=373e<INPUT,O
UTPUT,HEADPHONE,PRESENCE,TRIGGER>
azalia0:    connections=0xc,0xd,0xe,0xf,0x26; selected=0xc
azalia0:    inamp: mute=0 size=39 steps=3 offset=0
azalia0:    outamp: mute=1 size=0 steps=0 offset=0
azalia0: green1b wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    pin config; device=headphones color=green assoc=2 seq=0 cap=373e<INP
UT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER>
azalia0:    connections=0xc,0xd,0xe,0xf,0x26; selected=0xc
azalia0:    inamp: mute=0 size=39 steps=3 offset=0
azalia0:    outamp: mute=1 size=0 steps=0 offset=0
azalia0: unknown1c wcap=400001<STEREO>
azalia0:    pin config; device=cd color=unknown assoc=4 seq=15 cap=20<INPUT>
azalia0: black1d wcap=400000
azalia0:    pin config; device=speaker color=black assoc=15 seq=0 cap=20<INPUT>
azalia0: orange1e wcap=400300<DIGITAL,CONNLIST>
azalia0:    pin config; device=SPDIF-out color=orange assoc=3 seq=0 cap=10<OUTPU
T>
azalia0:    connections=0x6; selected=0x6
azalia0: orange1f wcap=400200<DIGITAL>
azalia0:    pin config; device=SPDIF-in color=orange assoc=6 seq=0 cap=20<INPUT>
azalia0: widget20 wcap=f00040<PROC>
azalia0: widget21 wcap=f00000
azalia0: mix22 wcap=20010b<CONNLIST,AMPOV,INAMP,STEREO>
azalia0:    connections=0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x14,0x15,0x16,0x17,0xb; s
elected=0x18
azalia0:    inamp: mute=1 size=0 steps=0 offset=0
azalia0: mix23 wcap=20010b<CONNLIST,AMPOV,INAMP,STEREO>
azalia0:    connections=0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x14,0x15,0x16,0x17,0xb; s
elected=0x18
azalia0:    inamp: mute=1 size=0 steps=0 offset=0
azalia0: widget24 wcap=f00000
azalia0: dac25 wcap=11<FORMATOV,STEREO>
azalia0:    encodings=1<PCM>
azalia0:    PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz>
azalia0: mix26 wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO>
azalia0:    connections=0x25,0xb; selected=0x25
azalia0:    inamp: mute=1 size=0 steps=0 offset=0
azalia0:    outamp: mute=0 size=5 steps=31 offset=31
azalia_codec_init: dacgroup[0]: 02 03 04 05
azalia_codec_init: dacgroup[1]: 06
azalia0: playback: max channels=8, encodings=1<PCM>
azalia0: playback: PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kH
z>
azalia0: recording: max channels=4, encodings=1<PCM>
azalia0: recording: PCM formats=60160<20bit,16bit,96kHz,48kHz,44.1kHz>
generic_mixer_init: register classes
generic_mixer_default: unmute
generic_mixer_default: process bidirectional pins
generic_mixer_default: set volume
azalia0: using the #0 codec
audio0 at azalia0: full duplex, independent
azalia_round_blocksize: resultant block size = 9600
azalia_round_blocksize: resultant block size = 9600

>How-To-Repeat:
	Play a sound.
>Fix:
	

>Unformatted: