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:
1f9ffcb
)
ASoC: ssm2518: Convert to params_width()
author
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 11:47:05 +0000
(12:47 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 12:30:12 +0000
(13:30 +0100)
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
sound/soc/codecs/ssm2518.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/ssm2518.c
b/sound/soc/codecs/ssm2518.c
index 56adb3e2def9ca00f16a50e59c141206b4ab68d7..e8680bea5f8634ed9f2643f4d830bfe8d8b27e69 100644
(file)
--- a/
sound/soc/codecs/ssm2518.c
+++ b/
sound/soc/codecs/ssm2518.c
@@
-361,11
+361,11
@@
static int ssm2518_hw_params(struct snd_pcm_substream *substream,
return -EINVAL;
if (ssm2518->right_j) {
- switch (params_
format
(params)) {
- case
SNDRV_PCM_FORMAT_S16_LE
:
+ switch (params_
width
(params)) {
+ case
16
:
ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_16BIT;
break;
- case
SNDRV_PCM_FORMAT_S24_LE
:
+ case
24
:
ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_24BIT;
break;
default: