lkml.org 
[lkml]   [1998]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.0.35 testfix for Re: Soundblaster getting 3 DMA channels?
On Wed, 29 Jul 1998, Alan Cox wrote:

> > So then the bug isn't a problem with /proc/dma code, but rather
> > with the display code fragment that I posted. If this is the
>
> No its with the mpu401 code not setting dma to -1 as its unused

Ok, I've tried my hand at writing the small patch. It patches
the 2.0.35 mpu401.c file adding what I figure are the correct
lines to disable DMA. I also noticed what appears to be another
small bug where the IRQ is set twice. I removed the second one,
and it is included in the patch as well.

Untested as of yet, but as soon as this mail goes out, I'm
recompiling and giving it a shot. Can someone else please test
this out as well?


=================================================================
--- mpu401.c.orig Wed Aug 21 02:18:09 1996
+++ mpu401.c Wed Jul 29 13:56:51 1998
@@ -1050,6 +1050,8 @@
devc->base = hw_config->io_base;
devc->osp = hw_config->osp;
devc->irq = hw_config->irq;
+ devc->dma = -1;
+ devc->dma2 = -1;
devc->opened = 0;
devc->uart_mode = 0;
devc->initialized = 0;
@@ -1060,7 +1062,6 @@
devc->m_busy = 0;
devc->m_state = ST_INIT;
devc->shared_irq = hw_config->always_detect;
- devc->irq = hw_config->irq;

if (devc->irq < 0)
{


--
Mike A. Harris - Computer Consultant - Linux advocate

Escape from the confines of Microsoft's operating systems and push your
PC to it's limits with LINUX - a real OS. http://www.redhat.com




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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.025 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site