aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@nokia.com>2008-12-22 03:57:33 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-22 11:23:22 -0500
commitc69134858722977a82f58cae88e7ffdb28e1e858 (patch)
tree5e26d489cbb48a7f5779ed2edcdaabaaba5ec3cd /sound/soc/codecs
parentbd25867a6cbe7a00ef7dbe8d9ddebc91b00b9b3f (diff)
ASoC: Fix DSP formats in SSM2602 audio codec
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>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/ssm2602.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
index 2325aefea411..cac373616768 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,
454 iface |= 0x0001; 454 iface |= 0x0001;
455 break; 455 break;
456 case SND_SOC_DAIFMT_DSP_A: 456 case SND_SOC_DAIFMT_DSP_A:
457 iface |= 0x0003; 457 iface |= 0x0013;
458 break; 458 break;
459 case SND_SOC_DAIFMT_DSP_B: 459 case SND_SOC_DAIFMT_DSP_B:
460 iface |= 0x0013; 460 iface |= 0x0003;
461 break; 461 break;
462 default: 462 default:
463 return -EINVAL; 463 return -EINVAL;