OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96781fd
)
ASoC: tas2562: Return invalid for when bitwidth is invalid
author
Dan Murphy
<dmurphy@ti.com>
Tue, 18 Feb 2020 18:52:52 +0000
(12:52 -0600)
committer
Mark Brown
<broonie@kernel.org>
Tue, 18 Feb 2020 20:29:08 +0000
(20:29 +0000)
If the bitwidth passed in to the set_bitwidth function is not supported
then return an error.
Fixes:
29b74236bd57
("ASoC: tas2562: Introduce the TAS2562 amplifier")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link:
https://lore.kernel.org/r/20200218185252.26290-1-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2562.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tas2562.c
b/sound/soc/codecs/tas2562.c
index
729acd8
..
5b4803a
100644
(file)
--- a/
sound/soc/codecs/tas2562.c
+++ b/
sound/soc/codecs/tas2562.c
@@
-215,7
+215,8
@@
static int tas2562_set_bitwidth(struct tas2562_data *tas2562, int bitwidth)
break;
default:
- dev_info(tas2562->dev, "Not supported params format\n");
+ dev_info(tas2562->dev, "Unsupported bitwidth format\n");
+ return -EINVAL;
}
ret = snd_soc_component_update_bits(tas2562->component,