Skip to contentSkip to conversation

modules: alsa or oss?

DISCUSSION Fernando Pablo Lopez-Lezcano 2 participants 4 messages Mar 27, 2003

lore
Share & tools
lore
#0 lore raw

Is there a way to know if a kernel module (loaded or not) is an alsa or oss module? I know about modinfo but the information it provides does not allow you to find out which api the module supports. In fact, is there a way to know if a module is a _sound_ driver?? (I would like to be able to list all oss modules that are currently loaded).

-- Fernando

-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

#1 lore raw
Quoted 5 lines

Is there a way to know if a kernel module (loaded or not) is an alsa or oss module? I know about modinfo but the information it provides does not allow you to find out which api the module supports. In fact, is there a way to know if a module is a _sound_ driver?? (I would like to be able to list all oss modules that are currently loaded).

check if it depends on soundcore, which is alan cox's "multiplexer" designed to support different audio APIs within the kernel. both OSS and ALSA depend upon it, and hence all their modules do (except the memory allocation stuff that is written to depend on no other modules; OSS doesn't have this, AFAIK)

-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

#2 lore raw
Quoted 11 lines
Quoted 5 lines

Is there a way to know if a kernel module (loaded or not) is an alsa or oss module? I know about modinfo but the information it provides does not allow you to find out which api the module supports. In fact, is there a way to know if a module is a _sound_ driver?? (I would like to be able to list all oss modules that are currently loaded).

check if it depends on soundcore, which is alan cox's "multiplexer" designed to support different audio APIs within the kernel. both OSS and ALSA depend upon it, and hence all their modules do (except the memory allocation stuff that is written to depend on no other modules; OSS doesn't have this, AFAIK)

Good idea... do you know how to do that? I suppose I could parse the output of lsmod but maybe there is another incantation I could use...

-- Fernando

-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

#3 lore raw
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Is there a way to know if a kernel module (loaded or not) is an alsa or oss module? I know about modinfo but the information it provides does not allow you to find out which api the module supports. In fact, is there a way to know if a module is a _sound_ driver?? (I would like to be able to list all oss modules that are currently loaded).

Quoted 8 lines
Quoted 5 lines

check if it depends on soundcore, which is alan cox's "multiplexer" designed to support different audio APIs within the kernel. both OSS and ALSA depend upon it, and hence all their modules do (except the memory allocation stuff that is written to depend on no other modules; OSS doesn't have this, AFAIK)

Good idea... do you know how to do that? I suppose I could parse the output of lsmod but maybe there is another incantation I could use...

well, depmod computes the dependencies. as far as i can see, there seems to be no way to direct its output, but i think you can run depmod on a single module. might be worth checking into.

-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en