From nobody@FreeBSD.org  Wed Jul  3 09:45:36 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D7D6B37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Jul 2002 09:45:36 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9891343E3B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Jul 2002 09:45:36 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g63GjaOT062798
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 3 Jul 2002 09:45:36 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g63Gjabl062797;
	Wed, 3 Jul 2002 09:45:36 -0700 (PDT)
Message-Id: <200207031645.g63Gjabl062797@www.freebsd.org>
Date: Wed, 3 Jul 2002 09:45:36 -0700 (PDT)
From: Jesse Riddle <jxriddle@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: No sound on Presario 700 laptop's ac97 codec. (VIA82C686)
X-Send-Pr-Version: www-1.0

>Number:         40155
>Category:       kern
>Synopsis:       No sound on Presario 700 laptop's ac97 codec. (VIA82C686)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    orion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 03 09:50:03 PDT 2002
>Closed-Date:    Fri Apr 11 16:37:03 PDT 2003
>Last-Modified:  Fri Apr 11 16:37:03 PDT 2003
>Originator:     Jesse Riddle
>Release:        FreeBSD 4.6-RELEASE
>Organization:
UPS
>Environment:
FreeBSD caleb.metropolis 4.6-RELEASE FreeBSD 4.6-RELEASE #11: Wed Jul  3 10:27:10 EST 2002     jesse@caleb.metropolis:/usr/obj/usr/src/sys/CALEB  i386
>Description:
      I am using a Compaq Presario 700US laptop that sports the VIA82C686 driver-supported ac97 codec.  All sound hardware appears to be configured correctly.  'cat /dev/sndstat' returns "pcm0: <VIA VT82C686A> at io 0x1000 irq5 (1p/1r/0v channels duplex)".  However, when I test audio output by playing an mp3 file with mpg123 -vv, there is no audible output.  It looks like the mp3 file is being played just fine, but it can't be heard at all.  Mixer settings are default, everything is 75:75.  The only exceptions are mic, rec, phin, and phout; which are set to 0:0.
I will be open to receive email.  I can help a developer test possible workarounds / patches.  However, the Linux patch was fairly simple and straightforward.  I am just not equipped with the know-how to do this myself.  Believe me, I have tried, and I'm still going to try, at getting this to work.
>How-To-Repeat:
      Set up sound devices with "device pcm" in the kernel with FreeBSD 4.6-RELEASE while using a Compaq Presario 700-series laptop.  'cat /dev/sndstat/' should work correctly.  /dev/dsp can be opened, but there is no audio produced.
>Fix:
      There is a patch written by Santiago Nullo that fixes this problem in the linux-2.4.18 kernel.  The "JACK_SENSE" register (0x72) needs to be initalized to 0x0010.  I think the fix also works on other Compaq Presario 700-series laptops, such as the 715xx.
>Release-Note:
>Audit-Trail:

From: "Jesse Riddle" <jxriddle@hotmail.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <jxriddle@hotmail.com>
Cc:  
Subject: Re: kern/40155: No sound on Presario 700 laptop's ac97 codec. (VIA82C686)
Date: Fri, 11 Apr 2003 08:13:27 -0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0003_01C30002.3B03B860
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 Hi, Jesse again.  I got sound working the next day (Jul 4, 2002) by very =
 cheaply hacking in the Linux patch code into the AC97 codec.  Many very =
 gracious people have sent me their own versions of the hack, for which I =
 am thankful.  However, I do believe that a better solution need be =
 presented, as opposed to simply a cheap hack.  I like the way the =
 FreeBSD sound subsystem is arranged. I'm generally a neophyte at =
 kernel-level programming, but I noticed that hardware-dependent code and =
 hardware-independent code seemed to be seperate.  You guys do very nice =
 work.
 ------=_NextPart_000_0003_01C30002.3B03B860
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>Hi, Jesse again.&nbsp; I got sound =
 working the next=20
 day (Jul 4, 2002) by very cheaply hacking in the Linux patch code into =
 the AC97=20
 codec.&nbsp; Many very gracious people have sent me their own versions =
 of the=20
 hack, for which I am thankful.&nbsp; However, I do believe that a better =
 
 solution need be presented, as opposed to simply a cheap hack.&nbsp; I =
 like the=20
 way the FreeBSD sound subsystem is arranged.&nbsp;I'm generally a =
 neophyte at=20
 kernel-level programming, but I noticed that hardware-dependent code and =
 
 hardware-independent code seemed to be seperate.&nbsp;&nbsp;You guys do =
 very=20
 nice work.</FONT></DIV></BODY></HTML>
 
 ------=_NextPart_000_0003_01C30002.3B03B860--
Responsible-Changed-From-To: freebsd-bugs->orion 
Responsible-Changed-By: orion 
Responsible-Changed-When: Fri Apr 11 16:29:47 PDT 2003 
Responsible-Changed-Why:  
Committed relevant fix to tree. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=40155 
State-Changed-From-To: open->closed 
State-Changed-By: orion 
State-Changed-When: Fri Apr 11 16:30:40 PDT 2003 
State-Changed-Why:  
Have you checked out FreeBSD 4.8R?  A generic mechanism for codec 
specific AC97 patches was added to both branches of the tree a couple 
of months back.  The patch for this (misbehaving) codec is already 
included and is in the latest release. 

Apologies for not noticing this PR earlier - I generally miss them 
unless they are directed to sound@freebsd.org when they come in. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=40155 
>Unformatted:
