ASoC: rcar: remove RSND_SSI_CLK_FROM_ADG
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 18 Oct 2013 05:51:40 +0000 (22:51 -0700)
committerMark Brown <broonie@linaro.org>
Sun, 20 Oct 2013 16:28:37 +0000 (17:28 +0100)
commit92eba04e4bcd469518cc759ac1bf1a49acaa5cc1
treeecf062bb00e4cc24599f1291fefde9aca7d67960
parentcdcfcac968a1ec648434892b6addd80e66a5a892
ASoC: rcar: remove RSND_SSI_CLK_FROM_ADG

R-Car sound has clock pin for each SSI, and sometimes,
these pins are shared with paired SSI.
It may sometimes become "SSI-A clock pin is master" and
"SSI-B clock pin is slave", but "SSI-A/B clock pins are shared".
SSI-B needs SSI-A clock in this case.

Current R-Car sound driver is using RSND_SSI_xxx flag
to control this kind of shared pin behavior.

But, this information, especially clock master setting,
can be got from ASoC set_fmt settings.
This patch removes rsnd_ssi_mode_init() and extend rsnd_ssi_mode_set()
to controlling pin settings via .set_fmt.

This patch doesn't removes RSND_SSI_CLK_FROM_ADG flag at this point
to avoid conflict branch merging between ASoC <-> SH-ARM.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/sh/rcar/ssi.c