msmcal-hwdep.h 807 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _CALIB_HWDEP_H
  2. #define _CALIB_HWDEP_H
  3. #define WCD9XXX_CODEC_HWDEP_NODE 1000
  4. #define AQT1000_CODEC_HWDEP_NODE 1001
  5. #define Q6AFE_HWDEP_NODE 1002
  6. enum wcd_cal_type {
  7. WCD9XXX_MIN_CAL,
  8. WCD9XXX_ANC_CAL = WCD9XXX_MIN_CAL,
  9. WCD9XXX_MAD_CAL,
  10. WCD9XXX_MBHC_CAL,
  11. WCD9XXX_VBAT_CAL,
  12. WCD9XXX_MAX_CAL,
  13. };
  14. struct wcdcal_ioctl_buffer {
  15. __u32 size;
  16. __u8 __user *buffer;
  17. enum wcd_cal_type cal_type;
  18. };
  19. #define SNDRV_CTL_IOCTL_HWDEP_CAL_TYPE \
  20. _IOW('U', 0x1, struct wcdcal_ioctl_buffer)
  21. enum q6afe_cal_type {
  22. Q6AFE_MIN_CAL,
  23. Q6AFE_VAD_CORE_CAL = Q6AFE_MIN_CAL,
  24. Q6AFE_MAX_CAL,
  25. };
  26. struct q6afecal_ioctl_buffer {
  27. __u32 size;
  28. __u8 __user *buffer;
  29. enum q6afe_cal_type cal_type;
  30. };
  31. #define SNDRV_IOCTL_HWDEP_VAD_CAL_TYPE \
  32. _IOW('U', 0x1, struct q6afecal_ioctl_buffer)
  33. #endif /*_CALIB_HWDEP_H*/