diff options
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index f6a7466622ea..fc5d089868df 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c | |||
@@ -286,6 +286,11 @@ static int rsnd_ssi_master_clk_start(struct rsnd_mod *mod, | |||
286 | if (rsnd_ssi_is_multi_slave(mod, io)) | 286 | if (rsnd_ssi_is_multi_slave(mod, io)) |
287 | return 0; | 287 | return 0; |
288 | 288 | ||
289 | if (rsnd_runtime_is_tdm_split(io)) | ||
290 | chan = rsnd_io_converted_chan(io); | ||
291 | |||
292 | chan = rsnd_channel_normalization(chan); | ||
293 | |||
289 | if (ssi->usrcnt > 0) { | 294 | if (ssi->usrcnt > 0) { |
290 | if (ssi->rate != rate) { | 295 | if (ssi->rate != rate) { |
291 | dev_err(dev, "SSI parent/child should use same rate\n"); | 296 | dev_err(dev, "SSI parent/child should use same rate\n"); |
@@ -300,11 +305,6 @@ static int rsnd_ssi_master_clk_start(struct rsnd_mod *mod, | |||
300 | return 0; | 305 | return 0; |
301 | } | 306 | } |
302 | 307 | ||
303 | if (rsnd_runtime_is_tdm_split(io)) | ||
304 | chan = rsnd_io_converted_chan(io); | ||
305 | |||
306 | chan = rsnd_channel_normalization(chan); | ||
307 | |||
308 | main_rate = rsnd_ssi_clk_query(rdai, rate, chan, &idx); | 308 | main_rate = rsnd_ssi_clk_query(rdai, rate, chan, &idx); |
309 | if (!main_rate) { | 309 | if (!main_rate) { |
310 | dev_err(dev, "unsupported clock rate\n"); | 310 | dev_err(dev, "unsupported clock rate\n"); |