diff mbox

[v2,2/2] ARM: davinci: enable SRAM ping ping buffering on DA850

Message ID 1349991229-32107-3-git-send-email-mporter@ti.com (mailing list archive)
State Awaiting Upstream
Headers show

Commit Message

Matt Porter Oct. 11, 2012, 9:33 p.m. UTC
Passes the DA850 shared SRAM gen_pool to the McASP driver
and enables the ping-pong buffer DMA support.

Signed-off-by: Matt Porter <mporter@ti.com>
---
 arch/arm/mach-davinci/board-da850-evm.c |   25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

Comments

Sergei Shtylyov Oct. 12, 2012, 5:11 p.m. UTC | #1
Hello.

On 11-10-2012 23:33, Matt Porter wrote:

> Passes the DA850 shared SRAM gen_pool to the McASP driver
> and enables the ping-pong buffer DMA support.

    Here "ping-pong is correct but the subject have a typo.

> Signed-off-by: Matt Porter <mporter@ti.com>
>

WBR, Sergei
Matt Porter Oct. 18, 2012, 3:18 p.m. UTC | #2
On Fri, Oct 12, 2012 at 07:11:06PM +0200, Sergei Shtylyov wrote:
> Hello.
> 
> On 11-10-2012 23:33, Matt Porter wrote:
> 
> >Passes the DA850 shared SRAM gen_pool to the McASP driver
> >and enables the ping-pong buffer DMA support.
> 
>    Here "ping-pong is correct but the subject have a typo.

Thanks.

Daniel: can you correct this when you squash these into your
series?

-Matt
diff mbox

Patch

diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c
index 9e7f954..df87866 100644
--- a/arch/arm/mach-davinci/board-da850-evm.c
+++ b/arch/arm/mach-davinci/board-da850-evm.c
@@ -41,6 +41,7 @@ 
 #include <mach/cp_intc.h>
 #include <mach/da8xx.h>
 #include <mach/mux.h>
+#include <mach/sram.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
@@ -749,16 +750,19 @@  static u8 da850_iis_serializer_direction[] = {
 };
 
 static struct snd_platform_data da850_evm_snd_data = {
-	.tx_dma_offset	= 0x2000,
-	.rx_dma_offset	= 0x2000,
-	.op_mode	= DAVINCI_MCASP_IIS_MODE,
-	.num_serializer	= ARRAY_SIZE(da850_iis_serializer_direction),
-	.tdm_slots	= 2,
-	.serial_dir	= da850_iis_serializer_direction,
-	.asp_chan_q	= EVENTQ_0,
-	.version	= MCASP_VERSION_2,
-	.txnumevt	= 1,
-	.rxnumevt	= 1,
+	.tx_dma_offset		= 0x2000,
+	.rx_dma_offset		= 0x2000,
+	.op_mode		= DAVINCI_MCASP_IIS_MODE,
+	.num_serializer		= ARRAY_SIZE(da850_iis_serializer_direction),
+	.tdm_slots		= 2,
+	.serial_dir		= da850_iis_serializer_direction,
+	.asp_chan_q		= EVENTQ_0,
+	.ram_chan_q		= EVENTQ_1,
+	.version		= MCASP_VERSION_2,
+	.txnumevt		= 1,
+	.rxnumevt		= 1,
+	.sram_size_playback	= SZ_8K,
+	.sram_size_capture	= SZ_8K,
 };
 
 static const short da850_evm_mcasp_pins[] __initconst = {
@@ -1333,6 +1337,7 @@  static __init void da850_evm_init(void)
 		pr_warning("da850_evm_init: mcasp mux setup failed: %d\n",
 				ret);
 
+	da850_evm_snd_data.sram_pool = sram_get_gen_pool();
 	da8xx_register_mcasp(0, &da850_evm_snd_data);
 
 	ret = davinci_cfg_reg_list(da850_lcdcntl_pins);