]> asedeno.scripts.mit.edu Git - linux.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)
commit599da084e041b877ef89211dcbb4c7bd8380049d
tree03dd7bf44fb25f40f435e801e888d7bef45880b3
parent0e289012b47a2de1f029a6b61c75998e2f159dd9
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