]> 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)
commit952b02e4ba9cd3c4e88e1ea5c176070a7aa5d84e
tree03dd7bf44fb25f40f435e801e888d7bef45880b3
parent68c433b43600b83a583aa2df0dc7bbdb8eeafdaf
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