devdep_params.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef _DEV_DEP_H
  2. #define _DEV_DEP_H
  3. struct dolby_param_data {
  4. int32_t version;
  5. int32_t device_id;
  6. int32_t be_id;
  7. int32_t param_id;
  8. int32_t length;
  9. int32_t __user *data;
  10. };
  11. struct dolby_param_license {
  12. int32_t dmid;
  13. int32_t license_key;
  14. };
  15. #define SNDRV_DEVDEP_DAP_IOCTL_SET_PARAM\
  16. _IOWR('U', 0x10, struct dolby_param_data)
  17. #define SNDRV_DEVDEP_DAP_IOCTL_GET_PARAM\
  18. _IOR('U', 0x11, struct dolby_param_data)
  19. #define SNDRV_DEVDEP_DAP_IOCTL_DAP_COMMAND\
  20. _IOWR('U', 0x13, struct dolby_param_data)
  21. #define SNDRV_DEVDEP_DAP_IOCTL_DAP_LICENSE\
  22. _IOWR('U', 0x14, struct dolby_param_license)
  23. #define SNDRV_DEVDEP_DAP_IOCTL_GET_VISUALIZER\
  24. _IOR('U', 0x15, struct dolby_param_data)
  25. #define DTS_EAGLE_MODULE 0x00005000
  26. #define DTS_EAGLE_MODULE_ENABLE 0x00005001
  27. #define EAGLE_DRIVER_ID 0xF2
  28. #define DTS_EAGLE_IOCTL_GET_CACHE_SIZE _IOR(EAGLE_DRIVER_ID, 0, int)
  29. #define DTS_EAGLE_IOCTL_SET_CACHE_SIZE _IOW(EAGLE_DRIVER_ID, 1, int)
  30. #define DTS_EAGLE_IOCTL_GET_PARAM _IOR(EAGLE_DRIVER_ID, 2, void*)
  31. #define DTS_EAGLE_IOCTL_SET_PARAM _IOW(EAGLE_DRIVER_ID, 3, void*)
  32. #define DTS_EAGLE_IOCTL_SET_CACHE_BLOCK _IOW(EAGLE_DRIVER_ID, 4, void*)
  33. #define DTS_EAGLE_IOCTL_SET_ACTIVE_DEVICE _IOW(EAGLE_DRIVER_ID, 5, void*)
  34. #define DTS_EAGLE_IOCTL_GET_LICENSE _IOR(EAGLE_DRIVER_ID, 6, void*)
  35. #define DTS_EAGLE_IOCTL_SET_LICENSE _IOW(EAGLE_DRIVER_ID, 7, void*)
  36. #define DTS_EAGLE_IOCTL_SEND_LICENSE _IOW(EAGLE_DRIVER_ID, 8, int)
  37. #define DTS_EAGLE_IOCTL_SET_VOLUME_COMMANDS _IOW(EAGLE_DRIVER_ID, 9, void*)
  38. #define DTS_EAGLE_FLAG_IOCTL_PRE (1<<30)
  39. #define DTS_EAGLE_FLAG_IOCTL_JUSTSETCACHE (1<<31)
  40. #define DTS_EAGLE_FLAG_IOCTL_GETFROMCORE DTS_EAGLE_FLAG_IOCTL_JUSTSETCACHE
  41. #define DTS_EAGLE_FLAG_IOCTL_MASK (~(DTS_EAGLE_FLAG_IOCTL_PRE | \
  42. DTS_EAGLE_FLAG_IOCTL_JUSTSETCACHE))
  43. #define DTS_EAGLE_FLAG_ALSA_GET (1<<31)
  44. struct dts_eagle_param_desc {
  45. uint32_t id;
  46. uint32_t size;
  47. int32_t offset;
  48. uint32_t device;
  49. } __packed;
  50. #define HWDEP_FE_BASE 3000 /*unique base for FE hw dep nodes*/
  51. struct snd_pcm_mmap_fd {
  52. int32_t dir;
  53. int32_t fd;
  54. int32_t size;
  55. int32_t actual_size;
  56. };
  57. #define SNDRV_PCM_IOCTL_MMAP_DATA_FD _IOWR('U', 0xd2, struct snd_pcm_mmap_fd)
  58. #endif