msm_audio_calibration.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. #ifndef _UAPI_MSM_AUDIO_CALIBRATION_H
  2. #define _UAPI_MSM_AUDIO_CALIBRATION_H
  3. #include <linux/types.h>
  4. #include <linux/ioctl.h>
  5. #define CAL_IOCTL_MAGIC 'a'
  6. #define AUDIO_ALLOCATE_CALIBRATION _IOWR(CAL_IOCTL_MAGIC, \
  7. 200, void *)
  8. #define AUDIO_DEALLOCATE_CALIBRATION _IOWR(CAL_IOCTL_MAGIC, \
  9. 201, void *)
  10. #define AUDIO_PREPARE_CALIBRATION _IOWR(CAL_IOCTL_MAGIC, \
  11. 202, void *)
  12. #define AUDIO_SET_CALIBRATION _IOWR(CAL_IOCTL_MAGIC, \
  13. 203, void *)
  14. #define AUDIO_GET_CALIBRATION _IOWR(CAL_IOCTL_MAGIC, \
  15. 204, void *)
  16. #define AUDIO_POST_CALIBRATION _IOWR(CAL_IOCTL_MAGIC, \
  17. 205, void *)
  18. /* For Real-Time Audio Calibration */
  19. #define AUDIO_GET_RTAC_ADM_INFO _IOR(CAL_IOCTL_MAGIC, \
  20. 207, void *)
  21. #define AUDIO_GET_RTAC_VOICE_INFO _IOR(CAL_IOCTL_MAGIC, \
  22. 208, void *)
  23. #define AUDIO_GET_RTAC_ADM_CAL _IOWR(CAL_IOCTL_MAGIC, \
  24. 209, void *)
  25. #define AUDIO_SET_RTAC_ADM_CAL _IOWR(CAL_IOCTL_MAGIC, \
  26. 210, void *)
  27. #define AUDIO_GET_RTAC_ASM_CAL _IOWR(CAL_IOCTL_MAGIC, \
  28. 211, void *)
  29. #define AUDIO_SET_RTAC_ASM_CAL _IOWR(CAL_IOCTL_MAGIC, \
  30. 212, void *)
  31. #define AUDIO_GET_RTAC_CVS_CAL _IOWR(CAL_IOCTL_MAGIC, \
  32. 213, void *)
  33. #define AUDIO_SET_RTAC_CVS_CAL _IOWR(CAL_IOCTL_MAGIC, \
  34. 214, void *)
  35. #define AUDIO_GET_RTAC_CVP_CAL _IOWR(CAL_IOCTL_MAGIC, \
  36. 215, void *)
  37. #define AUDIO_SET_RTAC_CVP_CAL _IOWR(CAL_IOCTL_MAGIC, \
  38. 216, void *)
  39. #define AUDIO_GET_RTAC_AFE_CAL _IOWR(CAL_IOCTL_MAGIC, \
  40. 217, void *)
  41. #define AUDIO_SET_RTAC_AFE_CAL _IOWR(CAL_IOCTL_MAGIC, \
  42. 218, void *)
  43. enum {
  44. CVP_VOC_RX_TOPOLOGY_CAL_TYPE = 0,
  45. CVP_VOC_TX_TOPOLOGY_CAL_TYPE,
  46. CVP_VOCPROC_STATIC_CAL_TYPE,
  47. CVP_VOCPROC_DYNAMIC_CAL_TYPE,
  48. CVS_VOCSTRM_STATIC_CAL_TYPE,
  49. CVP_VOCDEV_CFG_CAL_TYPE,
  50. CVP_VOCPROC_STATIC_COL_CAL_TYPE,
  51. CVP_VOCPROC_DYNAMIC_COL_CAL_TYPE,
  52. CVS_VOCSTRM_STATIC_COL_CAL_TYPE,
  53. ADM_TOPOLOGY_CAL_TYPE,
  54. ADM_CUST_TOPOLOGY_CAL_TYPE,
  55. ADM_AUDPROC_CAL_TYPE,
  56. ADM_AUDVOL_CAL_TYPE,
  57. ASM_TOPOLOGY_CAL_TYPE,
  58. ASM_CUST_TOPOLOGY_CAL_TYPE,
  59. ASM_AUDSTRM_CAL_TYPE,
  60. AFE_COMMON_RX_CAL_TYPE,
  61. AFE_COMMON_TX_CAL_TYPE,
  62. AFE_ANC_CAL_TYPE,
  63. AFE_AANC_CAL_TYPE,
  64. AFE_FB_SPKR_PROT_CAL_TYPE,
  65. AFE_HW_DELAY_CAL_TYPE,
  66. AFE_SIDETONE_CAL_TYPE,
  67. AFE_TOPOLOGY_CAL_TYPE,
  68. AFE_CUST_TOPOLOGY_CAL_TYPE,
  69. LSM_CUST_TOPOLOGY_CAL_TYPE,
  70. LSM_TOPOLOGY_CAL_TYPE,
  71. LSM_CAL_TYPE,
  72. ADM_RTAC_INFO_CAL_TYPE,
  73. VOICE_RTAC_INFO_CAL_TYPE,
  74. ADM_RTAC_APR_CAL_TYPE,
  75. ASM_RTAC_APR_CAL_TYPE,
  76. VOICE_RTAC_APR_CAL_TYPE,
  77. MAD_CAL_TYPE,
  78. ULP_AFE_CAL_TYPE,
  79. ULP_LSM_CAL_TYPE,
  80. DTS_EAGLE_CAL_TYPE,
  81. AUDIO_CORE_METAINFO_CAL_TYPE,
  82. SRS_TRUMEDIA_CAL_TYPE,
  83. CORE_CUSTOM_TOPOLOGIES_CAL_TYPE,
  84. ADM_RTAC_AUDVOL_CAL_TYPE,
  85. ULP_LSM_TOPOLOGY_ID_CAL_TYPE,
  86. AFE_FB_SPKR_PROT_TH_VI_CAL_TYPE,
  87. AFE_FB_SPKR_PROT_EX_VI_CAL_TYPE,
  88. AFE_SIDETONE_IIR_CAL_TYPE,
  89. AFE_LSM_TOPOLOGY_CAL_TYPE,
  90. AFE_LSM_TX_CAL_TYPE,
  91. ADM_LSM_TOPOLOGY_CAL_TYPE,
  92. ADM_LSM_AUDPROC_CAL_TYPE,
  93. ADM_LSM_AUDPROC_PERSISTENT_CAL_TYPE,
  94. MAX_CAL_TYPES,
  95. };
  96. #define AFE_FB_SPKR_PROT_TH_VI_CAL_TYPE AFE_FB_SPKR_PROT_TH_VI_CAL_TYPE
  97. #define AFE_FB_SPKR_PROT_EX_VI_CAL_TYPE AFE_FB_SPKR_PROT_EX_VI_CAL_TYPE
  98. #define AFE_SIDETONE_IIR_CAL_TYPE AFE_SIDETONE_IIR_CAL_TYPE
  99. #define AFE_LSM_TOPOLOGY_CAL_TYPE AFE_LSM_TOPOLOGY_CAL_TYPE
  100. #define AFE_LSM_TX_CAL_TYPE AFE_LSM_TX_CAL_TYPE
  101. #define ADM_LSM_TOPOLOGY_CAL_TYPE ADM_LSM_TOPOLOGY_CAL_TYPE
  102. #define ADM_LSM_AUDPROC_CAL_TYPE ADM_LSM_AUDPROC_CAL_TYPE
  103. #define ADM_LSM_AUDPROC_PERSISTENT_CAL_TYPE ADM_LSM_AUDPROC_PERSISTENT_CAL_TYPE
  104. #define LSM_CAL_TYPES
  105. #define TOPOLOGY_SPECIFIC_CHANNEL_INFO
  106. #define MSM_SPKR_PROT_SPV3
  107. enum {
  108. VERSION_0_0,
  109. };
  110. enum {
  111. PER_VOCODER_CAL_BIT_MASK = 0x10000,
  112. };
  113. #define MAX_IOCTL_CMD_SIZE 512
  114. /* common structures */
  115. struct audio_cal_header {
  116. int32_t data_size;
  117. int32_t version;
  118. int32_t cal_type;
  119. int32_t cal_type_size;
  120. };
  121. struct audio_cal_type_header {
  122. int32_t version;
  123. int32_t buffer_number;
  124. };
  125. struct audio_cal_data {
  126. /* Size of cal data at mem_handle allocation or at vaddr */
  127. int32_t cal_size;
  128. /* If mem_handle if shared memory is used*/
  129. int32_t mem_handle;
  130. /* size of virtual memory if shared memory not used */
  131. };
  132. /* AUDIO_ALLOCATE_CALIBRATION */
  133. struct audio_cal_type_alloc {
  134. struct audio_cal_type_header cal_hdr;
  135. struct audio_cal_data cal_data;
  136. };
  137. struct audio_cal_alloc {
  138. struct audio_cal_header hdr;
  139. struct audio_cal_type_alloc cal_type;
  140. };
  141. /* AUDIO_DEALLOCATE_CALIBRATION */
  142. struct audio_cal_type_dealloc {
  143. struct audio_cal_type_header cal_hdr;
  144. struct audio_cal_data cal_data;
  145. };
  146. struct audio_cal_dealloc {
  147. struct audio_cal_header hdr;
  148. struct audio_cal_type_dealloc cal_type;
  149. };
  150. /* AUDIO_PREPARE_CALIBRATION */
  151. struct audio_cal_type_prepare {
  152. struct audio_cal_type_header cal_hdr;
  153. struct audio_cal_data cal_data;
  154. };
  155. struct audio_cal_prepare {
  156. struct audio_cal_header hdr;
  157. struct audio_cal_type_prepare cal_type;
  158. };
  159. /* AUDIO_POST_CALIBRATION */
  160. struct audio_cal_type_post {
  161. struct audio_cal_type_header cal_hdr;
  162. struct audio_cal_data cal_data;
  163. };
  164. struct audio_cal_post {
  165. struct audio_cal_header hdr;
  166. struct audio_cal_type_post cal_type;
  167. };
  168. /*AUDIO_CORE_META_INFO */
  169. struct audio_cal_info_metainfo {
  170. uint32_t nKey;
  171. };
  172. /* Cal info types */
  173. enum {
  174. RX_DEVICE,
  175. TX_DEVICE,
  176. MAX_PATH_TYPE
  177. };
  178. struct audio_cal_info_adm_top {
  179. int32_t topology;
  180. int32_t acdb_id;
  181. /* RX_DEVICE or TX_DEVICE */
  182. int32_t path;
  183. int32_t app_type;
  184. int32_t sample_rate;
  185. };
  186. struct audio_cal_info_audproc {
  187. int32_t acdb_id;
  188. /* RX_DEVICE or TX_DEVICE */
  189. int32_t path;
  190. int32_t app_type;
  191. int32_t sample_rate;
  192. };
  193. struct audio_cal_info_audvol {
  194. int32_t acdb_id;
  195. /* RX_DEVICE or TX_DEVICE */
  196. int32_t path;
  197. int32_t app_type;
  198. int32_t vol_index;
  199. };
  200. struct audio_cal_info_afe {
  201. int32_t acdb_id;
  202. /* RX_DEVICE or TX_DEVICE */
  203. int32_t path;
  204. int32_t sample_rate;
  205. };
  206. struct audio_cal_info_afe_top {
  207. int32_t topology;
  208. int32_t acdb_id;
  209. /* RX_DEVICE or TX_DEVICE */
  210. int32_t path;
  211. int32_t sample_rate;
  212. };
  213. struct audio_cal_info_asm_top {
  214. int32_t topology;
  215. int32_t app_type;
  216. };
  217. struct audio_cal_info_audstrm {
  218. int32_t app_type;
  219. };
  220. struct audio_cal_info_aanc {
  221. int32_t acdb_id;
  222. };
  223. #define MAX_HW_DELAY_ENTRIES 25
  224. struct audio_cal_hw_delay_entry {
  225. uint32_t sample_rate;
  226. uint32_t delay_usec;
  227. };
  228. struct audio_cal_hw_delay_data {
  229. uint32_t num_entries;
  230. struct audio_cal_hw_delay_entry entry[MAX_HW_DELAY_ENTRIES];
  231. };
  232. struct audio_cal_info_hw_delay {
  233. int32_t acdb_id;
  234. /* RX_DEVICE or TX_DEVICE */
  235. int32_t path;
  236. int32_t property_type;
  237. struct audio_cal_hw_delay_data data;
  238. };
  239. enum msm_spkr_prot_states {
  240. MSM_SPKR_PROT_CALIBRATED,
  241. MSM_SPKR_PROT_CALIBRATION_IN_PROGRESS,
  242. MSM_SPKR_PROT_DISABLED,
  243. MSM_SPKR_PROT_NOT_CALIBRATED,
  244. MSM_SPKR_PROT_PRE_CALIBRATED,
  245. MSM_SPKR_PROT_IN_FTM_MODE,
  246. MSM_SPKR_PROT_IN_V_VALI_MODE
  247. };
  248. #define MSM_SPKR_PROT_IN_FTM_MODE MSM_SPKR_PROT_IN_FTM_MODE
  249. #define MSM_SPKR_PROT_IN_V_VALI_MODE MSM_SPKR_PROT_IN_V_VALI_MODE
  250. enum msm_spkr_count {
  251. SP_V2_SPKR_1,
  252. SP_V2_SPKR_2,
  253. SP_V2_NUM_MAX_SPKRS
  254. };
  255. struct audio_cal_info_spk_prot_cfg {
  256. int32_t r0[SP_V2_NUM_MAX_SPKRS];
  257. int32_t t0[SP_V2_NUM_MAX_SPKRS];
  258. uint32_t quick_calib_flag;
  259. uint32_t mode;
  260. /*
  261. * 0 - Start spk prot
  262. * 1 - Start calib
  263. * 2 - Disable spk prot
  264. */
  265. #ifdef MSM_SPKR_PROT_SPV3
  266. uint32_t sp_version;
  267. int32_t limiter_th[SP_V2_NUM_MAX_SPKRS];
  268. #endif
  269. };
  270. struct audio_cal_info_sp_th_vi_ftm_cfg {
  271. /*
  272. * mode should be first param, add new params later to this.
  273. * we use this mode(first 4 bytes) to differentiate
  274. * whether it is TH_VI FTM or v-validation.
  275. */
  276. uint32_t mode;
  277. /*
  278. * 0 - normal running mode
  279. * 1 - Calibration
  280. * 2 - FTM mode
  281. */
  282. uint32_t wait_time[SP_V2_NUM_MAX_SPKRS];
  283. uint32_t ftm_time[SP_V2_NUM_MAX_SPKRS];
  284. };
  285. struct audio_cal_info_sp_th_vi_v_vali_cfg {
  286. /*
  287. * mode should be first param, add new params later to this.
  288. * we use this mode(first 4 bytes) to differentiate
  289. * whether it is TH_VI FTM or v-validation.
  290. */
  291. uint32_t mode;
  292. /*
  293. * 0 - normal running mode
  294. * 1 - Calibration
  295. * 2 - FTM mode
  296. * 3 - V-Validation mode
  297. */
  298. uint32_t wait_time[SP_V2_NUM_MAX_SPKRS];
  299. uint32_t vali_time[SP_V2_NUM_MAX_SPKRS];
  300. };
  301. struct audio_cal_info_sp_ex_vi_ftm_cfg {
  302. uint32_t wait_time[SP_V2_NUM_MAX_SPKRS];
  303. uint32_t ftm_time[SP_V2_NUM_MAX_SPKRS];
  304. uint32_t mode;
  305. /*
  306. * 0 - normal running mode
  307. * 2 - FTM mode
  308. */
  309. };
  310. struct audio_cal_info_sp_ex_vi_param {
  311. int32_t freq_q20[SP_V2_NUM_MAX_SPKRS];
  312. int32_t resis_q24[SP_V2_NUM_MAX_SPKRS];
  313. int32_t qmct_q24[SP_V2_NUM_MAX_SPKRS];
  314. int32_t status[SP_V2_NUM_MAX_SPKRS];
  315. };
  316. struct audio_cal_info_sp_th_vi_param {
  317. /*
  318. * mode should be first param, add new params later to this.
  319. * we use this mode(first 4 bytes) to differentiate
  320. * whether it is TH_VI FTM or v-validation.
  321. */
  322. uint32_t mode;
  323. int32_t r_dc_q24[SP_V2_NUM_MAX_SPKRS];
  324. int32_t temp_q22[SP_V2_NUM_MAX_SPKRS];
  325. int32_t status[SP_V2_NUM_MAX_SPKRS];
  326. };
  327. struct audio_cal_info_sp_th_vi_v_vali_param {
  328. /*
  329. * mode should be first param, add new params later to this.
  330. * we use this mode(first 4 bytes) to differentiate
  331. * whether it is TH_VI FTM or v-validation.
  332. */
  333. uint32_t mode;
  334. uint32_t vrms_q24[SP_V2_NUM_MAX_SPKRS];
  335. int32_t status[SP_V2_NUM_MAX_SPKRS];
  336. };
  337. struct audio_cal_info_msm_spk_prot_status {
  338. int32_t r0[SP_V2_NUM_MAX_SPKRS];
  339. int32_t status;
  340. };
  341. struct audio_cal_info_sidetone {
  342. uint16_t enable;
  343. uint16_t gain;
  344. int32_t tx_acdb_id;
  345. int32_t rx_acdb_id;
  346. int32_t mid;
  347. int32_t pid;
  348. };
  349. #define MAX_SIDETONE_IIR_DATA_SIZE 224
  350. #define MAX_NO_IIR_FILTER_STAGE 10
  351. struct audio_cal_info_sidetone_iir {
  352. uint16_t iir_enable;
  353. uint16_t num_biquad_stages;
  354. uint16_t pregain;
  355. int32_t tx_acdb_id;
  356. int32_t rx_acdb_id;
  357. int32_t mid;
  358. int32_t pid;
  359. uint8_t iir_config[MAX_SIDETONE_IIR_DATA_SIZE];
  360. };
  361. struct audio_cal_info_lsm_top {
  362. int32_t topology;
  363. int32_t acdb_id;
  364. int32_t app_type;
  365. };
  366. struct audio_cal_info_lsm {
  367. int32_t acdb_id;
  368. /* RX_DEVICE or TX_DEVICE */
  369. int32_t path;
  370. int32_t app_type;
  371. };
  372. #define VSS_NUM_CHANNELS_MAX 32
  373. struct audio_cal_info_voc_top {
  374. int32_t topology;
  375. int32_t acdb_id;
  376. #ifdef TOPOLOGY_SPECIFIC_CHANNEL_INFO
  377. uint32_t num_channels;
  378. uint8_t channel_mapping[VSS_NUM_CHANNELS_MAX];
  379. #endif
  380. };
  381. struct audio_cal_info_vocproc {
  382. int32_t tx_acdb_id;
  383. int32_t rx_acdb_id;
  384. int32_t tx_sample_rate;
  385. int32_t rx_sample_rate;
  386. };
  387. enum {
  388. DEFAULT_FEATURE_SET,
  389. VOL_BOOST_FEATURE_SET,
  390. };
  391. struct audio_cal_info_vocvol {
  392. int32_t tx_acdb_id;
  393. int32_t rx_acdb_id;
  394. /* DEFAULT_ or VOL_BOOST_FEATURE_SET */
  395. int32_t feature_set;
  396. };
  397. struct audio_cal_info_vocdev_cfg {
  398. int32_t tx_acdb_id;
  399. int32_t rx_acdb_id;
  400. };
  401. #define MAX_VOICE_COLUMNS 20
  402. union audio_cal_col_na {
  403. uint8_t val8;
  404. uint16_t val16;
  405. uint32_t val32;
  406. uint64_t val64;
  407. } __packed;
  408. struct audio_cal_col {
  409. uint32_t id;
  410. uint32_t type;
  411. union audio_cal_col_na na_value;
  412. } __packed;
  413. struct audio_cal_col_data {
  414. uint32_t num_columns;
  415. struct audio_cal_col column[MAX_VOICE_COLUMNS];
  416. } __packed;
  417. struct audio_cal_info_voc_col {
  418. int32_t table_id;
  419. int32_t tx_acdb_id;
  420. int32_t rx_acdb_id;
  421. struct audio_cal_col_data data;
  422. };
  423. /* AUDIO_SET_CALIBRATION & */
  424. struct audio_cal_type_basic {
  425. struct audio_cal_type_header cal_hdr;
  426. struct audio_cal_data cal_data;
  427. };
  428. struct audio_cal_basic {
  429. struct audio_cal_header hdr;
  430. struct audio_cal_type_basic cal_type;
  431. };
  432. struct audio_cal_type_adm_top {
  433. struct audio_cal_type_header cal_hdr;
  434. struct audio_cal_data cal_data;
  435. struct audio_cal_info_adm_top cal_info;
  436. };
  437. struct audio_cal_adm_top {
  438. struct audio_cal_header hdr;
  439. struct audio_cal_type_adm_top cal_type;
  440. };
  441. struct audio_cal_type_metainfo {
  442. struct audio_cal_type_header cal_hdr;
  443. struct audio_cal_data cal_data;
  444. struct audio_cal_info_metainfo cal_info;
  445. };
  446. struct audio_core_metainfo {
  447. struct audio_cal_header hdr;
  448. struct audio_cal_type_metainfo cal_type;
  449. };
  450. struct audio_cal_type_audproc {
  451. struct audio_cal_type_header cal_hdr;
  452. struct audio_cal_data cal_data;
  453. struct audio_cal_info_audproc cal_info;
  454. };
  455. struct audio_cal_audproc {
  456. struct audio_cal_header hdr;
  457. struct audio_cal_type_audproc cal_type;
  458. };
  459. struct audio_cal_type_audvol {
  460. struct audio_cal_type_header cal_hdr;
  461. struct audio_cal_data cal_data;
  462. struct audio_cal_info_audvol cal_info;
  463. };
  464. struct audio_cal_audvol {
  465. struct audio_cal_header hdr;
  466. struct audio_cal_type_audvol cal_type;
  467. };
  468. struct audio_cal_type_asm_top {
  469. struct audio_cal_type_header cal_hdr;
  470. struct audio_cal_data cal_data;
  471. struct audio_cal_info_asm_top cal_info;
  472. };
  473. struct audio_cal_asm_top {
  474. struct audio_cal_header hdr;
  475. struct audio_cal_type_asm_top cal_type;
  476. };
  477. struct audio_cal_type_audstrm {
  478. struct audio_cal_type_header cal_hdr;
  479. struct audio_cal_data cal_data;
  480. struct audio_cal_info_audstrm cal_info;
  481. };
  482. struct audio_cal_audstrm {
  483. struct audio_cal_header hdr;
  484. struct audio_cal_type_audstrm cal_type;
  485. };
  486. struct audio_cal_type_afe {
  487. struct audio_cal_type_header cal_hdr;
  488. struct audio_cal_data cal_data;
  489. struct audio_cal_info_afe cal_info;
  490. };
  491. struct audio_cal_afe {
  492. struct audio_cal_header hdr;
  493. struct audio_cal_type_afe cal_type;
  494. };
  495. struct audio_cal_type_afe_top {
  496. struct audio_cal_type_header cal_hdr;
  497. struct audio_cal_data cal_data;
  498. struct audio_cal_info_afe_top cal_info;
  499. };
  500. struct audio_cal_afe_top {
  501. struct audio_cal_header hdr;
  502. struct audio_cal_type_afe_top cal_type;
  503. };
  504. struct audio_cal_type_aanc {
  505. struct audio_cal_type_header cal_hdr;
  506. struct audio_cal_data cal_data;
  507. struct audio_cal_info_aanc cal_info;
  508. };
  509. struct audio_cal_aanc {
  510. struct audio_cal_header hdr;
  511. struct audio_cal_type_aanc cal_type;
  512. };
  513. struct audio_cal_type_fb_spk_prot_cfg {
  514. struct audio_cal_type_header cal_hdr;
  515. struct audio_cal_data cal_data;
  516. struct audio_cal_info_spk_prot_cfg cal_info;
  517. };
  518. struct audio_cal_fb_spk_prot_cfg {
  519. struct audio_cal_header hdr;
  520. struct audio_cal_type_fb_spk_prot_cfg cal_type;
  521. };
  522. struct audio_cal_type_sp_th_vi_ftm_cfg {
  523. struct audio_cal_type_header cal_hdr;
  524. struct audio_cal_data cal_data;
  525. struct audio_cal_info_sp_th_vi_ftm_cfg cal_info;
  526. };
  527. struct audio_cal_sp_th_vi_ftm_cfg {
  528. struct audio_cal_header hdr;
  529. struct audio_cal_type_sp_th_vi_ftm_cfg cal_type;
  530. };
  531. struct audio_cal_type_sp_th_vi_v_vali_cfg {
  532. struct audio_cal_type_header cal_hdr;
  533. struct audio_cal_data cal_data;
  534. struct audio_cal_info_sp_th_vi_v_vali_cfg cal_info;
  535. };
  536. struct audio_cal_sp_th_vi_v_vali_cfg {
  537. struct audio_cal_header hdr;
  538. struct audio_cal_type_sp_th_vi_v_vali_cfg cal_type;
  539. };
  540. struct audio_cal_type_sp_ex_vi_ftm_cfg {
  541. struct audio_cal_type_header cal_hdr;
  542. struct audio_cal_data cal_data;
  543. struct audio_cal_info_sp_ex_vi_ftm_cfg cal_info;
  544. };
  545. struct audio_cal_sp_ex_vi_ftm_cfg {
  546. struct audio_cal_header hdr;
  547. struct audio_cal_type_sp_ex_vi_ftm_cfg cal_type;
  548. };
  549. struct audio_cal_type_hw_delay {
  550. struct audio_cal_type_header cal_hdr;
  551. struct audio_cal_data cal_data;
  552. struct audio_cal_info_hw_delay cal_info;
  553. };
  554. struct audio_cal_hw_delay {
  555. struct audio_cal_header hdr;
  556. struct audio_cal_type_hw_delay cal_type;
  557. };
  558. struct audio_cal_type_sidetone {
  559. struct audio_cal_type_header cal_hdr;
  560. struct audio_cal_data cal_data;
  561. struct audio_cal_info_sidetone cal_info;
  562. };
  563. struct audio_cal_sidetone {
  564. struct audio_cal_header hdr;
  565. struct audio_cal_type_sidetone cal_type;
  566. };
  567. struct audio_cal_type_sidetone_iir {
  568. struct audio_cal_type_header cal_hdr;
  569. struct audio_cal_data cal_data;
  570. struct audio_cal_info_sidetone_iir cal_info;
  571. };
  572. struct audio_cal_sidetone_iir {
  573. struct audio_cal_header hdr;
  574. struct audio_cal_type_sidetone_iir cal_type;
  575. };
  576. struct audio_cal_type_lsm_top {
  577. struct audio_cal_type_header cal_hdr;
  578. struct audio_cal_data cal_data;
  579. struct audio_cal_info_lsm_top cal_info;
  580. };
  581. struct audio_cal_lsm_top {
  582. struct audio_cal_header hdr;
  583. struct audio_cal_type_lsm_top cal_type;
  584. };
  585. struct audio_cal_type_lsm {
  586. struct audio_cal_type_header cal_hdr;
  587. struct audio_cal_data cal_data;
  588. struct audio_cal_info_lsm cal_info;
  589. };
  590. struct audio_cal_lsm {
  591. struct audio_cal_header hdr;
  592. struct audio_cal_type_lsm cal_type;
  593. };
  594. struct audio_cal_type_voc_top {
  595. struct audio_cal_type_header cal_hdr;
  596. struct audio_cal_data cal_data;
  597. struct audio_cal_info_voc_top cal_info;
  598. };
  599. struct audio_cal_voc_top {
  600. struct audio_cal_header hdr;
  601. struct audio_cal_type_voc_top cal_type;
  602. };
  603. struct audio_cal_type_vocproc {
  604. struct audio_cal_type_header cal_hdr;
  605. struct audio_cal_data cal_data;
  606. struct audio_cal_info_vocproc cal_info;
  607. };
  608. struct audio_cal_vocproc {
  609. struct audio_cal_header hdr;
  610. struct audio_cal_type_vocproc cal_type;
  611. };
  612. struct audio_cal_type_vocvol {
  613. struct audio_cal_type_header cal_hdr;
  614. struct audio_cal_data cal_data;
  615. struct audio_cal_info_vocvol cal_info;
  616. };
  617. struct audio_cal_vocvol {
  618. struct audio_cal_header hdr;
  619. struct audio_cal_type_vocvol cal_type;
  620. };
  621. struct audio_cal_type_vocdev_cfg {
  622. struct audio_cal_type_header cal_hdr;
  623. struct audio_cal_data cal_data;
  624. struct audio_cal_info_vocdev_cfg cal_info;
  625. };
  626. struct audio_cal_vocdev_cfg {
  627. struct audio_cal_header hdr;
  628. struct audio_cal_type_vocdev_cfg cal_type;
  629. };
  630. struct audio_cal_type_voc_col {
  631. struct audio_cal_type_header cal_hdr;
  632. struct audio_cal_data cal_data;
  633. struct audio_cal_info_voc_col cal_info;
  634. };
  635. struct audio_cal_voc_col {
  636. struct audio_cal_header hdr;
  637. struct audio_cal_type_voc_col cal_type;
  638. };
  639. /* AUDIO_GET_CALIBRATION */
  640. struct audio_cal_type_fb_spk_prot_status {
  641. struct audio_cal_type_header cal_hdr;
  642. struct audio_cal_data cal_data;
  643. struct audio_cal_info_msm_spk_prot_status cal_info;
  644. };
  645. struct audio_cal_fb_spk_prot_status {
  646. struct audio_cal_header hdr;
  647. struct audio_cal_type_fb_spk_prot_status cal_type;
  648. };
  649. struct audio_cal_type_sp_th_vi_param {
  650. struct audio_cal_type_header cal_hdr;
  651. struct audio_cal_data cal_data;
  652. struct audio_cal_info_sp_th_vi_param cal_info;
  653. };
  654. struct audio_cal_sp_th_vi_param {
  655. struct audio_cal_header hdr;
  656. struct audio_cal_type_sp_th_vi_param cal_type;
  657. };
  658. struct audio_cal_type_sp_th_vi_v_vali_param {
  659. struct audio_cal_type_header cal_hdr;
  660. struct audio_cal_data cal_data;
  661. struct audio_cal_info_sp_th_vi_v_vali_param cal_info;
  662. };
  663. struct audio_cal_sp_th_vi_v_vali_param {
  664. struct audio_cal_header hdr;
  665. struct audio_cal_type_sp_th_vi_v_vali_param cal_type;
  666. };
  667. struct audio_cal_type_sp_ex_vi_param {
  668. struct audio_cal_type_header cal_hdr;
  669. struct audio_cal_data cal_data;
  670. struct audio_cal_info_sp_ex_vi_param cal_info;
  671. };
  672. struct audio_cal_sp_ex_vi_param {
  673. struct audio_cal_header hdr;
  674. struct audio_cal_type_sp_ex_vi_param cal_type;
  675. };
  676. #endif /* _UAPI_MSM_AUDIO_CALIBRATION_H */