LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ALSA Config for USB Microphone (https://www.linuxquestions.org/questions/linux-newbie-8/alsa-config-for-usb-microphone-848272/)

ganeshbms 12-04-2010 02:54 AM

ALSA Config for USB Microphone
 
Hi All,

I am using USB Microphone for Audio capture over a board.I want to test audio record using ALSA arecord utility.But, USB microphone is not getting listed in "arecord -L" command.

USB microphone is getting detected as second sound card as below.

# cat /proc/asound/cards
0 [omap3evm ]: twl4030 - omap3evm
omap3evm (twl4030)
1 [Q9000 ]: USB-Audio - QuickCam Pro 9000
Logitech, Inc. QuickCam Pro 9000 at usb-musb_hdrc-1.4, high speed

But, If I do "arecord -L",it is listing only default first card as below

# alsa_arecord -L
default:CARD=omap3evm
omap3evm,
Default Audio Device
null
Discard all samples (playback) or generate zero samples (capture)

Could anybody help me to list my second sound card in arecord PCM device list..??

Do I need to do something in alsa.conf file...??


Regards,
Ganesh

GlennsPref 12-04-2010 08:12 PM

Quote:

Hi Ganesh, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 4 million posts to search it's possible the answer has been given.
:)
I have a usb soundcard, and had similar problems when I tested it.

I fixed it by turning off the onboard sound chip in bios.

But there are other ways to change the preference, but with the driver modules instead.

The text file, /etc/modprobe.conf...may list the modules loaded at boot time, eg,
Code:

options snd_usb_audio enable=1 index=0 vid=0582 pid=00e7 id=EDIROL
alias sound-slot-0 snd_usb_audio

to find out your hardware address (vid and pid) type
Code:

lsusb
to find the module type
Code:

lsmod
, (should be quite a list),

shorten it by grepping for specifics, like sound, snd, audio, etc.

on my system...
Code:

glenn@GamesBox:~$ lsmod | grep snd
snd_usb_audio        107687  3
snd_hwdep              6900  1 snd_usb_audio
snd_usbmidi_lib        20926  1 snd_usb_audio
snd_rawmidi            25013  1 snd_usbmidi_lib
snd_seq_dummy          1806  0
snd_seq_oss            34806  0
snd_seq_midi_event      7355  1 snd_seq_oss
snd_seq                61015  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          7098  4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            47375  0
snd_pcm                96125  3 snd_usb_audio,snd_pcm_oss
snd_timer              23555  2 snd_seq,snd_pcm
snd_page_alloc          8716  1 snd_pcm
snd_mixer_oss          17620  1 snd_pcm_oss
snd                    75507  17 snd_usb_audio,snd_hwdep,snd_usbmidi_lib,snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore              7869  1 snd
usbcore              212405  12 snd_usb_audio,option,usb_wwan,gspca_spca561,gspca_main,usbhid,usbserial,usb_storage,snd_usbmidi_lib,ohci_hcd,ehci_hcd
glenn@GamesBox:~$

The version of your kernel (type uname -a) and distribution may also affect the outcome of these ls commands.

You need to be root to save any changes to /etc/modprobe.conf

see how you go, regards Glenn


All times are GMT -5. The time now is 06:21 AM.