Skip to contentSkip to conversation

Getting the ALSA driver version

DISCUSSION Christian Esken 2 participants 2 messages Aug 14, 2005 – Aug 15, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

for upcoming versions of KMix (the KDE Mixer Application), it will be possible to "tune" KMix's visual appearance according to:

(1) the installed sound card
(2) the users preference
(3) the installed/running driver
(4) the driver version

While I am able to find out (1), (2) and (3), I haven't been able to find out (4): The runtime ALSA version.
More precisely, I am interested in the runtime ALSALIB version (but I reckon it is the same as the ALSA driver version in normal installations).

I cannot use /usr/include/alsa/version.h , because this is the version on which the application is compiled (but not the runtime version).

Reading and parsing /proc/asound/version seems pretty crude, and I would like to avoid it, as it is error-prone.

Have I missed anything, or is it just not possible at the moment?

Chris

Signature · 9 lines
Is UNIX ready for the Desktop? See http://www.kde.org
KDE Developer: [email protected]


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
#1 lore raw
Quoted 10 lines · Christian Esken

Hello,

for upcoming versions of KMix (the KDE Mixer Application), it will be possible to "tune" KMix's visual appearance according to:

(1) the installed sound card
(2) the users preference
(3) the installed/running driver
(4) the driver version

Quoted 4 lines

While I am able to find out (1), (2) and (3), I haven't been able to find out (4): The runtime ALSA version. More precisely, I am interested in the runtime ALSALIB version (but I reckon it is the same as the ALSA driver version in normal installations).

Look for snd_asoundlib_version() .

Jaroslav

-----
Jaroslav Kysela <[email protected]>

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf