[alsa-devel] [PATCH] Disable debugging output for the ALS300 driver

Ash Willis ashwillis at programmer.net
Sat May 26 15:26:35 CEST 2007


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 at programmer.net>

----------------------------------------------------

diff -r 337962e19de6 -r 8ea4fa014563 pci/als300.c
--- a/pci/als300.c    Fri May 25 12:18:49 2007 +0200
+++ b/pci/als300.c    Sat May 26 14:04:14 2007 +0000
@@ -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)
@@ -730,10 +730,9 @@ static int __devinit snd_als300_create(s
     }
     chip->irq = pci->irq;
 
-
     snd_als300_init(chip);
 
-    if (snd_als300_ac97(chip) < 0) {
+    if ((err = snd_als300_ac97(chip)) < 0) {
         snd_printk(KERN_WARNING "Could not create ac97\n");
         snd_als300_free(chip);
         return err;







More information about the Alsa-devel mailing list