From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Q:codec based config file? Date: Mon, 07 Mar 2005 14:41:02 +0100 Message-ID: References: <92C0412E07F63549B2A2F2345D3DB515F7D66B@cm-msg-02.cmedia.com.tw> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Received: from Cantor.suse.de (mail-ex.suse.de [195.135.220.2]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 3DC001CE for ; Mon, 7 Mar 2005 14:41:18 +0100 (MET) In-Reply-To: <92C0412E07F63549B2A2F2345D3DB515F7D66B@cm-msg-02.cmedia.com.tw> 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: cltien@cmedia.com.tw Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 3 Mar 2005 06:40:22 +0800, Tien, C.L. wrote: > > Hi, > > There are chip-based config file in /usr/share/alsa/cards, but they are based on driver name. > For example all USB audio will need to search USB-Audio.conf, while AC97 codec with ICH4 > will need to search ICH4.conf. > > Since more and more codecs (USB, AC97 and HDA) can appear on the same bus, can this be changed > to support config file based on the codec id? There are many codecs with different > capabilities that may needs separate config files. Yes, that's a problem right now. The usb, ac97 and hda-codec drivers already add an ID string to card_info.components list so that user-space lib/app can look at it. So, we'll need just a few hook up in alsa-lib to look up the ID and checks the preferred device/codec-specific config in prior to the card (driver name) config. I thought I'll work on this issue after 1.0.9 release, but of course, pathes are always welcome ;) Takashi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click