]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc56cc46ca256e2d5d41b4eeb7dbcd7a6a9a67233
treeecf062bb00e4cc24599f1291fefde9aca7d67960
parent944d7191d7b2655a7c9bd98bda8a322b7e5c112f
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