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

Commit ad4a2b53 authored by Ben Romberger's avatar Ben Romberger Committed by Kyle Yan
Browse files

misc: qcom: qdsp6v2: Return flush errors to user space



Return errors from the flush function including
the caller of the flush ioctl.

CRs-fixed: 1027784
Change-Id: I7ec578b42f50b6ce2f2738193c622c8a2f01ecd8
Signed-off-by: default avatarBen Romberger <bromberg@codeaurora.org>
parent 4102eee9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ static int audio_aio_pause(struct q6audio_aio *audio)

static int audio_aio_flush(struct q6audio_aio  *audio)
{
	int rc;
	int rc = 0;

	if (audio->enabled) {
		/* Implicitly issue a pause to the decoder before flushing if
@@ -241,7 +241,7 @@ static int audio_aio_flush(struct q6audio_aio *audio)
			__func__, audio, atomic_read(&audio->in_samples));
	atomic_set(&audio->in_bytes, 0);
	atomic_set(&audio->in_samples, 0);
	return 0;
	return rc;
}

static int audio_aio_outport_flush(struct q6audio_aio *audio)