]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.27/0023-ASoC-wm8994-Ensure-there-are-enough-BCLKs-for-four-c.patch
linux-ti33x-psp 3.2: update to 3.2.28 and add motorcape support
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.27 / 0023-ASoC-wm8994-Ensure-there-are-enough-BCLKs-for-four-c.patch
1 From f2173fb9a41cc0f7c114bb81fc0d138bc9649ccd Mon Sep 17 00:00:00 2001
2 From: Mark Brown <broonie@opensource.wolfsonmicro.com>
3 Date: Fri, 22 Jun 2012 17:21:17 +0100
4 Subject: [PATCH 23/70] ASoC: wm8994: Ensure there are enough BCLKs for four
5  channels
7 commit b8edf3e5522735c8ce78b81845f7a1a2d4a08626 upstream.
9 Otherwise if someone tries to use all four channels on AIF1 with the
10 device in master mode we won't be able to clock out all the data.
12 Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
13 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
14 ---
15  sound/soc/codecs/wm8994.c |    2 +-
16  1 files changed, 1 insertions(+), 1 deletions(-)
18 diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
19 index de61b8a..98c5774 100644
20 --- a/sound/soc/codecs/wm8994.c
21 +++ b/sound/soc/codecs/wm8994.c
22 @@ -2508,7 +2508,7 @@ static int wm8994_hw_params(struct snd_pcm_substream *substream,
23                 return -EINVAL;
24         }
25  
26 -       bclk_rate = params_rate(params) * 2;
27 +       bclk_rate = params_rate(params) * 4;
28         switch (params_format(params)) {
29         case SNDRV_PCM_FORMAT_S16_LE:
30                 bclk_rate *= 16;
31 -- 
32 1.7.7.6