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

Commit 2bb61aaf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix audio HAL restart sequence to improve uptime" into rvc-qpr-dev am: e5dd4048

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/12151158

Change-Id: I1aa773d7684368bd84c0a2e94870e9790b515689
parents f080bbef e5dd4048
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -6,8 +6,11 @@ service audioserver /system/bin/audioserver
    capabilities BLOCK_SUSPEND
    ioprio rt 4
    task_profiles ProcessCapacityHigh HighPerformance

    onrestart setprop sys.audio.restart.hal 1
    onrestart restart vendor.audio-hal
    onrestart restart vendor.audio-hal-4-0-msd
    # Keep the original service names for backward compatibility
    onrestart restart vendor.audio-hal-2-0
    onrestart restart audio-hal-2-0

on property:vts.native_server.on=1
    stop audioserver
@@ -37,11 +40,16 @@ on property:init.svc.audioserver=running
    start audio-hal-2-0

on property:sys.audio.restart.hal=1
    restart vendor.audio-hal
    restart vendor.audio-hal-4-0-msd
    # See b/159966243. Avoid restart loop between audioserver and HAL.
    # Keep the original service names for backward compatibility
    restart vendor.audio-hal-2-0
    restart audio-hal-2-0
    stop vendor.audio-hal
    stop vendor.audio-hal-4-0-msd
    stop vendor.audio-hal-2-0
    stop audio-hal-2-0
    start vendor.audio-hal
    start vendor.audio-hal-4-0-msd
    start vendor.audio-hal-2-0
    start audio-hal-2-0
    # reset the property
    setprop sys.audio.restart.hal 0