diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2014-05-23 14:05:39 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-26 18:04:20 +0200 |
commit | 88ce1465ec471cfb978744ab2ab40460c6b96b4c (patch) | |
tree | 59335459221ef10d11e2af111abdada832581809 /sound/soc/samsung/s3c24xx-i2s.c | |
parent | ASoC: samsung: Handle errors when getting the op_clk clock (diff) | |
download | linux-88ce1465ec471cfb978744ab2ab40460c6b96b4c.tar.xz linux-88ce1465ec471cfb978744ab2ab40460c6b96b4c.zip |
ASoC: samsung: Use params_width()
commit 8c5178fca4ce ("ALSA: Add params_width() helpers") introduces
a helper to get the sample width. Updating Samsung related sound
drivers to use this helper.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
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, iismod = readl(s3c24xx_i2s.regs + S3C2410_IISMOD); pr_debug("hw_params r: IISMOD: %x\n", iismod); - switch (params_format(params)) { - case SNDRV_PCM_FORMAT_S8: + switch (params_width(params)) { + case 8: iismod &= ~S3C2410_IISMOD_16BIT; dma_data->dma_size = 1; break; - case SNDRV_PCM_FORMAT_S16_LE: + case 16: iismod |= S3C2410_IISMOD_16BIT; dma_data->dma_size = 2; break; |