ASoC: rsnd: remove is_play parameter from hw_rule function
authorJiada Wang <jiada_wang@mentor.com>
Mon, 3 Sep 2018 07:06:50 +0000 (07:06 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Sep 2018 13:37:14 +0000 (14:37 +0100)
commitb735662fa473c0e3618a4d645ce797d31e0c9192
tree881d13488372b56dc77bd2764eeb0f488347806b
parentba5d553b7bd71e63d639863e2cb09e0c9543b8b7
ASoC: rsnd: remove is_play parameter from hw_rule function

Currently rsnd_dai_stream *io is set to either &rdai->playback or
&rdai->capture based on whether it is a playback or capture stream,
in __rsnd_soc_hw_rule_* functions, but this is not necessary,
rsnd_dai_stream *io handler can be get from rule->private.

This patch removes 'is_play' parameter from hw_rule function.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
[Kuninori: tidyup for upstream]
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/core.c