]> err.no Git - linux-2.6/commitdiff
[ALSA] Disable debugging output for the ALS300 driver
authorAsh Willis <ashwillis@programmer.net>
Tue, 29 May 2007 12:34:17 +0000 (14:34 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:21 +0000 (11:11 +0200)
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>
sound/pci/als300.c

index 8afcb98ca7bb8cd377670b13b9f761553cd2bdbc..48cc39b771d9c12244ae452c10e29b8dccfb2988 100644 (file)
@@ -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)
@@ -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;