Hello

Lee Revell a écrit :
> On Wed, 2006-07-05 at 20:04 +0200, [EMAIL PROTECTED] wrote:
> 
>>Hello,
>>
>>
>>*** description :
>>I want to record wav files from several *identical* (except for serial 
>>number) usb audio soundcard.
>>
>>My sound cards must appear in the right order. For example, physical 
>>card called n°1 must always correspond to the same name 
>>(/dev/snd/pcmC1D0c for example), whatever is the pluging order.
>>
>>This part is done easily with UDEV and is working.
>>
>>
>>*** question :
>>Now my problem is that no one seems to use /dev/snd/pcmCxDx to access 
>>cards ?
>>
>>For example, I can't find how to tell to arecord to use 
>>/dev/snd/pcmC1D0c device.
>>arecord use -D parameter with card and device number (-D hw:1,0 for 
>>example), but these parameters are *not* affected by UDEV. So my UDEV 
>>rules are useless for arecord.
>>
>>Same for other programs I found : ecasound, ... each program seems to 
>>access the cards using hw:x,x parameters and not the /dev name.
>>
> 
> 
> That's not how ALSA works.  Apps are not supposed to directly
> access /dev/snd/pcm*.  The interface is via alsa-lib.
> 
Hum OK. But then, what is the purpose of the /dev/snd/pcm* devices ?

> 
>>*** in other words :
>>I just want to know how to record a wav file from a given physical card 
>>; knowing that I have up to 5 identical cards except for the serial number ?
>>
> 
> You should be able to access the cards by serial number.
> 
> What are the contents of "/proc/asound/cards"?
> 

*** Here is the content of /dev/asound/cards :
0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
                      Intel 82801DB-ICH4 with AD1981B at 0xffa00400, irq 17
1 [D01            ]: USB-Audio - 01
                      ERECA USB AUDIO CODEC V1.00 01 at 
usb-0000:00:1d.2-1.1, full speed
2 [D02            ]: USB-Audio - 02
                      ERECA USB AUDIO CODEC V1.00 02 at 
usb-0000:00:1d.2-1.2, full speed
3 [D00            ]: USB-Audio - 00
                      ERECA USB AUDIO CODEC V1.00 00 at 
usb-0000:00:1d.2-1.3, full speed


Sorry about the mistake : this not (only ?) the serial number which is 
different but also the card name ("D01", "D02" and "D00")

so now I am able to record wav files from card n°1 using this command 
line for example :
arecord -D hw:D01 -d 3 -f S16_LE -c 1 -r 8000 -t wav test.wav

Just out of curiosity : what would have been the command line if only 
the serial number changed ?


Thanks a lot for your help,
                                        Xavier


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to