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