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

Commit 0e3ae991 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audio: add missing flags and devices"

parents 5d6a91cc e6653b5d
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -537,6 +537,7 @@ enum AudioDevice : uint32_t {
    /* audio bus implemented by the audio system (e.g an MOST stereo channel) */
    OUT_BUS                       = 0x1000000,
    OUT_PROXY                     = 0x2000000,
    OUT_USB_HEADSET               = 0x4000000,
    OUT_DEFAULT                   = BIT_DEFAULT,
    OUT_ALL      = (OUT_EARPIECE |
            OUT_SPEAKER |
@@ -603,6 +604,7 @@ enum AudioDevice : uint32_t {
    /* audio bus implemented by the audio system (e.g an MOST stereo channel) */
    IN_BUS                   = BIT_IN | 0x100000,
    IN_PROXY                 = BIT_IN | 0x1000000,
    IN_USB_HEADSET           = BIT_IN | 0x2000000,
    IN_DEFAULT               = BIT_IN | BIT_DEFAULT,

    IN_ALL     = (IN_COMMUNICATION |
@@ -670,6 +672,7 @@ enum AudioOutputFlag : int32_t {
    DIRECT_PCM = 0x2000,     // Audio stream containing PCM data that needs
                             // to pass through compress path for DSP post proc.
    MMAP_NOIRQ = 0x4000, // output operates in MMAP no IRQ mode.
    VOIP_CALL_RX = 0x8000, // preferred output for VoIP calls.
};

/*
@@ -686,6 +689,7 @@ enum AudioInputFlag : int32_t {
    RAW          = 0x4,  // minimize signal processing
    SYNC         = 0x8,  // synchronize I/O streams
    MMAP_NOIRQ   = 0x10, // input operates in MMAP no IRQ mode.
    VOIP_CALL_TX = 0x20, // preferred input for VoIP calls.
};

@export(name="audio_usage_t", value_prefix="AUDIO_USAGE_")