Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193325
b: refs/heads/master
c: 51c6ab1
h: refs/heads/master
i:
  193323: d320183
v: v3
  • Loading branch information
Jassi Brar authored and Mark Brown committed Mar 10, 2010
1 parent 8b7ce26 commit 3bfe6c4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 39 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa6231e1738617a864869600f51c3feb9e1081c8
refs/heads/master: 51c6ab130642ed975681df843c772dda48a1d2ed
68 changes: 30 additions & 38 deletions trunk/sound/soc/s3c24xx/s3c-i2s-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,29 +463,25 @@ static int s3c2412_i2s_set_clkdiv(struct snd_soc_dai *cpu_dai,

switch (div_id) {
case S3C_I2SV2_DIV_BCLK:
if (div > 3) {
/* convert value to bit field */

switch (div) {
case 16:
div = S3C2412_IISMOD_BCLK_16FS;
break;
switch (div) {
case 16:
div = S3C2412_IISMOD_BCLK_16FS;
break;

case 32:
div = S3C2412_IISMOD_BCLK_32FS;
break;
case 32:
div = S3C2412_IISMOD_BCLK_32FS;
break;

case 24:
div = S3C2412_IISMOD_BCLK_24FS;
break;
case 24:
div = S3C2412_IISMOD_BCLK_24FS;
break;

case 48:
div = S3C2412_IISMOD_BCLK_48FS;
break;
case 48:
div = S3C2412_IISMOD_BCLK_48FS;
break;

default:
return -EINVAL;
}
default:
return -EINVAL;
}

reg = readl(i2s->regs + S3C2412_IISMOD);
Expand All @@ -496,29 +492,25 @@ static int s3c2412_i2s_set_clkdiv(struct snd_soc_dai *cpu_dai,
break;

case S3C_I2SV2_DIV_RCLK:
if (div > 3) {
/* convert value to bit field */

switch (div) {
case 256:
div = S3C2412_IISMOD_RCLK_256FS;
break;
switch (div) {
case 256:
div = S3C2412_IISMOD_RCLK_256FS;
break;

case 384:
div = S3C2412_IISMOD_RCLK_384FS;
break;
case 384:
div = S3C2412_IISMOD_RCLK_384FS;
break;

case 512:
div = S3C2412_IISMOD_RCLK_512FS;
break;
case 512:
div = S3C2412_IISMOD_RCLK_512FS;
break;

case 768:
div = S3C2412_IISMOD_RCLK_768FS;
break;
case 768:
div = S3C2412_IISMOD_RCLK_768FS;
break;

default:
return -EINVAL;
}
default:
return -EINVAL;
}

reg = readl(i2s->regs + S3C2412_IISMOD);
Expand Down

0 comments on commit 3bfe6c4

Please sign in to comment.