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:
59f5cbe
)
ASoC: cs4265: Convert to params_width()
author
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 11:28:37 +0000
(12:28 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 14:41:46 +0000
(15:41 +0100)
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
sound/soc/codecs/cs4265.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/cs4265.c
b/sound/soc/codecs/cs4265.c
index 4c4bf216d51ad128c1d8b7f174c615e4e66c2b35..a20b30ca52c09dc13507d55afef7854a23f29e40 100644
(file)
--- a/
sound/soc/codecs/cs4265.c
+++ b/
sound/soc/codecs/cs4265.c
@@
-455,7
+455,7
@@
static int cs4265_pcm_hw_params(struct snd_pcm_substream *substream,
CS4265_SPDIF_CTL2_DIF, (1 << 6));
break;
case SND_SOC_DAIFMT_RIGHT_J:
- if (params_
format(params) & SNDRV_PCM_FORMAT_S16_LE
) {
+ if (params_
width(params) == 16
) {
snd_soc_update_bits(codec, CS4265_DAC_CTL,
CS4265_DAC_CTL_DIF, (1 << 5));
snd_soc_update_bits(codec, CS4265_ADC_CTL,