projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6777ea
)
ASoC: rt5651: Convert to params_width()
author
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 11:33:41 +0000
(12:33 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 12:30:05 +0000
(13:30 +0100)
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5651.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/rt5651.c
b/sound/soc/codecs/rt5651.c
index ea4b1c652a26cecdd29ec95920840008544510c8..bb0a3ab5416cb2fe9fbc4e79c40e31340b374935 100644
(file)
--- a/
sound/soc/codecs/rt5651.c
+++ b/
sound/soc/codecs/rt5651.c
@@
-1366,16
+1366,16
@@
static int rt5651_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 |= RT5651_I2S_DL_20;
break;
- case
SNDRV_PCM_FORMAT_S24_LE
:
+ case
24
:
val_len |= RT5651_I2S_DL_24;
break;
- case
SNDRV_PCM_FORMAT_S
8:
+ case 8:
val_len |= RT5651_I2S_DL_8;
break;
default: