Loading services/oboeservice/AAudioServiceStreamBase.cpp +9 −1 Original line number Original line Diff line number Diff line Loading @@ -435,7 +435,15 @@ void AAudioServiceStreamBase::run() { } } } } if (isIdle_l() && AudioClock::getNanoseconds() >= standbyTime) { if (isIdle_l() && AudioClock::getNanoseconds() >= standbyTime) { standby_l(); aaudio_result_t result = standby_l(); if (result != AAUDIO_OK) { // If standby failed because of the function is not implemented, there is no // need to retry. Otherwise, retry standby later. ALOGW("Failed to enter standby, error=%d", result); standbyTime = result == AAUDIO_ERROR_UNIMPLEMENTED ? std::numeric_limits<int64_t>::max() : AudioClock::getNanoseconds() + IDLE_TIMEOUT_NANOS; } } } if (command != nullptr) { if (command != nullptr) { Loading services/oboeservice/AAudioServiceStreamBase.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -320,7 +320,7 @@ protected: } } virtual aaudio_result_t standby_l() REQUIRES(mLock) { virtual aaudio_result_t standby_l() REQUIRES(mLock) { return AAUDIO_ERROR_UNAVAILABLE; return AAUDIO_ERROR_UNIMPLEMENTED; } } class ExitStandbyParam : public AAudioCommandParam { class ExitStandbyParam : public AAudioCommandParam { public: public: Loading Loading
services/oboeservice/AAudioServiceStreamBase.cpp +9 −1 Original line number Original line Diff line number Diff line Loading @@ -435,7 +435,15 @@ void AAudioServiceStreamBase::run() { } } } } if (isIdle_l() && AudioClock::getNanoseconds() >= standbyTime) { if (isIdle_l() && AudioClock::getNanoseconds() >= standbyTime) { standby_l(); aaudio_result_t result = standby_l(); if (result != AAUDIO_OK) { // If standby failed because of the function is not implemented, there is no // need to retry. Otherwise, retry standby later. ALOGW("Failed to enter standby, error=%d", result); standbyTime = result == AAUDIO_ERROR_UNIMPLEMENTED ? std::numeric_limits<int64_t>::max() : AudioClock::getNanoseconds() + IDLE_TIMEOUT_NANOS; } } } if (command != nullptr) { if (command != nullptr) { Loading
services/oboeservice/AAudioServiceStreamBase.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -320,7 +320,7 @@ protected: } } virtual aaudio_result_t standby_l() REQUIRES(mLock) { virtual aaudio_result_t standby_l() REQUIRES(mLock) { return AAUDIO_ERROR_UNAVAILABLE; return AAUDIO_ERROR_UNIMPLEMENTED; } } class ExitStandbyParam : public AAudioCommandParam { class ExitStandbyParam : public AAudioCommandParam { public: public: Loading