From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Clemens Ladisch" Subject: Re: Channel mapping Date: Thu, 22 Nov 2007 10:17:54 +0100 Message-ID: <1195723074.30838.1222700857@webmail.messagingengine.com> References: <20071120005151.GA25276@tango.0pointer.de> <1195658261.9272.1222564051@webmail.messagingengine.com> <1195660340.16225.1222569047@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by alsa0.perex.cz (Postfix) with ESMTP id 6A2ED243E5 for ; Thu, 22 Nov 2007 10:17:56 +0100 (CET) Content-Disposition: inline In-Reply-To: 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: Jaroslav Kysela , Takashi Iwai Cc: ALSA development , Lennart Poettering List-Id: alsa-devel@alsa-project.org Jaroslav Kysela wrote: > On Wed, 21 Nov 2007, Takashi Iwai wrote: > > Indeed, the mixer <-> PCM mapping can be useful. For such > > information, the fixed size struct isn't suitable as multiple mixer > > elements correspond to a single PCM channel. > > I think that we have already such interface, but maybe not well described > and used. I would propose to use SNDRV_CTL_ELEM_IFACE_PCM for PCM mixer > related controls and device & subdevice from control_id structure. In this > way, we can easy group and assign all control elements to PCM substream. At the moment, this is only used for sound cards that have multiple substreams. > We may have only one problem - to identify which elements are mixer > related and which are not. Maybe, we can use one bit from access flags to > determine, if it's a mixer control element if interface != MIXER. I'm not sure if this information (mixer or not) is that useful - an application is likely to access a mixer control with a 'known' meaning, like volume or mute, and in this case it has to search the controls by their name anyway. Regards, Clemens