NetBSD Problem Report #8479

Received: (qmail 9935 invoked from network); 23 Sep 1999 12:26:23 -0000
Message-Id: <nin6711ke64.fsf@i60s49.ira.uka.de>
Date: 23 Sep 1999 14:25:39 +0200
From: Klaus Klein <kleink@ira.uka.de>
Sender: kleink@ira.uka.de
Reply-To: kleink@ira.uka.de
To: gnats-bugs@gnats.netbsd.org
Cc: kleink@ira.uka.de
Subject: ossaudio emulation (mis-)interprets record source MIXER_ENUMs
X-Send-Pr-Version: 3.95

>Number:         8479
>Category:       kern
>Synopsis:       ossaudio emulation (mis-)interprets record source MIXER_ENUMs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 23 05:35:01 +0000 1999
>Closed-Date:    
>Last-Modified:  Tue Jun 06 01:57:58 +0000 2000
>Originator:     Klaus Klein
>Release:        1.4
>Organization:
Frobozz Magic Standards Company
>Environment:
System: NetBSD minor-variation 1.4K NetBSD 1.4K (MINOR-VARIATION) #254: Thu Sep 16 22:05:52 CEST 1999 kleink@minor-variation:/vol/tmp/kernels/MINOR-VARIATION i386


>Description:
	The ossaudio emulation interprets the (opaque) value of an
	enumerated record source selector's ord member as the index of
	the corresponding MIXER_VALUE.  This method breaks whenever a
	hardware driver chooses to use the enumeration to conveniently
	hold i.e. the corresponding values for its record source
	selector hardware register.
	Worse, a hardware driver may provide support for record sources
	which do not even have a corresponding MIXER_VALUE, i.e. the
	record mixer output itself, so making this a general API
	requirement isn't possible either.

	(The MIXER_SET code makes a similar assumption.)

	A secondary problem caused by this is that the emulation depends on
	the record source selector being assigned a mixer device index
	greater than that of any `ord'-style record source; otherwise,
	the reverse mapping for that index will be uninitialized.

>How-To-Repeat:
	When using the eso(4) hardware driver:

	1) Set mixerctl -w record.source=cd  (corresponding ord = 2)
	2) Start i.e. xxmix; be suprprised to find its record source
	   selector indicating `line' (= 2 = ESO_LINE_PLAY_VOL) while
	   mixerctl (and the hardware) still indicates cd.

>Fix:
	After MIXER_VALUEs are determined, add a level of indirection
	to look for the relevant bits?
>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.