diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-04 12:24:34 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-14 02:14:18 -0500 |
commit | 04cc79a048ee215ec39af05d61f1fc8a4ab3d8c1 (patch) | |
tree | ac6379dce34e9f9e55fd656f10a23192203bcda3 /sound/core | |
parent | cf74dcf3512271bca4bb5fe79274ad23c22f5dd3 (diff) |
ALSA: seq: Use standard printk helpers
Use the standard pr_xxx() helpers instead of home-baked snd_print*().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/seq/seq_clientmgr.c | 16 | ||||
-rw-r--r-- | sound/core/seq/seq_device.c | 16 | ||||
-rw-r--r-- | sound/core/seq/seq_dummy.c | 2 | ||||
-rw-r--r-- | sound/core/seq/seq_fifo.c | 2 | ||||
-rw-r--r-- | sound/core/seq/seq_lock.c | 4 | ||||
-rw-r--r-- | sound/core/seq/seq_memory.c | 8 | ||||
-rw-r--r-- | sound/core/seq/seq_midi.c | 8 | ||||
-rw-r--r-- | sound/core/seq/seq_midi_emul.c | 6 | ||||
-rw-r--r-- | sound/core/seq/seq_ports.c | 4 | ||||
-rw-r--r-- | sound/core/seq/seq_prioq.c | 14 | ||||
-rw-r--r-- | sound/core/seq/seq_queue.c | 2 | ||||
-rw-r--r-- | sound/core/seq/seq_timer.c | 10 | ||||
-rw-r--r-- | sound/core/seq/seq_virmidi.c | 2 |
13 files changed, 47 insertions, 47 deletions
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c index 4dc6bae80e15..9ca5e647e54b 100644 --- a/sound/core/seq/seq_clientmgr.c +++ b/sound/core/seq/seq_clientmgr.c | |||
@@ -123,7 +123,7 @@ static inline int snd_seq_write_pool_allocated(struct snd_seq_client *client) | |||
123 | static struct snd_seq_client *clientptr(int clientid) | 123 | static struct snd_seq_client *clientptr(int clientid) |
124 | { | 124 | { |
125 | if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) { | 125 | if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) { |
126 | snd_printd("Seq: oops. Trying to get pointer to client %d\n", | 126 | pr_debug("ALSA: seq: oops. Trying to get pointer to client %d\n", |
127 | clientid); | 127 | clientid); |
128 | return NULL; | 128 | return NULL; |
129 | } | 129 | } |
@@ -136,7 +136,7 @@ struct snd_seq_client *snd_seq_client_use_ptr(int clientid) | |||
136 | struct snd_seq_client *client; | 136 | struct snd_seq_client *client; |
137 | 137 | ||
138 | if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) { | 138 | if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) { |
139 | snd_printd("Seq: oops. Trying to get pointer to client %d\n", | 139 | pr_debug("ALSA: seq: oops. Trying to get pointer to client %d\n", |
140 | clientid); | 140 | clientid); |
141 | return NULL; | 141 | return NULL; |
142 | } | 142 | } |
@@ -291,8 +291,8 @@ static void seq_free_client(struct snd_seq_client * client) | |||
291 | mutex_lock(®ister_mutex); | 291 | mutex_lock(®ister_mutex); |
292 | switch (client->type) { | 292 | switch (client->type) { |
293 | case NO_CLIENT: | 293 | case NO_CLIENT: |
294 | snd_printk(KERN_WARNING "Seq: Trying to free unused client %d\n", | 294 | pr_warn("ALSA: seq: Trying to free unused client %d\n", |
295 | client->number); | 295 | client->number); |
296 | break; | 296 | break; |
297 | case USER_CLIENT: | 297 | case USER_CLIENT: |
298 | case KERNEL_CLIENT: | 298 | case KERNEL_CLIENT: |
@@ -301,7 +301,7 @@ static void seq_free_client(struct snd_seq_client * client) | |||
301 | break; | 301 | break; |
302 | 302 | ||
303 | default: | 303 | default: |
304 | snd_printk(KERN_ERR "Seq: Trying to free client %d with undefined type = %d\n", | 304 | pr_err("ALSA: seq: Trying to free client %d with undefined type = %d\n", |
305 | client->number, client->type); | 305 | client->number, client->type); |
306 | } | 306 | } |
307 | mutex_unlock(®ister_mutex); | 307 | mutex_unlock(®ister_mutex); |
@@ -773,7 +773,7 @@ static int broadcast_event(struct snd_seq_client *client, | |||
773 | static int multicast_event(struct snd_seq_client *client, struct snd_seq_event *event, | 773 | static int multicast_event(struct snd_seq_client *client, struct snd_seq_event *event, |
774 | int atomic, int hop) | 774 | int atomic, int hop) |
775 | { | 775 | { |
776 | snd_printd("seq: multicast not supported yet.\n"); | 776 | pr_debug("ALSA: seq: multicast not supported yet.\n"); |
777 | return 0; /* ignored */ | 777 | return 0; /* ignored */ |
778 | } | 778 | } |
779 | #endif /* SUPPORT_BROADCAST */ | 779 | #endif /* SUPPORT_BROADCAST */ |
@@ -794,7 +794,7 @@ static int snd_seq_deliver_event(struct snd_seq_client *client, struct snd_seq_e | |||
794 | 794 | ||
795 | hop++; | 795 | hop++; |
796 | if (hop >= SNDRV_SEQ_MAX_HOPS) { | 796 | if (hop >= SNDRV_SEQ_MAX_HOPS) { |
797 | snd_printd("too long delivery path (%d:%d->%d:%d)\n", | 797 | pr_debug("ALSA: seq: too long delivery path (%d:%d->%d:%d)\n", |
798 | event->source.client, event->source.port, | 798 | event->source.client, event->source.port, |
799 | event->dest.client, event->dest.port); | 799 | event->dest.client, event->dest.port); |
800 | return -EMLINK; | 800 | return -EMLINK; |
@@ -2196,7 +2196,7 @@ static int snd_seq_do_ioctl(struct snd_seq_client *client, unsigned int cmd, | |||
2196 | if (p->cmd == cmd) | 2196 | if (p->cmd == cmd) |
2197 | return p->func(client, arg); | 2197 | return p->func(client, arg); |
2198 | } | 2198 | } |
2199 | snd_printd("seq unknown ioctl() 0x%x (type='%c', number=0x%02x)\n", | 2199 | pr_debug("ALSA: seq unknown ioctl() 0x%x (type='%c', number=0x%02x)\n", |
2200 | cmd, _IOC_TYPE(cmd), _IOC_NR(cmd)); | 2200 | cmd, _IOC_TYPE(cmd), _IOC_NR(cmd)); |
2201 | return -ENOTTY; | 2201 | return -ENOTTY; |
2202 | } | 2202 | } |
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c index a1f00caf5da3..91a786a783e1 100644 --- a/sound/core/seq/seq_device.c +++ b/sound/core/seq/seq_device.c | |||
@@ -325,7 +325,7 @@ int snd_seq_device_register_driver(char *id, struct snd_seq_dev_ops *entry, | |||
325 | return -ENOMEM; | 325 | return -ENOMEM; |
326 | } | 326 | } |
327 | if (ops->driver & DRIVER_LOADED) { | 327 | if (ops->driver & DRIVER_LOADED) { |
328 | snd_printk(KERN_WARNING "driver_register: driver '%s' already exists\n", id); | 328 | pr_warn("ALSA: seq: driver_register: driver '%s' already exists\n", id); |
329 | unlock_driver(ops); | 329 | unlock_driver(ops); |
330 | snd_seq_autoload_unlock(); | 330 | snd_seq_autoload_unlock(); |
331 | return -EBUSY; | 331 | return -EBUSY; |
@@ -398,7 +398,7 @@ int snd_seq_device_unregister_driver(char *id) | |||
398 | return -ENXIO; | 398 | return -ENXIO; |
399 | if (! (ops->driver & DRIVER_LOADED) || | 399 | if (! (ops->driver & DRIVER_LOADED) || |
400 | (ops->driver & DRIVER_LOCKED)) { | 400 | (ops->driver & DRIVER_LOCKED)) { |
401 | snd_printk(KERN_ERR "driver_unregister: cannot unload driver '%s': status=%x\n", | 401 | pr_err("ALSA: seq: driver_unregister: cannot unload driver '%s': status=%x\n", |
402 | id, ops->driver); | 402 | id, ops->driver); |
403 | unlock_driver(ops); | 403 | unlock_driver(ops); |
404 | return -EBUSY; | 404 | return -EBUSY; |
@@ -413,7 +413,7 @@ int snd_seq_device_unregister_driver(char *id) | |||
413 | 413 | ||
414 | ops->driver = 0; | 414 | ops->driver = 0; |
415 | if (ops->num_init_devices > 0) | 415 | if (ops->num_init_devices > 0) |
416 | snd_printk(KERN_ERR "free_driver: init_devices > 0!! (%d)\n", | 416 | pr_err("ALSA: seq: free_driver: init_devices > 0!! (%d)\n", |
417 | ops->num_init_devices); | 417 | ops->num_init_devices); |
418 | mutex_unlock(&ops->reg_mutex); | 418 | mutex_unlock(&ops->reg_mutex); |
419 | 419 | ||
@@ -459,7 +459,7 @@ static int init_device(struct snd_seq_device *dev, struct ops_list *ops) | |||
459 | if (dev->status != SNDRV_SEQ_DEVICE_FREE) | 459 | if (dev->status != SNDRV_SEQ_DEVICE_FREE) |
460 | return 0; /* already initialized */ | 460 | return 0; /* already initialized */ |
461 | if (ops->argsize != dev->argsize) { | 461 | if (ops->argsize != dev->argsize) { |
462 | snd_printk(KERN_ERR "incompatible device '%s' for plug-in '%s' (%d %d)\n", | 462 | pr_err("ALSA: seq: incompatible device '%s' for plug-in '%s' (%d %d)\n", |
463 | dev->name, ops->id, ops->argsize, dev->argsize); | 463 | dev->name, ops->id, ops->argsize, dev->argsize); |
464 | return -EINVAL; | 464 | return -EINVAL; |
465 | } | 465 | } |
@@ -467,7 +467,7 @@ static int init_device(struct snd_seq_device *dev, struct ops_list *ops) | |||
467 | dev->status = SNDRV_SEQ_DEVICE_REGISTERED; | 467 | dev->status = SNDRV_SEQ_DEVICE_REGISTERED; |
468 | ops->num_init_devices++; | 468 | ops->num_init_devices++; |
469 | } else { | 469 | } else { |
470 | snd_printk(KERN_ERR "init_device failed: %s: %s\n", | 470 | pr_err("ALSA: seq: init_device failed: %s: %s\n", |
471 | dev->name, dev->id); | 471 | dev->name, dev->id); |
472 | } | 472 | } |
473 | 473 | ||
@@ -486,7 +486,7 @@ static int free_device(struct snd_seq_device *dev, struct ops_list *ops) | |||
486 | if (dev->status != SNDRV_SEQ_DEVICE_REGISTERED) | 486 | if (dev->status != SNDRV_SEQ_DEVICE_REGISTERED) |
487 | return 0; /* not registered */ | 487 | return 0; /* not registered */ |
488 | if (ops->argsize != dev->argsize) { | 488 | if (ops->argsize != dev->argsize) { |
489 | snd_printk(KERN_ERR "incompatible device '%s' for plug-in '%s' (%d %d)\n", | 489 | pr_err("ALSA: seq: incompatible device '%s' for plug-in '%s' (%d %d)\n", |
490 | dev->name, ops->id, ops->argsize, dev->argsize); | 490 | dev->name, ops->id, ops->argsize, dev->argsize); |
491 | return -EINVAL; | 491 | return -EINVAL; |
492 | } | 492 | } |
@@ -495,7 +495,7 @@ static int free_device(struct snd_seq_device *dev, struct ops_list *ops) | |||
495 | dev->driver_data = NULL; | 495 | dev->driver_data = NULL; |
496 | ops->num_init_devices--; | 496 | ops->num_init_devices--; |
497 | } else { | 497 | } else { |
498 | snd_printk(KERN_ERR "free_device failed: %s: %s\n", | 498 | pr_err("ALSA: seq: free_device failed: %s: %s\n", |
499 | dev->name, dev->id); | 499 | dev->name, dev->id); |
500 | } | 500 | } |
501 | 501 | ||
@@ -559,7 +559,7 @@ static void __exit alsa_seq_device_exit(void) | |||
559 | snd_info_free_entry(info_entry); | 559 | snd_info_free_entry(info_entry); |
560 | #endif | 560 | #endif |
561 | if (num_ops) | 561 | if (num_ops) |
562 | snd_printk(KERN_ERR "drivers not released (%d)\n", num_ops); | 562 | pr_err("ALSA: seq: drivers not released (%d)\n", num_ops); |
563 | } | 563 | } |
564 | 564 | ||
565 | module_init(alsa_seq_device_init) | 565 | module_init(alsa_seq_device_init) |
diff --git a/sound/core/seq/seq_dummy.c b/sound/core/seq/seq_dummy.c index dbc550716790..ec667f158f19 100644 --- a/sound/core/seq/seq_dummy.c +++ b/sound/core/seq/seq_dummy.c | |||
@@ -198,7 +198,7 @@ register_client(void) | |||
198 | int i; | 198 | int i; |
199 | 199 | ||
200 | if (ports < 1) { | 200 | if (ports < 1) { |
201 | snd_printk(KERN_ERR "invalid number of ports %d\n", ports); | 201 | pr_err("ALSA: seq_dummy: invalid number of ports %d\n", ports); |
202 | return -EINVAL; | 202 | return -EINVAL; |
203 | } | 203 | } |
204 | 204 | ||
diff --git a/sound/core/seq/seq_fifo.c b/sound/core/seq/seq_fifo.c index 0d75afa786bc..559989992bef 100644 --- a/sound/core/seq/seq_fifo.c +++ b/sound/core/seq/seq_fifo.c | |||
@@ -34,7 +34,7 @@ struct snd_seq_fifo *snd_seq_fifo_new(int poolsize) | |||
34 | 34 | ||
35 | f = kzalloc(sizeof(*f), GFP_KERNEL); | 35 | f = kzalloc(sizeof(*f), GFP_KERNEL); |
36 | if (f == NULL) { | 36 | if (f == NULL) { |
37 | snd_printd("malloc failed for snd_seq_fifo_new() \n"); | 37 | pr_debug("ALSA: seq: malloc failed for snd_seq_fifo_new() \n"); |
38 | return NULL; | 38 | return NULL; |
39 | } | 39 | } |
40 | 40 | ||
diff --git a/sound/core/seq/seq_lock.c b/sound/core/seq/seq_lock.c index 2cfe50c71a9d..3b693e924db7 100644 --- a/sound/core/seq/seq_lock.c +++ b/sound/core/seq/seq_lock.c | |||
@@ -31,12 +31,12 @@ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line) | |||
31 | int max_count = 5 * HZ; | 31 | int max_count = 5 * HZ; |
32 | 32 | ||
33 | if (atomic_read(lockp) < 0) { | 33 | if (atomic_read(lockp) < 0) { |
34 | printk(KERN_WARNING "seq_lock: lock trouble [counter = %d] in %s:%d\n", atomic_read(lockp), file, line); | 34 | pr_warn("ALSA: seq_lock: lock trouble [counter = %d] in %s:%d\n", atomic_read(lockp), file, line); |
35 | return; | 35 | return; |
36 | } | 36 | } |
37 | while (atomic_read(lockp) > 0) { | 37 | while (atomic_read(lockp) > 0) { |
38 | if (max_count == 0) { | 38 | if (max_count == 0) { |
39 | snd_printk(KERN_WARNING "seq_lock: timeout [%d left] in %s:%d\n", atomic_read(lockp), file, line); | 39 | pr_warn("ALSA: seq_lock: timeout [%d left] in %s:%d\n", atomic_read(lockp), file, line); |
40 | break; | 40 | break; |
41 | } | 41 | } |
42 | schedule_timeout_uninterruptible(1); | 42 | schedule_timeout_uninterruptible(1); |
diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c index f478f770bf52..1e206de0c2dd 100644 --- a/sound/core/seq/seq_memory.c +++ b/sound/core/seq/seq_memory.c | |||
@@ -236,7 +236,7 @@ static int snd_seq_cell_alloc(struct snd_seq_pool *pool, | |||
236 | init_waitqueue_entry(&wait, current); | 236 | init_waitqueue_entry(&wait, current); |
237 | spin_lock_irqsave(&pool->lock, flags); | 237 | spin_lock_irqsave(&pool->lock, flags); |
238 | if (pool->ptr == NULL) { /* not initialized */ | 238 | if (pool->ptr == NULL) { /* not initialized */ |
239 | snd_printd("seq: pool is not initialized\n"); | 239 | pr_debug("ALSA: seq: pool is not initialized\n"); |
240 | err = -EINVAL; | 240 | err = -EINVAL; |
241 | goto __error; | 241 | goto __error; |
242 | } | 242 | } |
@@ -388,7 +388,7 @@ int snd_seq_pool_init(struct snd_seq_pool *pool) | |||
388 | 388 | ||
389 | pool->ptr = vmalloc(sizeof(struct snd_seq_event_cell) * pool->size); | 389 | pool->ptr = vmalloc(sizeof(struct snd_seq_event_cell) * pool->size); |
390 | if (pool->ptr == NULL) { | 390 | if (pool->ptr == NULL) { |
391 | snd_printd("seq: malloc for sequencer events failed\n"); | 391 | pr_debug("ALSA: seq: malloc for sequencer events failed\n"); |
392 | return -ENOMEM; | 392 | return -ENOMEM; |
393 | } | 393 | } |
394 | 394 | ||
@@ -431,7 +431,7 @@ int snd_seq_pool_done(struct snd_seq_pool *pool) | |||
431 | 431 | ||
432 | while (atomic_read(&pool->counter) > 0) { | 432 | while (atomic_read(&pool->counter) > 0) { |
433 | if (max_count == 0) { | 433 | if (max_count == 0) { |
434 | snd_printk(KERN_WARNING "snd_seq_pool_done timeout: %d cells remain\n", atomic_read(&pool->counter)); | 434 | pr_warn("ALSA: snd_seq_pool_done timeout: %d cells remain\n", atomic_read(&pool->counter)); |
435 | break; | 435 | break; |
436 | } | 436 | } |
437 | schedule_timeout_uninterruptible(1); | 437 | schedule_timeout_uninterruptible(1); |
@@ -464,7 +464,7 @@ struct snd_seq_pool *snd_seq_pool_new(int poolsize) | |||
464 | /* create pool block */ | 464 | /* create pool block */ |
465 | pool = kzalloc(sizeof(*pool), GFP_KERNEL); | 465 | pool = kzalloc(sizeof(*pool), GFP_KERNEL); |
466 | if (pool == NULL) { | 466 | if (pool == NULL) { |
467 | snd_printd("seq: malloc failed for pool\n"); | 467 | pr_debug("ALSA: seq: malloc failed for pool\n"); |
468 | return NULL; | 468 | return NULL; |
469 | } | 469 | } |
470 | spin_lock_init(&pool->lock); | 470 | spin_lock_init(&pool->lock); |
diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c index 64069dbf89ca..3e05c55a2880 100644 --- a/sound/core/seq/seq_midi.c +++ b/sound/core/seq/seq_midi.c | |||
@@ -121,7 +121,7 @@ static int dump_midi(struct snd_rawmidi_substream *substream, const char *buf, i | |||
121 | runtime = substream->runtime; | 121 | runtime = substream->runtime; |
122 | if ((tmp = runtime->avail) < count) { | 122 | if ((tmp = runtime->avail) < count) { |
123 | if (printk_ratelimit()) | 123 | if (printk_ratelimit()) |
124 | snd_printk(KERN_ERR "MIDI output buffer overrun\n"); | 124 | pr_err("ALSA: seq_midi: MIDI output buffer overrun\n"); |
125 | return -ENOMEM; | 125 | return -ENOMEM; |
126 | } | 126 | } |
127 | if (snd_rawmidi_kernel_write(substream, buf, count) < count) | 127 | if (snd_rawmidi_kernel_write(substream, buf, count) < count) |
@@ -145,7 +145,7 @@ static int event_process_midi(struct snd_seq_event *ev, int direct, | |||
145 | if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { /* special case, to save space */ | 145 | if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { /* special case, to save space */ |
146 | if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) { | 146 | if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) { |
147 | /* invalid event */ | 147 | /* invalid event */ |
148 | snd_printd("seq_midi: invalid sysex event flags = 0x%x\n", ev->flags); | 148 | pr_debug("ALSA: seq_midi: invalid sysex event flags = 0x%x\n", ev->flags); |
149 | return 0; | 149 | return 0; |
150 | } | 150 | } |
151 | snd_seq_dump_var_event(ev, (snd_seq_dump_func_t)dump_midi, substream); | 151 | snd_seq_dump_var_event(ev, (snd_seq_dump_func_t)dump_midi, substream); |
@@ -189,7 +189,7 @@ static int midisynth_subscribe(void *private_data, struct snd_seq_port_subscribe | |||
189 | msynth->subdevice, | 189 | msynth->subdevice, |
190 | SNDRV_RAWMIDI_LFLG_INPUT, | 190 | SNDRV_RAWMIDI_LFLG_INPUT, |
191 | &msynth->input_rfile)) < 0) { | 191 | &msynth->input_rfile)) < 0) { |
192 | snd_printd("midi input open failed!!!\n"); | 192 | pr_debug("ALSA: seq_midi: midi input open failed!!!\n"); |
193 | return err; | 193 | return err; |
194 | } | 194 | } |
195 | runtime = msynth->input_rfile.input->runtime; | 195 | runtime = msynth->input_rfile.input->runtime; |
@@ -231,7 +231,7 @@ static int midisynth_use(void *private_data, struct snd_seq_port_subscribe *info | |||
231 | msynth->subdevice, | 231 | msynth->subdevice, |
232 | SNDRV_RAWMIDI_LFLG_OUTPUT, | 232 | SNDRV_RAWMIDI_LFLG_OUTPUT, |
233 | &msynth->output_rfile)) < 0) { | 233 | &msynth->output_rfile)) < 0) { |
234 | snd_printd("midi output open failed!!!\n"); | 234 | pr_debug("ALSA: seq_midi: midi output open failed!!!\n"); |
235 | return err; | 235 | return err; |
236 | } | 236 | } |
237 | memset(¶ms, 0, sizeof(params)); | 237 | memset(¶ms, 0, sizeof(params)); |
diff --git a/sound/core/seq/seq_midi_emul.c b/sound/core/seq/seq_midi_emul.c index 6f64471ddde3..9b6470cdcf24 100644 --- a/sound/core/seq/seq_midi_emul.c +++ b/sound/core/seq/seq_midi_emul.c | |||
@@ -89,7 +89,7 @@ snd_midi_process_event(struct snd_midi_op *ops, | |||
89 | int dest_channel = 0; | 89 | int dest_channel = 0; |
90 | 90 | ||
91 | if (ev == NULL || chanset == NULL) { | 91 | if (ev == NULL || chanset == NULL) { |
92 | snd_printd("ev or chanbase NULL (snd_midi_process_event)\n"); | 92 | pr_debug("ALSA: seq_midi_emul: ev or chanbase NULL (snd_midi_process_event)\n"); |
93 | return; | 93 | return; |
94 | } | 94 | } |
95 | if (chanset->channels == NULL) | 95 | if (chanset->channels == NULL) |
@@ -98,7 +98,7 @@ snd_midi_process_event(struct snd_midi_op *ops, | |||
98 | if (snd_seq_ev_is_channel_type(ev)) { | 98 | if (snd_seq_ev_is_channel_type(ev)) { |
99 | dest_channel = ev->data.note.channel; | 99 | dest_channel = ev->data.note.channel; |
100 | if (dest_channel >= chanset->max_channels) { | 100 | if (dest_channel >= chanset->max_channels) { |
101 | snd_printd("dest channel is %d, max is %d\n", | 101 | pr_debug("ALSA: seq_midi_emul: dest channel is %d, max is %d\n", |
102 | dest_channel, chanset->max_channels); | 102 | dest_channel, chanset->max_channels); |
103 | return; | 103 | return; |
104 | } | 104 | } |
@@ -232,7 +232,7 @@ snd_midi_process_event(struct snd_midi_op *ops, | |||
232 | case SNDRV_SEQ_EVENT_ECHO: | 232 | case SNDRV_SEQ_EVENT_ECHO: |
233 | not_yet: | 233 | not_yet: |
234 | default: | 234 | default: |
235 | /*snd_printd("Unimplemented event %d\n", ev->type);*/ | 235 | /*pr_debug("ALSA: seq_midi_emul: Unimplemented event %d\n", ev->type);*/ |
236 | break; | 236 | break; |
237 | } | 237 | } |
238 | } | 238 | } |
diff --git a/sound/core/seq/seq_ports.c b/sound/core/seq/seq_ports.c index 9516e5ce3aad..794a341bf0e5 100644 --- a/sound/core/seq/seq_ports.c +++ b/sound/core/seq/seq_ports.c | |||
@@ -135,14 +135,14 @@ struct snd_seq_client_port *snd_seq_create_port(struct snd_seq_client *client, | |||
135 | return NULL; | 135 | return NULL; |
136 | 136 | ||
137 | if (client->num_ports >= SNDRV_SEQ_MAX_PORTS - 1) { | 137 | if (client->num_ports >= SNDRV_SEQ_MAX_PORTS - 1) { |
138 | snd_printk(KERN_WARNING "too many ports for client %d\n", client->number); | 138 | pr_warn("ALSA: seq: too many ports for client %d\n", client->number); |
139 | return NULL; | 139 | return NULL; |
140 | } | 140 | } |
141 | 141 | ||
142 | /* create a new port */ | 142 | /* create a new port */ |
143 | new_port = kzalloc(sizeof(*new_port), GFP_KERNEL); | 143 | new_port = kzalloc(sizeof(*new_port), GFP_KERNEL); |
144 | if (! new_port) { | 144 | if (! new_port) { |
145 | snd_printd("malloc failed for registering client port\n"); | 145 | pr_debug("ALSA: seq: malloc failed for registering client port\n"); |
146 | return NULL; /* failure, out of memory */ | 146 | return NULL; /* failure, out of memory */ |
147 | } | 147 | } |
148 | /* init port data */ | 148 | /* init port data */ |
diff --git a/sound/core/seq/seq_prioq.c b/sound/core/seq/seq_prioq.c index 29896ab23403..021b02bc9330 100644 --- a/sound/core/seq/seq_prioq.c +++ b/sound/core/seq/seq_prioq.c | |||
@@ -60,7 +60,7 @@ struct snd_seq_prioq *snd_seq_prioq_new(void) | |||
60 | 60 | ||
61 | f = kzalloc(sizeof(*f), GFP_KERNEL); | 61 | f = kzalloc(sizeof(*f), GFP_KERNEL); |
62 | if (f == NULL) { | 62 | if (f == NULL) { |
63 | snd_printd("oops: malloc failed for snd_seq_prioq_new()\n"); | 63 | pr_debug("ALSA: seq: malloc failed for snd_seq_prioq_new()\n"); |
64 | return NULL; | 64 | return NULL; |
65 | } | 65 | } |
66 | 66 | ||
@@ -79,7 +79,7 @@ void snd_seq_prioq_delete(struct snd_seq_prioq **fifo) | |||
79 | *fifo = NULL; | 79 | *fifo = NULL; |
80 | 80 | ||
81 | if (f == NULL) { | 81 | if (f == NULL) { |
82 | snd_printd("oops: snd_seq_prioq_delete() called with NULL prioq\n"); | 82 | pr_debug("ALSA: seq: snd_seq_prioq_delete() called with NULL prioq\n"); |
83 | return; | 83 | return; |
84 | } | 84 | } |
85 | 85 | ||
@@ -197,7 +197,7 @@ int snd_seq_prioq_cell_in(struct snd_seq_prioq * f, | |||
197 | cur = cur->next; | 197 | cur = cur->next; |
198 | if (! --count) { | 198 | if (! --count) { |
199 | spin_unlock_irqrestore(&f->lock, flags); | 199 | spin_unlock_irqrestore(&f->lock, flags); |
200 | snd_printk(KERN_ERR "cannot find a pointer.. infinite loop?\n"); | 200 | pr_err("ALSA: seq: cannot find a pointer.. infinite loop?\n"); |
201 | return -EINVAL; | 201 | return -EINVAL; |
202 | } | 202 | } |
203 | } | 203 | } |
@@ -223,7 +223,7 @@ struct snd_seq_event_cell *snd_seq_prioq_cell_out(struct snd_seq_prioq *f) | |||
223 | unsigned long flags; | 223 | unsigned long flags; |
224 | 224 | ||
225 | if (f == NULL) { | 225 | if (f == NULL) { |
226 | snd_printd("oops: snd_seq_prioq_cell_in() called with NULL prioq\n"); | 226 | pr_debug("ALSA: seq: snd_seq_prioq_cell_in() called with NULL prioq\n"); |
227 | return NULL; | 227 | return NULL; |
228 | } | 228 | } |
229 | spin_lock_irqsave(&f->lock, flags); | 229 | spin_lock_irqsave(&f->lock, flags); |
@@ -248,7 +248,7 @@ struct snd_seq_event_cell *snd_seq_prioq_cell_out(struct snd_seq_prioq *f) | |||
248 | int snd_seq_prioq_avail(struct snd_seq_prioq * f) | 248 | int snd_seq_prioq_avail(struct snd_seq_prioq * f) |
249 | { | 249 | { |
250 | if (f == NULL) { | 250 | if (f == NULL) { |
251 | snd_printd("oops: snd_seq_prioq_cell_in() called with NULL prioq\n"); | 251 | pr_debug("ALSA: seq: snd_seq_prioq_cell_in() called with NULL prioq\n"); |
252 | return 0; | 252 | return 0; |
253 | } | 253 | } |
254 | return f->cells; | 254 | return f->cells; |
@@ -259,7 +259,7 @@ int snd_seq_prioq_avail(struct snd_seq_prioq * f) | |||
259 | struct snd_seq_event_cell *snd_seq_prioq_cell_peek(struct snd_seq_prioq * f) | 259 | struct snd_seq_event_cell *snd_seq_prioq_cell_peek(struct snd_seq_prioq * f) |
260 | { | 260 | { |
261 | if (f == NULL) { | 261 | if (f == NULL) { |
262 | snd_printd("oops: snd_seq_prioq_cell_in() called with NULL prioq\n"); | 262 | pr_debug("ALSA: seq: snd_seq_prioq_cell_in() called with NULL prioq\n"); |
263 | return NULL; | 263 | return NULL; |
264 | } | 264 | } |
265 | return f->head; | 265 | return f->head; |
@@ -321,7 +321,7 @@ void snd_seq_prioq_leave(struct snd_seq_prioq * f, int client, int timestamp) | |||
321 | freeprev = cell; | 321 | freeprev = cell; |
322 | } else { | 322 | } else { |
323 | #if 0 | 323 | #if 0 |
324 | printk(KERN_DEBUG "type = %i, source = %i, dest = %i, " | 324 | pr_debug("ALSA: seq: type = %i, source = %i, dest = %i, " |
325 | "client = %i\n", | 325 | "client = %i\n", |
326 | cell->event.type, | 326 | cell->event.type, |
327 | cell->event.source.client, | 327 | cell->event.source.client, |
diff --git a/sound/core/seq/seq_queue.c b/sound/core/seq/seq_queue.c index f9077361c119..aad4878cee55 100644 --- a/sound/core/seq/seq_queue.c +++ b/sound/core/seq/seq_queue.c | |||
@@ -112,7 +112,7 @@ static struct snd_seq_queue *queue_new(int owner, int locked) | |||
112 | 112 | ||
113 | q = kzalloc(sizeof(*q), GFP_KERNEL); | 113 | q = kzalloc(sizeof(*q), GFP_KERNEL); |
114 | if (q == NULL) { | 114 | if (q == NULL) { |
115 | snd_printd("malloc failed for snd_seq_queue_new()\n"); | 115 | pr_debug("ALSA: seq: malloc failed for snd_seq_queue_new()\n"); |
116 | return NULL; | 116 | return NULL; |
117 | } | 117 | } |
118 | 118 | ||
diff --git a/sound/core/seq/seq_timer.c b/sound/core/seq/seq_timer.c index 24d44b2f61ac..e73605393eee 100644 --- a/sound/core/seq/seq_timer.c +++ b/sound/core/seq/seq_timer.c | |||
@@ -57,7 +57,7 @@ struct snd_seq_timer *snd_seq_timer_new(void) | |||
57 | 57 | ||
58 | tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); | 58 | tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); |
59 | if (tmr == NULL) { | 59 | if (tmr == NULL) { |
60 | snd_printd("malloc failed for snd_seq_timer_new() \n"); | 60 | pr_debug("ALSA: seq: malloc failed for snd_seq_timer_new() \n"); |
61 | return NULL; | 61 | return NULL; |
62 | } | 62 | } |
63 | spin_lock_init(&tmr->lock); | 63 | spin_lock_init(&tmr->lock); |
@@ -78,7 +78,7 @@ void snd_seq_timer_delete(struct snd_seq_timer **tmr) | |||
78 | *tmr = NULL; | 78 | *tmr = NULL; |
79 | 79 | ||
80 | if (t == NULL) { | 80 | if (t == NULL) { |
81 | snd_printd("oops: snd_seq_timer_delete() called with NULL timer\n"); | 81 | pr_debug("ALSA: seq: snd_seq_timer_delete() called with NULL timer\n"); |
82 | return; | 82 | return; |
83 | } | 83 | } |
84 | t->running = 0; | 84 | t->running = 0; |
@@ -199,7 +199,7 @@ int snd_seq_timer_set_ppq(struct snd_seq_timer * tmr, int ppq) | |||
199 | /* refuse to change ppq on running timers */ | 199 | /* refuse to change ppq on running timers */ |
200 | /* because it will upset the song position (ticks) */ | 200 | /* because it will upset the song position (ticks) */ |
201 | spin_unlock_irqrestore(&tmr->lock, flags); | 201 | spin_unlock_irqrestore(&tmr->lock, flags); |
202 | snd_printd("seq: cannot change ppq of a running timer\n"); | 202 | pr_debug("ALSA: seq: cannot change ppq of a running timer\n"); |
203 | return -EBUSY; | 203 | return -EBUSY; |
204 | } | 204 | } |
205 | 205 | ||
@@ -252,7 +252,7 @@ int snd_seq_timer_set_skew(struct snd_seq_timer *tmr, unsigned int skew, | |||
252 | 252 | ||
253 | /* FIXME */ | 253 | /* FIXME */ |
254 | if (base != SKEW_BASE) { | 254 | if (base != SKEW_BASE) { |
255 | snd_printd("invalid skew base 0x%x\n", base); | 255 | pr_debug("ALSA: seq: invalid skew base 0x%x\n", base); |
256 | return -EINVAL; | 256 | return -EINVAL; |
257 | } | 257 | } |
258 | spin_lock_irqsave(&tmr->lock, flags); | 258 | spin_lock_irqsave(&tmr->lock, flags); |
@@ -292,7 +292,7 @@ int snd_seq_timer_open(struct snd_seq_queue *q) | |||
292 | } | 292 | } |
293 | } | 293 | } |
294 | if (err < 0) { | 294 | if (err < 0) { |
295 | snd_printk(KERN_ERR "seq fatal error: cannot create timer (%i)\n", err); | 295 | pr_err("ALSA: seq fatal error: cannot create timer (%i)\n", err); |
296 | return err; | 296 | return err; |
297 | } | 297 | } |
298 | t->callback = snd_seq_timer_interrupt; | 298 | t->callback = snd_seq_timer_interrupt; |
diff --git a/sound/core/seq/seq_virmidi.c b/sound/core/seq/seq_virmidi.c index 4b50e604276d..56e0f4cd3f82 100644 --- a/sound/core/seq/seq_virmidi.c +++ b/sound/core/seq/seq_virmidi.c | |||
@@ -446,7 +446,7 @@ static int snd_virmidi_dev_register(struct snd_rawmidi *rmidi) | |||
446 | /* should check presence of port more strictly.. */ | 446 | /* should check presence of port more strictly.. */ |
447 | break; | 447 | break; |
448 | default: | 448 | default: |
449 | snd_printk(KERN_ERR "seq_mode is not set: %d\n", rdev->seq_mode); | 449 | pr_err("ALSA: seq_virmidi: seq_mode is not set: %d\n", rdev->seq_mode); |
450 | return -EINVAL; | 450 | return -EINVAL; |
451 | } | 451 | } |
452 | return 0; | 452 | return 0; |