annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/alsa/sound/uapi/hdsp.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
jpayne@69 2 #ifndef __SOUND_HDSP_H
jpayne@69 3 #define __SOUND_HDSP_H
jpayne@69 4
jpayne@69 5 /*
jpayne@69 6 * Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
jpayne@69 7 *
jpayne@69 8 * This program is free software; you can redistribute it and/or modify
jpayne@69 9 * it under the terms of the GNU General Public License as published by
jpayne@69 10 * the Free Software Foundation; either version 2 of the License, or
jpayne@69 11 * (at your option) any later version.
jpayne@69 12 *
jpayne@69 13 * This program is distributed in the hope that it will be useful,
jpayne@69 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jpayne@69 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
jpayne@69 16 * GNU General Public License for more details.
jpayne@69 17 *
jpayne@69 18 * You should have received a copy of the GNU General Public License
jpayne@69 19 * along with this program; if not, write to the Free Software
jpayne@69 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
jpayne@69 21 */
jpayne@69 22
jpayne@69 23 #ifdef __linux__
jpayne@69 24 #include <linux/types.h>
jpayne@69 25 #endif
jpayne@69 26
jpayne@69 27 #define HDSP_MATRIX_MIXER_SIZE 2048
jpayne@69 28
jpayne@69 29 enum HDSP_IO_Type {
jpayne@69 30 Digiface,
jpayne@69 31 Multiface,
jpayne@69 32 H9652,
jpayne@69 33 H9632,
jpayne@69 34 RPM,
jpayne@69 35 Undefined,
jpayne@69 36 };
jpayne@69 37
jpayne@69 38 struct hdsp_peak_rms {
jpayne@69 39 __u32 input_peaks[26];
jpayne@69 40 __u32 playback_peaks[26];
jpayne@69 41 __u32 output_peaks[28];
jpayne@69 42 __u64 input_rms[26];
jpayne@69 43 __u64 playback_rms[26];
jpayne@69 44 /* These are only used for H96xx cards */
jpayne@69 45 __u64 output_rms[26];
jpayne@69 46 };
jpayne@69 47
jpayne@69 48 #define SNDRV_HDSP_IOCTL_GET_PEAK_RMS _IOR('H', 0x40, struct hdsp_peak_rms)
jpayne@69 49
jpayne@69 50 struct hdsp_config_info {
jpayne@69 51 unsigned char pref_sync_ref;
jpayne@69 52 unsigned char wordclock_sync_check;
jpayne@69 53 unsigned char spdif_sync_check;
jpayne@69 54 unsigned char adatsync_sync_check;
jpayne@69 55 unsigned char adat_sync_check[3];
jpayne@69 56 unsigned char spdif_in;
jpayne@69 57 unsigned char spdif_out;
jpayne@69 58 unsigned char spdif_professional;
jpayne@69 59 unsigned char spdif_emphasis;
jpayne@69 60 unsigned char spdif_nonaudio;
jpayne@69 61 unsigned int spdif_sample_rate;
jpayne@69 62 unsigned int system_sample_rate;
jpayne@69 63 unsigned int autosync_sample_rate;
jpayne@69 64 unsigned char system_clock_mode;
jpayne@69 65 unsigned char clock_source;
jpayne@69 66 unsigned char autosync_ref;
jpayne@69 67 unsigned char line_out;
jpayne@69 68 unsigned char passthru;
jpayne@69 69 unsigned char da_gain;
jpayne@69 70 unsigned char ad_gain;
jpayne@69 71 unsigned char phone_gain;
jpayne@69 72 unsigned char xlr_breakout_cable;
jpayne@69 73 unsigned char analog_extension_board;
jpayne@69 74 };
jpayne@69 75
jpayne@69 76 #define SNDRV_HDSP_IOCTL_GET_CONFIG_INFO _IOR('H', 0x41, struct hdsp_config_info)
jpayne@69 77
jpayne@69 78 struct hdsp_firmware {
jpayne@69 79 void *firmware_data; /* 24413 x 4 bytes */
jpayne@69 80 };
jpayne@69 81
jpayne@69 82 #define SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE _IOW('H', 0x42, struct hdsp_firmware)
jpayne@69 83
jpayne@69 84 struct hdsp_version {
jpayne@69 85 enum HDSP_IO_Type io_type;
jpayne@69 86 unsigned short firmware_rev;
jpayne@69 87 };
jpayne@69 88
jpayne@69 89 #define SNDRV_HDSP_IOCTL_GET_VERSION _IOR('H', 0x43, struct hdsp_version)
jpayne@69 90
jpayne@69 91 struct hdsp_mixer {
jpayne@69 92 unsigned short matrix[HDSP_MATRIX_MIXER_SIZE];
jpayne@69 93 };
jpayne@69 94
jpayne@69 95 #define SNDRV_HDSP_IOCTL_GET_MIXER _IOR('H', 0x44, struct hdsp_mixer)
jpayne@69 96
jpayne@69 97 struct hdsp_9632_aeb {
jpayne@69 98 int aebi;
jpayne@69 99 int aebo;
jpayne@69 100 };
jpayne@69 101
jpayne@69 102 #define SNDRV_HDSP_IOCTL_GET_9632_AEB _IOR('H', 0x45, struct hdsp_9632_aeb)
jpayne@69 103
jpayne@69 104 #endif /* __SOUND_HDSP_H */