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

Commit 07b8a8e3 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: compr_free(), check if EOS is going on before waiting" into msm-4.8

parents 91c33e6c 3dd3be67
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -455,10 +455,12 @@ static int msm_compr_free(struct snd_compr_stream *cstream)
	pr_debug("%s: ocmem_req: %d\n", __func__,
		atomic_read(&pdata->audio_ocmem_req));

	if (atomic_read(&prtd->eos)) {
		ret = wait_event_timeout(prtd->eos_wait,
					 prtd->cmd_ack, 5 * HZ);
		if (!ret)
			pr_err("%s: CMD_EOS failed\n", __func__);
	}

	q6asm_cmd(prtd->audio_client, CMD_CLOSE);