msmcal-hwdep.h 961 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2014, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _CALIB_HWDEP_H
  14. #define _CALIB_HWDEP_H
  15. #define WCD9XXX_CODEC_HWDEP_NODE 1000
  16. enum wcd_cal_type {
  17. WCD9XXX_MIN_CAL,
  18. WCD9XXX_ANC_CAL = WCD9XXX_MIN_CAL,
  19. WCD9XXX_MAD_CAL,
  20. WCD9XXX_MBHC_CAL,
  21. WCD9XXX_MAX_CAL,
  22. };
  23. struct wcdcal_ioctl_buffer {
  24. __u32 size;
  25. __u8 __user *buffer;
  26. enum wcd_cal_type cal_type;
  27. };
  28. #define SNDRV_CTL_IOCTL_HWDEP_CAL_TYPE \
  29. _IOW('U', 0x1, struct wcdcal_ioctl_buffer)
  30. #endif /*_CALIB_HWDEP_H*/