All of lore.kernel.org
 help / color / mirror / Atom feed
* Detecting runtime ALSA library version
@ 2004-04-06 20:36 Glenn Maynard
  2004-04-06 21:04 ` Paul Davis
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Maynard @ 2004-04-06 20:36 UTC (permalink / raw)
  To: alsa-devel

I can't find any way to detect the running ALSA version, for diagnostic
purposes.  It can't be derived from the library name, which doesn't seem
to change (it's always "libasound.so.2.0.0" here, which has no relation
to the actual version).

It's frustrating to receive bug reports like

  https://sourceforge.net/tracker/?func=detail&atid=421366&aid=930335&group_id=37892
  https://sourceforge.net/tracker/download.php?group_id=37892&atid=421366&file_id=82701&aid=930335

and not being able to tell what version of alsa-lib is in use.

I'd recommend an entry point eg. "const char *snd_lib_version()" to get
this information.

As an aside: is it safe to assume that if /proc/asound/ doesn't exist,
ALSA is not in use?  It'd be useful to short circuit ALSA initialization
for OSS people, since they often have old, broken versions of alsa-lib
installed.

(I know that the converse isn't true--it's possible to load the basic
"snd" module, not load anything else, and then load OSS modules,
resulting in a working OSS environment but /proc/asound/ existing.)

-- 
Glenn Maynard


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-06 22:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-06 20:36 Detecting runtime ALSA library version Glenn Maynard
2004-04-06 21:04 ` Paul Davis
2004-04-06 21:10   ` Glenn Maynard
2004-04-06 22:16     ` James Courtier-Dutton
2004-04-06 22:38       ` Glenn Maynard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.