ASoC: arizona: Store the DAI clock ID when setting
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 6 Dec 2012 09:22:25 +0000 (18:22 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 7 Dec 2012 03:53:09 +0000 (12:53 +0900)
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>
sound/soc/codecs/arizona.c

index 49d115205810cb599e211844a55519676e706669..6c1be6cadc0bcc6f77684be15bac42fca51844a7 100644 (file)
@@ -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);
 }