diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-03-07 00:06:17 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-07 02:41:54 -0500 |
commit | 61a219fe192412bca6c26657a4b0c99c67a3e7fc (patch) | |
tree | f47ac4da10b9ead051fa3263823d6079e2628cd6 | |
parent | 74e26809fb47e072d0838f74a08a0a5aa428848f (diff) |
ASoC: rsnd: don't enable SRC Sync mode when Capture with CMD
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>
-rw-r--r-- | sound/soc/sh/rcar/src.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 8e1177aea6b1..541a478cf157 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c | |||
@@ -475,7 +475,6 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod, | |||
475 | struct snd_soc_pcm_runtime *rtd) | 475 | struct snd_soc_pcm_runtime *rtd) |
476 | { | 476 | { |
477 | struct rsnd_dai *rdai = rsnd_io_to_rdai(io); | 477 | struct rsnd_dai *rdai = rsnd_io_to_rdai(io); |
478 | struct rsnd_mod *dvc = rsnd_io_to_mod_dvc(io); | ||
479 | struct rsnd_src *src = rsnd_mod_to_src(mod); | 478 | struct rsnd_src *src = rsnd_mod_to_src(mod); |
480 | int ret; | 479 | int ret; |
481 | 480 | ||
@@ -490,9 +489,10 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod, | |||
490 | return 0; | 489 | return 0; |
491 | 490 | ||
492 | /* | 491 | /* |
493 | * SRC In doesn't work if DVC was enabled | 492 | * It can't use SRC Synchronous convert |
493 | * when Capture if it uses CMD | ||
494 | */ | 494 | */ |
495 | if (dvc && !rsnd_io_is_play(io)) | 495 | if (rsnd_io_to_mod_cmd(io) && !rsnd_io_is_play(io)) |
496 | return 0; | 496 | return 0; |
497 | 497 | ||
498 | /* | 498 | /* |