2.2.18ac14 yamaha debug output removal patch.

From: Rob Landley (landley@flash.net)
Date: Mon Oct 02 2000 - 01:13:38 EST


The new driver works fine on the box here, produces all sorts of debug
gorp to the console though. Most of the unnecessary printk's are
commented out, these are the three I've been seeing while playing around
with mpg123 and some mp3 files...

Other than that, it worked for me...

Rob

--- linux/drivers/sound/ymfpci.c Mon Oct 2 01:46:48 2000
+++ linux2/drivers/sound/ymfpci.c Mon Oct 2 01:43:03 2000
@@ -668,10 +668,10 @@
                                 /*
                                  * Normal end of DMA.
                                  */
- printk("ymfpci%d: %d: done: delta %d"
- " hwptr %d swptr %d distance %d count %d\n",
- codec->inst, voice->number, delta,
- dmabuf->hwptr, swptr, distance, dmabuf->count);
+// printk("ymfpci%d: %d: done: delta %d"
+// " hwptr %d swptr %d distance %d count %d\n",
+// codec->inst, voice->number, delta,
+// dmabuf->hwptr, swptr, distance, dmabuf->count);
                         }
                         played = dmabuf->count;
                         if (ypcm->running) {
@@ -826,8 +826,8 @@
                 end >>= 1;
         if (w_16)
                 end >>= 1;
-/* P3 */ printk("ymf_pcm_init_voice: %d: Rate %d Format 0x%08x Delta 0x%x End 0x%x\n",
- voice->number, rate, format, delta, end);
+/* P3 */ // printk("ymf_pcm_init_voice: %d: Rate %d Format 0x%08x Delta 0x%x End 0x%x\n",
+// voice->number, rate, format, delta, end);
         for (nbank = 0; nbank < 2; nbank++) {
                 bank = &voice->bank[nbank];
                 bank->format = format;
@@ -1710,7 +1710,7 @@
         case SNDCTL_DSP_SETFRAGMENT:
                 get_user_ret(val, (int *)arg, -EFAULT);
         /* P3: these frags are for Doom. Amasingly, it sets [2,2**11]. */
- /* P3 */ printk("ymfpci: ioctl SNDCTL_DSP_SETFRAGMENT 0x%x\n", val);
+ /* P3 */ // printk("ymfpci: ioctl SNDCTL_DSP_SETFRAGMENT 0x%x\n", val);
 
                 dmabuf->ossfragshift = val & 0xffff;
                 dmabuf->ossmaxfrags = (val >> 16) & 0xffff;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Oct 07 2000 - 21:00:09 EST