summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/smdk_wm8580.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2014-05-23 17:35:39 +0530
committerMark Brown <broonie@linaro.org>2014-05-26 17:04:20 +0100
commit88ce1465ec471cfb978744ab2ab40460c6b96b4c (patch)
tree59335459221ef10d11e2af111abdada832581809 /sound/soc/samsung/smdk_wm8580.c
parenta6aba536ab60274e8f46ae3a5966b81c35f845fa (diff)
downloadop-kernel-dev-88ce1465ec471cfb978744ab2ab40460c6b96b4c.zip
op-kernel-dev-88ce1465ec471cfb978744ab2ab40460c6b96b4c.tar.gz
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/smdk_wm8580.c')
-rw-r--r--sound/soc/samsung/smdk_wm8580.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/samsung/smdk_wm8580.c b/sound/soc/samsung/smdk_wm8580.c
index 7a16b32..b1a519f 100644
--- a/sound/soc/samsung/smdk_wm8580.c
+++ b/sound/soc/samsung/smdk_wm8580.c
@@ -37,13 +37,11 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,
unsigned int pll_out;
int bfs, rfs, ret;
- switch (params_format(params)) {
- case SNDRV_PCM_FORMAT_U8:
- case SNDRV_PCM_FORMAT_S8:
+ switch (params_width(params)) {
+ case 8:
bfs = 16;
break;
- case SNDRV_PCM_FORMAT_U16_LE:
- case SNDRV_PCM_FORMAT_S16_LE:
+ case 16:
bfs = 32;
break;
default:
OpenPOWER on IntegriCloud