[alsa-devel] list *all* PCMs
Hello,
I searched through the list archive and I can't find a way to list all PCM devices. aplay/arecord -L show only these that have hint show on. Is there such command that lists all PCMs?
While on it, it is also hard to obtain a list of capabilities of a device. For example I don't see a way user can obtain the supported sample rates by a sound device. I have found a program (see it attached to http://www.spinics.net/linux/fedora/alsa-user/msg07230.html) that seems to work fine. Could that program or similar functionality be implemented in arecord/aplay so user can easily check device capabilities?
Thank you, Aleksandar
P.S. please cc me in replies because I'm not a subscriber
2011/2/9 Aleksandar Kostadinov akostadinov@gmail.com
Hello,
I searched through the list archive and I can't find a way to list all PCM devices. aplay/arecord -L show only these that have hint show on. Is there such command that lists all PCMs?
aplay -l
On 2011-02-08 20:25, Aleksandar Kostadinov wrote:
Hello,
I searched through the list archive and I can't find a way to list all PCM devices. aplay/arecord -L show only these that have hint show on. Is there such command that lists all PCMs?
The hw: and plughw: devices do not show up by default, which is why Ubuntu has a distro patch that turns them on. I'm attaching that patch.
While on it, it is also hard to obtain a list of capabilities of a device. For example I don't see a way user can obtain the supported sample rates by a sound device. I have found a program (see it attached to http://www.spinics.net/linux/fedora/alsa-user/msg07230.html) that seems to work fine. Could that program or similar functionality be implemented in arecord/aplay so user can easily check device capabilities?
Thank you, Aleksandar
P.S. please cc me in replies because I'm not a subscriber
P.S. please subscribe, so we don't have to cc you. ;-)
2011/2/9 David Henningsson david.henningsson@canonical.com
On 2011-02-08 20:25, Aleksandar Kostadinov wrote:
Hello,
I searched through the list archive and I can't find a way to list all PCM devices. aplay/arecord -L show only these that have hint show on. Is there such command that lists all PCMs?
The hw: and plughw: devices do not show up by default, which is why Ubuntu has a distro patch that turns them on. I'm attaching that patch.
"defaults.namehint.extended on" also expose another bug of namehint which show "dsnoop" in "aplay -L" and "dmix" in "arecord -L"
dsnoop:CARD=Intel,DEV=0 HDA Intel, AD198x Analog Direct sample snooping device dsnoop:CARD=Intel,DEV=1 HDA Intel, AD198x Digital Direct sample snooping device dsnoop:CARD=Intel,DEV=2 HDA Intel, AD198x Headphone Direct sample snooping device
participants (3)
-
Aleksandar Kostadinov
-
David Henningsson
-
Raymond Yau