audio effect: add flag for effects without actual processing am: 4725741d0e
am: 5982d8f27f
am: c87b0d0a07
Change-Id: I8015e788e5932c59e78b644dcf7b70da3974a254
This commit is contained in:
commit
54558c008e
1 changed files with 15 additions and 0 deletions
|
@ -150,6 +150,13 @@ typedef struct effect_descriptor_s {
|
|||
// | Effect offload supported | 22 | 0 The effect cannot be offloaded to an audio DSP
|
||||
// | | | 1 The effect can be offloaded to an audio DSP
|
||||
// +---------------------------+-----------+-----------------------------------
|
||||
// | Process function not | 23 | 0 The effect implements a process function.
|
||||
// | implemented | | 1 The effect does not implement a process function:
|
||||
// | | | enabling the effect has no impact on latency or
|
||||
// | | | CPU load.
|
||||
// | | | Effect implementations setting this flag do not have
|
||||
// | | | to implement a process function.
|
||||
// +---------------------------+-----------+-----------------------------------
|
||||
|
||||
// Insert mode
|
||||
#define EFFECT_FLAG_TYPE_SHIFT 0
|
||||
|
@ -240,6 +247,14 @@ typedef struct effect_descriptor_s {
|
|||
<< EFFECT_FLAG_OFFLOAD_SHIFT)
|
||||
#define EFFECT_FLAG_OFFLOAD_SUPPORTED (1 << EFFECT_FLAG_OFFLOAD_SHIFT)
|
||||
|
||||
// Effect has no process indication
|
||||
#define EFFECT_FLAG_NO_PROCESS_SHIFT (EFFECT_FLAG_OFFLOAD_SHIFT + \
|
||||
EFFECT_FLAG_OFFLOAD_SIZE)
|
||||
#define EFFECT_FLAG_NO_PROCESS_SIZE 1
|
||||
#define EFFECT_FLAG_NO_PROCESS_MASK (((1 << EFFECT_FLAG_NO_PROCESS_SIZE) -1) \
|
||||
<< EFFECT_FLAG_NO_PROCESS_SHIFT)
|
||||
#define EFFECT_FLAG_NO_PROCESS (1 << EFFECT_FLAG_NO_PROCESS_SHIFT)
|
||||
|
||||
#define EFFECT_MAKE_API_VERSION(M, m) (((M)<<16) | ((m) & 0xFFFF))
|
||||
#define EFFECT_API_VERSION_MAJOR(v) ((v)>>16)
|
||||
#define EFFECT_API_VERSION_MINOR(v) ((m) & 0xFFFF)
|
||||
|
|
Loading…
Reference in a new issue