mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
ALSA: sh: Use standard print API
Use the standard print API with dev_*() instead of the old house-baked one. It gives better information and allows dynamically control of debug prints. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20240807133452.9424-51-tiwai@suse.de
This commit is contained in:
parent
76a6ef90d5
commit
7e88541f00
@ -75,8 +75,7 @@ static void spu_write_wait(void)
|
|||||||
/* To ensure hardware failure doesn't wedge kernel */
|
/* To ensure hardware failure doesn't wedge kernel */
|
||||||
time_count++;
|
time_count++;
|
||||||
if (time_count > 0x10000) {
|
if (time_count > 0x10000) {
|
||||||
snd_printk
|
pr_warn("WARNING: G2 FIFO appears to be blocked.\n");
|
||||||
("WARNING: G2 FIFO appears to be blocked.\n");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -591,8 +590,8 @@ static int snd_aica_probe(struct platform_device *devptr)
|
|||||||
if (unlikely(err < 0))
|
if (unlikely(err < 0))
|
||||||
goto freedreamcast;
|
goto freedreamcast;
|
||||||
platform_set_drvdata(devptr, dreamcastcard);
|
platform_set_drvdata(devptr, dreamcastcard);
|
||||||
snd_printk
|
dev_info(&devptr->dev,
|
||||||
("ALSA Driver for Yamaha AICA Super Intelligent Sound Processor\n");
|
"ALSA Driver for Yamaha AICA Super Intelligent Sound Processor\n");
|
||||||
return 0;
|
return 0;
|
||||||
freedreamcast:
|
freedreamcast:
|
||||||
snd_card_free(dreamcastcard->card);
|
snd_card_free(dreamcastcard->card);
|
||||||
|
@ -348,8 +348,8 @@ static int snd_sh_dac_probe(struct platform_device *devptr)
|
|||||||
|
|
||||||
err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card);
|
err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
snd_printk(KERN_ERR "cannot allocate the card\n");
|
dev_err(&devptr->dev, "cannot allocate the card\n");
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = snd_sh_dac_create(card, devptr, &chip);
|
err = snd_sh_dac_create(card, devptr, &chip);
|
||||||
@ -362,13 +362,13 @@ static int snd_sh_dac_probe(struct platform_device *devptr)
|
|||||||
|
|
||||||
strcpy(card->driver, "snd_sh_dac");
|
strcpy(card->driver, "snd_sh_dac");
|
||||||
strcpy(card->shortname, "SuperH DAC audio driver");
|
strcpy(card->shortname, "SuperH DAC audio driver");
|
||||||
printk(KERN_INFO "%s %s", card->longname, card->shortname);
|
dev_info(&devptr->dev, "%s %s\n", card->longname, card->shortname);
|
||||||
|
|
||||||
err = snd_card_register(card);
|
err = snd_card_register(card);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto probe_error;
|
goto probe_error;
|
||||||
|
|
||||||
snd_printk(KERN_INFO "ALSA driver for SuperH DAC audio");
|
dev_info(&devptr->dev, "ALSA driver for SuperH DAC audio\n");
|
||||||
|
|
||||||
platform_set_drvdata(devptr, card);
|
platform_set_drvdata(devptr, card);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user