From: Takashi Iwai Subject: Re: Where is /usr/share/alsa/cards/? Date: Mon, 20 Nov 2006 11:54:49 +0100 Message-ID: References: <20061118210734.GE9190@home> 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: <20061118210734.GE9190@home> 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: Nicolas Boullis Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Sat, 18 Nov 2006 22:07:37 +0100, Nicolas Boullis wrote: > > Hi, > > I'm working on a driver for some hardware MPEG decompression boards, > with an ALSA driver for the audio part of the chip. For a good support > with most applications, I need a special configuration for this driver, > that would be in /usr/share/alsa/cards/EM8300.conf. > > Unfortunately, this location varies with the distros. I heard that it > was somewhere in /etc for RedHat and Fedora. Moreover, alsa-lib maight > be installed by some user in their home directory. > > That's why I'd like to know if there is some programmatic way to find > out where I should install my configuration. Any idea? I don't think there is no proper way to detect the path. > If there is none, I guess I could default to installing in > /usr/share/alsa/cards and let the user specify another location through > my ./configure script if needed. That would be a suitable option. In addition, you can add an automatic search of the path (i.e. checking /usr/share/alsa/alsa.conf, /etc/alsa/alsa.conf, ...) in configure script. 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