Skip to content

Commit 4272caf

Browse files
Dan Murphybroonie
authored andcommitted
ASoC: tas2770: Add missing bias level power states
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: 1a476ab ("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>
1 parent b0bcbe6 commit 4272caf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

sound/soc/codecs/tas2770.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ static int tas2770_set_bias_level(struct snd_soc_component *component,
5757
TAS2770_PWR_CTRL_MASK,
5858
TAS2770_PWR_CTRL_ACTIVE);
5959
break;
60-
60+
case SND_SOC_BIAS_STANDBY:
61+
case SND_SOC_BIAS_PREPARE:
62+
snd_soc_component_update_bits(component,
63+
TAS2770_PWR_CTRL,
64+
TAS2770_PWR_CTRL_MASK, TAS2770_PWR_CTRL_MUTE);
65+
break;
6166
case SND_SOC_BIAS_OFF:
6267
snd_soc_component_update_bits(component,
6368
TAS2770_PWR_CTRL,

0 commit comments

Comments
 (0)