]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: arizona: Use actual rather than desired BCLK when calculating LRCLK
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 17 Jan 2013 05:15:59 +0000 (14:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:04 +0000 (18:27 -0600)
commit b59e0f82aa350e380142353fbd30706092ba6312 upstream.

Otherwise we'll get the wrong LRCLK if we need to pick a higher BCLK than
is required.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/arizona.c

index 08ae3cb1e95b02be3e315836b47bbd84e4b2ff68..f9d9f684fe6bdf47df7526061e532763e4c88c4d 100644 (file)
@@ -648,7 +648,7 @@ static int arizona_hw_params(struct snd_pcm_substream *substream,
        }
        sr_val = i;
 
-       lrclk = snd_soc_params_to_bclk(params) / params_rate(params);
+       lrclk = rates[bclk] / params_rate(params);
 
        arizona_aif_dbg(dai, "BCLK %dHz LRCLK %dHz\n",
                        rates[bclk], rates[bclk] / lrclk);