From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@ti.com>, Tony Lindgren <tony@atomide.com>,
Russell King <rmk+kernel@arm.linux.org.uk>,
Vinod Koul <vinod.koul@intel.com>, Dan Williams <djbw@fb.com>,
Jarkko Nikula <jarkko.nikula@bitmer.com>
Cc: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>,
Ricardo Neri <ricardo.neri@ti.com>
Subject: [PATCH 00/11] ASoC: OMAP: Convert to use dmaengine
Date: Wed, 12 Sep 2012 14:46:56 +0300 [thread overview]
Message-ID: <1347450427-27627-1-git-send-email-peter.ujfalusi@ti.com> (raw)
Hello,
This series will switch the OMAP audio to use dmaengine.
The final patch which does the switch was based on Russell King's earlier patch.
The first 10 patch is to prepare the OMAP audio drivers for a smooth change to
dmaengine:
- sDMA FRAME sync mode is removed and replaced with PACKET mode
- dai drivers no longer need to configure sDMA sync mode
- dai drivers does not need to specify the DMA word length - with the exception
of the omap-hdmi driver which requires 32bit word length regardless of the
audio format in use
- the McPDM driver used (to my surprise) hackish way of getting the DMA channel
and address - via defines from some header files
I have tested the series on:
- BeagleBoard (audio via McBSP) with aplay/arecord. In element mode and in
threshold mode with different period sizes
- OMAP4 Blaze (audio via McPDM and DMIC)
With this conversion the NO_PERIOD_WAKEUP is not supported at the moment. I'll
be looking at the dmaengine core and omap parts to add this feature back.
The patches has been generated against:
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-3.7
Janusz: Can you retest this series on OMAP1 to be sure I have not broken it?
Ricardo: Can you test the omap-hmdi if it is still working?
Regards,
Peter
---
Peter Ujfalusi (11):
dmaengine: omap: Support for element mode in cyclic DMA
ASoC: omap-mcbsp: Use sDMA packet mode instead of frame mode
ASoC: omap-pcm: Select sDMA synchronization based on packet_size
ASoC: OMAP: Remove sync_mode from omap_pcm_dma_data struct
ASoC: omap-pcm: Prepare to configure the DMA data_type based on
stream properties
ARM: OMAP4: hwmod_data: Add resource names to McPDM memory ranges
ASoC: omap-mcpdm: Use platform_get_resource_* to get resources
ASoC: OMAP: mcbsp, mcpdm, dmic: Let omap-pcm to pick the dma_type
ASoC: omap-pcm, omap-hdmi: Change the use of
omap_pcm_dma_data->data_type
ASoC: OMAP: mcbsp, mcpdm, dmic, hdmi: Set dma_data at startup time
ASoC: omap-pcm: Convert to use dmaengine
arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 2 +
drivers/dma/omap-dma.c | 5 +-
sound/soc/omap/Kconfig | 3 +-
sound/soc/omap/omap-dmic.c | 9 +-
sound/soc/omap/omap-hdmi.c | 17 +-
sound/soc/omap/omap-mcbsp.c | 60 +++----
sound/soc/omap/omap-mcpdm.c | 41 +++--
sound/soc/omap/omap-pcm.c | 246 ++++++++---------------------
sound/soc/omap/omap-pcm.h | 4 +-
9 files changed, 136 insertions(+), 251 deletions(-)
--
1.7.12
next reply other threads:[~2012-09-12 11:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-12 11:46 Peter Ujfalusi [this message]
2012-09-12 11:46 ` [PATCH 01/11] dmaengine: omap: Support for element mode in cyclic DMA Peter Ujfalusi
2012-09-12 11:46 ` [PATCH 02/11] ASoC: omap-mcbsp: Use sDMA packet mode instead of frame mode Peter Ujfalusi
2012-09-12 11:46 ` [PATCH 03/11] ASoC: omap-pcm: Select sDMA synchronization based on packet_size Peter Ujfalusi
2012-09-12 11:47 ` [PATCH 04/11] ASoC: OMAP: Remove sync_mode from omap_pcm_dma_data struct Peter Ujfalusi
2012-09-12 11:47 ` [PATCH 05/11] ASoC: omap-pcm: Prepare to configure the DMA data_type based on stream properties Peter Ujfalusi
2012-09-12 11:47 ` [PATCH 06/11] ARM: OMAP4: hwmod_data: Add resource names to McPDM memory ranges Peter Ujfalusi
2012-09-12 11:47 ` [PATCH 07/11] ASoC: omap-mcpdm: Use platform_get_resource_* to get resources Peter Ujfalusi
2012-09-12 11:47 ` [PATCH 08/11] ASoC: OMAP: mcbsp, mcpdm, dmic: Let omap-pcm to pick the dma_type Peter Ujfalusi
2012-09-12 11:47 ` [PATCH 09/11] ASoC: omap-pcm, omap-hdmi: Change the use of omap_pcm_dma_data->data_type Peter Ujfalusi
2012-09-12 11:47 ` [PATCH 10/11] ASoC: OMAP: mcbsp, mcpdm, dmic, hdmi: Set dma_data at startup time Peter Ujfalusi
2012-09-12 11:47 ` [PATCH 11/11] ASoC: omap-pcm: Convert to use dmaengine Peter Ujfalusi
2012-09-12 12:00 ` Russell King - ARM Linux
2012-09-12 12:53 ` Peter Ujfalusi
2012-09-12 14:35 ` Peter Ujfalusi
2012-09-12 14:05 ` [alsa-devel] " Takashi Iwai
2012-09-13 8:11 ` [PATCH 00/11] ASoC: OMAP: " Mark Brown
2012-09-13 9:20 ` Peter Ujfalusi
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=1347450427-27627-1-git-send-email-peter.ujfalusi@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=djbw@fb.com \
--cc=jarkko.nikula@bitmer.com \
--cc=jkrzyszt@tis.icnet.pl \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=lrg@ti.com \
--cc=ricardo.neri@ti.com \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=tony@atomide.com \
--cc=vinod.koul@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).