projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa9ffad
)
ASoC: wl1273: Convert to params_width()
author
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 11:49:36 +0000
(12:49 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 31 Jul 2014 13:37:23 +0000
(14:37 +0100)
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wl1273.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wl1273.c
b/sound/soc/codecs/wl1273.c
index 4ead0dc02b87428e15e160032e3b9ef8fab6f925..34f64dc281ec6438a804a7adf558b610d0dd7d70 100644
(file)
--- a/
sound/soc/codecs/wl1273.c
+++ b/
sound/soc/codecs/wl1273.c
@@
-341,8
+341,9
@@
static int wl1273_hw_params(struct snd_pcm_substream *substream,
struct wl1273_core *core = wl1273->core;
unsigned int rate, width, r;
- if (params_format(params) != SNDRV_PCM_FORMAT_S16_LE) {
- pr_err("Only SNDRV_PCM_FORMAT_S16_LE supported.\n");
+ if (params_width(params) != 16) {
+ dev_err(dai->dev, "%d bits/sample not supported\n",
+ params_width(params));
return -EINVAL;
}