Commit 98274f07 authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] Remove xxx_t typedefs: PCI HDSP-MADI

Modules: HDSPM driver,RME9652 driver

Remove xxx_t typedefs from the PCI HDSP-MADI driver.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 55e957d8
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
/* -------------------- IOCTL Peak/RMS Meters -------------------- */ /* -------------------- IOCTL Peak/RMS Meters -------------------- */
typedef struct _snd_hdspm_peak_rms hdspm_peak_rms_t;
/* peam rms level structure like we get from hardware /* peam rms level structure like we get from hardware
maybe in future we can memory map it so I just copy it maybe in future we can memory map it so I just copy it
...@@ -36,7 +34,7 @@ typedef struct _snd_hdspm_peak_rms hdspm_peak_rms_t; ...@@ -36,7 +34,7 @@ typedef struct _snd_hdspm_peak_rms hdspm_peak_rms_t;
(i asume so from the code) (i asume so from the code)
*/ */
struct _snd_hdspm_peak_rms { struct hdspm_peak_rms {
unsigned int level_offset[1024]; unsigned int level_offset[1024];
...@@ -58,18 +56,16 @@ struct _snd_hdspm_peak_rms { ...@@ -58,18 +56,16 @@ struct _snd_hdspm_peak_rms {
unsigned int xxx_rms_h[64]; /* not used */ unsigned int xxx_rms_h[64]; /* not used */
}; };
struct sndrv_hdspm_peak_rms_ioctl { struct hdspm_peak_rms_ioctl {
hdspm_peak_rms_t *peak; struct hdspm_peak_rms *peak;
}; };
/* use indirect access due to the limit of ioctl bit size */ /* use indirect access due to the limit of ioctl bit size */
#define SNDRV_HDSPM_IOCTL_GET_PEAK_RMS _IOR('H', 0x40, struct sndrv_hdspm_peak_rms_ioctl) #define SNDRV_HDSPM_IOCTL_GET_PEAK_RMS _IOR('H', 0x40, struct hdspm_peak_rms_ioctl)
/* ------------ CONFIG block IOCTL ---------------------- */ /* ------------ CONFIG block IOCTL ---------------------- */
typedef struct _snd_hdspm_config_info hdspm_config_info_t; struct hdspm_config_info {
struct _snd_hdspm_config_info {
unsigned char pref_sync_ref; unsigned char pref_sync_ref;
unsigned char wordclock_sync_check; unsigned char wordclock_sync_check;
unsigned char madi_sync_check; unsigned char madi_sync_check;
...@@ -83,18 +79,16 @@ struct _snd_hdspm_config_info { ...@@ -83,18 +79,16 @@ struct _snd_hdspm_config_info {
unsigned int analog_out; unsigned int analog_out;
}; };
#define SNDRV_HDSPM_IOCTL_GET_CONFIG_INFO _IOR('H', 0x41, hdspm_config_info_t) #define SNDRV_HDSPM_IOCTL_GET_CONFIG_INFO _IOR('H', 0x41, struct hdspm_config_info)
/* get Soundcard Version */ /* get Soundcard Version */
typedef struct _snd_hdspm_version hdspm_version_t; struct hdspm_version {
struct _snd_hdspm_version {
unsigned short firmware_rev; unsigned short firmware_rev;
}; };
#define SNDRV_HDSPM_IOCTL_GET_VERSION _IOR('H', 0x43, hdspm_version_t) #define SNDRV_HDSPM_IOCTL_GET_VERSION _IOR('H', 0x43, struct hdspm_version)
/* ------------- get Matrix Mixer IOCTL --------------- */ /* ------------- get Matrix Mixer IOCTL --------------- */
...@@ -108,24 +102,27 @@ struct _snd_hdspm_version { ...@@ -108,24 +102,27 @@ struct _snd_hdspm_version {
#define HDSPM_MIXER_CHANNELS HDSPM_MAX_CHANNELS #define HDSPM_MIXER_CHANNELS HDSPM_MAX_CHANNELS
typedef struct _snd_hdspm_channelfader snd_hdspm_channelfader_t; struct hdspm_channelfader {
struct _snd_hdspm_channelfader {
unsigned int in[HDSPM_MIXER_CHANNELS]; unsigned int in[HDSPM_MIXER_CHANNELS];
unsigned int pb[HDSPM_MIXER_CHANNELS]; unsigned int pb[HDSPM_MIXER_CHANNELS];
}; };
typedef struct _snd_hdspm_mixer hdspm_mixer_t; struct hdspm_mixer {
struct hdspm_channelfader ch[HDSPM_MIXER_CHANNELS];
struct _snd_hdspm_mixer {
snd_hdspm_channelfader_t ch[HDSPM_MIXER_CHANNELS];
}; };
struct sndrv_hdspm_mixer_ioctl { struct hdspm_mixer_ioctl {
hdspm_mixer_t *mixer; struct hdspm_mixer *mixer;
}; };
/* use indirect access due to the limit of ioctl bit size */ /* use indirect access due to the limit of ioctl bit size */
#define SNDRV_HDSPM_IOCTL_GET_MIXER _IOR('H', 0x44, struct sndrv_hdspm_mixer_ioctl) #define SNDRV_HDSPM_IOCTL_GET_MIXER _IOR('H', 0x44, struct hdspm_mixer_ioctl)
/* typedefs for compatibility to user-space */
typedef struct hdspm_peak_rms hdspm_peak_rms_t;
typedef struct hdspm_config_info hdspm_config_info_t;
typedef struct hdspm_version hdspm_version_t;
typedef struct hdspm_channelfader snd_hdspm_channelfader_t;
typedef struct hdspm_mixer hdspm_mixer_t;
#endif /* __SOUND_HDSPM_H */ #endif /* __SOUND_HDSPM_H */
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment