From nobody@FreeBSD.org  Mon Feb 26 07:25:28 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id E0C5237B491
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2001 07:25:27 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f1QFPR888893;
	Mon, 26 Feb 2001 07:25:27 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102261525.f1QFPR888893@freefall.freebsd.org>
Date: Mon, 26 Feb 2001 07:25:27 -0800 (PST)
From: yury@black.cat.kazan.su
To: freebsd-gnats-submit@FreeBSD.org
Subject: Incorrect mixer registers (line & synth) in newpcm driver for CS4232
X-Send-Pr-Version: www-1.0

>Number:         25386
>Category:       kern
>Synopsis:       [sound] Incorrect mixer registers (line & synth) in newpcm driver for CS4232
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 26 07:30:00 PST 2001
>Closed-Date:    Sat Oct 07 18:31:32 GMT 2006
>Last-Modified:  Sat Oct 07 18:31:32 GMT 2006
>Originator:     Iouri Ivliev
>Release:        4.2-STABLE 2001.02.23
>Organization:
AnySoft Russia
>Environment:
FreeBSD nb.home.anysoft.com.ru 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Feb 23 23:53:23 MSK 2001     root@shalob.anysoft.com.ru:/usr/obj/usr/src/sys/NB  i386
>Description:
CS42xx based sound cards controlled by newpcm driver uses mixer
registers table 'mix_devices' defined in /sys/dev/sound/isa/mss.h
As described here, 'line' uses registers 18 and 19, 'synth' - 2 and 3. But really some (or probably most... or jast all) CS4232 based cards
uses 2 and 3 registers for 'line' and 18, 19 for 'synth'.
Also, CS4235 have "master out" AKA 'vol' device at 27 and 29 registers.
>How-To-Repeat:
Plug some audio source to "line in" of sound card.
try "mixer line <level>" and "mixer synth <level>" to
change volume.
>Fix:
'mix_devices' definition should contains following lines for CS4232
MIX_ENT(SOUND_MIXER_SYNTH,      18, 1, 0, 5,    19, 1, 0, 5),
MIX_ENT(SOUND_MIXER_LINE,       2, 1, 0, 5,      3, 1, 0, 5),

and following one for CS4235
MIX_ENT(SOUND_MIXER_VOLUME,     27, 1, 0, 4,    29, 1, 0, 4),

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cg 
Responsible-Changed-By: kris 
Responsible-Changed-When: Fri Mar 23 21:39:41 PST 2001 
Responsible-Changed-Why:  
Cameron is the sound dude 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25386 
Responsible-Changed-From-To: cg->sound 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Sep 9 19:33:05 GMT 2004 
Responsible-Changed-Why:  
With permission, reassign to mailing list alias. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25386 
State-Changed-From-To: open->feedback 
State-Changed-By: netchild 
State-Changed-When: Sun Sep 11 11:51:11 GMT 2005 
State-Changed-Why:  
I assume this still applies to -current. What's the output of 
"pciconf -v -l", only the pcm part is interesting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25386 
State-Changed-From-To: feedback->closed 
State-Changed-By: netchild 
State-Changed-When: Sat Oct 7 18:31:04 UTC 2006 
State-Changed-Why:  
No feedback for over a year. 

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