summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayasena Sangaraboina <c_jsanga@quicinc.com>2010-03-19 12:30:18 -0700
committerJayasena Sangaraboina <c_jsanga@quicinc.com>2010-03-19 12:30:18 -0700
commit58da1f214d0c54ce24c1b6dc6cbb0ae60a9d4cc4 (patch)
tree73187ab62718cb7ecfbbbceb94abd583df6b984f
parent4bad86a7ec65aabd08e8d8203519cd28ddd57e84 (diff)
downloadbionic-58da1f214d0c54ce24c1b6dc6cbb0ae60a9d4cc4.zip
bionic-58da1f214d0c54ce24c1b6dc6cbb0ae60a9d4cc4.tar.gz
bionic-58da1f214d0c54ce24c1b6dc6cbb0ae60a9d4cc4.tar.bz2
msm_audio.h: Update to include the equalizer config structure
Modify to include equalizer config structure. Change-Id: I1c49be50de8e487283057ee4e1ba574d95ee9ee9
-rw-r--r--libc/kernel/common/linux/msm_audio.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_audio.h b/libc/kernel/common/linux/msm_audio.h
index 135dcaf..4f97b73 100644
--- a/libc/kernel/common/linux/msm_audio.h
+++ b/libc/kernel/common/linux/msm_audio.h
@@ -275,4 +275,22 @@ struct msm_audio_route_config {
uint32_t stream_id;
uint32_t dev_id;
};
+
+#define AUDIO_MAX_EQ_BANDS 12
+
+struct msm_audio_eq_band {
+ uint16_t band_idx;
+ uint32_t filter_type;
+ uint32_t center_freq_hz;
+ uint32_t filter_gain;
+
+ uint32_t q_factor;
+} __attribute__ ((packed));
+
+struct msm_audio_eq_stream_config {
+ uint32_t enable;
+ uint32_t num_bands;
+ struct msm_audio_eq_band eq_bands[AUDIO_MAX_EQ_BANDS];
+} __attribute__ ((packed));
+
#endif