projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a49f70
)
ASoC: sn95031: Convert to params_width()
author
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 11:46:50 +0000
(12:46 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 12:30:08 +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/sn95031.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/sn95031.c
b/sound/soc/codecs/sn95031.c
index
42dff26
..
cf8fa40
100644
(file)
--- a/
sound/soc/codecs/sn95031.c
+++ b/
sound/soc/codecs/sn95031.c
@@
-661,12
+661,12
@@
static int sn95031_pcm_hw_params(struct snd_pcm_substream *substream,
{
unsigned int format, rate;
- switch (params_
format
(params)) {
- case
SNDRV_PCM_FORMAT_S16_LE
:
+ switch (params_
width
(params)) {
+ case
16
:
format = BIT(4)|BIT(5);
break;
- case
SNDRV_PCM_FORMAT_S24_LE
:
+ case
24
:
format = 0;
break;
default: