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

Commit a233cdb0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libaudiohal@aidl: allow ACTIVE,TRANSFERRING,DRAINING for resume" into main am: 03d96f08

parents f2239e16 03d96f08
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -449,6 +449,11 @@ status_t StreamHalAidl::resume(StreamDescriptor::Reply* reply) {
                   state == StreamDescriptor::State::TRANSFER_PAUSED ||
                   state == StreamDescriptor::State::DRAIN_PAUSED) {
            return sendCommand(makeHalCommand<HalCommand::Tag::start>(), reply);
        } else if (state == StreamDescriptor::State::ACTIVE ||
                   state == StreamDescriptor::State::TRANSFERRING ||
                   state == StreamDescriptor::State::DRAINING) {
            ALOGD("%s: already in stream state: %s", __func__, toString(state).c_str());
            return OK;
        } else {
            ALOGE("%s: unexpected stream state: %s (expected IDLE or one of *PAUSED states)",
                        __func__, toString(state).c_str());