From: Clemens Ladisch Subject: Re: What is wrong in this code. Date: Tue, 18 Oct 2011 17:11:50 +0200 Message-ID: <4E9D9736.5070801@ladisch.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by alsa0.perex.cz (Postfix) with ESMTP id 5985F10385F for ; Tue, 18 Oct 2011 17:11:30 +0200 (CEST) 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: Anders Gnistrup Cc: "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org Anders Gnistrup wrote: > The code works just as expected when using the: > snd_ctl_elem_id_set_name(id, "PCM Playback Volume"); > But when I use the snd_ctl_elem_id_set_numid(id, numid); (with numid=23) it fails. > ... > snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_MIXER); > > //snd_ctl_elem_id_set_numid(id, numid); > snd_ctl_elem_id_set_name(id, "PCM Playback Volume"); When using the numid to access elements, it must be the only field that is set in the elem id. Regards, Clemens