Path: blob/master/thirdparty/linuxbsd_headers/alsa/sound/hdsp.h
9917 views
#ifndef __SOUND_HDSP_H1#define __SOUND_HDSP_H23/*4* Copyright (C) 2003 Thomas Charbonnel ([email protected])5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19*/2021#include <stdint.h>2223#define HDSP_MATRIX_MIXER_SIZE 20482425typedef enum {26Digiface,27Multiface,28H9652,29H9632,30RPM,31Undefined,32} HDSP_IO_Type;3334typedef struct _snd_hdsp_peak_rms hdsp_peak_rms_t;3536struct _snd_hdsp_peak_rms {37uint32_t input_peaks[26];38uint32_t playback_peaks[26];39uint32_t output_peaks[28];40uint64_t input_rms[26];41uint64_t playback_rms[26];42/* These are only used for H96xx cards */43uint64_t output_rms[26];44};4546#define SNDRV_HDSP_IOCTL_GET_PEAK_RMS _IOR('H', 0x40, hdsp_peak_rms_t)4748typedef struct _snd_hdsp_config_info hdsp_config_info_t;4950struct _snd_hdsp_config_info {51unsigned char pref_sync_ref;52unsigned char wordclock_sync_check;53unsigned char spdif_sync_check;54unsigned char adatsync_sync_check;55unsigned char adat_sync_check[3];56unsigned char spdif_in;57unsigned char spdif_out;58unsigned char spdif_professional;59unsigned char spdif_emphasis;60unsigned char spdif_nonaudio;61unsigned int spdif_sample_rate;62unsigned int system_sample_rate;63unsigned int autosync_sample_rate;64unsigned char system_clock_mode;65unsigned char clock_source;66unsigned char autosync_ref;67unsigned char line_out;68unsigned char passthru;69unsigned char da_gain;70unsigned char ad_gain;71unsigned char phone_gain;72unsigned char xlr_breakout_cable;73unsigned char analog_extension_board;74};7576#define SNDRV_HDSP_IOCTL_GET_CONFIG_INFO _IOR('H', 0x41, hdsp_config_info_t)7778typedef struct _snd_hdsp_firmware hdsp_firmware_t;7980struct _snd_hdsp_firmware {81void *firmware_data; /* 24413 x 4 bytes */82};8384#define SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE _IOW('H', 0x42, hdsp_firmware_t)8586typedef struct _snd_hdsp_version hdsp_version_t;8788struct _snd_hdsp_version {89HDSP_IO_Type io_type;90unsigned short firmware_rev;91};9293#define SNDRV_HDSP_IOCTL_GET_VERSION _IOR('H', 0x43, hdsp_version_t)9495typedef struct _snd_hdsp_mixer hdsp_mixer_t;9697struct _snd_hdsp_mixer {98unsigned short matrix[HDSP_MATRIX_MIXER_SIZE];99};100101#define SNDRV_HDSP_IOCTL_GET_MIXER _IOR('H', 0x44, hdsp_mixer_t)102103typedef struct _snd_hdsp_9632_aeb hdsp_9632_aeb_t;104105struct _snd_hdsp_9632_aeb {106int aebi;107int aebo;108};109110#define SNDRV_HDSP_IOCTL_GET_9632_AEB _IOR('H', 0x45, hdsp_9632_aeb_t)111112#endif /* __SOUND_HDSP_H */113114115