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

Commit 53b8cb06 authored by Amy's avatar Amy Committed by Shubang Lu
Browse files

Implement findAudioReceiverAddress for playback device.

Test: manual
Bug: 123369653
Change-Id: I75081717212967b60c45f5509101925c6d264fef
(cherry picked from commit ea5f30a1c82a287bd923ef2af8d0ebfe3339e608)
parent 131cbcc3
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -279,6 +279,14 @@ public class HdmiCecLocalDevicePlayback extends HdmiCecLocalDeviceSource {
        return Constants.ADDR_TV;
        return Constants.ADDR_TV;
    }
    }


    @Override
    protected int findAudioReceiverAddress() {
        if (mService.isSystemAudioActivated()) {
            return Constants.ADDR_AUDIO_SYSTEM;
        }
        return Constants.ADDR_TV;
    }

    @Override
    @Override
    @ServiceThreadOnly
    @ServiceThreadOnly
    protected void disableDevice(boolean initiatedByCec, PendingActionClearedCallback callback) {
    protected void disableDevice(boolean initiatedByCec, PendingActionClearedCallback callback) {