deloptes <delop...@gmail.com> writes: > Rodolfo Medina wrote: > >> I just bought an external USB audio card. I plugged it into the USB port >> of my >> PC and plugged a 3.5mm jack microphone into the `mic' input of the card. >> It is shown in lsusb: >> >> $ lsusb >> Bus 002 Device 005: ID 17ef:602e Lenovo >> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard >> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio >> Controlle Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. >> RTS5129 Card Reader Bus 001 Device 002: ID 0438:7900 Advanced Micro >> Devices, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root >> hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub >> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> >> >> and also in arecord: >> >> $ arecord --list-devices >> **** List of CAPTURE Hardware Devices **** >> card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 >> rev3 Analog] >> Subdevices: 0/1 >> Subdevice #0: subdevice #0 >> card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog >> [ALC662 rev3 Alt Analog] >> Subdevices: 1/1 >> Subdevice #0: subdevice #0 >> card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] >> Subdevices: 1/1 >> Subdevice #0: subdevice #0 >> >> Besides, I ran alsamixer, selected the USB card and unmuted everything. >> But >> then, when I try to record, no sound is recorded. I do: >> >> $ sox -t alsa hw:2,0 output.wav >> >> , or >> >> $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav >> >> , or also within Audacity. But nothing, my voice is not recorded. Please >> help whoever can. > > > A short howto I wrote years ago > > 1) find out cards and inputs > > shell> cat /proc/asound/cards > 0 [Intel ]: HDA-Intel - HDA Intel > HDA Intel at 0xff950000 irq 22 > 1 [HVR900 ]: USB-Audio - WinTV HVR-900 > WinTV HVR-900 at usb-0000:00:1a.7-3, high speed > 2 [Webcam ]: USB-Audio - Philips SPC 1000NC Webcam > Philips CE Philips SPC 1000NC Webcam at > usb-0000:00:1a.7-5.4, high speed > > => I'm going to use the Webcam built in mic => card # 2 > > 2) find out the input > > shell> cat /proc/asound/devices > 0: [ 0] : control > 1: : sequencer > 6: [ 0- 2]: hardware dependent > 7: [ 0- 3]: hardware dependent > 16: [ 0- 0]: digital audio playback > 17: [ 0- 1]: digital audio playback > 19: [ 0- 3]: digital audio playback > 24: [ 0- 0]: digital audio capture > 32: [ 1] : control > 33: : timer > 56: [ 1- 0]: digital audio capture > 64: [ 2] : control > 88: [ 2- 0]: digital audio capture > > => my input is the capture on the second card > > 88: [ 2- 0]: digital audio capture > > 3) so no we can test the mic > > shell> arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null
Here are my outputs: $ cat /proc/asound/cards 0 [HDMI ]: HDA-Intel - HDA ATI HDMI HDA ATI HDMI at 0xfea64000 irq 39 1 [Generic ]: HDA-Intel - HD-Audio Generic HD-Audio Generic at 0xfea60000 irq 16 2 [Device ]: USB-Audio - USB PnP Sound Device C-Media Electronics Inc. USB PnP Sound Device at usb-0000:00:12.0-1.3, full spe $ cat /proc/asound/devices 2: [ 0] : control 3: [ 0- 3]: digital audio playback 4: [ 0- 0]: hardware dependent 5: [ 1] : control 6: [ 1- 0]: digital audio playback 7: [ 1- 0]: digital audio capture 8: [ 1- 2]: digital audio capture 9: [ 1- 0]: hardware dependent 10: [ 2] : control 11: [ 2- 0]: digital audio playback 12: [ 2- 0]: digital audio capture 33: : timer $ arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Plug PCM: Route conversion PCM (sformat=S16_LE) Transformation table: 0 <- 0 1 <- 0 Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5513 period_time : 125011 tstamp_mode : NONE tstamp_type : MONOTONIC period_step : 1 avail_min : 5513 period_event : 0 start_threshold : 1 stop_threshold : 22050 silence_threshold: 0 silence_size : 0 boundary : 6206523236469964800 Slave: Hardware PCM card 2 'USB PnP Sound Device' device 0 subdevice 0 Its setup is: stream : CAPTURE access : MMAP_INTERLEAVED format : S16_LE subformat : STD channels : 1 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5513 period_time : 125011 tstamp_mode : NONE tstamp_type : MONOTONIC period_step : 1 avail_min : 5513 period_event : 0 start_threshold : 1 stop_threshold : 22050 silence_threshold: 0 silence_size : 0 boundary : 6206523236469964800 appl_ptr : 0 hw_ptr : 0 #+ | 00%^C Aborted by signal Interrupt... #+ | 00% Thanks, Rodolfo