• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Sound anyone?  (Read 3224 times)
freebsdfan@hotmail.com
Guest
« on: April 17, 2009, 08:22:18 PM »

I'm trying to get an USB audio device working, so far without success.  I've built and booted a kernel with
USB sound support and doing a modprobe snd-usb-audio seems to work:
Code:
root@debian:~/thelinkbox-0.41# lsmod
Module                  Size  Used by
snd_usb_audio          84328  0
snd_pcm_oss            42768  0
snd_mixer_oss          18668  1 snd_pcm_oss
snd_pcm                76316  2 snd_usb_audio,snd_pcm_oss
snd_timer              23244  1 snd_pcm
snd_page_alloc          9016  1 snd_pcm
snd_usb_lib            17664  1 snd_usb_audio
snd_rawmidi            22928  1 snd_usb_lib
snd_hwdep               7952  1 snd_usb_audio
snd                    52624  7 snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcmp
soundcore               7400  1 snd

/proc/asound looks good:
Code:
root@debian:/proc/asound# find .
.
./default
./card1
./card1/oss_mixer
./card1/id
./card1/usbbus
./card1/usbid
./card1/stream0
./card1/pcm0c
./card1/pcm0c/oss
./card1/pcm0c/sub0
./card1/pcm0c/sub0/status
./card1/pcm0c/sub0/sw_params
./card1/pcm0c/sub0/hw_params
./card1/pcm0c/sub0/info
./card1/pcm0c/info
./card1/pcm0p
./card1/pcm0p/oss
./card1/pcm0p/sub0
./card1/pcm0p/sub0/status
./card1/pcm0p/sub0/sw_params
./card1/pcm0p/sub0/hw_params
./card1/pcm0p/sub0/info
./card1/pcm0p/info
./pcm
./timers
./hwdep
./modules
./cards
./devices
./version
./oss
./oss/sndstat
./oss/devices

root@debian:/proc/asound# cat cards
 1 [default        ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set   at usb-orion-ehci.0-1, full speed

root@debian:/proc/asound# cat oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.19 emulation code)
Kernel: Linux debian 2.6.30-rc1 #2 PREEMPT Fri Apr 17 20:05:51 PDT 2009 armv5tel
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
C-Media USB Headphone Set   at usb-orion-ehci.0-1, full speed

Audio devices:
1: USB Audio (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
7: system timer

Mixers:
1: USB Mixer

But it doesn't work, no sound in or out.

Code:
root@debian:/proc/asound# cat /dev/dsp1 /dev/null
cat: /dev/dsp1: Input/output error

I've also run my app (which uses the OSS API), I don't get any errors, but I
never get any input either.

Any ideas?

Skip
Logged

steveo
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #1 on: April 23, 2009, 07:38:02 AM »

I've been trying to accomplish this to with no luck.
 I was getting a dmesg earlier:
mvCLAudioCodecRegGet: Error while reading register!

also does the unit have mp3decoding capabilities?
have you tried wav files?

Steve

PS if you get it working would you be able to post or send me an image?
Logged

Pandemonium
Newbie
*

Karma: 0
Posts: 37


View Profile
« Reply #2 on: April 23, 2009, 08:07:08 AM »

On a (possibly) related note, while trying to do a USB flash of the latest kernel and image, I notice that the kernel from Marvell's site starts ALSA.  I thought this was quite odd, though I imagine it is useful for what you are doing.
Logged

bradleee
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #3 on: April 23, 2009, 10:47:00 AM »

Have you looked here?
http://www.nslu2-linux.org/wiki/HowTo/SlugAsAudioPlayer

As I understand it, both devices are ARM and may have a lot in common.

Regards,
Brad
Logged

wb6ymh
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #4 on: April 23, 2009, 01:56:25 PM »

I'm using an external USB audio dongle.  The plug does not have sound.  I believe
the CPU chip has part of the sound device, but not all of it (Codec is external?).

Summary:  The shipping (binary) kernnel doesn't have sounds support.  Sound
support in linux-2.6.30-rc1 and the current (as of yesterday) Marvel git repository
does not work.  But... linux-2.6.22.18 from plug site *does* work.

I've played and "recorded" audio.  I haven't messed with mp3s since that's not
my application, but that should be no problem.  There are ARM optimized mp3
decoders out there and the plug is a lot faster than most ARM based PDAs
that support mp3.

My application is RoIP (Radio over IP), i.e. VoIP for radio nuts.  We use VoIP
to tie our repeater systems together over the Internet.
http://groups.yahoo.com/group/thelinkbox

Skip
Logged

dg
Newbie
*

Karma: 0
Posts: 14


View Profile
« Reply #5 on: April 24, 2009, 06:13:24 AM »

I've noticed that the default kernel on the SheevaPlug finds sound hardware and loads a driver for a mv88fx_snd. It doesn't seem to be entirely happy, though... does anyone know what sound hardware the SheevaPlug actually has? Would it be possible, for example, to solder on a wire, connect up a preamp, and get sound output, or is there stuff missing like an ADC?
Logged

wb6ymh
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #6 on: April 25, 2009, 11:57:02 PM »

For anyone that's interested I've written up what I did to get sound running on my plug here: http://cqinet.wiki.sourceforge.net/plug_sound.

Skip
Logged

Pages: [1]
Print
Jump to: