ASoC: omap-mcbsp: Correct clock muxing for CLKR/FSR signals
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 8 Mar 2012 11:34:16 +0000 (13:34 +0200)
committerLiam Girdwood <lrg@ti.com>
Mon, 12 Mar 2012 13:34:23 +0000 (13:34 +0000)
commit5788c62e72b8484836ae6587c7fb65757a777a3a
treeb0d943dd164abc2a58c3da43342615cf62609be4
parentcd1f08c7f64ce2093877ecafd21ee784c8ca2389
ASoC: omap-mcbsp: Correct clock muxing for CLKR/FSR signals

Remove the no longer valid check for McBSP1 regarding to signal mux
selection (on OMAP4 McBSP4 has 6 pin setup).
Only clear the srgr2, pcr0 register configuration if the requested clock
configuration will actually going to touch it. In this way we can avoid
issues if the CLKR/FSR mux has been configured after the clock selection.

We are going to check for the valid McBSP port in the
omap_mcbsp_6pin_src_mux() function based on the validity of the mux_signal
callback (which is only valid for ports having 6 pin setup).

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
sound/soc/omap/mcbsp.c
sound/soc/omap/omap-mcbsp.c