All of lore.kernel.org
 help / color / mirror / Atom feed
* Using aplay and arecord on an ARM
@ 2007-06-19 19:37 Paul Kavan
  2007-06-19 20:07 ` Lee Revell
  0 siblings, 1 reply; 22+ messages in thread
From: Paul Kavan @ 2007-06-19 19:37 UTC (permalink / raw)
  To: Liam Girdwood; +Cc: alsa-devel

Liam:

I have managed to get the alsa-libs and aplay, arecord, and speaker-test on
my board, but I am unsure how to get them to play. I have tried making the
device nodes and am using a simple alsa.conf, but still no joy. I am sure
there is something simple I am missing.

Trying to find some documentation on this. I am assuming there is some
disconnect between the interface and my conf file. I have my alsa.conf file
in /usr/share/alsa/ and it is:

pcm.!default {
   type hw
   card 0
}
pcm.hw {
   type hw
   card 0
   device 0
   subdevice 0
}
ctl.!default {
   type hw
   card 0
}
ctl.hw {
   type hw
   card 0
}


ctl.w6811 {
       type hw
       card 0
}
pcm.w6811 {
       type hw
       card 0
       device 0
       subdevice 0
}

ctl.!default    = ctl.w6811
pcm.!default    = pcm.w6811

ctl.hw {
       @args[ CARD ]
       @args.CARD {
               type string
               default "0"
       }
       type hw
       card $CARD
}

pcm.hw {
       @args[ CARD DEV SUBDEV ]
       @args.CARD {
               type string
               default "0"
       }
       @args.DEV {
               type integer
               default 0
       }
       @args.SUBDEV {
               type integer
               default 0
       }
       type hw
       card $CARD
       device $DEV
       subdevice $SUBDEV
}

I have some /proc/ entries:

/proc/asound $ ls
GRHEKW6811  cards       pcm         version
card0       devices     timers


/proc/asound $ cat cards
 0 [GRHEKW6811     ]: W6811 - GRH_EK_W6811
                      GRH_EK_W6811 (W6811)


/proc/asound $ cat devices
  0: [ 0]   : control
 16: [ 0- 0]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer


/proc/asound $ cat pcm
00-00: W6811 W6811-PCM-0 :  : playback 1 : capture 1


/proc/asound $ cat timers
G0: system timer : 10000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE


/proc/asound $ cat version
Advanced Linux Sound Architecture Driver Version 1.0.14rc4 (Wed May 09
09:51:39.


Now, into GRHEKW6811 (which takes me to card0) I get a pcm0c and pcm0p
directory. Using cat info, I get:

/proc/asound/card0/pcm0c $ cat info
card: 0
device: 0
subdevice: 0
stream: CAPTURE
id: W6811 W6811-PCM-0
name:
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1


/proc/asound/card0/pcm0c $ cd ../pcm0p/
/proc/asound/card0/pcm0p $ cat info
card: 0
device: 0
subdevice: 0
stream:
PLAYBACK
id: W6811
W6811-PCM-0
name:

subname: subdevice
#0
class:
0
subclass:
0
subdevices_count:
1
subdevices_avail: 1


I then did:

mknod -m 666 /dev/snd/pcm0p c 116 0
mknod -m 666 /dev/snd/pcm0c c 116 0

However, when I try speaker-test, I get:


/usr/lib/bin $ ./speaker-test -D pcm0p

speaker-test 1.0.14

Playback device is pcm0p
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM pcm0p
Playback open error: -2,No such file or directory

Same for default:

/usr/lib/bin $ ./speaker-test -D
default


speaker-test 1.0.14



Playback device is
default
Stream parameters are 48000Hz, S16_LE, 1
channels
Using 16 octaves of pink
noise
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM
default
Playback open error: -2,No such file or directory

When I try aplay -l and arecord -l, I get:

/usr/lib/bin $ ./aplay
-l
aplay: device_list:204: no soundcards
found...
/usr/lib/bin $ ./arecord
-l
arecord: device_list:204: no soundcards found...

I am at a loss here. Anyone have any advice, pointers, tips, etc......

Thanks.

Paul

-- 
***************************************
Paul David Kavan
Project Engineer
GRH Electronics, Inc.
402-734-4900
pkavan@gmail.com
***************************************

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2007-06-20 20:22 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 19:37 Using aplay and arecord on an ARM Paul Kavan
2007-06-19 20:07 ` Lee Revell
2007-06-19 20:28   ` Paul Kavan
2007-06-19 20:31     ` Lee Revell
2007-06-19 20:36       ` Paul Kavan
2007-06-19 21:03         ` Paul Kavan
2007-06-20 10:01       ` Takashi Iwai
2007-06-20 10:54         ` Nobin Mathew
2007-06-20 14:27           ` Paul Kavan
2007-06-20 14:32             ` Nobin Mathew
     [not found]               ` <61c0054e0706200739k2b934a9avbffb133937adba4c@mail.gmail.com>
     [not found]                 ` <61c0054e0706200824v444d6c8dr6b6023b16043fa7@mail.gmail.com>
     [not found]                   ` <61c0054e0706200827h389e2c6v46dfc544def95e82@mail.gmail.com>
2007-06-20 15:40                     ` Paul Kavan
2007-06-20 16:00                       ` Takashi Iwai
2007-06-20 16:12                         ` Paul Kavan
2007-06-20 16:16                           ` Lee Revell
2007-06-20 16:18                             ` Paul Kavan
2007-06-20 16:23                               ` Takashi Iwai
2007-06-20 17:04                                 ` Paul Kavan
2007-06-20 17:35                                   ` Frank Mandarino
2007-06-20 19:09                                     ` Paul Kavan
2007-06-20 19:37                                       ` Frank Mandarino
2007-06-20 19:48                                         ` Paul Kavan
2007-06-20 20:22                                           ` Paul Kavan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.