]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ASoC: Fix DSP formats in SSM2602 audio codec
authorJarkko Nikula <jarkko.nikula@nokia.com>
Mon, 22 Dec 2008 08:57:33 +0000 (10:57 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 22 Dec 2008 16:23:22 +0000 (16:23 +0000)
Thanks to Troy Kisky <troy.kisky@boundarydevices.com> for noticing.

- DSP_A format has 1-bit data delay which corresponds to SSM6202 submode 2
- DSP_B has 0-bit data delay which corresponds to submode 1
- Currently driver sets them opposite so swap the submode setting

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ssm2602.c

index 2325aefea4117222898a24f4f9b7fd8a85694ca5..cac373616768b67f8accb9ddad91fb1805bb3876 100644 (file)
@@ -454,10 +454,10 @@ static int ssm2602_set_dai_fmt(struct snd_soc_dai *codec_dai,
                iface |= 0x0001;
                break;
        case SND_SOC_DAIFMT_DSP_A:
-               iface |= 0x0003;
+               iface |= 0x0013;
                break;
        case SND_SOC_DAIFMT_DSP_B:
-               iface |= 0x0013;
+               iface |= 0x0003;
                break;
        default:
                return -EINVAL;