]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: wm8994: Ensure there are enough BCLKs for four channels
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 22 Jun 2012 16:21:17 +0000 (17:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:27:53 +0000 (08:27 -0700)
commit b8edf3e5522735c8ce78b81845f7a1a2d4a08626 upstream.

Otherwise if someone tries to use all four channels on AIF1 with the
device in master mode we won't be able to clock out all the data.

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

index 21949123787564ccb1a9a5f4e766f7411aabfd69..1f7616d03ffffa28e6177540c623666842aa6d5e 100644 (file)
@@ -2127,7 +2127,7 @@ static int wm8994_hw_params(struct snd_pcm_substream *substream,
                return -EINVAL;
        }
 
-       bclk_rate = params_rate(params) * 2;
+       bclk_rate = params_rate(params) * 4;
        switch (params_format(params)) {
        case SNDRV_PCM_FORMAT_S16_LE:
                bclk_rate *= 16;