From heath@twix.bar.net  Fri May 31 22:11:54 2002
Return-Path: <heath@twix.bar.net>
Received: from twix.bar.net (12-254-239-14.client.attbi.com [12.254.239.14])
	by hub.freebsd.org (Postfix) with ESMTP id 86F8537B405
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 31 May 2002 22:11:52 -0700 (PDT)
Received: from hershey.dyn.bar.net (hershey.dyn.bar.net [172.16.1.248])
	by twix.bar.net (8.12.3/8.12.3) with ESMTP id g515BpPx000354
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 31 May 2002 23:11:51 -0600 (MDT)
	(envelope-from heath@twix.bar.net)
Received: from hershey.dyn.bar.net (localhost [127.0.0.1])
	by hershey.dyn.bar.net (8.12.3/8.12.3) with ESMTP id g515B1Kt000418
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 31 May 2002 23:11:01 -0600 (MDT)
	(envelope-from heath@hershey.dyn.bar.net)
Received: (from heath@localhost)
	by hershey.dyn.bar.net (8.12.3/8.12.3/Submit) id g515B0rT000417;
	Fri, 31 May 2002 23:11:00 -0600 (MDT)
Message-Id: <200206010511.g515B0rT000417@hershey.dyn.bar.net>
Date: Fri, 31 May 2002 23:11:00 -0600 (MDT)
From: Heath Nielson <heath@cs.byu.edu>
Reply-To: Heath Nielson <heath@cs.byu.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Cannot play audio on a VIA VT8233 chipset with the via82c686 driver
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38792
>Category:       kern
>Synopsis:       Cannot play audio on a VIA VT8233 chipset with the via82c686 driver
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sound
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 31 22:20:00 PDT 2002
>Closed-Date:    Sat Aug 24 16:53:29 PDT 2002
>Last-Modified:  Thu Nov  7 21:20:02 PST 2002
>Originator:     Heath Nielson
>Release:        FreeBSD 4.6-RC i386
>Organization:
>Environment:
System: FreeBSD hershey.dyn.bar.net 4.6-RC FreeBSD 4.6-RC #0: Fri May 31 20:11:52 MDT 2002 heath@hershey.dyn.bar.net:/usr/obj/usr/src/sys/HERSHEY i386


	
>Description:
	
>How-To-Repeat:
With the snd_via82c686.ko module the following hardware is identified:
pcm0: <VIA VT8233> port 0xe000-0xe0ff irq 10 at device 17.5 on pci0

When I try to play any audio (in my test an mp3 file through xmms) I get
the following message on the console:
pcm0:play:0: play interrupt timeout, channel dead
	
There is no sound and oddly enough, the mp3 files play at about 10x the normal
rate.
>Fix:

	


>Release-Note:
>Audit-Trail:

From: Troy Lubbers <troyml@prodigy.net>
To: freebsd-gnats-submit@FreeBSD.org, heath@cs.byu.edu
Cc:  
Subject: Re: kern/38792: Cannot play audio on a VIA VT8233 chipset with the
 via82c686 driver
Date: Wed, 12 Jun 2002 12:17:57 -0500

 I am also experiencing this identical problem although my southbridge is 
 an 8233a it is identified as the 8233 doesn't play audio and goes 
 through the files lightning fast.
 
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Sun Aug 11 13:13:19 PDT 2002 
Responsible-Changed-Why:  
Another one for the sound guys. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38792 

From: Orion Hodson <orion@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, heath@cs.byu.edu
Cc:  
Subject: Re: kern/38792: Cannot play audio on a VIA VT8233 chipset with the via82c686 driver
Date: Sun, 11 Aug 2002 13:41:52 -0700

 This problem is under investigation: patches are being exchanged with
 a couple of VT8233 owners and the relevant people at VIA have been
 contacted and asked for specs.  Can you post details of the
 northbridge, KT333 or KT266, and what the output of 'pciconf -l' on
 the machine is?
 
 Thanks
 - Orion
 
 
 
 

From: Heath Nielson <heath@cs.byu.edu>
To: Orion Hodson <orion@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/38792: Cannot play audio on a VIA VT8233 chipset with the
 via82c686 driver
Date: Mon, 12 Aug 2002 09:17:07 -0600 (MDT)

 On Sun, 11 Aug 2002, Orion Hodson wrote:
 
 > 
 > This problem is under investigation: patches are being exchanged with
 > a couple of VT8233 owners and the relevant people at VIA have been
 > contacted and asked for specs.  Can you post details of the
 > northbridge, KT333 or KT266, and what the output of 'pciconf -l' on
 > the machine is?
 > 
 > Thanks
 > - Orion
 > 
 
 The motherboard is an MSI KT3 Ultra with a VIA KT333 chipset.
 
 hershey# pciconf -l
 chip0@pci0:0:0:	class=0x060000 card=0x00001106 chip=0x30991106 rev=0x00 hdr=0x00
 pcib1@pci0:1:0:	class=0x060400 card=0x00000080 chip=0xb0991106 rev=0x00 hdr=0x01
 pcm0@pci0:6:0:	class=0x040100 card=0x4c4c4942 chip=0x50001274 rev=0x01 hdr=0x00
 ahc0@pci0:7:0:	class=0x010000 card=0x78509004 chip=0x50789004 rev=0x03 hdr=0x00
 vr0@pci0:10:0:	class=0x020000 card=0x14001186 chip=0x30431106 rev=0x06 
 isab0@pci0:17:0:	class=0x060100 card=0x00001106 chip=0x31471106 rev=0x00 hdr=0x00
 atapci0@pci0:17:1:	class=0x01018a card=0x05711106 chip=0x05711106 rev=0x06 hdr=0x00
 uhci0@pci0:17:2:	class=0x0c0300 card=0x12340925 chip=0x30381106 rev=0x23 hdr=0x00
 uhci1@pci0:17:3:	class=0x0c0300 card=0x12340925 chip=0x30381106 rev=0x23 hdr=0x00
 none0@pci0:17:5:	class=0x040100 card=0x47201462 chip=0x30591106 rev=0x40 hdr=0x00rev=0x23 hdr=0x00
 none1@pci1:0:0:	class=0x030000 card=0x05501092 chip=0x002010de rev=0x04 hdr=0x00
 hershey#
 
 Heath
 

From: Orion Hodson <orion@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org,
	"Rafal Grzybowski" <grzybek@inferno.mikrus.pw.edu.pl>,
	"Heath Nielson" <heath@cs.byu.edu>,
	"Daniel O'Connor" <doconnor@gsoft.com.au>,
	"Eric Olsen" <ericg@chartertn.net>,
	"Aaron Siegel" <Aaron.Siegel@attbi.com>
Cc:  
Subject: Re: kern/38792: Cannot play audio on a VIA VT8233 chipset with the 
 via82c686 driver
Date: Fri, 16 Aug 2002 13:03:01 -0700

 The VIA VT8233 problem was caused by VIA changing the supported
 register sets between revisions of the VT8233 chipset.  The driver was
 using the DXS registers, but these were (silently) killed off.  After
 spending a fair amount of time exchaning patches to understand what
 had happened, Rafal Grzybowski spotted a comment explaining the issue
 in the ALSA source.  Whilst VIA lose points for futzing with the spec,
 they gain some back for providing specs to make writing a new driver
 considerably easier.
 
 A driver relative to -stable today is available as a patch at:
 
 	http://people.freebsd.org/~orion/stable-via8233.patch
 
 Apply with:
         cd ${SRC}/sys 
         patch -p0 < stable-via8233.patch
 
 The driver still needs some work, but shouldn't cause any stability
 issues.  Recording with a live sound sources is untested, and playback
 is not rigourously tested - playing some 8bit 8kHz audio files and
 some mp3's.  If you test the driver as it stands now, I would
 appreciate the output of a verbose dmesg and your comments.
 
 Thanks
 - Orion
 
 
State-Changed-From-To: open->closed 
State-Changed-By: orion 
State-Changed-When: Sat Aug 24 16:50:55 PDT 2002 
State-Changed-Why:  
Committed to -CURRENT, -STABLE, and due for inclusion in 4.7R.  


http://www.freebsd.org/cgi/query-pr.cgi?pr=38792 

From: paul beard <paulbeard@mac.com>
To: freebsd-gnats-submit@FreeBSD.org, heath@cs.byu.edu
Cc:  
Subject: Re: kern/38792: Cannot play audio on a VIA VT8233 chipset with the
 via82c686 driver
Date: Thu, 07 Nov 2002 21:18:12 -0800

 I was going to apply the patch in this PR (kern/38792) but then I 
 saw that it was already added to 4.7-R: since I'm running that and 
 still have this problem, I figured it might be worth a follow up.
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=44762
 
 esd still causes this to be written to console:
 
 pcm0:play:0: play interrupt timeout, channel dead
 
 [/usr/src]# cat /dev/sndstat
 FreeBSD Audio Driver (newpcm)
 Installed devices:
 pcm0: <CS461x PCM Audio> at irq 11 (1p/1r/0v channels duplex)
 
 [/usr/src]# grep pcm /var/run/dmesg.boot
 pcm0: <CS461x PCM Audio> on csa0
 
 [/usr/src]# grep csa /var/run/dmesg.boot
 csa0: <CS4280/CS4614/CS4622/CS4624/CS4630> mem 
 0xf4000000-0xf40fffff,0xf4100000-0xf4100fff irq 11 at device 5.0 
 on pci0
 csa: card is Thinkpad 600X/A20/T20
 pcm0: <CS461x PCM Audio> on csa0
 
 
 
 -- 
 Paul Beard / 8040 27th Ave NE / Seattle WA 98115 /
 paulbeard [at] mac [ dot] com / 206 529 8400
 
 weblog @ <http://paulbeard.no-ip.org/movabletype/>
 
 To generalize is to be an idiot.
 		-- William Blake
 
>Unformatted:
