Skip to contentSkip to conversation

what does alsaconf do?

DISCUSSION Adrian McMenamin 3 participants 6 messages Jan 28, 2006 – Jan 31, 2006

lore
Share & tools
lore
#0 lore raw

I have been looking through the sources because I cannot get it to run properly on my set up and I may need to rewrite it or patch it and possibly also modinfo and wonder if someone could give me a short summary?

My setup is pretty limited - ash (from busybox) not bash, uclibc not glibc, no awk, no dialog, buildroot supplied modinfo does not appear to give the output alsaconf is looking for etc...

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#1 lore raw
Quoted 4 lines · Adrian McMenamin

I have been looking through the sources because I cannot get it to run properly on my set up and I may need to rewrite it or patch it and possibly also modinfo and wonder if someone could give me a short summary?

I would say in essence it tries to:
1) Detect your audio hardware (usually by scanning a system bus)
2) Update /etc so the appropriate modules are loaded upon boot. This part depends on distro and kernel version.

Quoted 3 lines

My setup is pretty limited - ash (from busybox) not bash, uclibc not glibc, no awk, no dialog, buildroot supplied modinfo does not appear to give the output alsaconf is looking for etc...

If your hardware does not vary an alternative is to avoid alsaconf and hardcode the entries in /etc/modules.conf (or whatever you use). It would be quite substantial to rewrite alsaconf for your setup. If you really need such a tool maybe it would be better to write a ucalsaconf. Hard to say really, as I have no clue about the actual hardware you have.

Signature · 12 lines
Martin
---------------------------------------------------------------------------
30 years from now GNU/Linux will be as redundant a term as MERT/UNIX is 
today. - Martin Habets
---------------------------------------------------------------------------


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
#2 lore raw
Quoted 10 lines · Martin Habets

On Sat, Jan 28, 2006 at 01:58:44PM +0000, Adrian McMenamin wrote:

If your hardware does not vary an alternative is to avoid alsaconf and hardcode the entries in /etc/modules.conf (or whatever you use). It would be quite substantial to rewrite alsaconf for your setup. If you really need such a tool maybe it would be better to write a ucalsaconf. Hard to say really, as I have no clue about the actual hardware you have.

Well, it is a Dreamcast (SH4, 16 MB RAM, nfsroot for filesystem though Ramdisk is also usable)

To be honest I just want to concentrate on the driver. But aplay, which I planned to use for a test, appears to fail without an alsa.conf so I am a bit stuck.

When you say hardcode the entries in modules.conf do you mean alsaconf just specifies which modules to load?

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#3 lore raw

At Sun, 29 Jan 2006 12:51:25 +0000,

Quoted 13 lines · Adrian McMenamin
Quoted 10 lines · Martin Habets

On Sat, Jan 28, 2006 at 01:58:44PM +0000, Adrian McMenamin wrote:

If your hardware does not vary an alternative is to avoid alsaconf and hardcode the entries in /etc/modules.conf (or whatever you use). It would be quite substantial to rewrite alsaconf for your setup. If you really need such a tool maybe it would be better to write a ucalsaconf. Hard to say really, as I have no clue about the actual hardware you have.

Quoted 6 lines

Well, it is a Dreamcast (SH4, 16 MB RAM, nfsroot for filesystem though Ramdisk is also usable)

To be honest I just want to concentrate on the driver. But aplay, which I planned to use for a test, appears to fail without an alsa.conf so I am a bit stuck.

I think you're confused between alsa.conf file and alsaconf script. They have nothing to do with each other.

alsa.conf is usually located at /usr/share/alsa (depending on configure option of alsa-lib), which defines the root configuration. For example, the "default" PCM or whatever is defined there. (More precisely, it's defined in another file included from this root file.)

As Martin pointed, alsaconf sets up the _module_ configuration. This is irrelevant from the library configuration files.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#4 lore raw
Quoted 18 lines · Takashi Iwai

At Sun, 29 Jan 2006 12:51:25 +0000,

Quoted 11 lines · Adrian McMenamin
Quoted 9 lines · Martin Habets

On Sat, Jan 28, 2006 at 01:58:44PM +0000, Adrian McMenamin wrote:

If your hardware does not vary an alternative is to avoid alsaconf and hardcode the entries in /etc/modules.conf (or whatever you use). It would be quite substantial to rewrite alsaconf for your setup. If you really need such a tool maybe it would be better to write a ucalsaconf. Hard to say really, as I have no clue about the actual hardware you have.

I think you're confused between alsa.conf file and alsaconf script. They have nothing to do with each other.

Quoted 8 lines

alsa.conf is usually located at /usr/share/alsa (depending on configure option of alsa-lib), which defines the root configuration. For example, the "default" PCM or whatever is defined there. (More precisely, it's defined in another file included from this root file.)

As Martin pointed, alsaconf sets up the _module_ configuration. This is irrelevant from the library configuration files.

Fair enough. But where do I get my alsa.conf from then? :)

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#5 lore raw

At Tue, 31 Jan 2006 17:12:18 +0000,

Quoted 25 lines · Adrian McMenamin
Quoted 23 lines · Takashi Iwai

At Sun, 29 Jan 2006 12:51:25 +0000,

Quoted 11 lines · Adrian McMenamin
Quoted 9 lines · Martin Habets

On Sat, Jan 28, 2006 at 01:58:44PM +0000, Adrian McMenamin wrote:

If your hardware does not vary an alternative is to avoid alsaconf and hardcode the entries in /etc/modules.conf (or whatever you use). It would be quite substantial to rewrite alsaconf for your setup. If you really need such a tool maybe it would be better to write a ucalsaconf. Hard to say really, as I have no clue about the actual hardware you have.

I think you're confused between alsa.conf file and alsaconf script. They have nothing to do with each other.

alsa.conf is usually located at /usr/share/alsa (depending on configure option of alsa-lib), which defines the root configuration. For example, the "default" PCM or whatever is defined there. (More precisely, it's defined in another file included from this root file.)

Quoted 5 lines
Quoted 3 lines

As Martin pointed, alsaconf sets up the _module_ configuration. This is irrelevant from the library configuration files.

Fair enough. But where do I get my alsa.conf from then? :)

It's included in alsa-lib tarball. The whole alsa-lib/src/conf will be copied to /usr/share/alsa.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642