Bug 25386

Summary: [sound] Incorrect mixer registers (line & synth) in newpcm driver for CS4232
Product: Base System Reporter: yury <yury>
Component: kernAssignee: freebsd-multimedia (Nobody) <multimedia>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description yury 2001-02-26 15:30:00 UTC
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.

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),
How-To-Repeat: Plug some audio source to "line in" of sound card.
try "mixer line <level>" and "mixer synth <level>" to
change volume.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2001-03-24 05:39:41 UTC
Responsible Changed
From-To: freebsd-bugs->cg

Cameron is the sound dude
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2004-09-09 20:33:05 UTC
Responsible Changed
From-To: cg->sound

With permission, reassign to mailing list alias.
Comment 3 Alexander Leidinger freebsd_committer freebsd_triage 2005-09-11 12:51:11 UTC
State Changed
From-To: open->feedback

I assume this still applies to -current. What's the output of 
"pciconf -v -l", only the pcm part is interesting.
Comment 4 Alexander Leidinger freebsd_committer freebsd_triage 2006-10-07 19:31:04 UTC
State Changed
From-To: feedback->closed

No feedback for over a year.