msm_audio_calibration.h 19 KB

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