USB microphone not found

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

USB microphone not found

Postby hendry » Sun Mar 16, 2014 8:12 am

On my X220 Archlinux, my GoMIC USB microphone works just fine. But I can't seemingly get it working on my rpi. What am I missing?

$this->bbcode_second_pass_code('', '[hendry@alarmpi ~]$ arecord -l
arecord: device_list:268: no soundcards found...
[hendry@alarmpi ~]$ lsusb
Bus 001 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 008: ID 13ba:0001 PCPlay König Electronic CMP-KEYPAD12 Numeric Keypad
Bus 001 Device 007: ID 0781:5580 SanDisk Corp. SDCZ80 Flash Drive
Bus 001 Device 006: ID 17a0:0302 Samson Technologies Corp. GoMic compact condenser microphone
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[hendry@alarmpi ~]$ ps aux | grep pulse
hendry 424 0.0 0.1 2324 640 pts/1 S+ 16:02 0:00 grep pulse
[hendry@alarmpi ~]$ sudo ps aux | grep pulse
hendry 426 0.0 0.1 2324 640 pts/1 S+ 16:02 0:00 grep pulse
[hendry@alarmpi ~]$ pacmd list-sources
No PulseAudio daemon running, or not running as session daemon.
[hendry@alarmpi ~]$ pulseaudio --start
[hendry@alarmpi ~]$ pacmd list-sources
1 source(s) available.
* index: 0
name: <auto_null.monitor>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause:
priority: 1000
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max rewind: 344 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 2000.00 ms; range is 0.50 .. 2000.00 ms
monitor_of: 0
module: 16
properties:
device.description = "Monitor of Dummy Output"
device.class = "monitor"
device.icon_name = "audio-input-microphone"
[hendry@alarmpi ~]$ lsmod
Module Size Used by
arc4 1704 2
ath9k_htc 56968 0
snd_soc_wm8804 7896 0
ath9k_common 3172 1 ath9k_htc
ath9k_hw 405621 2 ath9k_common,ath9k_htc
ath 17589 3 ath9k_common,ath9k_htc,ath9k_hw
mac80211 471543 1 ath9k_htc
cfg80211 434187 3 ath,mac80211,ath9k_htc
snd_usb_audio 116336 0
snd_usbmidi_lib 18369 1 snd_usb_audio
evdev 9340 1
snd_hwdep 5965 1 snd_usb_audio
snd_rawmidi 21374 1 snd_usbmidi_lib
snd_seq_device 6481 1 snd_rawmidi
snd_soc_bcm2708_i2s 5653 0
regmap_mmio 2826 1 snd_soc_bcm2708_i2s
leds_gpio 2146 0
snd_soc_core 160676 2 snd_soc_wm8804,snd_soc_bcm2708_i2s
led_class 3731 2 leds_gpio,ath9k_htc
snd_compress 8167 1 snd_soc_core
regmap_spi 1925 2 snd_soc_wm8804,snd_soc_core
bcm2708_dmaengine 5108 0
regmap_i2c 1673 2 snd_soc_wm8804,snd_soc_core
spi_bcm2708 4764 0
virt_dma 2281 1 bcm2708_dmaengine
i2c_bcm2708 4173 0
snd_bcm2835 16293 0
snd_pcm 81885 3 snd_bcm2835,snd_usb_audio,snd_soc_core
snd_page_alloc 5180 1 snd_pcm
snd_timer 20150 1 snd_pcm
snd 61384 10 snd_bcm2835,snd_usb_audio,snd_soc_core,snd_hwdep,snd_timer,snd_pcm,snd_rawmidi,snd_usbmidi_lib,snd_seq_
device,snd_compress
bcm2708_rng 1032 0
rng_core 4147 1 bcm2708_rng
ipv6 303188 0
[hendry@alarmpi ~]$ uname -a
Linux alarmpi 3.10.33-1-ARCH #1 PREEMPT Sat Mar 8 02:21:59 MST 2014 armv6l GNU/Linux

')
hendry
 
Posts: 40
Joined: Wed Jul 31, 2013 8:28 am
Location: Singapore

Re: USB microphone not found

Postby sdjf » Sun Mar 16, 2014 11:06 pm

Built in sound capability on the Pi is just output, not input. Like the error message says, you need a sound card, one that will enable to Pi to take sound input.

http://elinux.org/RPi_VerifiedPeriphera ... ound_Cards
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: USB microphone not found

Postby moonman » Mon Mar 17, 2014 7:59 am

$this->bbcode_second_pass_quote('sdjf', 'B')uilt in sound capability on the Pi is just output, not input. Like the error message says, you need a sound card, one that will enable to Pi to take sound input.

http://elinux.org/RPi_VerifiedPeriphera ... ound_Cards


It is a USB Mic, not analog. USB part has ADC which is part of any soundcard (along with DAC). It is likely your configuration or a missing module in the kernel.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: USB microphone not found

Postby hendry » Mon Mar 17, 2014 8:11 am

It works under 2014-01-07-wheezy-raspbian.img. Just need to diff the modules somehow. At first glances the loaded audio modules look the same ...

$this->bbcode_second_pass_code('', '
Module Size Used by
snd_usb_audio 116191 0
snd_hwdep 5968 1 snd_usb_audio
snd_usbmidi_lib 18267 1 snd_usb_audio
snd_seq_midi 4682 0
snd_seq_midi_event 6551 1 snd_seq_midi
snd_rawmidi 21357 2 snd_usbmidi_lib,snd_seq_midi
snd_bcm2835 16165 0
snd_soc_bcm2708_i2s 5474 0
regmap_mmio 2806 1 snd_soc_bcm2708_i2s
snd_soc_core 131268 1 snd_soc_bcm2708_i2s
regmap_spi 1897 1 snd_soc_core
snd_pcm 81593 3 snd_bcm2835,snd_usb_audio,snd_soc_core
snd_page_alloc 5156 1 snd_pcm
regmap_i2c 1645 1 snd_soc_core
snd_compress 8076 1 snd_soc_core
snd_seq 53769 2 snd_seq_midi_event,snd_seq_midi
evdev 9419 3
snd_timer 20133 2 snd_pcm,snd_seq
snd_seq_device 6473 3 snd_seq,snd_rawmidi,snd_seq_midi
leds_gpio 2059 0
led_class 3688 1 leds_gpio
snd 61291 11 snd_bcm2835,snd_usb_audio,snd_soc_core,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_seq_device,snd_compress
**** List of CAPTURE Hardware Devices ****
card 1: GoMic [Samson GoMic], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

')
hendry
 
Posts: 40
Joined: Wed Jul 31, 2013 8:28 am
Location: Singapore

Re: USB microphone not found

Postby sdjf » Mon Mar 17, 2014 9:06 pm

Try adding a line to your modules.alias file with the appropriate Manufacturer and Product ID.

Or is it already listed there? It is not on mine, but I have not updated recently. I think your file location will be something like the following, but with a different kernel number.

/usr/lib/modules/3.6.11-18-ARCH+/modules.alias
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: USB microphone not found

Postby hendry » Tue Mar 18, 2014 3:05 am

AFAICT there is no kernel module loaded in Raspbian that isn't loaded by my ArchlinuxArm.

$this->bbcode_second_pass_code('', '
[hendry@alarmpi ~]$ arecord -l
arecord: device_list:268: no soundcards found...
')

I'm very confused. What am I missing?
hendry
 
Posts: 40
Joined: Wed Jul 31, 2013 8:28 am
Location: Singapore

Re: USB microphone not found

Postby sdjf » Tue Mar 18, 2014 5:47 am

The fact that a module is listed in lsmod does not mean that it will necessarily recognize any particular device. If you have logs enabled, it will show if the device is attached to or recognized by a driver or module. That file is what tells the kernel what drivers are appropriate for what devices. If a device is not in there, either specifically or covered by wild cards, then it will not be associated with the module, at least that is my understanding from my experience with devices that were not attached to drivers until their correct IDs got added to that file.

I would check your logs in Raspbian to see which driver the microphone is attached to. I don't know if there is a simple command that will do that, see what devices are associated with which drivers.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: USB microphone not found

Postby moonman » Tue Mar 18, 2014 7:24 am

Check "usb-devices" it lists the driver there. Though it may not be the full list.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: USB microphone not found

Postby sdjf » Tue Mar 18, 2014 3:45 pm

ah, usb-devices is a command, thanks moonman, I was looking for a file and googling did not turn up anything obvious.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: USB microphone not found

Postby hendry » Wed Mar 19, 2014 8:32 am

http://s.natalian.org/2014-03-19/usb-de ... orking.txt
http://s.natalian.org/2014-03-19/usb-de ... orking.txt (my laptop)

And the Archlinux Arm which isn't working:

http://s.natalian.org/2014-03-19/usb-de ... orking.txt


It's loading the same kernel drivers AFAICT, so I really don't understand why I get `arecord: device_list:268: no soundcards found...` :(
hendry
 
Posts: 40
Joined: Wed Jul 31, 2013 8:28 am
Location: Singapore

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests