From: lamikr <lamikr@cc.jyu.fi>
To: Daniel Petrini <d.pensator@gmail.com>
Cc: linux-omap-open-source@linux.omap.com,
Prakash Narayanan M <mnarayan@cedt.iisc.ernet.in>
Subject: Re: ALSA with OMAP1510
Date: Thu, 16 Mar 2006 20:12:07 +0200 [thread overview]
Message-ID: <4419AA77.2000502@cc.jyu.fi> (raw)
In-Reply-To: <9268368b0603160927v6de56f8cqc8037455344a365c@mail.gmail.com>
>You should use "aplay test.raw" to play using alsa stack.
>
>
Yes, for alsa driver the "aplay" should be the easiest solution.
I have myself used alsa succesfully with the tsc2101 chipset and latest
kernel in git repository (about 2.6.16-rc5)
by applying the 3 patches I and daniel send for the list about 10 days ago.
Daniel tested the tsc2101 and aic23 drivers by using OSK and H2 boards.
I used myself omap1510 based h6300 for writing and testing. With that
board there were two issues compared to other devices that I needed to
handle.
1) I needed to add following to audio_process_dma() in
sound/arm/omap_alsa.c that was was not needed by other boards.
Without this, the dma stopped after first small buffer transfered.
If you have problems you could enable that also for your boards.
#ifdef CONFIG_MACH_OMAP_H6300
spin_lock_irqsave(&s->dma_lock, flags);
omap_stop_alsa_sound_dma(s);
spin_unlock_irqrestore(&s->dma_lock, flags);
#endif
2) In sound/arm/omap/omap-alsa-tsc2101.c tsc2101_snd_omap_alsa_playback
structure h6300 needs to be configured to have 8 bit dma.
(this is not yet in the patch sent to the list)
#ifdef CONFIG_MACH_OMAP_H6300
.formats = (SNDRV_PCM_FMTBIT_S8),
#else
.formats = (SNDRV_PCM_FMTBIT_S16_LE),
#endif
If you want to test the play with different samplerates, you can use a
program called "sox" for creating wavs with different samplerates.
(sox song.wav -r 8000 -c 1 -s -w song8000.wav)
**
Mika
next prev parent reply other threads:[~2006-03-16 18:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-16 12:25 ALSA with OMAP1510 Prakash Narayanan M
2006-03-16 17:27 ` Daniel Petrini
2006-03-16 17:29 ` Daniel Petrini
2006-03-16 18:12 ` lamikr [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-17 12:21 Prakash Narayanan M
2006-03-17 13:06 ` Komal Shah
2006-03-17 13:42 ` Daniel Petrini
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=4419AA77.2000502@cc.jyu.fi \
--to=lamikr@cc.jyu.fi \
--cc=d.pensator@gmail.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=mnarayan@cedt.iisc.ernet.in \
/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.