aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers/opl4/opl4_seq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/drivers/opl4/opl4_seq.c')
-rw-r--r--sound/drivers/opl4/opl4_seq.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/sound/drivers/opl4/opl4_seq.c b/sound/drivers/opl4/opl4_seq.c
index 958dfe88479a..bfd68e49c914 100644
--- a/sound/drivers/opl4/opl4_seq.c
+++ b/sound/drivers/opl4/opl4_seq.c
@@ -45,21 +45,21 @@ int volume_boost = 8;
45module_param(volume_boost, int, 0644); 45module_param(volume_boost, int, 0644);
46MODULE_PARM_DESC(volume_boost, "Additional volume for OPL4 wavetable sounds."); 46MODULE_PARM_DESC(volume_boost, "Additional volume for OPL4 wavetable sounds.");
47 47
48static int snd_opl4_seq_use_inc(opl4_t *opl4) 48static int snd_opl4_seq_use_inc(struct snd_opl4 *opl4)
49{ 49{
50 if (!try_module_get(opl4->card->module)) 50 if (!try_module_get(opl4->card->module))
51 return -EFAULT; 51 return -EFAULT;
52 return 0; 52 return 0;
53} 53}
54 54
55static void snd_opl4_seq_use_dec(opl4_t *opl4) 55static void snd_opl4_seq_use_dec(struct snd_opl4 *opl4)
56{ 56{
57 module_put(opl4->card->module); 57 module_put(opl4->card->module);
58} 58}
59 59
60static int snd_opl4_seq_use(void *private_data, snd_seq_port_subscribe_t *info) 60static int snd_opl4_seq_use(void *private_data, struct snd_seq_port_subscribe *info)
61{ 61{
62 opl4_t *opl4 = private_data; 62 struct snd_opl4 *opl4 = private_data;
63 int err; 63 int err;
64 64
65 down(&opl4->access_mutex); 65 down(&opl4->access_mutex);
@@ -84,9 +84,9 @@ static int snd_opl4_seq_use(void *private_data, snd_seq_port_subscribe_t *info)
84 return 0; 84 return 0;
85} 85}
86 86
87static int snd_opl4_seq_unuse(void *private_data, snd_seq_port_subscribe_t *info) 87static int snd_opl4_seq_unuse(void *private_data, struct snd_seq_port_subscribe *info)
88{ 88{
89 opl4_t *opl4 = private_data; 89 struct snd_opl4 *opl4 = private_data;
90 90
91 snd_opl4_synth_shutdown(opl4); 91 snd_opl4_synth_shutdown(opl4);
92 92
@@ -99,7 +99,7 @@ static int snd_opl4_seq_unuse(void *private_data, snd_seq_port_subscribe_t *info
99 return 0; 99 return 0;
100} 100}
101 101
102static snd_midi_op_t opl4_ops = { 102static struct snd_midi_op opl4_ops = {
103 .note_on = snd_opl4_note_on, 103 .note_on = snd_opl4_note_on,
104 .note_off = snd_opl4_note_off, 104 .note_off = snd_opl4_note_off,
105 .note_terminate = snd_opl4_terminate_note, 105 .note_terminate = snd_opl4_terminate_note,
@@ -107,10 +107,10 @@ static snd_midi_op_t opl4_ops = {
107 .sysex = snd_opl4_sysex, 107 .sysex = snd_opl4_sysex,
108}; 108};
109 109
110static int snd_opl4_seq_event_input(snd_seq_event_t *ev, int direct, 110static int snd_opl4_seq_event_input(struct snd_seq_event *ev, int direct,
111 void *private_data, int atomic, int hop) 111 void *private_data, int atomic, int hop)
112{ 112{
113 opl4_t *opl4 = private_data; 113 struct snd_opl4 *opl4 = private_data;
114 114
115 snd_midi_process_event(&opl4_ops, ev, opl4->chset); 115 snd_midi_process_event(&opl4_ops, ev, opl4->chset);
116 return 0; 116 return 0;
@@ -118,20 +118,20 @@ static int snd_opl4_seq_event_input(snd_seq_event_t *ev, int direct,
118 118
119static void snd_opl4_seq_free_port(void *private_data) 119static void snd_opl4_seq_free_port(void *private_data)
120{ 120{
121 opl4_t *opl4 = private_data; 121 struct snd_opl4 *opl4 = private_data;
122 122
123 snd_midi_channel_free_set(opl4->chset); 123 snd_midi_channel_free_set(opl4->chset);
124} 124}
125 125
126static int snd_opl4_seq_new_device(snd_seq_device_t *dev) 126static int snd_opl4_seq_new_device(struct snd_seq_device *dev)
127{ 127{
128 opl4_t *opl4; 128 struct snd_opl4 *opl4;
129 int client; 129 int client;
130 snd_seq_client_callback_t callbacks; 130 struct snd_seq_client_callback callbacks;
131 snd_seq_client_info_t cinfo; 131 struct snd_seq_client_info cinfo;
132 snd_seq_port_callback_t pcallbacks; 132 struct snd_seq_port_callback pcallbacks;
133 133
134 opl4 = *(opl4_t **)SNDRV_SEQ_DEVICE_ARGPTR(dev); 134 opl4 = *(struct snd_opl4 **)SNDRV_SEQ_DEVICE_ARGPTR(dev);
135 if (!opl4) 135 if (!opl4)
136 return -EINVAL; 136 return -EINVAL;
137 137
@@ -188,11 +188,11 @@ static int snd_opl4_seq_new_device(snd_seq_device_t *dev)
188 return 0; 188 return 0;
189} 189}
190 190
191static int snd_opl4_seq_delete_device(snd_seq_device_t *dev) 191static int snd_opl4_seq_delete_device(struct snd_seq_device *dev)
192{ 192{
193 opl4_t *opl4; 193 struct snd_opl4 *opl4;
194 194
195 opl4 = *(opl4_t **)SNDRV_SEQ_DEVICE_ARGPTR(dev); 195 opl4 = *(struct snd_opl4 **)SNDRV_SEQ_DEVICE_ARGPTR(dev);
196 if (!opl4) 196 if (!opl4)
197 return -EINVAL; 197 return -EINVAL;
198 198
@@ -205,13 +205,13 @@ static int snd_opl4_seq_delete_device(snd_seq_device_t *dev)
205 205
206static int __init alsa_opl4_synth_init(void) 206static int __init alsa_opl4_synth_init(void)
207{ 207{
208 static snd_seq_dev_ops_t ops = { 208 static struct snd_seq_dev_ops ops = {
209 snd_opl4_seq_new_device, 209 snd_opl4_seq_new_device,
210 snd_opl4_seq_delete_device 210 snd_opl4_seq_delete_device
211 }; 211 };
212 212
213 return snd_seq_device_register_driver(SNDRV_SEQ_DEV_ID_OPL4, &ops, 213 return snd_seq_device_register_driver(SNDRV_SEQ_DEV_ID_OPL4, &ops,
214 sizeof(opl4_t*)); 214 sizeof(struct snd_opl4 *));
215} 215}
216 216
217static void __exit alsa_opl4_synth_exit(void) 217static void __exit alsa_opl4_synth_exit(void)