aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/mcbsp.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-03-08 04:01:37 -0500
committerLiam Girdwood <lrg@ti.com>2012-03-12 09:34:23 -0400
commitcd1f08c7f64ce2093877ecafd21ee784c8ca2389 (patch)
treeb8d71627371435c1b5539311ddf0e1bef6b25dfe /sound/soc/omap/mcbsp.h
parent33cec399048545c64d9b9a1368b968acee8acb35 (diff)
ASoC: omap-mcbsp: Single function CLKR/FSR source mux configuration
Use single function for the CLKR/FSR mux configuration. OMAP2/3 has 6 pin configuration on McBSP1 instance, while on OMAP4 McBSP4 instance have the 6 pin configuration so the omap2_mcbsp1_mux_* is not correct name for all support OMAP versions Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/omap/mcbsp.h')
-rw-r--r--sound/soc/omap/mcbsp.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/sound/soc/omap/mcbsp.h b/sound/soc/omap/mcbsp.h
index acc94700f5b7..a944fcc9073c 100644
--- a/sound/soc/omap/mcbsp.h
+++ b/sound/soc/omap/mcbsp.h
@@ -230,13 +230,11 @@ enum {
230#define XRDYEN BIT(10) 230#define XRDYEN BIT(10)
231#define XEMPTYEOFEN BIT(14) 231#define XEMPTYEOFEN BIT(14)
232 232
233/* CLKR signal muxing options */ 233/* Clock signal muxing options */
234#define CLKR_SRC_CLKR 0 234#define CLKR_SRC_CLKR 0 /* CLKR signal is from the CLKR pin */
235#define CLKR_SRC_CLKX 1 235#define CLKR_SRC_CLKX 1 /* CLKR signal is from the CLKX pin */
236 236#define FSR_SRC_FSR 2 /* FSR signal is from the FSR pin */
237/* FSR signal muxing options */ 237#define FSR_SRC_FSX 3 /* FSR signal is from the FSX pin */
238#define FSR_SRC_FSR 0
239#define FSR_SRC_FSX 1
240 238
241/* McBSP functional clock sources */ 239/* McBSP functional clock sources */
242#define MCBSP_CLKS_PRCM_SRC 0 240#define MCBSP_CLKS_PRCM_SRC 0
@@ -333,8 +331,7 @@ void omap_mcbsp_stop(struct omap_mcbsp *mcbsp, int tx, int rx);
333int omap2_mcbsp_set_clks_src(struct omap_mcbsp *mcbsp, u8 fck_src_id); 331int omap2_mcbsp_set_clks_src(struct omap_mcbsp *mcbsp, u8 fck_src_id);
334 332
335/* McBSP signal muxing API */ 333/* McBSP signal muxing API */
336void omap2_mcbsp1_mux_clkr_src(struct omap_mcbsp *mcbsp, u8 mux); 334int omap_mcbsp_6pin_src_mux(struct omap_mcbsp *mcbsp, u8 mux);
337void omap2_mcbsp1_mux_fsr_src(struct omap_mcbsp *mcbsp, u8 mux);
338 335
339/* Sidetone specific API */ 336/* Sidetone specific API */
340int omap_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, s16 chgain); 337int omap_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, s16 chgain);