aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ac97/ac97_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:21:36 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:18:12 -0500
commitee42381e71c56328db9e9d64d19a4de7a2f09a93 (patch)
tree641cdecfa64347efb7d402c707412e0a45fe7ced /sound/pci/ac97/ac97_local.h
parentdc4cafbadad1ae2322e598f2cb72720ef4095fee (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.h45
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 */
40struct ac97_enum { 41struct 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 */
59extern const char *snd_ac97_stereo_enhancements[]; 60extern const char *snd_ac97_stereo_enhancements[];
60extern const snd_kcontrol_new_t snd_ac97_controls_3d[]; 61extern const struct snd_kcontrol_new snd_ac97_controls_3d[];
61extern const snd_kcontrol_new_t snd_ac97_controls_spdif[]; 62extern const struct snd_kcontrol_new snd_ac97_controls_spdif[];
62snd_kcontrol_t *snd_ac97_cnew(const snd_kcontrol_new_t *_template, ac97_t * ac97); 63struct snd_kcontrol *snd_ac97_cnew(const struct snd_kcontrol_new *_template, struct snd_ac97 * ac97);
63void snd_ac97_get_name(ac97_t *ac97, unsigned int id, char *name, int modem); 64void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name, int modem);
64int snd_ac97_info_volsw(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo); 65int snd_ac97_info_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo);
65int snd_ac97_get_volsw(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); 66int snd_ac97_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
66int snd_ac97_put_volsw(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); 67int snd_ac97_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
67int snd_ac97_try_bit(ac97_t * ac97, int reg, int bit); 68int snd_ac97_try_bit(struct snd_ac97 * ac97, int reg, int bit);
68int snd_ac97_remove_ctl(ac97_t *ac97, const char *name, const char *suffix); 69int snd_ac97_remove_ctl(struct snd_ac97 *ac97, const char *name, const char *suffix);
69int snd_ac97_rename_ctl(ac97_t *ac97, const char *src, const char *dst, const char *suffix); 70int snd_ac97_rename_ctl(struct snd_ac97 *ac97, const char *src, const char *dst, const char *suffix);
70int snd_ac97_swap_ctl(ac97_t *ac97, const char *s1, const char *s2, const char *suffix); 71int snd_ac97_swap_ctl(struct snd_ac97 *ac97, const char *s1, const char *s2, const char *suffix);
71void snd_ac97_rename_vol_ctl(ac97_t *ac97, const char *src, const char *dst); 72void snd_ac97_rename_vol_ctl(struct snd_ac97 *ac97, const char *src, const char *dst);
72void snd_ac97_restore_status(ac97_t *ac97); 73void snd_ac97_restore_status(struct snd_ac97 *ac97);
73void snd_ac97_restore_iec958(ac97_t *ac97); 74void snd_ac97_restore_iec958(struct snd_ac97 *ac97);
74int snd_ac97_info_enum_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo); 75int snd_ac97_info_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo);
75int snd_ac97_get_enum_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); 76int snd_ac97_get_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
76int snd_ac97_put_enum_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); 77int snd_ac97_put_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
77 78
78int snd_ac97_update_bits_nolock(ac97_t *ac97, unsigned short reg, 79int 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
83void snd_ac97_bus_proc_init(ac97_bus_t * ac97); 84void snd_ac97_bus_proc_init(struct snd_ac97_bus * ac97);
84void snd_ac97_bus_proc_done(ac97_bus_t * ac97); 85void snd_ac97_bus_proc_done(struct snd_ac97_bus * ac97);
85void snd_ac97_proc_init(ac97_t * ac97); 86void snd_ac97_proc_init(struct snd_ac97 * ac97);
86void snd_ac97_proc_done(ac97_t * ac97); 87void 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)