diff options
Diffstat (limited to 'sound/soc/samsung/s3c24xx-i2s.c')
-rw-r--r-- | sound/soc/samsung/s3c24xx-i2s.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c index 4a6d206db222..9aba9fb7df0e 100644 --- a/sound/soc/samsung/s3c24xx-i2s.c +++ b/sound/soc/samsung/s3c24xx-i2s.c | |||
@@ -248,12 +248,12 @@ static int s3c24xx_i2s_hw_params(struct snd_pcm_substream *substream, | |||
248 | iismod = readl(s3c24xx_i2s.regs + S3C2410_IISMOD); | 248 | iismod = readl(s3c24xx_i2s.regs + S3C2410_IISMOD); |
249 | pr_debug("hw_params r: IISMOD: %x\n", iismod); | 249 | pr_debug("hw_params r: IISMOD: %x\n", iismod); |
250 | 250 | ||
251 | switch (params_format(params)) { | 251 | switch (params_width(params)) { |
252 | case SNDRV_PCM_FORMAT_S8: | 252 | case 8: |
253 | iismod &= ~S3C2410_IISMOD_16BIT; | 253 | iismod &= ~S3C2410_IISMOD_16BIT; |
254 | dma_data->dma_size = 1; | 254 | dma_data->dma_size = 1; |
255 | break; | 255 | break; |
256 | case SNDRV_PCM_FORMAT_S16_LE: | 256 | case 16: |
257 | iismod |= S3C2410_IISMOD_16BIT; | 257 | iismod |= S3C2410_IISMOD_16BIT; |
258 | dma_data->dma_size = 2; | 258 | dma_data->dma_size = 2; |
259 | break; | 259 | break; |