diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2018-10-09 09:43:44 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-10-09 09:43:44 -0700 |
| commit | a5a34b69d420ab8a1fdf6d8494e7789b41f2132a (patch) | |
| tree | 5c602aaee85caff773cfb481d89ff7cb8a009f81 /include/uapi | |
| parent | b6179196216ef375d53165a9f2e08f352a9dfb7f (diff) | |
| parent | aef8b38fdd280a4c8890df4f5172c400d3762866 (diff) | |
Merge "soc: msm: add sensor dsp dynamic calibration support for anc"
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/msm_audio_anc.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/uapi/linux/msm_audio_anc.h b/include/uapi/linux/msm_audio_anc.h index d628f7ce9267..87701fd8ee3a 100644 --- a/include/uapi/linux/msm_audio_anc.h +++ b/include/uapi/linux/msm_audio_anc.h @@ -21,6 +21,8 @@ /* room for ANC_CMD define extend */ #define ANC_CMD_MAX 0xFF +#define ANC_CALIBRATION_PAYLOAD_SIZE_MAX 100 + struct audio_anc_header { int32_t data_size; int32_t version; @@ -35,14 +37,23 @@ struct audio_anc_rpm_info { struct audio_anc_bypass_mode { int32_t mode; }; - struct audio_anc_algo_module_info { int32_t module_id; }; +struct audio_anc_algo_calibration_header { + uint32_t module_id; + uint32_t param_id; + uint32_t payload_size; +}; + +struct audio_anc_algo_calibration_body { + int32_t payload[ANC_CALIBRATION_PAYLOAD_SIZE_MAX]; +}; + struct audio_anc_algo_calibration_info { - int32_t payload_size; - /* num bytes of payload specificed in payload_size followed */ + struct audio_anc_algo_calibration_header cali_header; + struct audio_anc_algo_calibration_body cali_body; }; union audio_anc_data { |
