Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


hdsp.h
001: #ifndef __SOUND_HDSP_H
002: #define __SOUND_HDSP_H
003: 
004: /*
005:  *   Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
006:  *    
007:  *   This program is free software; you can redistribute it and/or modify
008:  *   it under the terms of the GNU General Public License as published by
009:  *   the Free Software Foundation; either version 2 of the License, or
010:  *   (at your option) any later version.
011:  *
012:  *   This program is distributed in the hope that it will be useful,
013:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
014:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
015:  *   GNU General Public License for more details.
016:  *
017:  *   You should have received a copy of the GNU General Public License
018:  *   along with this program; if not, write to the Free Software
019:  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
020:  */
021: 
022: #include <linux/types.h>
023: 
024: #define HDSP_MATRIX_MIXER_SIZE 2048
025: 
026: enum HDSP_IO_Type {
027:         Digiface,
028:         Multiface,
029:         H9652,
030:         H9632,
031:         RPM,
032:         Undefined,
033: };
034: 
035: struct hdsp_peak_rms {
036:         __u32 input_peaks[26];
037:         __u32 playback_peaks[26];
038:         __u32 output_peaks[28];
039:         __u64 input_rms[26];
040:         __u64 playback_rms[26];
041:         /* These are only used for H96xx cards */
042:         __u64 output_rms[26];
043: };
044: 
045: #define SNDRV_HDSP_IOCTL_GET_PEAK_RMS _IOR('H', 0x40, struct hdsp_peak_rms)
046: 
047: struct hdsp_config_info {
048:         unsigned char pref_sync_ref;
049:         unsigned char wordclock_sync_check;
050:         unsigned char spdif_sync_check;
051:         unsigned char adatsync_sync_check;
052:         unsigned char adat_sync_check[3];
053:         unsigned char spdif_in;
054:         unsigned char spdif_out;
055:         unsigned char spdif_professional;
056:         unsigned char spdif_emphasis;
057:         unsigned char spdif_nonaudio;
058:         unsigned int spdif_sample_rate;
059:         unsigned int system_sample_rate;
060:         unsigned int autosync_sample_rate;
061:         unsigned char system_clock_mode;
062:         unsigned char clock_source;
063:         unsigned char autosync_ref;
064:         unsigned char line_out;
065:         unsigned char passthru; 
066:         unsigned char da_gain;
067:         unsigned char ad_gain;
068:         unsigned char phone_gain;
069:         unsigned char xlr_breakout_cable;
070:         unsigned char analog_extension_board;
071: };
072: 
073: #define SNDRV_HDSP_IOCTL_GET_CONFIG_INFO _IOR('H', 0x41, struct hdsp_config_info)
074: 
075: struct hdsp_firmware {
076:         void *firmware_data;    /* 24413 x 4 bytes */
077: };
078: 
079: #define SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE _IOW('H', 0x42, struct hdsp_firmware)
080: 
081: struct hdsp_version {
082:         enum HDSP_IO_Type io_type;
083:         unsigned short firmware_rev;
084: };
085: 
086: #define SNDRV_HDSP_IOCTL_GET_VERSION _IOR('H', 0x43, struct hdsp_version)
087: 
088: struct hdsp_mixer {
089:         unsigned short matrix[HDSP_MATRIX_MIXER_SIZE];
090: };
091: 
092: #define SNDRV_HDSP_IOCTL_GET_MIXER _IOR('H', 0x44, struct hdsp_mixer)
093: 
094: struct hdsp_9632_aeb {
095:         int aebi;
096:         int aebo;
097: };
098: 
099: #define SNDRV_HDSP_IOCTL_GET_9632_AEB _IOR('H', 0x45, struct hdsp_9632_aeb)
100: 
101: /* typedefs for compatibility to user-space */
102: typedef enum HDSP_IO_Type HDSP_IO_Type;
103: typedef struct hdsp_peak_rms hdsp_peak_rms_t;
104: typedef struct hdsp_config_info hdsp_config_info_t;
105: typedef struct hdsp_firmware hdsp_firmware_t;
106: typedef struct hdsp_version hdsp_version_t;
107: typedef struct hdsp_mixer hdsp_mixer_t;
108: typedef struct hdsp_9632_aeb hdsp_9632_aeb_t;
109: 
110: #endif /* __SOUND_HDSP_H */
111: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/