Subject: kern/30898: distorted and to fast playback with auvia(4)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <martin.ammermueller@bnro.de>
List: netbsd-bugs
Date: 08/03/2005 07:01:00
>Number: 30898
>Category: kern
>Synopsis: auvia(4) plays audiofiles to fast and distorted
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 03 07:01:00 +0000 2005
>Originator: Martin Ammermueller
>Release: NetBSD 3.99.7
>Organization:
>Environment:
System: NetBSD lotophag.homeunix.net 3.99.7 NetBSD 3.99.7 (LOTOPHAG) #8: Wed Aug 3 08:07:06 CEST 2005 root@lotophag.homeunix.net:/usr/src/sys/arch/i386/compile/LOTOPHAG i386
Architecture: i386
Machine: i386
>Description:
When playing audiofiles (with ogg123, mpg321 or mplayer), the sound
output is distorted and sometimes when playing local files - always
when playing audio-streams and videos (mpeg, mov) - audio is played too
fast. Distorted like: a constantly repeating pattern like
"cat /bin/test > /dev/audio" - only higher and slower - layed over the
audio of the audiofile being played. Output is distorted most the time,
but rarely its clean. The distortion pattern changes with every file
being played but not while playing a file.
The output of scanpci -v for the audio card:
---
pci bus 0x0000 cardnum 0x11 function 0x05: vendor 0x1106 device 0x3059
VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller
CardVendor 0x1071 card 0x8375 (Mitac, Card unknown)
STATUS 0x0210 COMMAND 0x0001
CLASS 0x04 0x01 0x00 REVISION 0x50
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00
BASE0 0x0000e101 addr 0x0000e100 I/O
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x03 INT_LINE 0x05
BYTE_0 0x05 BYTE_1 0xcc BYTE_2 0x00 BYTE_3 0x00
---
It's recognized by the NetBSD kernel as:
---
auvia0 at pci0 dev 17 function 5: VIA Technologies VT8235 AC'97 Audio (rev 0x50)
auvia0: interrupting at irq 5
auvia0: ac97: VIA Technologies VT1612A codec; headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
auvia0: ac97: ext id 205<AMAP,SPDIF,VRA>
audio0 at auvia0: full duplex, mmap, independent
---
The Alsa-driver (via82xx) had this problem also, more than one year
ago. The FreeBSD 5.4 driver (via8233) doesn't show this behaviour and
works. Therefore i compared the FreeBSD and NetBSD driver's code (as
much as i was able to). The FreeBSD driver has speed-setting functions
and handles sth. called "DXS-Channels". The NetBSD driver lacks this
functions completely. Perhaps this is the source of my problems.
BTW, my mainboard also has a modem controller (PCTel) which uses the
audio-card to dial. But its not configured by the NetBSD kernel (which
is fine for me, since i don't use it).
scanpci -v for the modem controller:
---
pci bus 0x0000 cardnum 0x11 function 0x06: vendor 0x1106 device 0x3068
VIA Technologies, Inc. AC'97 Modem Controller
CardVendor 0x1071 card 0x8375 (Mitac, Card unknown)
STATUS 0x0210 COMMAND 0x0001
CLASS 0x07 0x80 0x00 REVISION 0x80
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00
BASE0 0x0000e201 addr 0x0000e200 I/O
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x03 INT_LINE 0x05
BYTE_0 0x05 BYTE_1 0xcc BYTE_2 0x00 BYTE_3 0x00
---
and kernel output:
---
VIA Technologies VT82C686A MC-97 Modem Controller (miscellaneous communications, revision 0x80) at pci0 dev 17 function 6 not configured
Regards,
Martin
>How-To-Repeat:
>Fix: