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

Commit e42d90ed authored by Ben Romberger's avatar Ben Romberger
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: 959922
Change-Id: I7ec578b42f50b6ce2f2738193c622c8a2f01ecd8
Signed-off-by: default avatarBen Romberger <bromberg@codeaurora.org>
parent e3ea6c56
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (C) 2008 Google, Inc.
 * Copyright (C) 2008 HTC Corporation
 * Copyright (c) 2009-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2009-2016, The Linux Foundation. All rights reserved.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
@@ -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)