Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61a219fe authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 74e26809
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;

	/*