Skip to contentSkip to conversation

Where is /usr/share/alsa/cards/?

DISCUSSION Nicolas Boullis 2 participants 3 messages Nov 18, 2006 – Nov 20, 2006

lore
Share & tools
lore
#0 lore raw

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?

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.

Cheers,

Nicolas

PS: I'm not subscribed so please reply to me directly (M-F-T header set accordingly).

-------------------------------------------------------------------------
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

#1 lore raw

At Sat, 18 Nov 2006 22:07:37 +0100,

Quoted 8 lines · Nicolas Boullis

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.

Quoted 6 lines

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.

Quoted 3 lines

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

#2 lore raw

Hi Takashi,

Quoted 2 lines · Takashi Iwai

I don't think there is no proper way to detect the path.

OK, too bad. :-(

Quoted 3 lines

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.

That'd certainly be nice, but I should first learn how to write complex configure scripts... ;-)

Thanks,

Nicolas

-------------------------------------------------------------------------
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