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

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

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

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

			if (atomic_read(&prtd->drain) && prtd->last_buffer) {
				pr_debug("wake up on drain\n");
				prtd->drain_ready = 1;
				wake_up(&prtd->drain_wait);
				atomic_set(&prtd->drain, 0);
				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);