What’s interesting is that pulseaudio can detect input from my mic when it is plugged into my analog port at the front of my PC. So for certain it the analog mic works just fine. It’s just configuring it to work with Audacity that I am having trouble with.
I forgot to mention in my initial post that I have had a usb audio card plugged into my computer but haven’t been able to get it working with my mic either. But thanks to your reminder, nosbor73, I Googled ‘usb audio input ubuntu’ and came across some helpful documentation named, UbuntuStudio/UsbAudioDevices.
The guide is prefaced with,
This document describes a method of maintaining ALSA device numbers for USB devices, including MIDI devices. It is not intended for beginning users, as the configuration is relatively arcane.
It’s dense and I don’t understand exactly how it could help me. But for what it’s worth, here is some output from various commands they recommend.
Here is evidence that my usb audio card is connected and detected by ALSA:
Code:
(gnull@raring)-(0)-(11:22 PM Sat Feb 01)->
m-(~)-(56 files, 17Mb)--> cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xdfff8000 irq 45
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xddffc000 irq 17
2 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-0000:00:1a.1-1, full speed
(gnull@raring)-(0)-(11:23 PM Sat Feb 01)->
m-(~)-(56 files, 17Mb)-->
Here is lsusb briefly:
Code:
(gnull@raring)-(0)-(11:23 PM Sat Feb 01)->
m-(~)-(56 files, 17Mb)--> lsusb
Bus 003 Device 002: ID 413c:2105 Dell Computer Corp. Model L100 Keyboard
Bus 004 Device 002: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Bus 005 Device 002: ID 0461:4d22 Primax Electronics, Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
(gnull@raring)-(0)-(11:23 PM Sat Feb 01)->
m-(~)-(56 files, 17Mb)-->
Here is the same command with verbose
Code:
(gnull@raring)-(0)-(11:46 PM Sat Feb 01)->
m-(~)-(56 files, 17Mb)--> sudo lsusb -v | less >>lsusb.txt
[sudo] password for gnull:
(gnull@raring)-(0)-(11:47 PM Sat Feb 01)->
m-(~)-(57 files, 17Mb)-->
And the pastebin for the contents of lsusb.txt here: http://pastebin.com/viFR9wC4
Here are the contents of /etc/modprobe.d/alsa-base.conf:
Code:
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }
# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
With Google I also came across some documentation for USB mics on Linux courtesy of the Audacity project. The documentation explains:
USB-microphones in OSS are usually setup as /dev/dsp1 under Linux.
The 1.2.x version of Audacity will not find /dev/dsp1 unless there is also a device called /dev/dsp0. (This is a bug in PortAudio that should be fixed in a future version.)
To work around this bug, try setting the AUDIODEV environment variable (at a terminal):
Code:
$ AUDIODEV=/dev/dsp1 audacity
or try running
Code:
# ln -s /dev/dsp /dev/dsp0
Before creating a symbolic link or env variable, I checked to see if /dev/dsp exists, which it apparently doesn’t.
Here is a further command as per this guide for audacity
Code:
(gnull@raring)-(0)-(12:11 AM Sun Feb 02)->
m-(~)-(57 files, 17Mb)--> lsmod | grep snd
snd_hda_codec_hdmi 36855 4
snd_usb_audio 140732 2
snd_usbmidi_lib 24938 1 snd_usb_audio
snd_seq_midi 13324 0
snd_seq_midi_event 14899 1 snd_seq_midi
snd_hda_codec_realtek 78445 1
snd_hda_intel 39619 10
snd_hda_codec 136498 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_rawmidi 30180 2 snd_usbmidi_lib,snd_seq_midi
snd_hwdep 13602 2 snd_usb_audio,snd_hda_codec
snd_pcm 97451 8 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_seq 61554 2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_page_alloc 18710 2 snd_pcm,snd_hda_intel
snd_timer 29425 2 snd_pcm,snd_seq
snd 68876 32 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
soundcore 12680 1 snd
(gnull@raring)-(0)-(12:11 AM Sun Feb 02)->
m-(~)-(57 files, 17Mb)-->
I’m sorta at a loss here of what all this information means and how it could help me. As noted in the Ubuntu guide in the preface, this isn’t a problem easily solved by a newbie like myself. Maybe someone can see something in the data I shared here that I could alter or modify to get Ubuntu to recognize my mic that is now plugged into my USB sound card?
Bookmarks