From: Mike Looijmans <mike.looijmans@topic.nl>
To: Joel Fernandes <joelf@ti.com>
Cc: alsa-devel@alsa-project.org, lars@metafoo.de
Subject: Re: Query on Audio DMA using DMAEngine
Date: Tue, 02 Jul 2013 08:02:00 +0200 [thread overview]
Message-ID: <51D26CD8.7020709@topic.nl> (raw)
In-Reply-To: <51D22CAE.2020302@ti.com>
[-- Attachment #1: Type: text/plain, Size: 1578 bytes --]
On 07/02/2013 03:28 AM, Joel Fernandes wrote:
> On 07/01/2013 01:10 AM, Mike Looijmans wrote:
>> With the cyclic DMA, I can capture 16 channels of 32-bit audio at 51kHz,
>> simultaneously playback 2 channels and write the audio data to an SD card on the
>> OMAP-L138. Before that change, it wasn't even possible to capture 4 channels
>> without overruns.
>
> Sweet! Any particular reason why it wasn't merged in vs the existing ping-pong code?
I've posted questions and other stuff concerning the McASP/OMAP1, but
there was very little interest, so I supposed the chipset was on its way
out and there wasn't any point in maintaining it.
>> I can mail you the 2.6.37 code, it isn't worthy for direct inclusion but may
>> save you some time to figure things out.
>
> Certainly could take a look. Could you share it? Thank you.
I attached the source files.
There are a lot of changes in the files that are product specific hacks
to get my things working in the cheapest way possible (cheap meaning
spending little effort).
I also included the "davinci-mcasp.c" code. Because the customer wanted
a bigger buffer, I set up the McASP FIFO to transfer larger blocks. The
DMA is limited to 64k words, so increasing the size of a "word" is a
sure way to transfer more data. It's also good for bursting transfers,
which I'm told the DDR memory likes much better. I was unable to measure
any effect (positive nor negative) of that though. The larger blocks
aren't needed if you're satisfied with much smaller buffers, which for
normal purposed should be just fine.
Mike.
[-- Attachment #2: davinci-2.6.37-cyclic-dma.tar.gz --]
[-- Type: application/x-gzip, Size: 10498 bytes --]
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2013-07-02 6:02 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <083BC63EECB6FD41B8E81CF7FD87CC0F2E4F1488@DLEE08.ent.ti.com>
2013-06-30 12:06 ` Query on Audio DMA using DMAEngine Lars-Peter Clausen
2013-07-01 6:10 ` Mike Looijmans
2013-07-02 1:28 ` Joel Fernandes
2013-07-02 6:02 ` Mike Looijmans [this message]
2013-07-02 12:16 ` Mark Brown
2013-07-02 13:30 ` Mike Looijmans
2013-07-02 14:58 ` Mark Brown
2013-07-04 11:00 ` Clemens Ladisch
2013-07-02 3:33 ` Joel Fernandes
2013-07-02 5:50 ` Mike Looijmans
2013-07-02 12:13 ` Mark Brown
2013-07-02 13:40 ` Mike Looijmans
2013-07-03 9:09 ` Lars-Peter Clausen
2013-07-03 9:43 ` Mark Brown
2013-07-03 13:17 ` Mike Looijmans
[not found] ` <51D4245F.8070307-Oq418RWZeHk@public.gmane.org>
2013-07-03 19:56 ` Joel Fernandes
[not found] ` <20130703094307.GE27646-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-07-03 17:55 ` [alsa-devel] " Joel Fernandes
[not found] ` <51D46598.6070005-l0cyMroinI0@public.gmane.org>
2013-07-03 18:12 ` Mark Brown
2013-07-04 5:56 ` Mike Looijmans
2013-07-04 10:49 ` Mark Brown
2013-07-03 18:18 ` [alsa-devel] " Joel Fernandes
2013-07-04 6:06 ` Mike Looijmans
2013-07-04 10:53 ` Mark Brown
[not found] ` <51D510EA.1030809-Oq418RWZeHk@public.gmane.org>
2013-07-04 10:59 ` [alsa-devel] " Sekhar Nori
2013-08-14 4:30 ` Joel Fernandes
2013-08-14 4:53 ` Joel Fernandes
2013-08-14 14:10 ` Mike Looijmans
2013-08-14 12:06 ` Mark Brown
2013-07-02 1:04 ` Joel Fernandes
2013-07-03 9:07 ` Lars-Peter Clausen
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=51D26CD8.7020709@topic.nl \
--to=mike.looijmans@topic.nl \
--cc=alsa-devel@alsa-project.org \
--cc=joelf@ti.com \
--cc=lars@metafoo.de \
/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.