ASoC: rsnd: don't enable SRC Sync mode when Capture with CMD
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 7 Mar 2016 05:06:17 +0000 (05:06 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 7 Mar 2016 07:41:54 +0000 (14:41 +0700)
It can't use SRC Synchronous convert when Capture if it uses CMD,
because no one provide out side clocks.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/src.c

index 8e1177aea6b1e581b8d4018adf8832391c570f53..541a478cf157226e1abe4e688d136f8a7906b4b0 100644 (file)
@@ -475,7 +475,6 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod,
                            struct snd_soc_pcm_runtime *rtd)
 {
        struct rsnd_dai *rdai = rsnd_io_to_rdai(io);
-       struct rsnd_mod *dvc = rsnd_io_to_mod_dvc(io);
        struct rsnd_src *src = rsnd_mod_to_src(mod);
        int ret;
 
@@ -490,9 +489,10 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod,
                return 0;
 
        /*
-        * SRC In doesn't work if DVC was enabled
+        * It can't use SRC Synchronous convert
+        * when Capture if it uses CMD
         */
-       if (dvc && !rsnd_io_is_play(io))
+       if (rsnd_io_to_mod_cmd(io) && !rsnd_io_is_play(io))
                return 0;
 
        /*