LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-02-2012, 01:14 AM   #1
ajaygarg
Member
 
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 ::

a)
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



b)
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,
Ajay
 
Old 06-03-2012, 07:06 AM   #2
jv2112
Member
 
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.


http://fedoraproject.org/wiki/Instal...ndo_MP3_plugin

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


Reply


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 07:16 PM
Need help with device driver programming for my sound card dev_d Linux - Hardware 4 02-24-2010 10:17 AM
No Sound FC5, device detected (Power Mac sound) paz117 Linux - Hardware 8 08-07-2006 04:10 AM
Getting rid of sound device driver, adding modem calimer Linux - Hardware 12 12-12-2005 02:07 PM
no sound from cd player, good sound from audio device test fmickel Linux - Hardware 5 06-04-2004 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 PM.

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