hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/include/uapi/sound/hdsp.h
....@@ -20,7 +20,9 @@
2020 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2121 */
2222
23
+#ifdef __linux__
2324 #include <linux/types.h>
25
+#endif
2426
2527 #define HDSP_MATRIX_MIXER_SIZE 2048
2628
....@@ -74,7 +76,7 @@
7476 #define SNDRV_HDSP_IOCTL_GET_CONFIG_INFO _IOR('H', 0x41, struct hdsp_config_info)
7577
7678 struct hdsp_firmware {
77
- void __user *firmware_data; /* 24413 x 4 bytes */
79
+ void *firmware_data; /* 24413 x 4 bytes */
7880 };
7981
8082 #define SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE _IOW('H', 0x42, struct hdsp_firmware)
....@@ -98,14 +100,5 @@
98100 };
99101
100102 #define SNDRV_HDSP_IOCTL_GET_9632_AEB _IOR('H', 0x45, struct hdsp_9632_aeb)
101
-
102
-/* typedefs for compatibility to user-space */
103
-typedef enum HDSP_IO_Type HDSP_IO_Type;
104
-typedef struct hdsp_peak_rms hdsp_peak_rms_t;
105
-typedef struct hdsp_config_info hdsp_config_info_t;
106
-typedef struct hdsp_firmware hdsp_firmware_t;
107
-typedef struct hdsp_version hdsp_version_t;
108
-typedef struct hdsp_mixer hdsp_mixer_t;
109
-typedef struct hdsp_9632_aeb hdsp_9632_aeb_t;
110103
111104 #endif /* __SOUND_HDSP_H */