Skip to content

Commit

Permalink
Tidy up debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Oct 8, 2012
1 parent 996a468 commit 9b2353b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions sound/arm/bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ static int __devinit snd_bcm2835_alsa_probe(struct platform_device *pdev)
bcm2835_chip_t *chip;
struct snd_card *card;
int err;
printk(KERN_INFO "### snd_bcm2835_alsa_probe %p ###", pdev);

printk
("############ PROBING FOR bcm2835 ALSA device (%d):(%d) ###############\n",
printk(KERN_INFO "Probing FOR bcm2835 ALSA device (%d):(%d)\n",
dev, enable[dev]);

if (dev >= MAX_SUBSTREAMS)
Expand All @@ -114,7 +111,6 @@ static int __devinit snd_bcm2835_alsa_probe(struct platform_device *pdev)
strcpy(g_card->shortname, "bcm2835 ALSA");
sprintf(g_card->longname, "%s", g_card->shortname);

printk("Creating device/chip ..\n");
err = snd_bcm2835_create(g_card, pdev, &chip);
if (err < 0) {
printk(KERN_ERR "Failed to create bcm2835 chip\n");
Expand All @@ -128,7 +124,6 @@ static int __devinit snd_bcm2835_alsa_probe(struct platform_device *pdev)
goto out_bcm2835_new_pcm;
}

printk("Adding controls ..\n");
err = snd_bcm2835_new_ctl(chip);
if (err < 0) {
printk(KERN_ERR "Failed to create new BCM2835 ctl\n");
Expand All @@ -145,17 +140,16 @@ static int __devinit snd_bcm2835_alsa_probe(struct platform_device *pdev)
chip->pdev[dev] = pdev;

if (dev == 0) {
printk("Registering card ....\n");
err = snd_card_register(card);
if (err < 0) {
printk(KERN_ERR
"Failed to register bcm2835 ALSA card \n");
goto out_card_register;
}
platform_set_drvdata(pdev, card);
printk("bcm2835 ALSA CARD CREATED!\n");
printk(KERN_INFO "bcm2835 ALSA card created!\n");
} else {
printk("bcm2835 ALSA CHIP CREATED!\n");
printk(KERN_INFO "bcm2835 ALSA chip created!\n");
platform_set_drvdata(pdev, (void *)dev);
}

Expand Down Expand Up @@ -380,7 +374,7 @@ static int __devinit bcm2835_alsa_device_init(void)
printk("Error registering bcm2835_alsa7_driver %d .\n", err);
goto unregister_6;
}
printk(KERN_INFO "### BCM2835 ALSA driver init %s ### \n",
printk(KERN_INFO "BCM2835 ALSA driver init %s\n",
err ? "FAILED" : "OK");

return 0;
Expand Down

0 comments on commit 9b2353b

Please sign in to comment.