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

Commit c4c2772f authored by Fred Oh's avatar Fred Oh
Browse files

ASoC: msm: remove event_abort and enabled flags from RESET_EVENTS callback



After ADSP SSR RESET_EVENTS is called if audio enabled flag is 0,
omx component cannot release resource properly. And when event_abort is 1,
OMX event handler is exited without releasing resources.

Change-Id: I3f1caa9e8d913bd70f5ba2d84fe90e3949954806
Signed-off-by: default avatarFred Oh <fred@codeaurora.org>
parent 7b6446cc
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -108,9 +108,7 @@ void audio_aio_cb(uint32_t opcode, uint32_t token,
		break;
	case RESET_EVENTS:
		pr_debug("%s: Received opcode:0x%x\n", __func__, opcode);
		audio->event_abort = 1;
		audio->stopped = 1;
		audio->enabled = 0;
		wake_up(&audio->event_wait);
		break;
	default: