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

Commit 03d96f08 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents ddc2de8f 9807247a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -445,6 +445,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());