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:
4c9185b
)
ASoC: rt5640: Correct the judgement of data length
author
Oder Chiou
<oder_chiou@realtek.com>
Thu, 27 Mar 2014 11:34:51 +0000
(19:34 +0800)
committer
Mark Brown
<broonie@linaro.org>
Mon, 14 Apr 2014 16:27:40 +0000
(17:27 +0100)
The patch corrects the judgement of data length.
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5640.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/rt5640.c
b/sound/soc/codecs/rt5640.c
index 4a7bd0a16912d5ca4d798884fafd671250bc9cea..f0717db3e93536f7333bf47f88fc593a5e806e79 100644
(file)
--- a/
sound/soc/codecs/rt5640.c
+++ b/
sound/soc/codecs/rt5640.c
@@
-1622,16
+1622,16
@@
static int rt5640_hw_params(struct snd_pcm_substream *substream,
dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
bclk_ms, pre_div, dai->id);
- switch (params_
format
(params)) {
- case
SNDRV_PCM_FORMAT_S16_LE
:
+ switch (params_
width
(params)) {
+ case
16
:
break;
- case
SNDRV_PCM_FORMAT_S20_3LE
:
+ case
20
:
val_len |= RT5640_I2S_DL_20;
break;
- case
SNDRV_PCM_FORMAT_S24_LE
:
+ case
24
:
val_len |= RT5640_I2S_DL_24;
break;
- case
SNDRV_PCM_FORMAT_S
8:
+ case 8:
val_len |= RT5640_I2S_DL_8;
break;
default: