[alsa-devel] [PATCH] ASoC: omap-mcbsp: Export functions for threshold configuration

Peter Ujfalusi peter.ujfalusi at ti.com
Mon Mar 12 12:01:04 CET 2012


ABE has certain requirements towards the FIFO configuration in McBSP.
Make it posssible to configure the McBSP FIFO threshold from outside of
the McBSP driver stack.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi at ti.com>
---
Hi,

this patch is needed in preparation to add the ABE support for OMAP4+ platforms.

Regards,
Peter

 sound/soc/omap/mcbsp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c
index e5f4444..ca8b028 100644
--- a/sound/soc/omap/mcbsp.c
+++ b/sound/soc/omap/mcbsp.c
@@ -402,6 +402,7 @@ void omap_mcbsp_set_tx_threshold(struct omap_mcbsp *mcbsp, u16 threshold)
 	if (threshold && threshold <= mcbsp->max_tx_thres)
 		MCBSP_WRITE(mcbsp, THRSH2, threshold - 1);
 }
+EXPORT_SYMBOL_GPL(omap_mcbsp_set_tx_threshold);
 
 /*
  * omap_mcbsp_set_rx_threshold configures the receive threshold in words.
@@ -416,6 +417,7 @@ void omap_mcbsp_set_rx_threshold(struct omap_mcbsp *mcbsp, u16 threshold)
 	if (threshold && threshold <= mcbsp->max_rx_thres)
 		MCBSP_WRITE(mcbsp, THRSH1, threshold - 1);
 }
+EXPORT_SYMBOL_GPL(omap_mcbsp_set_rx_threshold);
 
 /*
  * omap_mcbsp_get_tx_delay returns the number of used slots in the McBSP FIFO
-- 
1.7.8.5



More information about the Alsa-devel mailing list