Bug 14634

Summary: Mixer synth & mixer CD seem to be swapped for Yamaha OPL SAx under newpcm
Product: Base System Reporter: kushn <kushn>
Component: kernAssignee: cg
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description kushn 1999-10-31 23:20:00 UTC
Mixr tables for synth & CD under newpcm are swapped (at least, for Yamaha OPL SA2)
so that mixer synth (not implemented as yet device) actually controls 
volume for CD-DA

Fix: 

Don't know if this is a common feature for all the MSS-compatibles, but with my 
Yamaha OPL SA2 card works swapping of tables:

***************
*** 172,183 ****                                                                                                                                              MIX_NONE(SOUND_MIXER_VOLUME),
  MIX_NONE(SOUND_MIXER_BASS),
  MIX_NONE(SOUND_MIXER_TREBLE),
! MIX_ENT(SOUND_MIXER_SYNTH,     2, 1, 0, 5,     3, 1, 0, 5),
  MIX_ENT(SOUND_MIXER_PCM,       6, 1, 0, 6,     7, 1, 0, 6),
  MIX_ENT(SOUND_MIXER_SPEAKER,  26, 1, 0, 4,     0, 0, 0, 0),
  MIX_ENT(SOUND_MIXER_LINE,     18, 1, 0, 5,    19, 1, 0, 5),
  MIX_ENT(SOUND_MIXER_MIC,       0, 0, 5, 1,     1, 0, 5, 1),
! MIX_ENT(SOUND_MIXER_CD,                4, 1, 0, 5,     5, 1, 0, 5),
  MIX_ENT(SOUND_MIXER_IMIX,     13, 1, 2, 6,     0, 0, 0, 0),
  MIX_NONE(SOUND_MIXER_ALTPCM),
  MIX_NONE(SOUND_MIXER_RECLEV),
--- 172,183 ----
  MIX_NONE(SOUND_MIXER_VOLUME),
  MIX_NONE(SOUND_MIXER_BASS),
  MIX_NONE(SOUND_MIXER_TREBLE),
! MIX_ENT(SOUND_MIXER_SYNTH,     4, 1, 0, 5,     5, 1, 0, 5),
  MIX_ENT(SOUND_MIXER_PCM,       6, 1, 0, 6,     7, 1, 0, 6),
  MIX_ENT(SOUND_MIXER_SPEAKER,  26, 1, 0, 4,     0, 0, 0, 0),
  MIX_ENT(SOUND_MIXER_LINE,     18, 1, 0, 5,    19, 1, 0, 5),
  MIX_ENT(SOUND_MIXER_MIC,       0, 0, 5, 1,     1, 0, 5, 1),
! MIX_ENT(SOUND_MIXER_CD,                2, 1, 0, 5,     3, 1, 0, 5),
  MIX_ENT(SOUND_MIXER_IMIX,     13, 1, 2, 6,     0, 0, 0, 0),
  MIX_NONE(SOUND_MIXER_ALTPCM),
  MIX_NONE(SOUND_MIXER_RECLEV),
How-To-Repeat: mixer synth 0:0
Mixer synth    is currently set to   0:0
Result: no sound out of the CD. At the same time, setting `mixer synth <non_zero_value>
enables sound for CD plyers (cdcomtrol, ascd and so on)
Comment 1 cpiazza freebsd_committer freebsd_triage 2000-01-14 06:28:55 UTC
Responsible Changed
From-To: freebsd-bugs->cg

Over to maintainer of newpcm 
Comment 2 Adrian Chadd freebsd_committer freebsd_triage 2000-03-28 16:54:52 UTC
State Changed
From-To: open->closed

cg reports this as a feature