From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: What's the deal with elements? Date: Thu, 24 Nov 2011 14:37:56 +0100 Message-ID: <4ECE48B4.8010607@ladisch.de> References: <4ECCA8C9.7050400@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by alsa0.perex.cz (Postfix) with ESMTP id 3035310399E for ; Thu, 24 Nov 2011 14:37:01 +0100 (CET) Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 890C02154F for ; Thu, 24 Nov 2011 08:36:57 -0500 (EST) 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: Borg Onion Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Borg Onion wrote: > the "enum _snd_ctl_elem_iface" definition hints at these element lists > containing PCM devices. iface=PCM means that the control is associated with some PCM device (identified by device/subdevice). > Lastly, my calls to snd_ctl_elem_list_get_index() always return 0. > Shouldn't they be returning the index passed in? A control is identified either by the numid, a non-zero unique number, or by the interface/device/subdevice/name/index fields. The index field is used when there are multiple controls that would otherwise have the same ID. Regards, Clemens