1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _DEV_DEP_H
8 #define _DEV_DEP_H
9 struct dolby_param_data {
10   int32_t version;
11   int32_t device_id;
12   int32_t be_id;
13   int32_t param_id;
14   int32_t length;
15   int32_t * data;
16 };
17 struct dolby_param_license {
18   int32_t dmid;
19   int32_t license_key;
20 };
21 #define SNDRV_DEVDEP_DAP_IOCTL_SET_PARAM _IOWR('U', 0x10, struct dolby_param_data)
22 #define SNDRV_DEVDEP_DAP_IOCTL_GET_PARAM _IOR('U', 0x11, struct dolby_param_data)
23 #define SNDRV_DEVDEP_DAP_IOCTL_DAP_COMMAND _IOWR('U', 0x13, struct dolby_param_data)
24 #define SNDRV_DEVDEP_DAP_IOCTL_DAP_LICENSE _IOWR('U', 0x14, struct dolby_param_license)
25 #define SNDRV_DEVDEP_DAP_IOCTL_GET_VISUALIZER _IOR('U', 0x15, struct dolby_param_data)
26 #define DTS_EAGLE_MODULE 0x00005000
27 #define DTS_EAGLE_MODULE_ENABLE 0x00005001
28 #define EAGLE_DRIVER_ID 0xF2
29 #define DTS_EAGLE_IOCTL_GET_CACHE_SIZE _IOR(EAGLE_DRIVER_ID, 0, int)
30 #define DTS_EAGLE_IOCTL_SET_CACHE_SIZE _IOW(EAGLE_DRIVER_ID, 1, int)
31 #define DTS_EAGLE_IOCTL_GET_PARAM _IOR(EAGLE_DRIVER_ID, 2, void *)
32 #define DTS_EAGLE_IOCTL_SET_PARAM _IOW(EAGLE_DRIVER_ID, 3, void *)
33 #define DTS_EAGLE_IOCTL_SET_CACHE_BLOCK _IOW(EAGLE_DRIVER_ID, 4, void *)
34 #define DTS_EAGLE_IOCTL_SET_ACTIVE_DEVICE _IOW(EAGLE_DRIVER_ID, 5, void *)
35 #define DTS_EAGLE_IOCTL_GET_LICENSE _IOR(EAGLE_DRIVER_ID, 6, void *)
36 #define DTS_EAGLE_IOCTL_SET_LICENSE _IOW(EAGLE_DRIVER_ID, 7, void *)
37 #define DTS_EAGLE_IOCTL_SEND_LICENSE _IOW(EAGLE_DRIVER_ID, 8, int)
38 #define DTS_EAGLE_IOCTL_SET_VOLUME_COMMANDS _IOW(EAGLE_DRIVER_ID, 9, void *)
39 #define DTS_EAGLE_FLAG_IOCTL_PRE (1 << 30)
40 #define DTS_EAGLE_FLAG_IOCTL_JUSTSETCACHE (1 << 31)
41 #define DTS_EAGLE_FLAG_IOCTL_GETFROMCORE DTS_EAGLE_FLAG_IOCTL_JUSTSETCACHE
42 #define DTS_EAGLE_FLAG_IOCTL_MASK (~(DTS_EAGLE_FLAG_IOCTL_PRE | 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 } __attribute__((packed));
50 #define HWDEP_FE_BASE 3000
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 struct snd_pcm_prsnt_position {
58   uint64_t timestamp;
59   uint64_t frames;
60   int32_t clock_id;
61 };
62 #define SNDRV_PCM_IOCTL_MMAP_DATA_FD _IOWR('U', 0xd2, struct snd_pcm_mmap_fd)
63 #define SNDRV_PCM_IOCTL_DSP_POSITION _IOWR('U', 0xd3, struct snd_pcm_prsnt_position)
64 #endif
65