Skip to content

Instantly share code, notes, and snippets.

Created January 25, 2014 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9aab06e25badc2cd9a11 to your computer and use it in GitHub Desktop.
Save anonymous/9aab06e25badc2cd9a11 to your computer and use it in GitHub Desktop.
alsa-info
-Using a CAD U9 Condensor mic through a USB hub
-Tested the mic alone in GarageBand, it works
-Tested the mic through a USB hub in GarageBand, it works
-arecord in the rPi picks up a -trace- amount of audio that can only be heard with headphones on and a quiet room
-This strikes me as a voltage problem, which means the rPi is unable to control the gain of the USB mic
-These are the results of alsa-info.sh
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.62
!!################################
!!Script ran on: Sat Jan 25 16:32:55 UTC 2014
!!Linux Distribution
!!------------------
ID_LIKE=debian
!!DMI Information
!!---------------
Manufacturer:
Product Name:
Product Version:
Firmware Version:
!!Kernel Information
!!------------------
Kernel release: 3.10.27+
Operating System: GNU/Linux
Architecture: armv6l
Processor: unknown
SMP Enabled: No
!!ALSA Version
!!------------
Driver version: k3.10.27+
Library version: 1.0.25
Utilities version: 1.0.25
!!Loaded ALSA modules
!!-------------------
snd_usb_audio
snd_bcm2835
!!Sound Servers on this system
!!----------------------------
No sound servers found.
!!Soundcards recognised by ALSA
!!-----------------------------
0 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-bcm2708_usb-1.2.2, full sp
1 [ALSA ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
bcm2835 ALSA
!!PCI Soundcards installed in the system
!!--------------------------------------
!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!-------------------------------------------------------
!!Modprobe options (Sound related)
!!--------------------------------
snd_pcsp: index=-2
snd_usb_audio: index=0
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
!!Loaded sound module options
!!---------------------------
!!Module: snd_usb_audio
autoclock : Y
device_setup : 0,0,0,0,0,0,0,0
enable : Y,Y,Y,Y,Y,Y,Y,Y
id : (null),(null),(null),(null),(null),(null),(null),(null)
ignore_ctl_error : N
index : 0,-1,-1,-1,-1,-1,-1,-1
nrpacks : 8
pid : -1,-1,-1,-1,-1,-1,-1,-1
vid : -1,-1,-1,-1,-1,-1,-1,-1
!!Module: snd_bcm2835
force_bulk : N
!!USB Mixer information
!!---------------------
--startcollapse--
USB Mixer: usb_id=0x0d8c0139, ctrlif=0, ctlerr=0
Card: C-Media Electronics Inc. USB PnP Sound Device at usb-bcm2708_usb-1.2.2, full sp
Unit: 9
Control: name="PCM Playback Volume", index=0
Info: id=9, control=2, cmask=0x3, channels=2, type="S16"
Volume: min=-7264, max=-16, dBmin=-2837, dBmax=-6
Unit: 9
Control: name="PCM Playback Switch", index=0
Info: id=9, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 10
Control: name="Auto Gain Control", index=0
Info: id=10, control=7, cmask=0x0, channels=1, type="BOOLEAN"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 10
Control: name="Mic Capture Volume", index=0
Info: id=10, control=2, cmask=0x0, channels=1, type="S16"
Volume: min=0, max=6096, dBmin=0, dBmax=2381
Unit: 10
Control: name="Mic Capture Switch", index=0
Info: id=10, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
Volume: min=0, max=1, dBmin=0, dBmax=0
--endcollapse--
!!ALSA Device nodes
!!-----------------
crw-rw---T 1 root audio 116, 0 Jan 25 08:20 /dev/snd/controlC0
crw-rw---T 1 root audio 116, 32 Jan 24 20:17 /dev/snd/controlC1
crw-rw---T 1 root audio 116, 24 Jan 25 08:20 /dev/snd/pcmC0D0c
crw-rw---T 1 root audio 116, 16 Jan 25 08:20 /dev/snd/pcmC0D0p
crw-rw---T 1 root audio 116, 48 Jan 24 20:17 /dev/snd/pcmC1D0p
crw-rw---T 1 root audio 116, 1 Dec 31 1969 /dev/snd/seq
crw-rw---T 1 root audio 116, 33 Dec 31 1969 /dev/snd/timer
/dev/snd/by-id:
total 0
drwxr-xr-x 2 root root 60 Jan 25 08:20 .
drwxr-xr-x 4 root root 220 Jan 25 08:20 ..
lrwxrwxrwx 1 root root 12 Jan 25 08:20 usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00 -> ../controlC0
/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 80 Jan 25 08:20 .
drwxr-xr-x 4 root root 220 Jan 25 08:20 ..
lrwxrwxrwx 1 root root 12 Jan 25 08:20 platform-bcm2708_usb-usb-0:1.2.2:1.0 -> ../controlC0
lrwxrwxrwx 1 root root 12 Jan 24 20:17 platform-bcm2835_AUD0.0 -> ../controlC1
!!ALSA configuration files
!!------------------------
!!System wide config file (/etc/asound.conf)
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 0
}
!!Aplay/Arecord output
!!--------------------
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [Device]
Card hw:0 'Device'/'C-Media Electronics Inc. USB PnP Sound Device at usb-bcm2708_usb-1.2.2, full sp'
Mixer name : 'USB Mixer'
Components : 'USB0d8c:0139'
Controls : 6
Simple ctrls : 3
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 151
Mono:
Front Left: Playback 151 [100%] [0.06dB] [on]
Front Right: Playback 151 [100%] [0.06dB] [on]
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
Capture channels: Mono
Limits: Capture 0 - 16
Mono: Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'Auto Gain Control',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
!!-------Mixer controls for card 1 [ALSA]
Card hw:1 'ALSA'/'bcm2835 ALSA'
Mixer name : 'Broadcom Mixer'
Components : ''
Controls : 3
Simple ctrls : 1
Simple mixer control 'PCM',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback 0 [96%] [0.00dB] [on]
!!Alsactl output
!!--------------
--startcollapse--
state.Device {
control.1 {
iface PCM
name 'Playback Channel Map'
value.0 0
value.1 0
comment {
access read
type INTEGER
count 2
range '0 - 36'
}
}
control.2 {
iface MIXER
name 'PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'PCM Playback Volume'
value.0 151
value.1 151
comment {
access 'read write'
type INTEGER
count 2
range '0 - 151'
dbmin -2837
dbmax -6
dbvalue.0 -6
dbvalue.1 -6
}
}
control.4 {
iface MIXER
name 'Mic Capture Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.5 {
iface MIXER
name 'Mic Capture Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 16'
dbmin 0
dbmax 2381
dbvalue.0 0
}
}
control.6 {
iface MIXER
name 'Auto Gain Control'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
}
state.ALSA {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '-10239 - 400'
dbmin -9999999
dbmax 400
dbvalue.0 0
}
}
control.2 {
iface MIXER
name 'PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'PCM Playback Route'
value 2
comment {
access 'read write'
type INTEGER
count 1
range '0 - 2'
}
}
}
--endcollapse--
!!All Loaded Modules
!!------------------
Module
xt_nat
xt_tcpudp
iptable_nat
nf_conntrack_ipv4
nf_defrag_ipv4
nf_nat_ipv4
nf_nat
nf_conntrack
ip_tables
x_tables
nfsd
ipv6
snd_bcm2835
snd_soc_wm8804
snd_usb_audio
snd_usbmidi_lib
snd_hwdep
snd_seq_midi
snd_seq_midi_event
snd_rawmidi
snd_soc_bcm2708_i2s
regmap_mmio
snd_soc_core
snd_compress
regmap_i2c
regmap_spi
snd_pcm
snd_page_alloc
snd_seq
snd_seq_device
snd_timer
leds_gpio
led_class
evdev
snd
spi_bcm2708
i2c_bcm2708
!!ALSA/HDA dmesg
!!--------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment