Skip to content

Commit

Permalink
[ALSA] Disable debugging output for the ALS300 driver
Browse files Browse the repository at this point in the history
Disables debugging output in the ALS300 driver.
Also contains a whitespace cleanup and a fix for a potential bug.

Signed-off-by: Ash Willis <ashwillis@programmer.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Ash Willis authored and Jaroslav Kysela committed Jul 20, 2007
1 parent dda369c commit 65ff235
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sound/pci/als300.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
#define PLAYBACK_BLOCK_COUNTER 0x9A
#define RECORD_BLOCK_COUNTER 0x9B

#define DEBUG_CALLS 1
#define DEBUG_PLAY_REC 1
#define DEBUG_CALLS 0
#define DEBUG_PLAY_REC 0

#if DEBUG_CALLS
#define snd_als300_dbgcalls(format, args...) printk(format, ##args)
Expand Down Expand Up @@ -733,7 +733,8 @@ static int __devinit snd_als300_create(struct snd_card *card,

snd_als300_init(chip);

if (snd_als300_ac97(chip) < 0) {
err = snd_als300_ac97(chip);
if (err < 0) {
snd_printk(KERN_WARNING "Could not create ac97\n");
snd_als300_free(chip);
return err;
Expand Down

0 comments on commit 65ff235

Please sign in to comment.