diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:13:14 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:18:04 -0500 |
commit | 5b1646a8eceff0a4ff06f309abb6e7f43f99a498 (patch) | |
tree | ecbb7c1d5ffdf2f3f732a18aae3ed6b2a3752e9e /sound/drivers/opl3/opl3_synth.c | |
parent | e1fad17bb4084dc7c435360185417aed55656ec8 (diff) |
[ALSA] Remove xxx_t typedefs: OPL3
Modules: OPL3,Raw OPL FM
Remove xxx_t typedefs from the OPL3 driver
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/opl3/opl3_synth.c')
-rw-r--r-- | sound/drivers/opl3/opl3_synth.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/sound/drivers/opl3/opl3_synth.c b/sound/drivers/opl3/opl3_synth.c index 04f9f955e5b7..3534a0e3342a 100644 --- a/sound/drivers/opl3/opl3_synth.c +++ b/sound/drivers/opl3/opl3_synth.c | |||
@@ -61,20 +61,20 @@ char snd_opl3_regmap[MAX_OPL2_VOICES][4] = | |||
61 | /* | 61 | /* |
62 | * prototypes | 62 | * prototypes |
63 | */ | 63 | */ |
64 | static int snd_opl3_play_note(opl3_t * opl3, snd_dm_fm_note_t * note); | 64 | static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note); |
65 | static int snd_opl3_set_voice(opl3_t * opl3, snd_dm_fm_voice_t * voice); | 65 | static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice); |
66 | static int snd_opl3_set_params(opl3_t * opl3, snd_dm_fm_params_t * params); | 66 | static int snd_opl3_set_params(struct snd_opl3 * opl3, struct snd_dm_fm_params * params); |
67 | static int snd_opl3_set_mode(opl3_t * opl3, int mode); | 67 | static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode); |
68 | static int snd_opl3_set_connection(opl3_t * opl3, int connection); | 68 | static int snd_opl3_set_connection(struct snd_opl3 * opl3, int connection); |
69 | 69 | ||
70 | /* ------------------------------ */ | 70 | /* ------------------------------ */ |
71 | 71 | ||
72 | /* | 72 | /* |
73 | * open the device exclusively | 73 | * open the device exclusively |
74 | */ | 74 | */ |
75 | int snd_opl3_open(snd_hwdep_t * hw, struct file *file) | 75 | int snd_opl3_open(struct snd_hwdep * hw, struct file *file) |
76 | { | 76 | { |
77 | opl3_t *opl3 = hw->private_data; | 77 | struct snd_opl3 *opl3 = hw->private_data; |
78 | 78 | ||
79 | down(&opl3->access_mutex); | 79 | down(&opl3->access_mutex); |
80 | if (opl3->used) { | 80 | if (opl3->used) { |
@@ -90,10 +90,10 @@ int snd_opl3_open(snd_hwdep_t * hw, struct file *file) | |||
90 | /* | 90 | /* |
91 | * ioctl for hwdep device: | 91 | * ioctl for hwdep device: |
92 | */ | 92 | */ |
93 | int snd_opl3_ioctl(snd_hwdep_t * hw, struct file *file, | 93 | int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file, |
94 | unsigned int cmd, unsigned long arg) | 94 | unsigned int cmd, unsigned long arg) |
95 | { | 95 | { |
96 | opl3_t *opl3 = hw->private_data; | 96 | struct snd_opl3 *opl3 = hw->private_data; |
97 | void __user *argp = (void __user *)arg; | 97 | void __user *argp = (void __user *)arg; |
98 | 98 | ||
99 | snd_assert(opl3 != NULL, return -EINVAL); | 99 | snd_assert(opl3 != NULL, return -EINVAL); |
@@ -102,11 +102,11 @@ int snd_opl3_ioctl(snd_hwdep_t * hw, struct file *file, | |||
102 | /* get information */ | 102 | /* get information */ |
103 | case SNDRV_DM_FM_IOCTL_INFO: | 103 | case SNDRV_DM_FM_IOCTL_INFO: |
104 | { | 104 | { |
105 | snd_dm_fm_info_t info; | 105 | struct snd_dm_fm_info info; |
106 | 106 | ||
107 | info.fm_mode = opl3->fm_mode; | 107 | info.fm_mode = opl3->fm_mode; |
108 | info.rhythm = opl3->rhythm; | 108 | info.rhythm = opl3->rhythm; |
109 | if (copy_to_user(argp, &info, sizeof(snd_dm_fm_info_t))) | 109 | if (copy_to_user(argp, &info, sizeof(struct snd_dm_fm_info))) |
110 | return -EFAULT; | 110 | return -EFAULT; |
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
@@ -123,8 +123,8 @@ int snd_opl3_ioctl(snd_hwdep_t * hw, struct file *file, | |||
123 | case SNDRV_DM_FM_OSS_IOCTL_PLAY_NOTE: | 123 | case SNDRV_DM_FM_OSS_IOCTL_PLAY_NOTE: |
124 | #endif | 124 | #endif |
125 | { | 125 | { |
126 | snd_dm_fm_note_t note; | 126 | struct snd_dm_fm_note note; |
127 | if (copy_from_user(¬e, argp, sizeof(snd_dm_fm_note_t))) | 127 | if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note))) |
128 | return -EFAULT; | 128 | return -EFAULT; |
129 | return snd_opl3_play_note(opl3, ¬e); | 129 | return snd_opl3_play_note(opl3, ¬e); |
130 | } | 130 | } |
@@ -134,8 +134,8 @@ int snd_opl3_ioctl(snd_hwdep_t * hw, struct file *file, | |||
134 | case SNDRV_DM_FM_OSS_IOCTL_SET_VOICE: | 134 | case SNDRV_DM_FM_OSS_IOCTL_SET_VOICE: |
135 | #endif | 135 | #endif |
136 | { | 136 | { |
137 | snd_dm_fm_voice_t voice; | 137 | struct snd_dm_fm_voice voice; |
138 | if (copy_from_user(&voice, argp, sizeof(snd_dm_fm_voice_t))) | 138 | if (copy_from_user(&voice, argp, sizeof(struct snd_dm_fm_voice))) |
139 | return -EFAULT; | 139 | return -EFAULT; |
140 | return snd_opl3_set_voice(opl3, &voice); | 140 | return snd_opl3_set_voice(opl3, &voice); |
141 | } | 141 | } |
@@ -145,8 +145,8 @@ int snd_opl3_ioctl(snd_hwdep_t * hw, struct file *file, | |||
145 | case SNDRV_DM_FM_OSS_IOCTL_SET_PARAMS: | 145 | case SNDRV_DM_FM_OSS_IOCTL_SET_PARAMS: |
146 | #endif | 146 | #endif |
147 | { | 147 | { |
148 | snd_dm_fm_params_t params; | 148 | struct snd_dm_fm_params params; |
149 | if (copy_from_user(¶ms, argp, sizeof(snd_dm_fm_params_t))) | 149 | if (copy_from_user(¶ms, argp, sizeof(struct snd_dm_fm_params))) |
150 | return -EFAULT; | 150 | return -EFAULT; |
151 | return snd_opl3_set_params(opl3, ¶ms); | 151 | return snd_opl3_set_params(opl3, ¶ms); |
152 | } | 152 | } |
@@ -174,9 +174,9 @@ int snd_opl3_ioctl(snd_hwdep_t * hw, struct file *file, | |||
174 | /* | 174 | /* |
175 | * close the device | 175 | * close the device |
176 | */ | 176 | */ |
177 | int snd_opl3_release(snd_hwdep_t * hw, struct file *file) | 177 | int snd_opl3_release(struct snd_hwdep * hw, struct file *file) |
178 | { | 178 | { |
179 | opl3_t *opl3 = hw->private_data; | 179 | struct snd_opl3 *opl3 = hw->private_data; |
180 | 180 | ||
181 | snd_opl3_reset(opl3); | 181 | snd_opl3_reset(opl3); |
182 | down(&opl3->access_mutex); | 182 | down(&opl3->access_mutex); |
@@ -188,7 +188,7 @@ int snd_opl3_release(snd_hwdep_t * hw, struct file *file) | |||
188 | 188 | ||
189 | /* ------------------------------ */ | 189 | /* ------------------------------ */ |
190 | 190 | ||
191 | void snd_opl3_reset(opl3_t * opl3) | 191 | void snd_opl3_reset(struct snd_opl3 * opl3) |
192 | { | 192 | { |
193 | unsigned short opl3_reg; | 193 | unsigned short opl3_reg; |
194 | 194 | ||
@@ -229,7 +229,7 @@ void snd_opl3_reset(opl3_t * opl3) | |||
229 | } | 229 | } |
230 | 230 | ||
231 | 231 | ||
232 | static int snd_opl3_play_note(opl3_t * opl3, snd_dm_fm_note_t * note) | 232 | static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note) |
233 | { | 233 | { |
234 | unsigned short reg_side; | 234 | unsigned short reg_side; |
235 | unsigned char voice_offset; | 235 | unsigned char voice_offset; |
@@ -276,7 +276,7 @@ static int snd_opl3_play_note(opl3_t * opl3, snd_dm_fm_note_t * note) | |||
276 | } | 276 | } |
277 | 277 | ||
278 | 278 | ||
279 | static int snd_opl3_set_voice(opl3_t * opl3, snd_dm_fm_voice_t * voice) | 279 | static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice) |
280 | { | 280 | { |
281 | unsigned short reg_side; | 281 | unsigned short reg_side; |
282 | unsigned char op_offset; | 282 | unsigned char op_offset; |
@@ -378,7 +378,7 @@ static int snd_opl3_set_voice(opl3_t * opl3, snd_dm_fm_voice_t * voice) | |||
378 | return 0; | 378 | return 0; |
379 | } | 379 | } |
380 | 380 | ||
381 | static int snd_opl3_set_params(opl3_t * opl3, snd_dm_fm_params_t * params) | 381 | static int snd_opl3_set_params(struct snd_opl3 * opl3, struct snd_dm_fm_params * params) |
382 | { | 382 | { |
383 | unsigned char reg_val; | 383 | unsigned char reg_val; |
384 | 384 | ||
@@ -418,7 +418,7 @@ static int snd_opl3_set_params(opl3_t * opl3, snd_dm_fm_params_t * params) | |||
418 | return 0; | 418 | return 0; |
419 | } | 419 | } |
420 | 420 | ||
421 | static int snd_opl3_set_mode(opl3_t * opl3, int mode) | 421 | static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode) |
422 | { | 422 | { |
423 | if ((mode == SNDRV_DM_FM_MODE_OPL3) && (opl3->hardware < OPL3_HW_OPL3)) | 423 | if ((mode == SNDRV_DM_FM_MODE_OPL3) && (opl3->hardware < OPL3_HW_OPL3)) |
424 | return -EINVAL; | 424 | return -EINVAL; |
@@ -430,7 +430,7 @@ static int snd_opl3_set_mode(opl3_t * opl3, int mode) | |||
430 | return 0; | 430 | return 0; |
431 | } | 431 | } |
432 | 432 | ||
433 | static int snd_opl3_set_connection(opl3_t * opl3, int connection) | 433 | static int snd_opl3_set_connection(struct snd_opl3 * opl3, int connection) |
434 | { | 434 | { |
435 | unsigned char reg_val; | 435 | unsigned char reg_val; |
436 | 436 | ||