From: Takashi Iwai Subject: Re: [lennart@poettering.net: Status of ALSA "simple" mixer interface] Date: Wed, 21 Nov 2007 12:09:41 +0100 Message-ID: References: <20071120005151.GA25276@tango.0pointer.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id BAB3A247F9 for ; Wed, 21 Nov 2007 12:44:24 +0100 (CET) In-Reply-To: <20071120005151.GA25276@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: Lennart Poettering Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 20 Nov 2007 01:51:51 +0100, Lennart Poettering wrote: > > Hi! > > A few days ago I sent the attached emails to Takashi and filed a > couple of bugs on the ALSA BTS. Takashi suggested to post these issues > on the ML as well, to allow public discussion. So, here we go. > > The relevant bugs are: > > https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3570 > https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3569 > https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3568 > https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3572 > https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3571 Thanks. Let's work on them in traditional tactics, divide and conquer. Here, the first one: > /usr/include/alsa/mixer.h contains this comment: > > /* Simple (legacy) mixer elements API */ > > What does the "legacy" exactly mean? Shouldn't I be using it in new > code? I am currently looking for some way I can find out which PCM > channel for a stream on something like "surround51:0" maps to which > mixer element. How am I supposed to implement something like this > without stuff like the snd_mixer_selem_channel_id_t? The "legacy" here seems to mean a legacy-style mixer elements API, not as a deprecated API. The abstraction is done for the playback/capture volumes and switches and channels are re-composed to match with the traditional channel setting. In the earlier version, it had no enum controls, too. The mapping between the mixer element and the PCM element is a missing piece, together with the PCM channel mapping. I think we'll be able to implement both features together. Takashi