Skip to content

Commit 880e368

Browse files
committed
ASoC: es8336: ensure that GPIOs will be set at start streaming
As the headphone could be plugged or unplugged any time, including when not streaming, and the stop/suspend events may be turning GPIOs to disable both headphones and speakers, let the delayed workqueue to be called every time Speaker supply event happens. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 949e11d commit 880e368

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sound/soc/intel/boards/sof_es8336.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,9 @@ static int sof_es8316_speaker_power_event(struct snd_soc_dapm_widget *w,
128128
struct snd_soc_card *card = w->dapm->card;
129129
struct sof_es8336_private *priv = snd_soc_card_get_drvdata(card);
130130

131-
if (priv->speaker_en == SND_SOC_DAPM_EVENT_ON(event))
132-
return 0;
133-
134131
priv->speaker_en = SND_SOC_DAPM_EVENT_ON(event);
135-
136132
queue_delayed_work(system_wq, &priv->pcm_pop_work, msecs_to_jiffies(70));
133+
137134
return 0;
138135
}
139136

0 commit comments

Comments
 (0)