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

Commit e6653b5d authored by Eric Laurent's avatar Eric Laurent
Browse files

audio: add missing flags and devices

Add missing devices for USB headset to allow distinction
between USB sound cards and simple USB headsets.
Add output and input flags indicating special output
and input profiles to used for VoIP streams.

Test: make.
Change-Id: I7967866e15991dbf2f4349daa3ff3baa87c1c062
parent da0d1a1d
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_")