|
@@ -106,7 +106,7 @@ snd_seq_oss_synth_register(struct snd_seq_device *dev)
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
|
|
if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) {
|
|
if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) {
|
|
- snd_printk(KERN_ERR "can't malloc synth info\n");
|
|
|
|
|
|
+ pr_err("ALSA: seq_oss: can't malloc synth info\n");
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
rec->seq_device = -1;
|
|
rec->seq_device = -1;
|
|
@@ -130,7 +130,7 @@ snd_seq_oss_synth_register(struct snd_seq_device *dev)
|
|
if (i >= max_synth_devs) {
|
|
if (i >= max_synth_devs) {
|
|
if (max_synth_devs >= SNDRV_SEQ_OSS_MAX_SYNTH_DEVS) {
|
|
if (max_synth_devs >= SNDRV_SEQ_OSS_MAX_SYNTH_DEVS) {
|
|
spin_unlock_irqrestore(®ister_lock, flags);
|
|
spin_unlock_irqrestore(®ister_lock, flags);
|
|
- snd_printk(KERN_ERR "no more synth slot\n");
|
|
|
|
|
|
+ pr_err("ALSA: seq_oss: no more synth slot\n");
|
|
kfree(rec);
|
|
kfree(rec);
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
@@ -162,7 +162,7 @@ snd_seq_oss_synth_unregister(struct snd_seq_device *dev)
|
|
}
|
|
}
|
|
if (index >= max_synth_devs) {
|
|
if (index >= max_synth_devs) {
|
|
spin_unlock_irqrestore(®ister_lock, flags);
|
|
spin_unlock_irqrestore(®ister_lock, flags);
|
|
- snd_printk(KERN_ERR "can't unregister synth\n");
|
|
|
|
|
|
+ pr_err("ALSA: seq_oss: can't unregister synth\n");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
synth_devs[index] = NULL;
|
|
synth_devs[index] = NULL;
|
|
@@ -247,7 +247,7 @@ snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp)
|
|
if (info->nr_voices > 0) {
|
|
if (info->nr_voices > 0) {
|
|
info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL);
|
|
info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL);
|
|
if (!info->ch) {
|
|
if (!info->ch) {
|
|
- snd_printk(KERN_ERR "Cannot malloc\n");
|
|
|
|
|
|
+ pr_err("ALSA: seq_oss: Cannot malloc voices\n");
|
|
rec->oper.close(&info->arg);
|
|
rec->oper.close(&info->arg);
|
|
module_put(rec->oper.owner);
|
|
module_put(rec->oper.owner);
|
|
snd_use_lock_free(&rec->use_lock);
|
|
snd_use_lock_free(&rec->use_lock);
|