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

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

audio HAL: add definitions for MMAP stream mode

Bug: 33398120
Test: make marlin-eng with ENABLE_TREBLE

Change-Id: I288005055bee9268bb1eff481e410aad0bfcfdd1
parent 30f4ad6b
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -665,6 +665,7 @@ enum AudioOutputFlag : int32_t {
                             // data bursts, not PCM.
                             // data bursts, not PCM.
    DIRECT_PCM = 0x2000,     // Audio stream containing PCM data that needs
    DIRECT_PCM = 0x2000,     // Audio stream containing PCM data that needs
                             // to pass through compress path for DSP post proc.
                             // to pass through compress path for DSP post proc.
    MMAP_NOIRQ = 0x4000, // output operates in MMAP no IRQ mode.
};
};


/*
/*
@@ -680,6 +681,7 @@ enum AudioInputFlag : int32_t {
    HW_HOTWORD = 0x2,  // prefer an input that captures from hw hotword source
    HW_HOTWORD = 0x2,  // prefer an input that captures from hw hotword source
    RAW        = 0x4,  // minimize signal processing
    RAW        = 0x4,  // minimize signal processing
    SYNC       = 0x8,  // synchronize I/O streams
    SYNC       = 0x8,  // synchronize I/O streams
    MMAP_NOIRQ = 0x10, // input operates in MMAP no IRQ mode.
};
};


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