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

Commit 47a21a36 authored by Henry Fang's avatar Henry Fang
Browse files

avoid to request frontend resource for CICAM to frontend operation

bug: 289179316
Test: manual atest Tuner
Change-Id: Ice9adc763f0b50c8126f96137dd071e2596f2450
parent 1e800b82
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1565,6 +1565,10 @@ public class Tuner implements AutoCloseable {
        mFrontendCiCamLock.lock();
        mFrontendLock.lock();
        try {
            if (mFrontendHandle == null) {
                Log.d(TAG, "Operation cannot be done without frontend");
                return RESULT_INVALID_STATE;
            }
            if (mFeOwnerTuner != null) {
                Log.d(TAG, "Operation cannot be done by sharee of tuner");
                return RESULT_INVALID_STATE;
@@ -1632,6 +1636,10 @@ public class Tuner implements AutoCloseable {
    public int disconnectFrontendToCiCam(int ciCamId) {
        acquireTRMSLock("disconnectFrontendToCiCam()");
        try {
            if (mFrontendHandle == null) {
                Log.d(TAG, "Operation cannot be done without frontend");
                return RESULT_INVALID_STATE;
            }
            if (mFeOwnerTuner != null) {
                Log.d(TAG, "Operation cannot be done by sharee of tuner");
                return RESULT_INVALID_STATE;