aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/mcbsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/omap/mcbsp.c')
-rw-r--r--sound/soc/omap/mcbsp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c
index 95413a16808..e5f44440d1b 100644
--- a/sound/soc/omap/mcbsp.c
+++ b/sound/soc/omap/mcbsp.c
@@ -690,7 +690,9 @@ int omap2_mcbsp_set_clks_src(struct omap_mcbsp *mcbsp, u8 fck_src_id)
690int omap_mcbsp_6pin_src_mux(struct omap_mcbsp *mcbsp, u8 mux) 690int omap_mcbsp_6pin_src_mux(struct omap_mcbsp *mcbsp, u8 mux)
691{ 691{
692 const char *signal, *src; 692 const char *signal, *src;
693 int ret = 0; 693
694 if (mcbsp->pdata->mux_signal)
695 return -EINVAL;
694 696
695 switch (mux) { 697 switch (mux) {
696 case CLKR_SRC_CLKR: 698 case CLKR_SRC_CLKR:
@@ -713,10 +715,7 @@ int omap_mcbsp_6pin_src_mux(struct omap_mcbsp *mcbsp, u8 mux)
713 return -EINVAL; 715 return -EINVAL;
714 } 716 }
715 717
716 if (mcbsp->pdata->mux_signal) 718 return mcbsp->pdata->mux_signal(mcbsp->dev, signal, src);
717 ret = mcbsp->pdata->mux_signal(mcbsp->dev, signal, src);
718
719 return ret;
720} 719}
721 720
722#define max_thres(m) (mcbsp->pdata->buffer_size) 721#define max_thres(m) (mcbsp->pdata->buffer_size)