From: Takashi Iwai Subject: Re: Non-continous channel map? Date: Wed, 03 May 2006 14:56:35 +0200 Message-ID: References: <44505C23.30109@cendio.se> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx1.suse.de (ns1.suse.de [195.135.220.2]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 9C337198 for ; Wed, 3 May 2006 14:56:35 +0200 (MEST) In-Reply-To: <44505C23.30109@cendio.se> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Pierre Ossman Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 27 Apr 2006 07:52:35 +0200, Pierre Ossman wrote: > > Hi! > > ALSA uses a rather strict default channel map, just a simple list. This > is insufficient for the polypaudio plug-in I wrote, as the polypaudio > server might have an output of e.g. just the center channel and a > subwoofer. I'm wondering how to properly represent this in ALSA. > > For the PCM, there is no problem as we as clients decide which channels > are to be set up. The server will then need to map these to actual hardware. > > For mixer, however, we're modifying the server hardware so we will need > to adapt to whatever channels it has. So provided I have a device with > channels "left", "right", "center" and "subwoofer", should I: > > a) Just expose "left" and "right" since "rear left" isn't present (the > next in ALSA's list). > > b) Expose all channels until I can cover my four and simply filter out > the ones that aren't present on the server. > > c) Ignore ALSA's list completely and leave it to the user to figure > out what the channel map is. > > d) Something else? > > Input appreciated. I vote for (b). The method is simple enough. Does the server-side configuration change on the fly, or the setup is fixed once after the server-client connection is established? In theory, ALSA controls can dynamically added/removed. But this may rather confuse some applications that don't support the dynamic change of control elements. Takashi ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642