Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52adab57 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ALSA: pcm: Remove qos request only when it is active"

parents bd50655a a948b056
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -817,6 +817,7 @@ static int snd_pcm_hw_free(struct snd_pcm_substream *substream)
	if (substream->ops->hw_free)
		result = substream->ops->hw_free(substream);
	snd_pcm_set_state(substream, SNDRV_PCM_STATE_OPEN);
	if (pm_qos_request_active(&substream->latency_pm_qos_req))
		pm_qos_remove_request(&substream->latency_pm_qos_req);
	return result;
}