Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In linux how can i find what is my sound card path and microphone path? Some application is using /dev/dsp but how to make sure what is mine?

Screenshot

share|improve this question

migrated from stackoverflow.com Jul 14 '11 at 15:20

This question came from our site for professional and enthusiast programmers.

    
This is't a programming question see the faq: stackoverflow.com/faq –  marto Jul 14 '11 at 15:12
    
Because you program using a certain OS doesn't mean any question regarding the OS are 'programming questions' askubuntu.com –  marto Jul 14 '11 at 15:18
    
You have several questions which have been migrated from StackOverflow to other places, you should know this by now. –  marto Jul 14 '11 at 15:31
    
Is there any case like it blocks from other visitors? I don't believe so –  marto Jul 14 '11 at 15:39
    
understand why there are different sections for different types of questions. Maybe you should do more research via google. –  marto Jul 14 '11 at 15:44

2 Answers 2

up vote 2 down vote accepted

/dev/dsp and /dev/mixer are devices for the OSS3 sound system. The device paths are always the same on all systems.

However, due to the many limits of OSS3, almost all modern Linux distributions use ALSA for sound, which doesn't have dsp and mixer devices. It's possible to use OSS emulation in several ways:

  • User-mode, PulseAudio:

    PulseAudio comes with OSS emulation libraries. Run your program through padsp:

    padsp ./sjphone
    
  • User-mode, direct ALSA:

    Install the alsa-oss package, then run your program through aoss:

    aoss ./sjphone
    

    This works on PulseAudio systems too (although maybe not as well as padsp).

  • Kernel-mode:

    Load the snd-pcm-oss and snd-mixer-oss kernel modules, then run your program normally:

    sudo modprobe snd-pcm-oss
    sudo modprobe snd-mixer-oss
    ./sjphone
    

    This method is not recommended – especially avoid it on PulseAudio systems, since kernel OSS emulation may conflict with how PulseAudio manages the hardware. User-mode padsp or aoss is usually the better choice.

share|improve this answer
    
Thank you. Its very nice answer and very confusing one of mine. I used "aoss ./sjphone", and i can use the slider of microphone only, but i cant use the speaker slider, which is disabled still. Is that has to do with aoss still or ./sjphone itself? –  YumYumYum Jul 14 '11 at 22:10
    
Thanks again. Its just working super cool. You are genius!! –  YumYumYum Jul 14 '11 at 22:13

/dev/dsp is the standard device in Linux for outputting or recording sound. There isn't a special device path for your soundcard or microphone.

share|improve this answer
    
But as you can see here it using /dev/dsp. But i do not have any mic/headphone sounds for this. What else i can apply instead of /dev/dsp in that case? e.g: i.stack.imgur.com/7WPVw.png –  YumYumYum Jul 14 '11 at 17:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.