# Flags for the native audioserver
#
# Please add flags in alphabetical order.

package: "com.android.media.audioserver"
container: "system"

flag {
    name: "direct_track_reprioritization"
    namespace: "media_audio"
    description:
        "Modify opening a direct output on a mixport to disrupt existing clients instead "
        "of failing to open when resource limit is reached"
    bug: "294525897"
}

flag {
    name: "effect_chain_callback_improve"
    namespace: "media_audio"
    description: "Improve effect chain callback mutex logic."
    bug: "342413767"
}

flag {
    name: "enable_audio_input_device_routing"
    namespace: "media_audio"
    description: "Allow audio input devices routing control."
    bug: "364923030"
}

flag {
    name: "fdtostring_timeout_fix"
    namespace: "media_audio"
    description: "Improve fdtostring implementation to properly handle timing out."
    bug: "306283018"
}

flag {
    name: "fix_call_audio_patch"
    namespace: "media_audio"
    description:
        "optimize creation and release of audio patches for call routing"
    bug: "292492229"
}

flag {
    name: "fix_concurrent_playback_behavior_with_bit_perfect_client"
    namespace: "media_audio"
    description:
        "Treat playback use cases differently when bit-perfect client is active to improve the "
        "user experience with bit-perfect playback."
    bug: "339515899"
}

flag {
    name: "fix_input_sharing_logic"
    namespace: "media_audio"
    description:
        "Fix the audio policy logic that decides to reuse or close "
        "input streams when resources are exhausted"
    bug: "338446410"
}

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"
}

flag {
    name: "portid_volume_management"
    namespace: "media_audio"
    description:
        "Allows to manage volume by port id within audio flinger instead of legacy stream type."
    bug: "317212590"
}

flag {
    name: "power_stats"
    namespace: "media_audio"
    description:
        "Add power stats tracking and management."
    bug: "350114693"
}

flag {
    name: "use_bt_sco_for_media"
    namespace: "media_audio"
    description:
        "Play media strategy over Bluetooth SCO when active"
    bug: "292037886"
}
