From: Frank Mandarino <fmandarino@endrelia.com>
To: Paul Kavan <pkavan@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Using aplay and arecord on an ARM
Date: Wed, 20 Jun 2007 15:37:29 -0400 [thread overview]
Message-ID: <467981F9.3090301@endrelia.com> (raw)
In-Reply-To: <61c0054e0706201209q717489ddvb07f43ee60476fc@mail.gmail.com>
Paul Kavan wrote:
> Frank:
>
>
> Try adding the option "--with-versioned=no" to the alsa-libs configure.
>
>
> That did the trick in terms of the sw params problem. With the default
> alsa.conf file, I can now get the speaker to make some noise. However,
> doing:
>
> speaker-test -r8000 -f1000 -FS8 -tsine -l5
>
> gives me a slightly distorted sine wave that has a period of half of
> what I would expect.
Better than no sound :) At least something is getting through ALSA and
ASoC to your codec.
You may need to adjust the RCMR, RFRM, TCMR, TFRM register settings in
sound/soc/at91/at91-ssc.c to send the data in the mode that your codec
expects. I have only tested I2S and DSP_A modes with S16_LE data. It's
fairly easy to add new modes.
>
> Frank, this is what I have for the small conf. I hope it is the right one:
>
>
> 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
> }
>
> However, when I use this as the conf, I get the following with aplay -l
>
> /usr/share/alsa $ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> ALSA lib conf.c:975:(parse_value) card is not a string
> ALSA lib conf.c:1588:(snd_config_load1) _toplevel_:45:1:Invalid argument
> ALSA lib conf.c:3066:(snd_config_update_r) /usr/share/alsa/alsa.conf may
> be old or corrupted: consit
> aplay: device_list:213: control open (0): Invalid argument
>
> Not sure if I have the alsa.conf correct. So maybe it is a problem
> there. You mentioned a bare bones .conf, but I do not this is the only
> one I have in my email.
I don't see anything wrong with this alsa.conf, but I'm no expert. It
is virtually the same as the one I am using, but I am using ALSA 1.0.13.
Here is the bare-bones config file that I was using before I added a
second sound device:
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
}
../fam
--
Frank Mandarino fmandarino(a)endrelia.com
Endrelia Technologies Inc.
Toronto, Ontario, Canada
next prev parent reply other threads:[~2007-06-20 19:37 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-06-20 19:48 ` Paul Kavan
2007-06-20 20:22 ` Paul Kavan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=467981F9.3090301@endrelia.com \
--to=fmandarino@endrelia.com \
--cc=alsa-devel@alsa-project.org \
--cc=pkavan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.