>Could you explain to me how to do the following: the user has a TV capture
>card with audio-out that is plugged in into one of the sound cards
>installed in the system. I need to ask user which card and which input
>s/he plugged the TV audio into. How do I do that ? (Preferably without the
>user messing around with configuration files or entering names from
>keyboard).

i don't know. i am not sure why you are so averse to having the user
use their keyboard. you can put "default" in the keybd entry to start
it up; if they have only 1 soundcard, that will be enough; if they
have more cards and don't have an ~/.asoundrc file, that will also be
enough; if they do have an ~/.asoundrc file, then they will know what
to type.

i think there is a way to get the list of PCM names defined there,
however. check aplay, since "aplay -L" does this. i don't think it
returns just a list of names, however - the method it uses accesses
the entire configuration list for ALSA devices, PCM, MIDI and other.

ALSA is and will be encouraging the existence of ~/.asoundrc (and
system-wide equivalent) files. I would expect to see a front end for
creating and editing them emerge within 6 months or so of ALSA's
adoption into the kernel.

Without them, "plug:dev,subdev" will work as a string you can use for
the `subdev' of `dev', accessed with maximum flexibility (no
constraints on channel count, sample format etc.). "hw:dev,subdev"
gives the equivalent, but the devices are totally
hardware-constrained. I don't know how to count the number of
physically installed cards in ALSA 0.9. 

but please note the the number of physically installed cards may not
be the same as the number of PCM devices the user wants to have
available, for several reasons.

--p

_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to