summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-06 13:22:25 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-07 07:53:09 +0400
commit0c778e86337148110b13b609074109eb4dcacd15 (patch)
tree57002d0f37f88348237ac6610ff43a82bf169c4a
parent09871a942ab71fb06ceb7f0a4d38ea62fe7459ec (diff)
downloadlinux-0c778e86337148110b13b609074109eb4dcacd15.tar.xz
ASoC: arizona: Store the DAI clock ID when setting
So the code to suppress duplicate changes is effective. Reported-by: Kyung Kwee Ryu <Kyung-Kwee.Ryu@wolfsonmicro.comyu@wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/arizona.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
index 49d115205810..6c1be6cadc0b 100644
--- a/sound/soc/codecs/arizona.c
+++ b/sound/soc/codecs/arizona.c
@@ -761,6 +761,8 @@ static int arizona_dai_set_sysclk(struct snd_soc_dai *dai,
routes[1].source = arizona_dai_clk_str(clk_id);
snd_soc_dapm_add_routes(&codec->dapm, routes, ARRAY_SIZE(routes));
+ dai_priv->clk = clk_id;
+
return snd_soc_dapm_sync(&codec->dapm);
}