diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-08-16 09:41:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-22 15:16:59 -0400 |
commit | cafebc4a66b7ebd4c7990757f7f578488d865ee9 (patch) | |
tree | ae1f2f768b388c4af6d1b26734cbc78ab2aef756 /arch/arm/mach-omap2 | |
parent | f199131a8f1dde3309c8520b663aa7a3daf5995e (diff) |
ARM: OMAP: mcbsp: Enable FIFO use for OMAP2430
On OMAP2430 all McBSP ports have 128 word long buffer, enable the use of
the FIFO for the audio stack.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/mcbsp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index ebc801ea5be9..6e046e1111b1 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c | |||
@@ -151,7 +151,10 @@ static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) | |||
151 | if (id == 4 && oh->class->rev == MCBSP_CONFIG_TYPE4) | 151 | if (id == 4 && oh->class->rev == MCBSP_CONFIG_TYPE4) |
152 | pdata->mux_signal = omap4_mcbsp4_mux_rx_clk; | 152 | pdata->mux_signal = omap4_mcbsp4_mux_rx_clk; |
153 | 153 | ||
154 | if (oh->class->rev == MCBSP_CONFIG_TYPE3) { | 154 | if (oh->class->rev == MCBSP_CONFIG_TYPE2) { |
155 | /* The FIFO has 128 locations */ | ||
156 | pdata->buffer_size = 0x80; | ||
157 | } else if (oh->class->rev == MCBSP_CONFIG_TYPE3) { | ||
155 | if (id == 2) | 158 | if (id == 2) |
156 | /* The FIFO has 1024 + 256 locations */ | 159 | /* The FIFO has 1024 + 256 locations */ |
157 | pdata->buffer_size = 0x500; | 160 | pdata->buffer_size = 0x500; |