Commit 65ff2357a7e40bf4b42858516861c3d0e19f512b

Authored by Ash Willis
Committed by Jaroslav Kysela
1 parent dda369cf20

[ALSA] Disable debugging output for the ALS300 driver

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>

Showing 1 changed file with 4 additions and 3 deletions Side-by-side Diff

... ... @@ -88,8 +88,8 @@
88 88 #define PLAYBACK_BLOCK_COUNTER 0x9A
89 89 #define RECORD_BLOCK_COUNTER 0x9B
90 90  
91   -#define DEBUG_CALLS 1
92   -#define DEBUG_PLAY_REC 1
  91 +#define DEBUG_CALLS 0
  92 +#define DEBUG_PLAY_REC 0
93 93  
94 94 #if DEBUG_CALLS
95 95 #define snd_als300_dbgcalls(format, args...) printk(format, ##args)
... ... @@ -733,7 +733,8 @@
733 733  
734 734 snd_als300_init(chip);
735 735  
736   - if (snd_als300_ac97(chip) < 0) {
  736 + err = snd_als300_ac97(chip);
  737 + if (err < 0) {
737 738 snd_printk(KERN_WARNING "Could not create ac97\n");
738 739 snd_als300_free(chip);
739 740 return err;