ASoC: WM8903: Use 2x of miniumum bitclk in master mode
Sumit Bhattacharya [Tue, 17 Jan 2012 13:56:18 +0000 (18:56 +0530)]
Instead of using tight bitclk use 2x of minimum bitclk requirement
in codec master mode. This change is needed to have clean audio
in codec master mode on Tegra30 based cardhu platform.

Bug 915107

Change-Id: Ia59e1a906415ad8fd1ed324ab4dabef61746b62f
Reviewed-on: http://git-master/r/75706
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76467
Reviewed-by: Automatic_Commit_Validation_User

sound/soc/codecs/wm8903.c

index 4f418fc..a5193a9 100644 (file)
@@ -1493,7 +1493,7 @@ static int wm8903_hw_params(struct snd_pcm_substream *substream,
        clock1 |= sample_rates[dsp_config].value;
 
        aif1 &= ~WM8903_AIF_WL_MASK;
-       bclk = 2 * fs;
+       bclk = 4 * fs;
        switch (params_format(params)) {
        case SNDRV_PCM_FORMAT_S16_LE:
                bclk *= 16;