hdsp.h
001: #ifndef __SOUND_HDSP_H
002: #define __SOUND_HDSP_H
003: 
004: 
005: thomas@undata.org
006: 
007: 
008: 
009: 
010: 
011: 
012: 
013: 
014: 
015: 
016: 
017: 
018: 
019: 
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:         
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;    
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: 
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 
111: 
      
      
      
      
   
      
      
         
            
            © Andrew Scott 2006 -
            2025, 
            All Rights Reserved