summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuIC Gerrit Code Review <gerrit@quicinc.com>2010-03-21 19:02:21 -0700
committerQuIC Gerrit Code Review <gerrit@quicinc.com>2010-03-21 19:02:21 -0700
commit9f9b135c493ce09b57720dc6a6698773c9278dd9 (patch)
tree64a64aa728c28cc5265ccd19b7b817986d781406
parentef19df66f3333df53100ebb786387f8135ad0065 (diff)
parent58da1f214d0c54ce24c1b6dc6cbb0ae60a9d4cc4 (diff)
downloadbionic-9f9b135c493ce09b57720dc6a6698773c9278dd9.zip
bionic-9f9b135c493ce09b57720dc6a6698773c9278dd9.tar.gz
bionic-9f9b135c493ce09b57720dc6a6698773c9278dd9.tar.bz2
Merge change I1c49be50 into eclairM76XXTSNCJNLYA5320
* changes: msm_audio.h: Update to include the equalizer config structure
-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