diff options
-rw-r--r-- | sound/core/seq/oss/seq_oss.c | 8 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_device.h | 12 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_init.c | 17 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_ioctl.c | 18 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_midi.c | 3 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_synth.c | 3 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_timer.c | 7 |
7 files changed, 0 insertions, 68 deletions
diff --git a/sound/core/seq/oss/seq_oss.c b/sound/core/seq/oss/seq_oss.c index fef2d8275d0a..972368abde64 100644 --- a/sound/core/seq/oss/seq_oss.c +++ b/sound/core/seq/oss/seq_oss.c | |||
@@ -39,12 +39,6 @@ MODULE_LICENSE("GPL"); | |||
39 | MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_SEQUENCER); | 39 | MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_SEQUENCER); |
40 | MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_MUSIC); | 40 | MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_MUSIC); |
41 | 41 | ||
42 | #ifdef SNDRV_SEQ_OSS_DEBUG | ||
43 | module_param(seq_oss_debug, int, 0644); | ||
44 | MODULE_PARM_DESC(seq_oss_debug, "debug option"); | ||
45 | int seq_oss_debug = 0; | ||
46 | #endif | ||
47 | |||
48 | 42 | ||
49 | /* | 43 | /* |
50 | * prototypes | 44 | * prototypes |
@@ -244,7 +238,6 @@ register_device(void) | |||
244 | mutex_unlock(®ister_mutex); | 238 | mutex_unlock(®ister_mutex); |
245 | return rc; | 239 | return rc; |
246 | } | 240 | } |
247 | debug_printk(("device registered\n")); | ||
248 | mutex_unlock(®ister_mutex); | 241 | mutex_unlock(®ister_mutex); |
249 | return 0; | 242 | return 0; |
250 | } | 243 | } |
@@ -253,7 +246,6 @@ static void | |||
253 | unregister_device(void) | 246 | unregister_device(void) |
254 | { | 247 | { |
255 | mutex_lock(®ister_mutex); | 248 | mutex_lock(®ister_mutex); |
256 | debug_printk(("device unregistered\n")); | ||
257 | if (snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_MUSIC, NULL, 0) < 0) | 249 | if (snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_MUSIC, NULL, 0) < 0) |
258 | snd_printk(KERN_ERR "error unregister device music\n"); | 250 | snd_printk(KERN_ERR "error unregister device music\n"); |
259 | if (snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_SEQUENCER, NULL, 0) < 0) | 251 | if (snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_SEQUENCER, NULL, 0) < 0) |
diff --git a/sound/core/seq/oss/seq_oss_device.h b/sound/core/seq/oss/seq_oss_device.h index 07e3ea133b56..b43924325249 100644 --- a/sound/core/seq/oss/seq_oss_device.h +++ b/sound/core/seq/oss/seq_oss_device.h | |||
@@ -31,9 +31,6 @@ | |||
31 | #include <sound/seq_kernel.h> | 31 | #include <sound/seq_kernel.h> |
32 | #include <sound/info.h> | 32 | #include <sound/info.h> |
33 | 33 | ||
34 | /* enable debug print */ | ||
35 | #define SNDRV_SEQ_OSS_DEBUG | ||
36 | |||
37 | /* max. applications */ | 34 | /* max. applications */ |
38 | #define SNDRV_SEQ_OSS_MAX_CLIENTS 16 | 35 | #define SNDRV_SEQ_OSS_MAX_CLIENTS 16 |
39 | #define SNDRV_SEQ_OSS_MAX_SYNTH_DEVS 16 | 36 | #define SNDRV_SEQ_OSS_MAX_SYNTH_DEVS 16 |
@@ -176,13 +173,4 @@ snd_seq_oss_fill_addr(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, | |||
176 | /* misc. functions for proc interface */ | 173 | /* misc. functions for proc interface */ |
177 | char *enabled_str(int bool); | 174 | char *enabled_str(int bool); |
178 | 175 | ||
179 | |||
180 | /* for debug */ | ||
181 | #ifdef SNDRV_SEQ_OSS_DEBUG | ||
182 | extern int seq_oss_debug; | ||
183 | #define debug_printk(x) do { if (seq_oss_debug > 0) snd_printd x; } while (0) | ||
184 | #else | ||
185 | #define debug_printk(x) /**/ | ||
186 | #endif | ||
187 | |||
188 | #endif /* __SEQ_OSS_DEVICE_H */ | 176 | #endif /* __SEQ_OSS_DEVICE_H */ |
diff --git a/sound/core/seq/oss/seq_oss_init.c b/sound/core/seq/oss/seq_oss_init.c index b3f39b5ed742..b0ac6accf301 100644 --- a/sound/core/seq/oss/seq_oss_init.c +++ b/sound/core/seq/oss/seq_oss_init.c | |||
@@ -92,7 +92,6 @@ snd_seq_oss_create_client(void) | |||
92 | goto __error; | 92 | goto __error; |
93 | 93 | ||
94 | system_client = rc; | 94 | system_client = rc; |
95 | debug_printk(("new client = %d\n", rc)); | ||
96 | 95 | ||
97 | /* create annoucement receiver port */ | 96 | /* create annoucement receiver port */ |
98 | memset(port, 0, sizeof(*port)); | 97 | memset(port, 0, sizeof(*port)); |
@@ -193,7 +192,6 @@ snd_seq_oss_open(struct file *file, int level) | |||
193 | snd_printk(KERN_ERR "can't malloc device info\n"); | 192 | snd_printk(KERN_ERR "can't malloc device info\n"); |
194 | return -ENOMEM; | 193 | return -ENOMEM; |
195 | } | 194 | } |
196 | debug_printk(("oss_open: dp = %p\n", dp)); | ||
197 | 195 | ||
198 | dp->cseq = system_client; | 196 | dp->cseq = system_client; |
199 | dp->port = -1; | 197 | dp->port = -1; |
@@ -222,7 +220,6 @@ snd_seq_oss_open(struct file *file, int level) | |||
222 | } | 220 | } |
223 | 221 | ||
224 | /* create port */ | 222 | /* create port */ |
225 | debug_printk(("create new port\n")); | ||
226 | rc = create_port(dp); | 223 | rc = create_port(dp); |
227 | if (rc < 0) { | 224 | if (rc < 0) { |
228 | snd_printk(KERN_ERR "can't create port\n"); | 225 | snd_printk(KERN_ERR "can't create port\n"); |
@@ -230,7 +227,6 @@ snd_seq_oss_open(struct file *file, int level) | |||
230 | } | 227 | } |
231 | 228 | ||
232 | /* allocate queue */ | 229 | /* allocate queue */ |
233 | debug_printk(("allocate queue\n")); | ||
234 | rc = alloc_seq_queue(dp); | 230 | rc = alloc_seq_queue(dp); |
235 | if (rc < 0) | 231 | if (rc < 0) |
236 | goto _error; | 232 | goto _error; |
@@ -247,7 +243,6 @@ snd_seq_oss_open(struct file *file, int level) | |||
247 | dp->file_mode = translate_mode(file); | 243 | dp->file_mode = translate_mode(file); |
248 | 244 | ||
249 | /* initialize read queue */ | 245 | /* initialize read queue */ |
250 | debug_printk(("initialize read queue\n")); | ||
251 | if (is_read_mode(dp->file_mode)) { | 246 | if (is_read_mode(dp->file_mode)) { |
252 | dp->readq = snd_seq_oss_readq_new(dp, maxqlen); | 247 | dp->readq = snd_seq_oss_readq_new(dp, maxqlen); |
253 | if (!dp->readq) { | 248 | if (!dp->readq) { |
@@ -257,7 +252,6 @@ snd_seq_oss_open(struct file *file, int level) | |||
257 | } | 252 | } |
258 | 253 | ||
259 | /* initialize write queue */ | 254 | /* initialize write queue */ |
260 | debug_printk(("initialize write queue\n")); | ||
261 | if (is_write_mode(dp->file_mode)) { | 255 | if (is_write_mode(dp->file_mode)) { |
262 | dp->writeq = snd_seq_oss_writeq_new(dp, maxqlen); | 256 | dp->writeq = snd_seq_oss_writeq_new(dp, maxqlen); |
263 | if (!dp->writeq) { | 257 | if (!dp->writeq) { |
@@ -267,14 +261,12 @@ snd_seq_oss_open(struct file *file, int level) | |||
267 | } | 261 | } |
268 | 262 | ||
269 | /* initialize timer */ | 263 | /* initialize timer */ |
270 | debug_printk(("initialize timer\n")); | ||
271 | dp->timer = snd_seq_oss_timer_new(dp); | 264 | dp->timer = snd_seq_oss_timer_new(dp); |
272 | if (!dp->timer) { | 265 | if (!dp->timer) { |
273 | snd_printk(KERN_ERR "can't alloc timer\n"); | 266 | snd_printk(KERN_ERR "can't alloc timer\n"); |
274 | rc = -ENOMEM; | 267 | rc = -ENOMEM; |
275 | goto _error; | 268 | goto _error; |
276 | } | 269 | } |
277 | debug_printk(("timer initialized\n")); | ||
278 | 270 | ||
279 | /* set private data pointer */ | 271 | /* set private data pointer */ |
280 | file->private_data = dp; | 272 | file->private_data = dp; |
@@ -288,7 +280,6 @@ snd_seq_oss_open(struct file *file, int level) | |||
288 | client_table[dp->index] = dp; | 280 | client_table[dp->index] = dp; |
289 | num_clients++; | 281 | num_clients++; |
290 | 282 | ||
291 | debug_printk(("open done\n")); | ||
292 | return 0; | 283 | return 0; |
293 | 284 | ||
294 | _error: | 285 | _error: |
@@ -347,7 +338,6 @@ create_port(struct seq_oss_devinfo *dp) | |||
347 | return rc; | 338 | return rc; |
348 | 339 | ||
349 | dp->port = port.addr.port; | 340 | dp->port = port.addr.port; |
350 | debug_printk(("new port = %d\n", port.addr.port)); | ||
351 | 341 | ||
352 | return 0; | 342 | return 0; |
353 | } | 343 | } |
@@ -363,7 +353,6 @@ delete_port(struct seq_oss_devinfo *dp) | |||
363 | return 0; | 353 | return 0; |
364 | } | 354 | } |
365 | 355 | ||
366 | debug_printk(("delete_port %i\n", dp->port)); | ||
367 | return snd_seq_event_port_detach(dp->cseq, dp->port); | 356 | return snd_seq_event_port_detach(dp->cseq, dp->port); |
368 | } | 357 | } |
369 | 358 | ||
@@ -438,21 +427,16 @@ snd_seq_oss_release(struct seq_oss_devinfo *dp) | |||
438 | client_table[dp->index] = NULL; | 427 | client_table[dp->index] = NULL; |
439 | num_clients--; | 428 | num_clients--; |
440 | 429 | ||
441 | debug_printk(("resetting..\n")); | ||
442 | snd_seq_oss_reset(dp); | 430 | snd_seq_oss_reset(dp); |
443 | 431 | ||
444 | debug_printk(("cleaning up..\n")); | ||
445 | snd_seq_oss_synth_cleanup(dp); | 432 | snd_seq_oss_synth_cleanup(dp); |
446 | snd_seq_oss_midi_cleanup(dp); | 433 | snd_seq_oss_midi_cleanup(dp); |
447 | 434 | ||
448 | /* clear slot */ | 435 | /* clear slot */ |
449 | debug_printk(("releasing resource..\n")); | ||
450 | queue = dp->queue; | 436 | queue = dp->queue; |
451 | if (dp->port >= 0) | 437 | if (dp->port >= 0) |
452 | delete_port(dp); | 438 | delete_port(dp); |
453 | delete_seq_queue(queue); | 439 | delete_seq_queue(queue); |
454 | |||
455 | debug_printk(("release done\n")); | ||
456 | } | 440 | } |
457 | 441 | ||
458 | 442 | ||
@@ -466,7 +450,6 @@ snd_seq_oss_drain_write(struct seq_oss_devinfo *dp) | |||
466 | return; | 450 | return; |
467 | if (is_write_mode(dp->file_mode) && !is_nonblock_mode(dp->file_mode) && | 451 | if (is_write_mode(dp->file_mode) && !is_nonblock_mode(dp->file_mode) && |
468 | dp->writeq) { | 452 | dp->writeq) { |
469 | debug_printk(("syncing..\n")); | ||
470 | while (snd_seq_oss_writeq_sync(dp->writeq)) | 453 | while (snd_seq_oss_writeq_sync(dp->writeq)) |
471 | ; | 454 | ; |
472 | } | 455 | } |
diff --git a/sound/core/seq/oss/seq_oss_ioctl.c b/sound/core/seq/oss/seq_oss_ioctl.c index 5ac701c903c1..5b8520177b0e 100644 --- a/sound/core/seq/oss/seq_oss_ioctl.c +++ b/sound/core/seq/oss/seq_oss_ioctl.c | |||
@@ -90,12 +90,10 @@ snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long ca | |||
90 | return snd_seq_oss_timer_ioctl(dp->timer, cmd, arg); | 90 | return snd_seq_oss_timer_ioctl(dp->timer, cmd, arg); |
91 | 91 | ||
92 | case SNDCTL_SEQ_PANIC: | 92 | case SNDCTL_SEQ_PANIC: |
93 | debug_printk(("panic\n")); | ||
94 | snd_seq_oss_reset(dp); | 93 | snd_seq_oss_reset(dp); |
95 | return -EINVAL; | 94 | return -EINVAL; |
96 | 95 | ||
97 | case SNDCTL_SEQ_SYNC: | 96 | case SNDCTL_SEQ_SYNC: |
98 | debug_printk(("sync\n")); | ||
99 | if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) | 97 | if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) |
100 | return 0; | 98 | return 0; |
101 | while (snd_seq_oss_writeq_sync(dp->writeq)) | 99 | while (snd_seq_oss_writeq_sync(dp->writeq)) |
@@ -105,55 +103,45 @@ snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long ca | |||
105 | return 0; | 103 | return 0; |
106 | 104 | ||
107 | case SNDCTL_SEQ_RESET: | 105 | case SNDCTL_SEQ_RESET: |
108 | debug_printk(("reset\n")); | ||
109 | snd_seq_oss_reset(dp); | 106 | snd_seq_oss_reset(dp); |
110 | return 0; | 107 | return 0; |
111 | 108 | ||
112 | case SNDCTL_SEQ_TESTMIDI: | 109 | case SNDCTL_SEQ_TESTMIDI: |
113 | debug_printk(("test midi\n")); | ||
114 | if (get_user(dev, p)) | 110 | if (get_user(dev, p)) |
115 | return -EFAULT; | 111 | return -EFAULT; |
116 | return snd_seq_oss_midi_open(dp, dev, dp->file_mode); | 112 | return snd_seq_oss_midi_open(dp, dev, dp->file_mode); |
117 | 113 | ||
118 | case SNDCTL_SEQ_GETINCOUNT: | 114 | case SNDCTL_SEQ_GETINCOUNT: |
119 | debug_printk(("get in count\n")); | ||
120 | if (dp->readq == NULL || ! is_read_mode(dp->file_mode)) | 115 | if (dp->readq == NULL || ! is_read_mode(dp->file_mode)) |
121 | return 0; | 116 | return 0; |
122 | return put_user(dp->readq->qlen, p) ? -EFAULT : 0; | 117 | return put_user(dp->readq->qlen, p) ? -EFAULT : 0; |
123 | 118 | ||
124 | case SNDCTL_SEQ_GETOUTCOUNT: | 119 | case SNDCTL_SEQ_GETOUTCOUNT: |
125 | debug_printk(("get out count\n")); | ||
126 | if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) | 120 | if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) |
127 | return 0; | 121 | return 0; |
128 | return put_user(snd_seq_oss_writeq_get_free_size(dp->writeq), p) ? -EFAULT : 0; | 122 | return put_user(snd_seq_oss_writeq_get_free_size(dp->writeq), p) ? -EFAULT : 0; |
129 | 123 | ||
130 | case SNDCTL_SEQ_GETTIME: | 124 | case SNDCTL_SEQ_GETTIME: |
131 | debug_printk(("get time\n")); | ||
132 | return put_user(snd_seq_oss_timer_cur_tick(dp->timer), p) ? -EFAULT : 0; | 125 | return put_user(snd_seq_oss_timer_cur_tick(dp->timer), p) ? -EFAULT : 0; |
133 | 126 | ||
134 | case SNDCTL_SEQ_RESETSAMPLES: | 127 | case SNDCTL_SEQ_RESETSAMPLES: |
135 | debug_printk(("reset samples\n")); | ||
136 | if (get_user(dev, p)) | 128 | if (get_user(dev, p)) |
137 | return -EFAULT; | 129 | return -EFAULT; |
138 | return snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); | 130 | return snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); |
139 | 131 | ||
140 | case SNDCTL_SEQ_NRSYNTHS: | 132 | case SNDCTL_SEQ_NRSYNTHS: |
141 | debug_printk(("nr synths\n")); | ||
142 | return put_user(dp->max_synthdev, p) ? -EFAULT : 0; | 133 | return put_user(dp->max_synthdev, p) ? -EFAULT : 0; |
143 | 134 | ||
144 | case SNDCTL_SEQ_NRMIDIS: | 135 | case SNDCTL_SEQ_NRMIDIS: |
145 | debug_printk(("nr midis\n")); | ||
146 | return put_user(dp->max_mididev, p) ? -EFAULT : 0; | 136 | return put_user(dp->max_mididev, p) ? -EFAULT : 0; |
147 | 137 | ||
148 | case SNDCTL_SYNTH_MEMAVL: | 138 | case SNDCTL_SYNTH_MEMAVL: |
149 | debug_printk(("mem avail\n")); | ||
150 | if (get_user(dev, p)) | 139 | if (get_user(dev, p)) |
151 | return -EFAULT; | 140 | return -EFAULT; |
152 | val = snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); | 141 | val = snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); |
153 | return put_user(val, p) ? -EFAULT : 0; | 142 | return put_user(val, p) ? -EFAULT : 0; |
154 | 143 | ||
155 | case SNDCTL_FM_4OP_ENABLE: | 144 | case SNDCTL_FM_4OP_ENABLE: |
156 | debug_printk(("4op\n")); | ||
157 | if (get_user(dev, p)) | 145 | if (get_user(dev, p)) |
158 | return -EFAULT; | 146 | return -EFAULT; |
159 | snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); | 147 | snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); |
@@ -161,19 +149,15 @@ snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long ca | |||
161 | 149 | ||
162 | case SNDCTL_SYNTH_INFO: | 150 | case SNDCTL_SYNTH_INFO: |
163 | case SNDCTL_SYNTH_ID: | 151 | case SNDCTL_SYNTH_ID: |
164 | debug_printk(("synth info\n")); | ||
165 | return snd_seq_oss_synth_info_user(dp, arg); | 152 | return snd_seq_oss_synth_info_user(dp, arg); |
166 | 153 | ||
167 | case SNDCTL_SEQ_OUTOFBAND: | 154 | case SNDCTL_SEQ_OUTOFBAND: |
168 | debug_printk(("out of band\n")); | ||
169 | return snd_seq_oss_oob_user(dp, arg); | 155 | return snd_seq_oss_oob_user(dp, arg); |
170 | 156 | ||
171 | case SNDCTL_MIDI_INFO: | 157 | case SNDCTL_MIDI_INFO: |
172 | debug_printk(("midi info\n")); | ||
173 | return snd_seq_oss_midi_info_user(dp, arg); | 158 | return snd_seq_oss_midi_info_user(dp, arg); |
174 | 159 | ||
175 | case SNDCTL_SEQ_THRESHOLD: | 160 | case SNDCTL_SEQ_THRESHOLD: |
176 | debug_printk(("threshold\n")); | ||
177 | if (! is_write_mode(dp->file_mode)) | 161 | if (! is_write_mode(dp->file_mode)) |
178 | return 0; | 162 | return 0; |
179 | if (get_user(val, p)) | 163 | if (get_user(val, p)) |
@@ -186,7 +170,6 @@ snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long ca | |||
186 | return 0; | 170 | return 0; |
187 | 171 | ||
188 | case SNDCTL_MIDI_PRETIME: | 172 | case SNDCTL_MIDI_PRETIME: |
189 | debug_printk(("pretime\n")); | ||
190 | if (dp->readq == NULL || !is_read_mode(dp->file_mode)) | 173 | if (dp->readq == NULL || !is_read_mode(dp->file_mode)) |
191 | return 0; | 174 | return 0; |
192 | if (get_user(val, p)) | 175 | if (get_user(val, p)) |
@@ -199,7 +182,6 @@ snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long ca | |||
199 | return put_user(val, p) ? -EFAULT : 0; | 182 | return put_user(val, p) ? -EFAULT : 0; |
200 | 183 | ||
201 | default: | 184 | default: |
202 | debug_printk(("others\n")); | ||
203 | if (! is_write_mode(dp->file_mode)) | 185 | if (! is_write_mode(dp->file_mode)) |
204 | return -EIO; | 186 | return -EIO; |
205 | return snd_seq_oss_synth_ioctl(dp, 0, cmd, carg); | 187 | return snd_seq_oss_synth_ioctl(dp, 0, cmd, carg); |
diff --git a/sound/core/seq/oss/seq_oss_midi.c b/sound/core/seq/oss/seq_oss_midi.c index 862d84893ee8..97f958b46542 100644 --- a/sound/core/seq/oss/seq_oss_midi.c +++ b/sound/core/seq/oss/seq_oss_midi.c | |||
@@ -153,7 +153,6 @@ snd_seq_oss_midi_check_new_port(struct snd_seq_port_info *pinfo) | |||
153 | struct seq_oss_midi *mdev; | 153 | struct seq_oss_midi *mdev; |
154 | unsigned long flags; | 154 | unsigned long flags; |
155 | 155 | ||
156 | debug_printk(("check for MIDI client %d port %d\n", pinfo->addr.client, pinfo->addr.port)); | ||
157 | /* the port must include generic midi */ | 156 | /* the port must include generic midi */ |
158 | if (! (pinfo->type & SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC)) | 157 | if (! (pinfo->type & SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC)) |
159 | return 0; | 158 | return 0; |
@@ -406,7 +405,6 @@ snd_seq_oss_midi_close(struct seq_oss_devinfo *dp, int dev) | |||
406 | return 0; | 405 | return 0; |
407 | } | 406 | } |
408 | 407 | ||
409 | debug_printk(("closing client %d port %d mode %d\n", mdev->client, mdev->port, mdev->opened)); | ||
410 | memset(&subs, 0, sizeof(subs)); | 408 | memset(&subs, 0, sizeof(subs)); |
411 | if (mdev->opened & PERM_WRITE) { | 409 | if (mdev->opened & PERM_WRITE) { |
412 | subs.sender = dp->addr; | 410 | subs.sender = dp->addr; |
@@ -470,7 +468,6 @@ snd_seq_oss_midi_reset(struct seq_oss_devinfo *dp, int dev) | |||
470 | struct snd_seq_event ev; | 468 | struct snd_seq_event ev; |
471 | int c; | 469 | int c; |
472 | 470 | ||
473 | debug_printk(("resetting client %d port %d\n", mdev->client, mdev->port)); | ||
474 | memset(&ev, 0, sizeof(ev)); | 471 | memset(&ev, 0, sizeof(ev)); |
475 | ev.dest.client = mdev->client; | 472 | ev.dest.client = mdev->client; |
476 | ev.dest.port = mdev->port; | 473 | ev.dest.port = mdev->port; |
diff --git a/sound/core/seq/oss/seq_oss_synth.c b/sound/core/seq/oss/seq_oss_synth.c index c5b773a1eea9..7333bfe827a7 100644 --- a/sound/core/seq/oss/seq_oss_synth.c +++ b/sound/core/seq/oss/seq_oss_synth.c | |||
@@ -138,7 +138,6 @@ snd_seq_oss_synth_register(struct snd_seq_device *dev) | |||
138 | } | 138 | } |
139 | rec->seq_device = i; | 139 | rec->seq_device = i; |
140 | synth_devs[i] = rec; | 140 | synth_devs[i] = rec; |
141 | debug_printk(("synth %s registered %d\n", rec->name, i)); | ||
142 | spin_unlock_irqrestore(®ister_lock, flags); | 141 | spin_unlock_irqrestore(®ister_lock, flags); |
143 | dev->driver_data = rec; | 142 | dev->driver_data = rec; |
144 | #ifdef SNDRV_OSS_INFO_DEV_SYNTH | 143 | #ifdef SNDRV_OSS_INFO_DEV_SYNTH |
@@ -256,7 +255,6 @@ snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp) | |||
256 | } | 255 | } |
257 | reset_channels(info); | 256 | reset_channels(info); |
258 | } | 257 | } |
259 | debug_printk(("synth %d assigned\n", i)); | ||
260 | info->opened++; | 258 | info->opened++; |
261 | rec->opened++; | 259 | rec->opened++; |
262 | dp->synth_opened++; | 260 | dp->synth_opened++; |
@@ -326,7 +324,6 @@ snd_seq_oss_synth_cleanup(struct seq_oss_devinfo *dp) | |||
326 | if (rec == NULL) | 324 | if (rec == NULL) |
327 | continue; | 325 | continue; |
328 | if (rec->opened > 0) { | 326 | if (rec->opened > 0) { |
329 | debug_printk(("synth %d closed\n", i)); | ||
330 | rec->oper.close(&info->arg); | 327 | rec->oper.close(&info->arg); |
331 | module_put(rec->oper.owner); | 328 | module_put(rec->oper.owner); |
332 | rec->opened = 0; | 329 | rec->opened = 0; |
diff --git a/sound/core/seq/oss/seq_oss_timer.c b/sound/core/seq/oss/seq_oss_timer.c index ab59cbfbcaf2..4f24ea9fad93 100644 --- a/sound/core/seq/oss/seq_oss_timer.c +++ b/sound/core/seq/oss/seq_oss_timer.c | |||
@@ -233,7 +233,6 @@ snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __use | |||
233 | int value; | 233 | int value; |
234 | 234 | ||
235 | if (cmd == SNDCTL_SEQ_CTRLRATE) { | 235 | if (cmd == SNDCTL_SEQ_CTRLRATE) { |
236 | debug_printk(("ctrl rate\n")); | ||
237 | /* if *arg == 0, just return the current rate */ | 236 | /* if *arg == 0, just return the current rate */ |
238 | if (get_user(value, arg)) | 237 | if (get_user(value, arg)) |
239 | return -EFAULT; | 238 | return -EFAULT; |
@@ -248,21 +247,16 @@ snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __use | |||
248 | 247 | ||
249 | switch (cmd) { | 248 | switch (cmd) { |
250 | case SNDCTL_TMR_START: | 249 | case SNDCTL_TMR_START: |
251 | debug_printk(("timer start\n")); | ||
252 | return snd_seq_oss_timer_start(timer); | 250 | return snd_seq_oss_timer_start(timer); |
253 | case SNDCTL_TMR_STOP: | 251 | case SNDCTL_TMR_STOP: |
254 | debug_printk(("timer stop\n")); | ||
255 | return snd_seq_oss_timer_stop(timer); | 252 | return snd_seq_oss_timer_stop(timer); |
256 | case SNDCTL_TMR_CONTINUE: | 253 | case SNDCTL_TMR_CONTINUE: |
257 | debug_printk(("timer continue\n")); | ||
258 | return snd_seq_oss_timer_continue(timer); | 254 | return snd_seq_oss_timer_continue(timer); |
259 | case SNDCTL_TMR_TEMPO: | 255 | case SNDCTL_TMR_TEMPO: |
260 | debug_printk(("timer tempo\n")); | ||
261 | if (get_user(value, arg)) | 256 | if (get_user(value, arg)) |
262 | return -EFAULT; | 257 | return -EFAULT; |
263 | return snd_seq_oss_timer_tempo(timer, value); | 258 | return snd_seq_oss_timer_tempo(timer, value); |
264 | case SNDCTL_TMR_TIMEBASE: | 259 | case SNDCTL_TMR_TIMEBASE: |
265 | debug_printk(("timer timebase\n")); | ||
266 | if (get_user(value, arg)) | 260 | if (get_user(value, arg)) |
267 | return -EFAULT; | 261 | return -EFAULT; |
268 | if (value < MIN_OSS_TIMEBASE) | 262 | if (value < MIN_OSS_TIMEBASE) |
@@ -276,7 +270,6 @@ snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __use | |||
276 | case SNDCTL_TMR_METRONOME: | 270 | case SNDCTL_TMR_METRONOME: |
277 | case SNDCTL_TMR_SELECT: | 271 | case SNDCTL_TMR_SELECT: |
278 | case SNDCTL_TMR_SOURCE: | 272 | case SNDCTL_TMR_SOURCE: |
279 | debug_printk(("timer XXX\n")); | ||
280 | /* not supported */ | 273 | /* not supported */ |
281 | return 0; | 274 | return 0; |
282 | } | 275 | } |