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:
b0bcbe6
)
ASoC: tas2770: Add missing bias level power states
author
Dan Murphy
<dmurphy@ti.com>
Fri, 18 Sep 2020 19:05:41 +0000
(14:05 -0500)
committer
Mark Brown
<broonie@kernel.org>
Mon, 21 Sep 2020 19:40:52 +0000
(20:40 +0100)
Add the BIAS_STANDBY and BIAS_PREPARE to the set_bias_level or else the
driver will return -EINVAL which is not correct as they are valid
states.
Fixes:
1a476abc723e6
("tas2770: add tas2770 smart PA kernel driver")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link:
https://lore.kernel.org/r/20200918190548.12598-2-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2770.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tas2770.c
b/sound/soc/codecs/tas2770.c
index
03d7ad1
..
7c6f619
100644
(file)
--- a/
sound/soc/codecs/tas2770.c
+++ b/
sound/soc/codecs/tas2770.c
@@
-57,7
+57,12
@@
static int tas2770_set_bias_level(struct snd_soc_component *component,
TAS2770_PWR_CTRL_MASK,
TAS2770_PWR_CTRL_ACTIVE);
break;
-
+ case SND_SOC_BIAS_STANDBY:
+ case SND_SOC_BIAS_PREPARE:
+ snd_soc_component_update_bits(component,
+ TAS2770_PWR_CTRL,
+ TAS2770_PWR_CTRL_MASK, TAS2770_PWR_CTRL_MUTE);
+ break;
case SND_SOC_BIAS_OFF:
snd_soc_component_update_bits(component,
TAS2770_PWR_CTRL,