diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:21:36 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:18:12 -0500 |
commit | ee42381e71c56328db9e9d64d19a4de7a2f09a93 (patch) | |
tree | 641cdecfa64347efb7d402c707412e0a45fe7ced /sound/pci/ac97/ac97_local.h | |
parent | dc4cafbadad1ae2322e598f2cb72720ef4095fee (diff) |
[ALSA] Remove xxx_t typedefs: AC97
Modules: AC97 Codec
Remove xxx_t typedefs from the AC97 codec support.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ac97/ac97_local.h')
-rw-r--r-- | sound/pci/ac97/ac97_local.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/sound/pci/ac97/ac97_local.h b/sound/pci/ac97/ac97_local.h index 5ff3ef2cae3e..e98587e027d4 100644 --- a/sound/pci/ac97/ac97_local.h +++ b/sound/pci/ac97/ac97_local.h | |||
@@ -37,6 +37,7 @@ | |||
37 | .get = snd_ac97_get_volsw, .put = snd_ac97_put_volsw, \ | 37 | .get = snd_ac97_get_volsw, .put = snd_ac97_put_volsw, \ |
38 | .private_value = (reg) | ((shift_left) << 8) | ((shift_right) << 12) | ((mask) << 16) | ((invert) << 24) } | 38 | .private_value = (reg) | ((shift_left) << 8) | ((shift_right) << 12) | ((mask) << 16) | ((invert) << 24) } |
39 | 39 | ||
40 | /* enum control */ | ||
40 | struct ac97_enum { | 41 | struct ac97_enum { |
41 | unsigned char reg; | 42 | unsigned char reg; |
42 | unsigned char shift_l; | 43 | unsigned char shift_l; |
@@ -57,33 +58,33 @@ struct ac97_enum { | |||
57 | 58 | ||
58 | /* ac97_codec.c */ | 59 | /* ac97_codec.c */ |
59 | extern const char *snd_ac97_stereo_enhancements[]; | 60 | extern const char *snd_ac97_stereo_enhancements[]; |
60 | extern const snd_kcontrol_new_t snd_ac97_controls_3d[]; | 61 | extern const struct snd_kcontrol_new snd_ac97_controls_3d[]; |
61 | extern const snd_kcontrol_new_t snd_ac97_controls_spdif[]; | 62 | extern const struct snd_kcontrol_new snd_ac97_controls_spdif[]; |
62 | snd_kcontrol_t *snd_ac97_cnew(const snd_kcontrol_new_t *_template, ac97_t * ac97); | 63 | struct snd_kcontrol *snd_ac97_cnew(const struct snd_kcontrol_new *_template, struct snd_ac97 * ac97); |
63 | void snd_ac97_get_name(ac97_t *ac97, unsigned int id, char *name, int modem); | 64 | void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name, int modem); |
64 | int snd_ac97_info_volsw(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo); | 65 | int snd_ac97_info_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo); |
65 | int snd_ac97_get_volsw(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); | 66 | int snd_ac97_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol); |
66 | int snd_ac97_put_volsw(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); | 67 | int snd_ac97_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol); |
67 | int snd_ac97_try_bit(ac97_t * ac97, int reg, int bit); | 68 | int snd_ac97_try_bit(struct snd_ac97 * ac97, int reg, int bit); |
68 | int snd_ac97_remove_ctl(ac97_t *ac97, const char *name, const char *suffix); | 69 | int snd_ac97_remove_ctl(struct snd_ac97 *ac97, const char *name, const char *suffix); |
69 | int snd_ac97_rename_ctl(ac97_t *ac97, const char *src, const char *dst, const char *suffix); | 70 | int snd_ac97_rename_ctl(struct snd_ac97 *ac97, const char *src, const char *dst, const char *suffix); |
70 | int snd_ac97_swap_ctl(ac97_t *ac97, const char *s1, const char *s2, const char *suffix); | 71 | int snd_ac97_swap_ctl(struct snd_ac97 *ac97, const char *s1, const char *s2, const char *suffix); |
71 | void snd_ac97_rename_vol_ctl(ac97_t *ac97, const char *src, const char *dst); | 72 | void snd_ac97_rename_vol_ctl(struct snd_ac97 *ac97, const char *src, const char *dst); |
72 | void snd_ac97_restore_status(ac97_t *ac97); | 73 | void snd_ac97_restore_status(struct snd_ac97 *ac97); |
73 | void snd_ac97_restore_iec958(ac97_t *ac97); | 74 | void snd_ac97_restore_iec958(struct snd_ac97 *ac97); |
74 | int snd_ac97_info_enum_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo); | 75 | int snd_ac97_info_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo); |
75 | int snd_ac97_get_enum_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); | 76 | int snd_ac97_get_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol); |
76 | int snd_ac97_put_enum_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); | 77 | int snd_ac97_put_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol); |
77 | 78 | ||
78 | int snd_ac97_update_bits_nolock(ac97_t *ac97, unsigned short reg, | 79 | int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, |
79 | unsigned short mask, unsigned short value); | 80 | unsigned short mask, unsigned short value); |
80 | 81 | ||
81 | /* ac97_proc.c */ | 82 | /* ac97_proc.c */ |
82 | #ifdef CONFIG_PROC_FS | 83 | #ifdef CONFIG_PROC_FS |
83 | void snd_ac97_bus_proc_init(ac97_bus_t * ac97); | 84 | void snd_ac97_bus_proc_init(struct snd_ac97_bus * ac97); |
84 | void snd_ac97_bus_proc_done(ac97_bus_t * ac97); | 85 | void snd_ac97_bus_proc_done(struct snd_ac97_bus * ac97); |
85 | void snd_ac97_proc_init(ac97_t * ac97); | 86 | void snd_ac97_proc_init(struct snd_ac97 * ac97); |
86 | void snd_ac97_proc_done(ac97_t * ac97); | 87 | void snd_ac97_proc_done(struct snd_ac97 * ac97); |
87 | #else | 88 | #else |
88 | #define snd_ac97_bus_proc_init(ac97_bus_t) do { } while (0) | 89 | #define snd_ac97_bus_proc_init(ac97_bus_t) do { } while (0) |
89 | #define snd_ac97_bus_proc_done(ac97_bus_t) do { } while (0) | 90 | #define snd_ac97_bus_proc_done(ac97_bus_t) do { } while (0) |