From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: Verifying mixer dB data/Invalid dB data from USB cards, especially Aureon 5.1 MkII Date: Tue, 23 Feb 2010 11:08:18 +0100 Message-ID: <4B83A912.1050501@ladisch.de> References: <20100216233825.GB23623@sirena.org.uk> <20100216235658.GA6766@tango.0pointer.de> <4f3252891002171748tdcaa87n4d11d9880c0043e3@mail.gmail.com> <20100218023742.GC23637@tango.0pointer.de> <4f3252891002172215j7b85313ci3626a1bdad5c040c@mail.gmail.com> <20100218181322.GB5606@tango.0pointer.de> <4f3252891002190257u608073c3l48f2251d8a6458ee@mail.gmail.com> <20100219151328.GC25873@tango.0pointer.de> <4f3252891002202001gb6df8cg6c023c52e7d8394a@mail.gmail.com> <20100221192951.GD30380@tango.0pointer.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 6A70B1038A2 for ; Tue, 23 Feb 2010 11:08:20 +0100 (CET) Received: from compute2.internal (compute2 [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id D59E9E268D for ; Tue, 23 Feb 2010 05:08:19 -0500 (EST) Received: from [10.1.2.38] (srv004.schk01.int.dmc-one.com [85.232.8.141]) by mail.messagingengine.com (Postfix) with ESMTPSA id 1AFFD4BC3E9 for ; Tue, 23 Feb 2010 05:08:19 -0500 (EST) In-Reply-To: <20100221192951.GD30380@tango.0pointer.de> 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: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Lennart Poettering wrote: > On Sun, 21.02.10 12:01, Raymond Yau (superquad.vortex2@gmail.com) wrote: > > However Simple Mixer API cannot know the subdevice number , you have to use > > control API ( the lower level API used by Simple Mixer API ) > > Unfortunately there is no way from the simple mixer to the lower level > mixer. >>From the check_unplugged function in alsa-utils/alsamixer/mixer_widget.c: err = snd_mixer_get_hctl(mixer, mixer_device_name, &hctl); if (err >= 0) ctl = snd_hctl_ctl(hctl); > It would be great if the smixer would include some API that gives me a > hint to which device/subdevice a specific snd_mixer_elem_t belongs to. Often, there is no 1:1 correspondence between mixer elements and PCM devices. Only mixer controls with interface PCM (not MIXER) have (sub-) device numbers, and at the moment this is used only for controls that are associated with the streams of hardware-mixing-capable cards. Getting information about the mixer layout (like the nodes reported by HDA and USB devices) is on the TODO list; the only reason it isn't being implemented is lack of time. Regards, Clemens