usb soundcard

plug the new USB Sound Adapter 7.1 DeLock into your usb-port

check lsusb if pi found it. you should see C-Media Electronics, Inc. Audio Adapter

in /etc/modprobe.d/alsa-base.conf set
options snd-usb-audio index=-2
to
options snd-usb-audio index=0
reload drivers with sudo alsa force-reload (no need for reboot!)

set dwc_otg.speed=1 in /boot/cmdline.txt – this requires a reboot

adjust the outputlevel with alsamixer

record mic-input
first plug-in a mic
adjust the mic-level in alsamixer and turn the mic to CAPTURE (TAB to the mic config and then SPACE to enable CAPTURE).

my amixer-config
Simple mixer control ‚Speaker‘,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: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: Playback 0 – 32 Capture 0 – 16
  Mono: Playback 32 [100%] [47.81dB] [off] Capture 16 [100%] [23.81dB] [on]
Simple mixer control ‚Auto Gain Control‘,0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]

heres a little script to test the mic with your mpc
install mpd and mpc (more infos here)
sudo apt-get install mpd mpc

add yourself and mpd to the audio-group

sudo adduser pi audio
sudo adduser mpd audio
comment out the following line and set a correct IP
sudo cat /etc/mpd.conf|grep localhost
#bind_to_address „localhost“
bind_to_address „192.168.0.3“
 
restart the service
sudo /etc/init.d/mpd restart

log-file of mpd (default), and other debugging-logs

/var/log/mpd/mpd.log

dmesg

sudo cat /var/log/daemon.log|grep mpd

nice infos about mpd (decoders, outputs etc.)
mpd –version

infos about mpd can be found here
cat /usr/share/doc/mpd/README

config of autostart daemon

cat /etc/init.d/mpd

other mpc-options

show current playlist in mpc
mpc playlist

update music-DB
mpc update

show all available playlists, files etc.
mpc lsplaylists
mpc ls
mpc ls „Local media“
mpc ls „Local media/Music“

other stuff
mpc stats

Web-Client

ympd is a very nice tiny web client for mpd/mpc

Troubleshooting

ERROR
listen: bind to ‚0.0.0.0:6600‘ failed: Address already in use (continuing anyway, because binding to ‚[::]:6600‘ succeeded)

i had to check my configuration in
/etc/hosts 
127.0.0.1 localhost
192.168.0.2 pipaos
and /etc/hostname
pipaos
and then the bind_to_address in /etc/mpd.conf
bind_to_address                 „127.0.0.1“
bind_to_address                 „192.168.0.2“
ERROR
mpc volume 100
error: problems setting volume
volume: n/a
for my usb-soundcard i uncommented the line in mpd.conf
mixer_type        „software“

ERROR
mpc

error: Connection refused
there was an conflict with the IP-addresses – here it is ok to use this config:
bind_to_address                 „127.0.0.1“
bind_to_address                 „192.168.0.2“
Advertisements

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s