From nobody@FreeBSD.ORG Sun Oct 31 15:12:51 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id BA50114CC5; Sun, 31 Oct 1999 15:12:51 -0800 (PST)
Message-Id: <19991031231251.BA50114CC5@hub.freebsd.org>
Date: Sun, 31 Oct 1999 15:12:51 -0800 (PST)
From: kushn@mail.kar.net
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Mixer synth & mixer CD seem to be swapped for Yamaha OPL SAx under newpcm 
X-Send-Pr-Version: www-1.0

>Number:         14634
>Category:       kern
>Synopsis:       Mixer synth & mixer CD seem to be swapped for Yamaha OPL SAx under newpcm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 31 15:20:00 PST 1999
>Closed-Date:    Tue Mar 28 07:54:52 PST 2000
>Last-Modified:  Tue Mar 28 07:55:34 PST 2000
>Originator:     Vladimir Kushnir
>Release:        FreeBSD-current
>Organization:
>Environment:
FreeBSD kushnir.kiev.ua 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Sun Oct 31 14:11:20 EET 1999     root@kushnir.kiev.ua:/usr/src/sys/compile/KUSHNIR  i386

>Description:
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

>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)
>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),


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cg  
Responsible-Changed-By: cpiazza 
Responsible-Changed-When: Thu Jan 13 22:28:55 PST 2000 
Responsible-Changed-Why:  
Over to maintainer of newpcm 
State-Changed-From-To: open->closed 
State-Changed-By: adrian 
State-Changed-When: Tue Mar 28 07:54:52 PST 2000 
State-Changed-Why:  
cg reports this as a feature 
>Unformatted:
