alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* list *all* PCMs
@ 2011-02-08 19:25 Aleksandar Kostadinov
  2011-02-09  7:28 ` Raymond Yau
  2011-02-09 10:14 ` David Henningsson
  0 siblings, 2 replies; 4+ messages in thread
From: Aleksandar Kostadinov @ 2011-02-08 19:25 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: list *all* PCMs
  2011-02-08 19:25 list *all* PCMs Aleksandar Kostadinov
@ 2011-02-09  7:28 ` Raymond Yau
  2011-02-09 10:14 ` David Henningsson
  1 sibling, 0 replies; 4+ messages in thread
From: Raymond Yau @ 2011-02-09  7:28 UTC (permalink / raw)
  To: ALSA Development Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: list *all* PCMs
  2011-02-08 19:25 list *all* PCMs Aleksandar Kostadinov
  2011-02-09  7:28 ` Raymond Yau
@ 2011-02-09 10:14 ` David Henningsson
  2011-02-10  4:36   ` Raymond Yau
  1 sibling, 1 reply; 4+ messages in thread
From: David Henningsson @ 2011-02-09 10:14 UTC (permalink / raw)
  To: Aleksandar Kostadinov; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]

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. ;-)

-- 
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic

[-- Attachment #2: lp652035-use-extended-namehints.patch --]
[-- Type: text/x-patch, Size: 613 bytes --]

Index: alsa-lib-1.0.23/src/conf/alsa.conf
===================================================================
--- alsa-lib-1.0.23.orig/src/conf/alsa.conf	2010-10-03 15:05:47.000000000 -0400
+++ alsa-lib-1.0.23/src/conf/alsa.conf	2010-10-03 15:09:27.000000000 -0400
@@ -54,11 +54,11 @@
 #
 
 # show all name hints also for definitions without hint {} section
-defaults.namehint.showall off
+defaults.namehint.showall on
 # show just basic name hints
 defaults.namehint.basic on
 # show extended name hints
-defaults.namehint.extended off
+defaults.namehint.extended on
 #
 defaults.ctl.card 0
 defaults.pcm.card 0

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: list *all* PCMs
  2011-02-09 10:14 ` David Henningsson
@ 2011-02-10  4:36   ` Raymond Yau
  0 siblings, 0 replies; 4+ messages in thread
From: Raymond Yau @ 2011-02-10  4:36 UTC (permalink / raw)
  To: ALSA Development Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-10  4:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-08 19:25 list *all* PCMs Aleksandar Kostadinov
2011-02-09  7:28 ` Raymond Yau
2011-02-09 10:14 ` David Henningsson
2011-02-10  4:36   ` Raymond Yau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).