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

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

Merge "ASoC: msm: qdsp6v2: add error handling on write done during partial drain" into msm-4.8

parents ea8a5ce3 614080bf
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -392,7 +392,16 @@ static void compr_event_handler(uint32_t opcode,
			       payload[3],
			       payload[0],
				prtd->byte_offset, prtd->copied_total, token);

			if (atomic_cmpxchg(&prtd->drain, 1, 0) &&
			    prtd->last_buffer) {
				pr_debug("%s: wake up on drain\n", __func__);
				prtd->drain_ready = 1;
				wake_up(&prtd->drain_wait);
				prtd->last_buffer = 0;
			} else {
				atomic_set(&prtd->start, 0);
			}
		} else {
			pr_debug("ASM_DATA_EVENT_WRITE_DONE_V2 offset %d, length %d\n",
				 prtd->byte_offset, token);