From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian McMenamin Subject: Re: OSS emulation question Date: Thu, 30 Mar 2006 21:43:42 +0100 Message-ID: <1143751422.9265.1.camel@localhost.localdomain> References: <1143673730.15278.7.camel@localhost.localdomain> <20060330125559.GC12081@turing.informatik.uni-halle.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060330125559.GC12081@turing.informatik.uni-halle.de> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Clemens Ladisch Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Thu, 2006-03-30 at 14:55 +0200, Clemens Ladisch wrote: > Adrian McMenamin wrote: > > My mixer code is currently not working because my device does not report > > the availability of SOUND_MASK_VOLUME to the oss emulation code. > > ALSA's OSS emulation automatically computed the mask value. > > > In the olden days I'd just write the ioctl - presumably I don't have to > > do that with ALSA? How do I get round it? > > See snd_mixer_oss_build() in core/oss/mixer_oss.c for a list of mixer > control names that get mapped to OSS controls (e.g., "Master Playback > Volume"/"...Switch" would be mapped to SOUND_MIXER_VOLUME). > > I have implemented master volume and master switch but all I get is: audio/gain: setable Volume/PCM-Level not supported by your audio device: 0000 what is the minimum set of controls I need to have settable volume in /dev/mixer (ie oss emulation)? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642