Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-02-2012, 02:14 AM   #1
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
How to link sound-device names to the sound-driver?

Hi all.

I have actually two questions ::

How can one get the know the sound-device name used by a particular sound-driver?

For eg., there are multiple entries in "/dev/snd" "virtual" filesystem on my machine; however, I am not sure as to which device-file is used by which driver?

I guess, there would be a way to do this via gstreamer-api; however, I am not sure. Doing it via a shell-script would be awesome

Secondly, (more importantly), how can one "programmatically" find out as to which sound-device is functional?

I will take an example here ::

When I try "gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink", I am able to play the mp3 fine on one machine, but not on another, even though doing "pulseaudio --check" on both machines, gives "0" as the exit status.

So, in summary, I would like to know as to which all sound-device(s) is(are) functional, and then accordingly use the corresponding sound-driver(s) in my application.

Will be grateful for a reply.

Thanks and Regards,
Old 06-03-2012, 08:06 AM   #2
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
To list what is active :

lsmod --> Shows the modules

lspci ---> will list the sound card.

However it sounds like you are missing a plugin or codec. I would dig a little on this site to be sure.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sound card device driver not installing aplusguy333 Linux - Newbie 1 08-15-2011 08:16 PM
Need help with device driver programming for my sound card dev_d Linux - Hardware 4 02-24-2010 11:17 AM
No Sound FC5, device detected (Power Mac sound) paz117 Linux - Hardware 8 08-07-2006 05:10 AM
Getting rid of sound device driver, adding modem calimer Linux - Hardware 12 12-12-2005 03:07 PM
no sound from cd player, good sound from audio device test fmickel Linux - Hardware 5 06-04-2004 01:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration