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

Commit 13ee9f22 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents b0a25f1b e42d90ed
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
/* Copyright (C) 2008 Google, Inc.
/* Copyright (C) 2008 Google, Inc.
 * Copyright (C) 2008 HTC Corporation
 * 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
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * 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)
static int audio_aio_flush(struct q6audio_aio  *audio)
{
{
	int rc;
	int rc = 0;


	if (audio->enabled) {
	if (audio->enabled) {
		/* Implicitly issue a pause to the decoder before flushing if
		/* 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));
			__func__, audio, atomic_read(&audio->in_samples));
	atomic_set(&audio->in_bytes, 0);
	atomic_set(&audio->in_bytes, 0);
	atomic_set(&audio->in_samples, 0);
	atomic_set(&audio->in_samples, 0);
	return 0;
	return rc;
}
}


static int audio_aio_outport_flush(struct q6audio_aio *audio)
static int audio_aio_outport_flush(struct q6audio_aio *audio)