I have been trying to use the snd-usb-audio ALSA
driver to capture sound from the built-in microphone
on my webcam:

yukka root # lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 046d:0850 Logitech, Inc.
QuickCam Web

So far I have not managed to get any sound.

Apart from the webcam, I also have a PCI FM801-based
soundcard. This ALSA driver snd-fm801 is loaded and
working.

I am using a patched 2.4.20 kernel on a Gentoo Linux
system. I had to use the soundcore.2.4.20.patch from
the ALSA utils/patches directory to get devfs to
create the device for the webcam.

My ALSA setup is as follows:
# cat /etc/modules.d/alsa
alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 snd-fm801
alias snd-card-1 snd-usb-audio
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
options snd snd_major=116 snd_cards_limit=2
options snd-fm801 index=0
options snd-usb-audio index=1


When I do

# modprobe snd-usb-audio

 ... dmesg gives this output:

 usb.c: registered new driver snd-usb-audio
 USB Quickcam Class 1 SubClass 1 idVendor 46d
idProduct 850
 ALSA ../alsa-kernel/usb/usbaudio.c:1980: 2:2:0 :
AS_GENERAL descriptor not found

and I see these devices:

yukka root # ll /dev/sound/
total 0
drwxr-xr-x    1 root     root            0 Jan  1 
1970 .
drwxr-xr-x    1 root     root            0 Jan  1 
1970 ..
crw-rw----    1 root     audio     14,   4 Jan  1 
1970 audio
crw-rw----    1 root     audio     14,  20 Jan  1 
1970 audio1
crw-------    1 dan      audio     14,  10 Jan  1 
1970 dmfm
crw-------    1 dan      audio     14,   9 Jan  1 
1970 dmmidi
crw-rw----    1 root     audio     14,   3 Jan  1 
1970 dsp
crw-rw----    1 root     audio     14,  19 Jan  1 
1970 dsp1
crw-------    1 dan      audio     14,   2 Jan  1 
1970 midi
crw-rw----    1 root     audio     14,   0 Jan  1 
1970 mixer
crw-rw----    1 root     audio     14,  16 Jan  1 
1970 mixer1

but if I try and use the device to record with (or use
gnomemeeting), I get no sound. In fact gnomemeeting
reports that it is impossible to open the device for
recording.

When I try to record from the device, I get an empty
file:

# arecord -D plughw -t wav -d 5 test.wav

test.wav then contains no data.



Any ideas?

Dan


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to