From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lennart Poettering Subject: Re: Softvol controls Date: Fri, 30 Nov 2007 01:08:11 +0100 Message-ID: <20071130000810.GA20465@tango.0pointer.de> References: <20071120005151.GA25276@tango.0pointer.de> <20071129232859.GA18138@tango.0pointer.de> <20071129154657.2a7a2be1@jutz-gnto64> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from tango.0pointer.de (tango.0pointer.de [85.214.72.216]) by alsa0.perex.cz (Postfix) with ESMTP id 5890524389 for ; Fri, 30 Nov 2007 01:08:11 +0100 (CET) Content-Disposition: inline In-Reply-To: <20071129154657.2a7a2be1@jutz-gnto64> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: John Utz Cc: Takashi Iwai , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Thu, 29.11.07 15:46, John Utz (john.utz@dmx.com) wrote: John, > > > Check snd_ctl_elem_info_is_user(). All softvol controls are > > > implemented as user elements. > > > > Hmm, how am I supposed to get the snd_ctl_elem_info_t from a > > snd_mixer_elem_t or snd_mixer_selem_id_t? > > > > I figure there is no useful documentation or even example how this is > > supposed to work? Hmm, is there any real documentation available which > > describes the relation of ctl, hctl, mixer and smixer at all? For the > > uninitated the whols structure looks overly complex and redundant. > > Here's my take on it....HTH > > dont hesitate to ask Hu? Neither "snd_ctl_elem_info_t" nor "snd_ctl_elem_info_is_user()" is even mentioned in your source code excerpt? I know how to change volumes and stuff via the ALSA mixer API. What I am looking for is a way to detect whether a mixer element is implemented in softwaer only and thus doesn't influence your ouput when you open a PCM device with "hw:0", "front:0", "surround51:0" and suchlike. Lennart -- Lennart Poettering Red Hat, Inc. lennart [at] poettering [dot] net ICQ# 11060553 http://0pointer.net/lennart/ GnuPG 0x1A015CC4