From: Jarkko Nikula Date: Mon, 22 Dec 2008 08:57:33 +0000 (+0200) Subject: ASoC: Fix DSP formats in SSM2602 audio codec X-Git-Tag: v2.6.29-rc1~590^2~11^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c69134858722977a82f58cae88e7ffdb28e1e858;p=linux-2.6-omap-h63xx.git ASoC: Fix DSP formats in SSM2602 audio codec Thanks to Troy Kisky 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 Cc: Cliff Cai Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c index 2325aefea41..cac37361676 100644 --- a/sound/soc/codecs/ssm2602.c +++ b/sound/soc/codecs/ssm2602.c @@ -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;