1 // This file is autogenerated by hidl-gen. Do not edit manually.
2 // Source: android.hardware.audio.effect@4.0
3 // Root: android.hardware:hardware/interfaces
4 
5 #ifndef HIDL_GENERATED_ANDROID_HARDWARE_AUDIO_EFFECT_V4_0_EXPORTED_CONSTANTS_H_
6 #define HIDL_GENERATED_ANDROID_HARDWARE_AUDIO_EFFECT_V4_0_EXPORTED_CONSTANTS_H_
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 enum {
13     EFFECT_FLAG_TYPE_SHIFT = 0,
14     EFFECT_FLAG_TYPE_SIZE = 3,
15     EFFECT_FLAG_TYPE_MASK = 7, // (((1 << TYPE_SIZE) - 1) << TYPE_SHIFT)
16     EFFECT_FLAG_TYPE_INSERT = 0, // (0 << TYPE_SHIFT)
17     EFFECT_FLAG_TYPE_AUXILIARY = 1, // (1 << TYPE_SHIFT)
18     EFFECT_FLAG_TYPE_REPLACE = 2, // (2 << TYPE_SHIFT)
19     EFFECT_FLAG_TYPE_PRE_PROC = 3, // (3 << TYPE_SHIFT)
20     EFFECT_FLAG_TYPE_POST_PROC = 4, // (4 << TYPE_SHIFT)
21     EFFECT_FLAG_INSERT_SHIFT = 3, // (TYPE_SHIFT + TYPE_SIZE)
22     EFFECT_FLAG_INSERT_SIZE = 3,
23     EFFECT_FLAG_INSERT_MASK = 56, // (((1 << INSERT_SIZE) - 1) << INSERT_SHIFT)
24     EFFECT_FLAG_INSERT_ANY = 0, // (0 << INSERT_SHIFT)
25     EFFECT_FLAG_INSERT_FIRST = 8, // (1 << INSERT_SHIFT)
26     EFFECT_FLAG_INSERT_LAST = 16, // (2 << INSERT_SHIFT)
27     EFFECT_FLAG_INSERT_EXCLUSIVE = 24, // (3 << INSERT_SHIFT)
28     EFFECT_FLAG_VOLUME_SHIFT = 6, // (INSERT_SHIFT + INSERT_SIZE)
29     EFFECT_FLAG_VOLUME_SIZE = 3,
30     EFFECT_FLAG_VOLUME_MASK = 448, // (((1 << VOLUME_SIZE) - 1) << VOLUME_SHIFT)
31     EFFECT_FLAG_VOLUME_CTRL = 64, // (1 << VOLUME_SHIFT)
32     EFFECT_FLAG_VOLUME_IND = 128, // (2 << VOLUME_SHIFT)
33     EFFECT_FLAG_VOLUME_MONITOR = 192, // (3 << VOLUME_SHIFT)
34     EFFECT_FLAG_VOLUME_NONE = 0, // (0 << VOLUME_SHIFT)
35     EFFECT_FLAG_DEVICE_SHIFT = 9, // (VOLUME_SHIFT + VOLUME_SIZE)
36     EFFECT_FLAG_DEVICE_SIZE = 3,
37     EFFECT_FLAG_DEVICE_MASK = 3584, // (((1 << DEVICE_SIZE) - 1) << DEVICE_SHIFT)
38     EFFECT_FLAG_DEVICE_IND = 512, // (1 << DEVICE_SHIFT)
39     EFFECT_FLAG_DEVICE_NONE = 0, // (0 << DEVICE_SHIFT)
40     EFFECT_FLAG_INPUT_SHIFT = 12, // (DEVICE_SHIFT + DEVICE_SIZE)
41     EFFECT_FLAG_INPUT_SIZE = 2,
42     EFFECT_FLAG_INPUT_MASK = 12288, // (((1 << INPUT_SIZE) - 1) << INPUT_SHIFT)
43     EFFECT_FLAG_INPUT_DIRECT = 4096, // (1 << INPUT_SHIFT)
44     EFFECT_FLAG_INPUT_PROVIDER = 8192, // (2 << INPUT_SHIFT)
45     EFFECT_FLAG_INPUT_BOTH = 12288, // (3 << INPUT_SHIFT)
46     EFFECT_FLAG_OUTPUT_SHIFT = 14, // (INPUT_SHIFT + INPUT_SIZE)
47     EFFECT_FLAG_OUTPUT_SIZE = 2,
48     EFFECT_FLAG_OUTPUT_MASK = 49152, // (((1 << OUTPUT_SIZE) - 1) << OUTPUT_SHIFT)
49     EFFECT_FLAG_OUTPUT_DIRECT = 16384, // (1 << OUTPUT_SHIFT)
50     EFFECT_FLAG_OUTPUT_PROVIDER = 32768, // (2 << OUTPUT_SHIFT)
51     EFFECT_FLAG_OUTPUT_BOTH = 49152, // (3 << OUTPUT_SHIFT)
52     EFFECT_FLAG_HW_ACC_SHIFT = 16, // (OUTPUT_SHIFT + OUTPUT_SIZE)
53     EFFECT_FLAG_HW_ACC_SIZE = 2,
54     EFFECT_FLAG_HW_ACC_MASK = 196608, // (((1 << HW_ACC_SIZE) - 1) << HW_ACC_SHIFT)
55     EFFECT_FLAG_HW_ACC_SIMPLE = 65536, // (1 << HW_ACC_SHIFT)
56     EFFECT_FLAG_HW_ACC_TUNNEL = 131072, // (2 << HW_ACC_SHIFT)
57     EFFECT_FLAG_AUDIO_MODE_SHIFT = 18, // (HW_ACC_SHIFT + HW_ACC_SIZE)
58     EFFECT_FLAG_AUDIO_MODE_SIZE = 2,
59     EFFECT_FLAG_AUDIO_MODE_MASK = 786432, // (((1 << AUDIO_MODE_SIZE) - 1) << AUDIO_MODE_SHIFT)
60     EFFECT_FLAG_AUDIO_MODE_IND = 262144, // (1 << AUDIO_MODE_SHIFT)
61     EFFECT_FLAG_AUDIO_MODE_NONE = 0, // (0 << AUDIO_MODE_SHIFT)
62     EFFECT_FLAG_AUDIO_SOURCE_SHIFT = 20, // (AUDIO_MODE_SHIFT + AUDIO_MODE_SIZE)
63     EFFECT_FLAG_AUDIO_SOURCE_SIZE = 2,
64     EFFECT_FLAG_AUDIO_SOURCE_MASK = 3145728, // (((1 << AUDIO_SOURCE_SIZE) - 1) << AUDIO_SOURCE_SHIFT)
65     EFFECT_FLAG_AUDIO_SOURCE_IND = 1048576, // (1 << AUDIO_SOURCE_SHIFT)
66     EFFECT_FLAG_AUDIO_SOURCE_NONE = 0, // (0 << AUDIO_SOURCE_SHIFT)
67     EFFECT_FLAG_OFFLOAD_SHIFT = 22, // (AUDIO_SOURCE_SHIFT + AUDIO_SOURCE_SIZE)
68     EFFECT_FLAG_OFFLOAD_SIZE = 1,
69     EFFECT_FLAG_OFFLOAD_MASK = 4194304, // (((1 << OFFLOAD_SIZE) - 1) << OFFLOAD_SHIFT)
70     EFFECT_FLAG_OFFLOAD_SUPPORTED = 4194304, // (1 << OFFLOAD_SHIFT)
71     EFFECT_FLAG_NO_PROCESS_SHIFT = 23, // (OFFLOAD_SHIFT + OFFLOAD_SIZE)
72     EFFECT_FLAG_NO_PROCESS_SIZE = 1,
73     EFFECT_FLAG_NO_PROCESS_MASK = 8388608, // (((1 << NO_PROCESS_SIZE) - 1) << NO_PROCESS_SHIFT)
74     EFFECT_FLAG_NO_PROCESS = 8388608, // (1 << NO_PROCESS_SHIFT)
75 };
76 
77 typedef enum {
78     EFFECT_BUFFER_ACCESS_WRITE = 0,
79     EFFECT_BUFFER_ACCESS_READ = 1, // (::android::hardware::audio::effect::V4_0::EffectBufferAccess.ACCESS_WRITE implicitly + 1)
80     EFFECT_BUFFER_ACCESS_ACCUMULATE = 2, // (::android::hardware::audio::effect::V4_0::EffectBufferAccess.ACCESS_READ implicitly + 1)
81 } effect_buffer_access_e;
82 
83 enum {
84     EFFECT_CONFIG_BUFFER = 1,
85     EFFECT_CONFIG_SMP_RATE = 2,
86     EFFECT_CONFIG_CHANNELS = 4,
87     EFFECT_CONFIG_FORMAT = 8,
88     EFFECT_CONFIG_ACC_MODE = 16,
89 };
90 
91 typedef enum {
92     EFFECT_FEATURE_AUX_CHANNELS = 0,
93     EFFECT_FEATURE_CNT = 1, // (::android::hardware::audio::effect::V4_0::EffectFeature.AUX_CHANNELS implicitly + 1)
94 } effect_feature_e;
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif  // HIDL_GENERATED_ANDROID_HARDWARE_AUDIO_EFFECT_V4_0_EXPORTED_CONSTANTS_H_
101