5 * Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #define HDSP_MATRIX_MIXER_SIZE 2048
34 typedef struct _snd_hdsp_peak_rms hdsp_peak_rms_t
;
36 struct _snd_hdsp_peak_rms
{
37 uint32_t input_peaks
[26];
38 uint32_t playback_peaks
[26];
39 uint32_t output_peaks
[28];
40 uint64_t input_rms
[26];
41 uint64_t playback_rms
[26];
42 /* These are only used for H96xx cards */
43 uint64_t output_rms
[26];
46 #define SNDRV_HDSP_IOCTL_GET_PEAK_RMS _IOR('H', 0x40, hdsp_peak_rms_t)
48 typedef struct _snd_hdsp_config_info hdsp_config_info_t
;
50 struct _snd_hdsp_config_info
{
51 unsigned char pref_sync_ref
;
52 unsigned char wordclock_sync_check
;
53 unsigned char spdif_sync_check
;
54 unsigned char adatsync_sync_check
;
55 unsigned char adat_sync_check
[3];
56 unsigned char spdif_in
;
57 unsigned char spdif_out
;
58 unsigned char spdif_professional
;
59 unsigned char spdif_emphasis
;
60 unsigned char spdif_nonaudio
;
61 unsigned int spdif_sample_rate
;
62 unsigned int system_sample_rate
;
63 unsigned int autosync_sample_rate
;
64 unsigned char system_clock_mode
;
65 unsigned char clock_source
;
66 unsigned char autosync_ref
;
67 unsigned char line_out
;
68 unsigned char passthru
;
69 unsigned char da_gain
;
70 unsigned char ad_gain
;
71 unsigned char phone_gain
;
72 unsigned char xlr_breakout_cable
;
73 unsigned char analog_extension_board
;
76 #define SNDRV_HDSP_IOCTL_GET_CONFIG_INFO _IOR('H', 0x41, hdsp_config_info_t)
78 typedef struct _snd_hdsp_firmware hdsp_firmware_t
;
80 struct _snd_hdsp_firmware
{
81 void *firmware_data
; /* 24413 x 4 bytes */
84 #define SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE _IOW('H', 0x42, hdsp_firmware_t)
86 typedef struct _snd_hdsp_version hdsp_version_t
;
88 struct _snd_hdsp_version
{
90 unsigned short firmware_rev
;
93 #define SNDRV_HDSP_IOCTL_GET_VERSION _IOR('H', 0x43, hdsp_version_t)
95 typedef struct _snd_hdsp_mixer hdsp_mixer_t
;
97 struct _snd_hdsp_mixer
{
98 unsigned short matrix
[HDSP_MATRIX_MIXER_SIZE
];
101 #define SNDRV_HDSP_IOCTL_GET_MIXER _IOR('H', 0x44, hdsp_mixer_t)
103 typedef struct _snd_hdsp_9632_aeb hdsp_9632_aeb_t
;
105 struct _snd_hdsp_9632_aeb
{
110 #define SNDRV_HDSP_IOCTL_GET_9632_AEB _IOR('H', 0x45, hdsp_9632_aeb_t)
112 #endif /* __SOUND_HDSP_H */