msm_audio_calibration.h 19 KB

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