From: Jarkko Nikula <jarkko.nikula@nokia.com>
To: ext Eduardo Valentin <edubezval@gmail.com>
Cc: Steve Sakoman <sakoman@gmail.com>,
linux-omap@vger.kernel.org, Tony Lindgren <tony@atomide.com>,
Chandra shekhar <x0044955@ti.com>,
Eduardo Valentin <eduardo.valentin@indt.org.br>
Subject: Re: [PATCH 0/4] Updates on mcbsp driver (take #2)
Date: Tue, 20 May 2008 14:21:28 +0300 [thread overview]
Message-ID: <20080520142128.3498f258.jarkko.nikula@nokia.com> (raw)
In-Reply-To: <a0580c510805190809l58f507eck62a13f659524b969@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
On Mon, 19 May 2008 11:09:43 -0400
"ext Eduardo Valentin" <edubezval@gmail.com> wrote:
> Hi Steve,
>
> This series is basically a simple transformation of currect mcbsp code
> to a platform
> driver and a separation of machine specific code.
>
> It should work for omap1 and omap2 (what is currently supported). But
> it should add basic support for omap3
> mcbps 1 and 2. Chandra will send his patches on top of this series to
> add more features for omap3.
>
For those who are keen to try ASoC on OMAP3 might want to try attached
patch on top of Eduardo's set.
I'll prepare better one when there are more ports defined. E.g.
there is no need to separe omap34xx_dma_regs table since request
numbers are the same between OMAP2 and OMAP3.
Jarkko
[-- Attachment #2: 0001-ASoC-OMAP-Add-basic-support-for-OMAP34xx-in-McBSP.patch --]
[-- Type: text/x-diff, Size: 1985 bytes --]
>From a1dbb6dd28e9815a307b87b8d96dcf371d6cfd58 Mon Sep 17 00:00:00 2001
From: Jarkko Nikula <jarkko.nikula@nokia.com>
Date: Mon, 19 May 2008 13:24:41 +0300
Subject: [PATCH] ASoC: OMAP: Add basic support for OMAP34xx in McBSP DAI driver
This adds support for OMAP34xx McBSP port 1 and 2.
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
---
sound/soc/omap/omap-mcbsp.c | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 40d87e6..8e6ec9d 100644
--- a/sound/soc/omap/omap-mcbsp.c
+++ b/sound/soc/omap/omap-mcbsp.c
@@ -99,6 +99,21 @@ static const unsigned long omap2420_mcbsp_port[][2] = {
static const int omap2420_dma_reqs[][2] = {};
static const unsigned long omap2420_mcbsp_port[][2] = {};
#endif
+#if defined(CONFIG_ARCH_OMAP34XX)
+static const int omap34xx_dma_reqs[][2] = {
+ { OMAP24XX_DMA_MCBSP1_TX, OMAP24XX_DMA_MCBSP1_RX },
+ { OMAP24XX_DMA_MCBSP2_TX, OMAP24XX_DMA_MCBSP2_RX },
+};
+static const unsigned long omap34xx_mcbsp_port[][2] = {
+ { OMAP34XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR2,
+ OMAP34XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR2 },
+ { OMAP34XX_MCBSP2_BASE + OMAP_MCBSP_REG_DXR2,
+ OMAP34XX_MCBSP2_BASE + OMAP_MCBSP_REG_DRR2 },
+};
+#else
+static const int omap34xx_dma_reqs[][2] = {};
+static const unsigned long omap34xx_mcbsp_port[][2] = {};
+#endif
static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream)
{
@@ -169,9 +184,12 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
} else if (cpu_is_omap2420()) {
dma = omap2420_dma_reqs[bus_id][substream->stream];
port = omap2420_mcbsp_port[bus_id][substream->stream];
+ } else if (cpu_is_omap343x()) {
+ dma = omap34xx_dma_reqs[bus_id][substream->stream];
+ port = omap34xx_mcbsp_port[bus_id][substream->stream];
} else {
/*
- * TODO: Add support for 2430 and 3430
+ * TODO: Add support for 2430
*/
return -ENODEV;
}
--
1.5.5.1
next prev parent reply other threads:[~2008-05-20 11:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 21:23 [PATCH 0/4] Updates on mcbsp driver (take #2) Eduardo Valentin
2008-05-05 21:23 ` [PATCH 1/4] PLAT-OMAP: MCBSP: Tranform into platform driver Eduardo Valentin
2008-05-05 21:23 ` [PATCH 2/4] MACH-OMAP1: MCBSP: Add support for mcbsp on mach-omap1 Eduardo Valentin
2008-05-05 21:23 ` [PATCH 3/4] Fix mcbsp clock definition on clock34xx.h Eduardo Valentin
2008-05-05 21:23 ` [PATCH 4/4] MACH-OMAP2: MCBSP: Add support for mcbsp on mach-omap2 Eduardo Valentin
2008-05-08 11:23 ` [PATCH 1/4] PLAT-OMAP: MCBSP: Tranform into platform driver Trilok Soni
2008-05-08 12:13 ` Eduardo Valentin
2008-05-20 23:44 ` Tony Lindgren
2008-05-29 15:30 ` Eduardo Valentin
2008-05-16 15:54 ` [PATCH 0/4] Updates on mcbsp driver (take #2) Tony Lindgren
2008-05-19 14:26 ` Steve Sakoman
2008-05-19 15:09 ` Eduardo Valentin
2008-05-20 11:21 ` Jarkko Nikula [this message]
2008-06-12 19:14 ` Steve Sakoman
2008-06-13 6:31 ` Jarkko Nikula
2008-05-20 6:47 ` Chandra shekhar
2008-05-20 18:27 ` Koen Kooi
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=20080520142128.3498f258.jarkko.nikula@nokia.com \
--to=jarkko.nikula@nokia.com \
--cc=eduardo.valentin@indt.org.br \
--cc=edubezval@gmail.com \
--cc=linux-omap@vger.kernel.org \
--cc=sakoman@gmail.com \
--cc=tony@atomide.com \
--cc=x0044955@ti.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