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

Commit cc49082b authored by Amy's avatar Amy Committed by Nick Chalko
Browse files

Add system property for ARC port and audio port.

Test: make -j18
Change-Id: Ia8e11fe14f4be8af6ba8e5b23db8eebf82867baf
(cherry picked from commit 8f645ef04e5d39cca1f606962965d6e7f319957f)
parent 38bd60a7
Loading
Loading
Loading
Loading
+19 −3
Original line number Diff line number Diff line
@@ -213,7 +213,6 @@ final class Constants {
    static final int USE_LAST_STATE_SYSTEM_AUDIO_CONTROL_ON_POWER_ON = 1;
    static final int NEVER_SYSTEM_AUDIO_CONTROL_ON_POWER_ON = 2;


    static final String PROPERTY_PREFERRED_ADDRESS_AUDIO_SYSTEM =
            "persist.sys.hdmi.addr.audiosystem";
    static final String PROPERTY_PREFERRED_ADDRESS_PLAYBACK = "persist.sys.hdmi.addr.playback";
@@ -246,13 +245,30 @@ final class Constants {

    /**
     * Property to record last state of system audio control before device powered off.
     * When {@link #PROPERTY_SYSTEM_AUDIO_CONTROL_ON_POWER_ON} is set to
     * <p>When {@link #PROPERTY_SYSTEM_AUDIO_CONTROL_ON_POWER_ON} is set to
     * {@link #USE_LAST_STATE_SYSTEM_AUDIO_CONTROL_ON_POWER_ON}, restoring this state on power on.
     * State must be true or false. Default true.
     * <p>State must be true or false. Default true.
     */
    static final String PROPERTY_LAST_SYSTEM_AUDIO_CONTROL =
        "persist.sys.hdmi.last_system_audio_control";

    /**
     * Property to save the audio port to switch to when system audio control is on.
     * <P>Audio system should switch to this port when cec active source is not its child in the tree
     * or is not itself.
     *
     * <p>Default is ARC port.
     */
    static final String PROPERTY_SYSTEM_AUDIO_MODE_AUDIO_PORT =
        "persist.sys.hdmi.property_sytem_audio_mode_audio_port";

    /**
     * Property to save the ARC port id on system audio device.
     * <p>When ARC is initiated, this port will be used to turn on ARC.
     */
    static final String PROPERTY_SYSTEM_AUDIO_DEVICE_ARC_PORT =
        "persist.sys.hdmi.property_sytem_audio_device_arc_port";

    static final int RECORDING_TYPE_DIGITAL_RF = 1;
    static final int RECORDING_TYPE_ANALOGUE_RF = 2;
    static final int RECORDING_TYPE_EXTERNAL_PHYSICAL_ADDRESS = 3;