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

Commit f4b80a22 authored by Amy Zhang's avatar Amy Zhang Committed by Automerger Merge Worker
Browse files

Merge "Enable frontend input loop when FrontendTune happens before Demux is...

Merge "Enable frontend input loop when FrontendTune happens before Demux is configured." into rvc-dev am: 1fb7d067 am: ecc7c04f

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11853109

Change-Id: I5109b2fc2d909932f77e3c93a2f7de4e51698c0b
parents 55faeb6c ecc7c04f
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -66,7 +66,7 @@ Return<Result> Frontend::tune(const FrontendSettings& /* settings */) {


    mTunerService->frontendStartTune(mId);
    mTunerService->frontendStartTune(mId);
    mCallback->onEvent(FrontendEventType::LOCKED);
    mCallback->onEvent(FrontendEventType::LOCKED);
    mIsLocked = false;
    mIsLocked = true;
    return Result::SUCCESS;
    return Result::SUCCESS;
}
}


@@ -272,6 +272,10 @@ bool Frontend::supportsSatellite() {
    return mType == FrontendType::DVBS || mType == FrontendType::ISDBS ||
    return mType == FrontendType::DVBS || mType == FrontendType::ISDBS ||
           mType == FrontendType::ISDBS3;
           mType == FrontendType::ISDBS3;
}
}

bool Frontend::isLocked() {
    return mIsLocked;
}
}  // namespace implementation
}  // namespace implementation
}  // namespace V1_0
}  // namespace V1_0
}  // namespace tuner
}  // namespace tuner
+2 −0
Original line number Original line Diff line number Diff line
@@ -68,6 +68,8 @@ class Frontend : public IFrontend {


    string getSourceFile();
    string getSourceFile();


    bool isLocked();

  private:
  private:
    virtual ~Frontend();
    virtual ~Frontend();
    bool supportsSatellite();
    bool supportsSatellite();
+3 −0
Original line number Original line Diff line number Diff line
@@ -231,6 +231,9 @@ Return<void> Tuner::openLnbByName(const hidl_string& /*lnbName*/, openLnbByName_


void Tuner::setFrontendAsDemuxSource(uint32_t frontendId, uint32_t demuxId) {
void Tuner::setFrontendAsDemuxSource(uint32_t frontendId, uint32_t demuxId) {
    mFrontendToDemux[frontendId] = demuxId;
    mFrontendToDemux[frontendId] = demuxId;
    if (mFrontends[frontendId] != nullptr && mFrontends[frontendId]->isLocked()) {
        mDemuxes[demuxId]->startFrontendInputLoop();
    }
}
}


void Tuner::frontendStopTune(uint32_t frontendId) {
void Tuner::frontendStopTune(uint32_t frontendId) {