]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: ssi: Check runtime channel number rather than hw_params
authorJiada Wang <jiada_wang@mentor.com>
Mon, 3 Sep 2018 07:07:26 +0000 (07:07 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Sep 2018 13:37:16 +0000 (14:37 +0100)
commitbc9cfa90a3b406dd0a0fd128a00778808262dbbd
tree03dd7bf44fb25f40f435e801e888d7bef45880b3
parent87545a175f777b42fc771126672a1aebd607063a
ASoC: rsnd: ssi: Check runtime channel number rather than hw_params

The number of channel handled by SSI maybe differs from the one set
in hw_params, currently SSI checks hw_params's channel number,
and constrains to use same channel number, when it is being
used by multiple clients.

This patch corrects to check runtime channel number rather
than channel number set in hw_params.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
[kuninori: adjust to upstreaming]
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ssi.c