Skip to contentSkip to conversation

S3C2410 i2s programming error

PATCH Liam Girdwood 1 participant 1 message May 4, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 22 lines · ing. Davide Rizzo

S3C2410 i2s driver currently manages only i2s protocol (and not left justified one) and slave mode.
With this small patch, other modes are possible.
Davide

plain text document attachment (s3c24xx-i2s.patch)
This patch to correctly manage codecs in slave mode and left-justified format

================================================================================

sound/soc/s3c24xx/s3c24xx-i2s.c +1 -0
@@ -224,6 +224,7 @@ static int s3c24xx_i2s_set_fmt(struct sn
 		iismod |= S3C2410_IISMOD_SLAVE;
 		break;
 	case SND_SOC_DAIFMT_CBS_CFS:
+		iismod &= ~S3C2410_IISMOD_SLAVE;
 		break;
 	default:
 		return -EINVAL;

sound/soc/s3c24xx/s3c24xx-i2s.c static int s3c24xx_i2s_set_fmt(struct sn

Quoted 8 lines
sound/soc/s3c24xx/s3c24xx-i2s.c +1 -1
@@ -234,6 +235,7 @@ static int s3c24xx_i2s_set_fmt(struct sn
 		iismod |= S3C2410_IISMOD_MSB;
 		break;
 	case SND_SOC_DAIFMT_I2S:
+		iismod &= ~S3C2410_IISMOD_MSB;
 		break;
 	default:
 		return -EINVAL;
-------------------------------------------------------------------

Acked-by: Liam Girdwood <[email protected]>

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel