Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef __INCLUDE_UAPI_SOUND_SOF_USER_EQ_H__ |
| 20 | #define __INCLUDE_UAPI_SOUND_SOF_USER_EQ_H__ |
| 21 | #define SOF_EQ_FIR_IDX_SWITCH 0 |
| 22 | #define SOF_EQ_FIR_MAX_SIZE 4096 |
| 23 | #define SOF_EQ_FIR_MAX_LENGTH 192 |
| 24 | #define SOF_EQ_FIR_MAX_RESPONSES 8 |
| 25 | struct sof_eq_fir_config { |
| 26 | uint32_t size; |
| 27 | uint16_t channels_in_config; |
| 28 | uint16_t number_of_responses; |
| 29 | uint32_t reserved[4]; |
| 30 | int16_t data[]; |
| 31 | } __packed; |
| 32 | struct sof_eq_fir_coef_data { |
| 33 | int16_t length; |
| 34 | int16_t out_shift; |
| 35 | uint32_t reserved[4]; |
| 36 | int16_t coef[]; |
| 37 | } __packed; |
| 38 | #define SOF_EQ_FIR_COEF_NHEADER (sizeof(struct sof_eq_fir_coef_data) / sizeof(int16_t)) |
| 39 | #define SOF_EQ_IIR_IDX_SWITCH 0 |
| 40 | #define SOF_EQ_IIR_MAX_SIZE 1024 |
| 41 | #define SOF_EQ_IIR_MAX_RESPONSES 8 |
| 42 | struct sof_eq_iir_config { |
| 43 | uint32_t size; |
| 44 | uint32_t channels_in_config; |
| 45 | uint32_t number_of_responses; |
| 46 | uint32_t reserved[4]; |
| 47 | int32_t data[]; |
| 48 | } __packed; |
| 49 | struct sof_eq_iir_header_df2t { |
| 50 | uint32_t num_sections; |
| 51 | uint32_t num_sections_in_series; |
| 52 | uint32_t reserved[4]; |
| 53 | int32_t biquads[]; |
| 54 | } __packed; |
| 55 | struct sof_eq_iir_biquad_df2t { |
| 56 | int32_t a2; |
| 57 | int32_t a1; |
| 58 | int32_t b2; |
| 59 | int32_t b1; |
| 60 | int32_t b0; |
| 61 | int32_t output_shift; |
| 62 | int32_t output_gain; |
| 63 | } __packed; |
| 64 | #define SOF_EQ_IIR_DF2T_BIQUADS_MAX 11 |
| 65 | #define SOF_EQ_IIR_NHEADER_DF2T (sizeof(struct sof_eq_iir_header_df2t) / sizeof(int32_t)) |
| 66 | #define SOF_EQ_IIR_NBIQUAD_DF2T (sizeof(struct sof_eq_iir_biquad_df2t) / sizeof(int32_t)) |
| 67 | #endif |