Skip to contentSkip to conversation

ASoC: S3C64XX: I2S: Use s3c2412 defines

PATCH In review Jassi Brar 1 participant 1 message Apr 27, 2010

Subsystems (3)
lore
Share & tools
lore

Jassi Brar

author
#0 lore raw

PATCH 7/11 ASoC: S3C64XX: I2S: Use s3c2412 defines

Now that the fields are defined for s3c2412, use them and avoid having multiple copies of same defines.

---
 sound/soc/s3c24xx/regs-i2s-v2.h |    3 ---
 sound/soc/s3c24xx/s3c64xx-i2s.c |    4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)
sound/soc/s3c24xx/regs-i2s-v2.h +0 -3
index 484858a..5e5e568 100644
@@ -73,9 +73,6 @@
 #define S3C64XX_IISMOD_BLC_24BIT	(2 << 13)
 #define S3C64XX_IISMOD_BLC_MASK		(3 << 13)
 
-#define S3C64XX_IISMOD_IMS_PCLK		(0 << 10)
-#define S3C64XX_IISMOD_IMS_SYSMUX	(1 << 10)
-
 #define S3C2412_IISMOD_IMS_SYSMUX	(1 << 10)
 #define S3C2412_IISMOD_SLAVE		(1 << 11)
 #define S3C2412_IISMOD_MODE_TXONLY	(0 << 8)
sound/soc/s3c24xx/s3c64xx-i2s.c +2 -2
index 97327ef..6d49bd9 100644
@@ -62,11 +62,11 @@ static int s3c64xx_i2s_set_sysclk(struct snd_soc_dai *cpu_dai,
 
 	switch (clk_id) {
 	case S3C64XX_CLKSRC_PCLK:
-		iismod &= ~S3C64XX_IISMOD_IMS_SYSMUX;
+		iismod &= ~S3C2412_IISMOD_IMS_SYSMUX;
 		break;
 
 	case S3C64XX_CLKSRC_MUX:
-		iismod |= S3C64XX_IISMOD_IMS_SYSMUX;
+		iismod |= S3C2412_IISMOD_IMS_SYSMUX;
 		break;
 
 	case S3C64XX_CLKSRC_CDCLK:
Signature · 1 line
1.6.2.5