GNU/Linux / Sound – WhyNotWiki

Ethan Caldwell Blog
  • Page
  • Discussion
  • View source
  • History

< GNU/Linux

http://linux.dsplabs.com.au/lsof-grep-snd-how-to-free-a-linux-sound-device-p25/. Retrieved on 2007-05-11 11:18.

… One may ask how to find out which program, or programs, have gained access to the audio device? That is where a little knowledge of Linux tools, and especially the lsof utility, comes in handy. Since we know where in the /dev tree the devices are mapped under ALSA we can use lsof, which stands for `list open files’, to locate open sound device files. lsof will also tell us which programs have opened them. So, lets run lsof and grep snd from its output to find out which sound devices are open.

lsof |grep snd