diff options
-rw-r--r-- | sound/soc/jz4740/qi_lb60.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/jz4740/qi_lb60.c b/sound/soc/jz4740/qi_lb60.c index 8c4e84bcc320..c5fc339f68f1 100644 --- a/sound/soc/jz4740/qi_lb60.c +++ b/sound/soc/jz4740/qi_lb60.c | |||
@@ -27,11 +27,7 @@ | |||
27 | static int qi_lb60_spk_event(struct snd_soc_dapm_widget *widget, | 27 | static int qi_lb60_spk_event(struct snd_soc_dapm_widget *widget, |
28 | struct snd_kcontrol *ctrl, int event) | 28 | struct snd_kcontrol *ctrl, int event) |
29 | { | 29 | { |
30 | int on = 0; | 30 | int on = !SND_SOC_DAPM_EVENT_OFF(event); |
31 | if (event & SND_SOC_DAPM_POST_PMU) | ||
32 | on = 1; | ||
33 | else if (event & SND_SOC_DAPM_PRE_PMD) | ||
34 | on = 0; | ||
35 | 31 | ||
36 | gpio_set_value(QI_LB60_SND_GPIO, on); | 32 | gpio_set_value(QI_LB60_SND_GPIO, on); |
37 | gpio_set_value(QI_LB60_AMP_GPIO, on); | 33 | gpio_set_value(QI_LB60_AMP_GPIO, on); |