User Tools

Site Tools


music_on_linux:alsa_pcm_device_names

This is an old revision of the document!


ALAS PCM device names

aplay에서 소리 재생을 할 때 '-d PCM_NAME' 파라미터를 이용하여 사용할 장치를 지정하게 된다. 여기에 쓸 수 있는 이름은 무엇이 있는가? 오디오 기기가 여럿 있으면 어떻게 해야 하는가? 이것이 생각보다 까다롭다.

<html> <!– HTML generated using hilite.me –><div style=“background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;”><pre style=“margin: 0; line-height: 125%”>-l, –list-devices

  List all soundcards and digital audio devices

-L, –list-pcms

  List all PCMs defined

-D, –device<span style=“color: #333333”>=</span>NAME

  Select PCM by name

</pre></div> </html>

Using aplay and choose which output on card to use

What do ALSA devices like “hw:0,0” mean? How do I figure out which to use?

https://unix.stackexchange.com/questions/96025/alsa-jack-card-and-device-names-different-naming-conventions

https://www.alsa-project.org/main/index.php/Asoundrc#The_naming_of_PCM_devices

music_on_linux/alsa_pcm_device_names.1616725284.txt.gz · Last modified: 2021/03/26 02:21 by hyjeong