projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
580ce08
)
ASoC: max9850: Use params_width() rather than memory format
author
Mark Brown
<broonie@linaro.org>
Wed, 8 Jan 2014 20:39:44 +0000
(20:39 +0000)
committer
Mark Brown
<broonie@linaro.org>
Mon, 13 Jan 2014 11:45:53 +0000
(11:45 +0000)
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/max9850.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/max9850.c
b/sound/soc/codecs/max9850.c
index c5dd61785f8d6318097ae3d0878f881d93e78c29..82757ebf0301df25ab7d2a15da0d6af5cc5623ce 100644
(file)
--- a/
sound/soc/codecs/max9850.c
+++ b/
sound/soc/codecs/max9850.c
@@
-149,14
+149,14
@@
static int max9850_hw_params(struct snd_pcm_substream *substream,
snd_soc_write(codec, MAX9850_LRCLK_MSB, (lrclk_div >> 8) & 0x7f);
snd_soc_write(codec, MAX9850_LRCLK_LSB, lrclk_div & 0xff);
- switch (params_
format
(params)) {
- case
SNDRV_PCM_FORMAT_S16_LE
:
+ switch (params_
width
(params)) {
+ case
16
:
da = 0;
break;
- case
SNDRV_PCM_FORMAT_S20_3LE
:
+ case
20
:
da = 0x2;
break;
- case
SNDRV_PCM_FORMAT_S24_LE
:
+ case
24
:
da = 0x3;
break;
default: