1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __SOUND_HDSP_H
20 #define __SOUND_HDSP_H
21 #include <linux/types.h>
22 #define HDSP_MATRIX_MIXER_SIZE 2048
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 enum HDSP_IO_Type {
25   Digiface,
26   Multiface,
27   H9652,
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   H9632,
30   RPM,
31   Undefined,
32 };
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 struct hdsp_peak_rms {
35   __u32 input_peaks[26];
36   __u32 playback_peaks[26];
37   __u32 output_peaks[28];
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   __u64 input_rms[26];
40   __u64 playback_rms[26];
41   __u64 output_rms[26];
42 };
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define SNDRV_HDSP_IOCTL_GET_PEAK_RMS _IOR('H', 0x40, struct hdsp_peak_rms)
45 struct hdsp_config_info {
46   unsigned char pref_sync_ref;
47   unsigned char wordclock_sync_check;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   unsigned char spdif_sync_check;
50   unsigned char adatsync_sync_check;
51   unsigned char adat_sync_check[3];
52   unsigned char spdif_in;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   unsigned char spdif_out;
55   unsigned char spdif_professional;
56   unsigned char spdif_emphasis;
57   unsigned char spdif_nonaudio;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   unsigned int spdif_sample_rate;
60   unsigned int system_sample_rate;
61   unsigned int autosync_sample_rate;
62   unsigned char system_clock_mode;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   unsigned char clock_source;
65   unsigned char autosync_ref;
66   unsigned char line_out;
67   unsigned char passthru;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   unsigned char da_gain;
70   unsigned char ad_gain;
71   unsigned char phone_gain;
72   unsigned char xlr_breakout_cable;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74   unsigned char analog_extension_board;
75 };
76 #define SNDRV_HDSP_IOCTL_GET_CONFIG_INFO _IOR('H', 0x41, struct hdsp_config_info)
77 struct hdsp_firmware {
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   void __user * firmware_data;
80 };
81 #define SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE _IOW('H', 0x42, struct hdsp_firmware)
82 struct hdsp_version {
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84   enum HDSP_IO_Type io_type;
85   unsigned short firmware_rev;
86 };
87 #define SNDRV_HDSP_IOCTL_GET_VERSION _IOR('H', 0x43, struct hdsp_version)
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 struct hdsp_mixer {
90   unsigned short matrix[HDSP_MATRIX_MIXER_SIZE];
91 };
92 #define SNDRV_HDSP_IOCTL_GET_MIXER _IOR('H', 0x44, struct hdsp_mixer)
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 struct hdsp_9632_aeb {
95   int aebi;
96   int aebo;
97 };
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define SNDRV_HDSP_IOCTL_GET_9632_AEB _IOR('H', 0x45, struct hdsp_9632_aeb)
100 typedef enum HDSP_IO_Type HDSP_IO_Type;
101 typedef struct hdsp_peak_rms hdsp_peak_rms_t;
102 typedef struct hdsp_config_info hdsp_config_info_t;
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 typedef struct hdsp_firmware hdsp_firmware_t;
105 typedef struct hdsp_version hdsp_version_t;
106 typedef struct hdsp_mixer hdsp_mixer_t;
107 typedef struct hdsp_9632_aeb hdsp_9632_aeb_t;
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #endif
110