From: Takashi Iwai Subject: Re: Long-standing 5.1ch huge LFE/rear swap annoyance (ALSA vs. Windows!) Date: Tue, 21 Nov 2006 11:34:23 +0100 Message-ID: References: <20061118013834.GA22785@rhlx01.hs-esslingen.de> <1164031610.1310.276596069@webmail.messagingengine.com> <1164104479.17922.276761381@webmail.messagingengine.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1164104479.17922.276761381@webmail.messagingengine.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Clemens Ladisch Cc: Andreas Mohr , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 21 Nov 2006 11:21:19 +0100, Clemens Ladisch wrote: > > Takashi Iwai wrote: > > Clemens Ladisch wrote: > > > ... > > > and there is not yet an ALSA configuration file for remapping channels > > > on USB devices. > > > ... > > > I'm working on this. > > > > What solution in sight? > > Creating a surround51 device with a route plugin is trivial. > > Selecting device-specific device definitions can be done with a new > card_shortname configuration function and lots of indirections. OK. My initial thought is to use USB IDs, but shortname should be enough, too. For a long term solution, we can create an API for the driver to provide the channel-mapping information. This could be done, for example, by a special read-only control element, or via a new ioctl. IIRC, usb descriptor contains the channel-mapping information, so this process could be (partly) automated instead of device-base configuration. > The biggest problem is dmix. I do no want to impose some default sample > rate/format on unknown devices because this would break most USB > headsets or other unusual devices. I think the best solution would be > to add an option to dmix to automatically select some suitable sample > format when it's first opened. Agreed. For example, we can change the dmix code to accept the rate option as a list instead of an integer. When it's a list, dmix tries to choose the first matching one via hw_params call. Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV