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

Commit 0d095a0e authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "audio_mutex: Add mutex priority inheritance flag" into main

parents 84c90071 97958e9f
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
// media_audio namespace flags

// aconfig_audio_flags is for general multi-project audio flags.
aconfig_declarations {
    name: "aconfig_audio_flags",
    package: "com.android.media.audio.flags",
    srcs: ["audio_flags.aconfig"],
}

cc_aconfig_library {
    name: "aconfig_audio_flags_c_lib",
    aconfig_declarations: "aconfig_audio_flags",

    // This does not properly link with the
    // libaudioutils library -- the vndk
    // requirement needs a signature update.

    double_loadable: true,
    host_supported: true,
    product_available: true,
    vendor_available: true,
    apex_available: [
        "//apex_available:platform",
    ],
}
+17 −0
Original line number Diff line number Diff line
package: "com.android.media.audio.flags"

# General multi-project audio flags.
#
# Please add flags in alphabetical order.

flag {
    name: "mutex_priority_inheritance"
    namespace: "media_audio"
    description: "\
Enable mutex priority inheritance in audioserver \
(std::mutex does not normally transfer priority from \
the blocked thread to the blocking thread).  \
This feature helps reduce audio glitching caused by low priority \
blocking threads."
    bug: "209491695"
}
+1 −0
Original line number Diff line number Diff line
@@ -156,6 +156,7 @@ cc_defaults {
        "libaudiohal",
        "libaudioprocessing",
        "libaudioutils",
        "libaudioutils_nonvndk",
        "libcutils",
        "libutils",
        "liblog",