• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: aplay outputs 'Invalid value for card'  (Read 3605 times)
tomasz
Newbie
*

Karma: 0
Posts: 12


View Profile
« on: April 25, 2011, 01:08:03 AM »

I'm running into some basic problems with my new DreamPlug. It can't seem to play a wave file under aplay.

aplay -vv Roland-GR-1-Pick-Bass-2-C4.wav
ALSA lib pcm_direct.c:1494:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
aplay: main:590: audio open error: No such file or directory

This is on a stock dream plug with the following modules loaded

x@ubuntu:~$ lsmod | grep snd
snd_usb_audio          60996  0
snd_pcm                62956  1 snd_usb_audio
snd_page_alloc          4799  1 snd_pcm
snd_hwdep               4933  1 snd_usb_audio
snd_usb_lib            16271  1 snd_usb_audio
snd_seq_midi            4066  0
snd_rawmidi            16417  2 snd_usb_lib,snd_seq_midi
snd_seq_midi_event      5022  1 snd_seq_midi
snd_seq                48913  2 snd_seq_midi,snd_seq_midi_event
snd_timer              17410  2 snd_pcm,snd_seq
snd_seq_device          5011  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    35725  8 snd_usb_audio,snd_pcm,snd_hwdep,snd_usb_lib,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore                678  1 snd

I've seen some posting related to a similar issue the recommend going down the OSS route but I'd love to fix this rather then going with a whole new sound subsystem.
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 443


View Profile WWW
« Reply #1 on: April 26, 2011, 05:13:10 PM »

I have a SheevaPlug (not DreamPlug) and these are the notes of how I got audio working (on Debian Squeeze).
Not much, but it might be worth trying these...
Quote
In order to get sound working I had to:
   
a) Run, as root:

 alsactl init 1

   The USB sound device ends up as device 1, even though a lot of things
   seem to default to using 0.

b) Run, as root:

 service alsa-utils start

   This was *not* needed after reboots.

c) Add myself to the audio group, as the devices get set to that group
Logged

Pages: [1]
Print
Jump to: