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

Commit e61737ac authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "CSD: fix crash when HAL returns null sound dose itf" into main

parents ad00787d e1f33906
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1033,6 +1033,14 @@ status_t DeviceHalAidl::getSoundDoseInterface(const std::string& module,
            return BAD_VALUE;
        }
    }

    if (mSoundDose == nullptr) {
        ALOGE("%s failed to return the sound dose interface for module %s: not implemented",
                  __func__,
                  module.c_str());
        return NO_INIT;
    }

    *soundDoseBinder = mSoundDose->asBinder();
    ALOGI("%s using audio AIDL HAL sound dose interface", __func__);