]> Git Repo - linux.git/commitdiff
ASoC: WM8580: Debug BCLK and sample size
authorJassi Brar <[email protected]>
Tue, 7 Dec 2010 10:23:07 +0000 (19:23 +0900)
committerMark Brown <[email protected]>
Tue, 7 Dec 2010 15:49:18 +0000 (15:49 +0000)
In case of SNDRV_PCM_FORMAT_S32_LE, we need to set WM8580_AIF_LENGTH_32,
rather than WM8580_AIF_LENGTH_24.
Also, the BCLK has to be 64fs, for sample size of 20, 24 and 32 bits.

Signed-off-by: Jassi Brar <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/wm8580.c

index a2e0ed59b3769f0b7d73024a6e4740338b1ccb81..879dff2714dd3c522211dbac3c636a5191d8ce4b 100644 (file)
@@ -491,16 +491,16 @@ static int wm8580_paif_hw_params(struct snd_pcm_substream *substream,
                paifa |= 0x8;
                break;
        case SNDRV_PCM_FORMAT_S20_3LE:
-               paifa |= 0x10;
+               paifa |= 0x0;
                paifb |= WM8580_AIF_LENGTH_20;
                break;
        case SNDRV_PCM_FORMAT_S24_LE:
-               paifa |= 0x10;
+               paifa |= 0x0;
                paifb |= WM8580_AIF_LENGTH_24;
                break;
        case SNDRV_PCM_FORMAT_S32_LE:
-               paifa |= 0x10;
-               paifb |= WM8580_AIF_LENGTH_24;
+               paifa |= 0x0;
+               paifb |= WM8580_AIF_LENGTH_32;
                break;
        default:
                return -EINVAL;
This page took 0.054552 seconds and 4 git commands to generate.