Skip to content

Commit

Permalink
ASoC: S3C64XX: I2S: Use s3c2412 defines
Browse files Browse the repository at this point in the history
Now that the fields are defined for s3c2412, use them and avoid having
multiple copies of same defines.

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Jassi Brar authored and Mark Brown committed May 5, 2010
1 parent 5728242 commit d47ef9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions sound/soc/s3c24xx/regs-i2s-v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/s3c24xx/s3c64xx-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d47ef9c

Please sign in to comment.