summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/smdk_wm8994.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2014-05-23 14:05:39 +0200
committerMark Brown <broonie@linaro.org>2014-05-26 18:04:20 +0200
commit88ce1465ec471cfb978744ab2ab40460c6b96b4c (patch)
tree59335459221ef10d11e2af111abdada832581809 /sound/soc/samsung/smdk_wm8994.c
parentASoC: samsung: Handle errors when getting the op_clk clock (diff)
downloadlinux-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/smdk_wm8994.c')
-rw-r--r--sound/soc/samsung/smdk_wm8994.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c
index 682eb4f7ba0c..5b544dcf18b4 100644
--- a/sound/soc/samsung/smdk_wm8994.c
+++ b/sound/soc/samsung/smdk_wm8994.c
@@ -57,7 +57,7 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,
int ret;
/* AIF1CLK should be >=3MHz for optimal performance */
- if (params_format(params) == SNDRV_PCM_FORMAT_S24_LE)
+ if (params_width(params) == 24)
pll_out = params_rate(params) * 384;
else if (params_rate(params) == 8000 || params_rate(params) == 11025)
pll_out = params_rate(params) * 512;