Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 4 Jun 2002 14:02:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 4 Jun 2002 14:02:13 -0400 Received: from swazi.realnet.co.sz ([196.28.7.2]:44933 "HELO netfinity.realnet.co.sz") by vger.kernel.org with SMTP id ; Tue, 4 Jun 2002 14:02:12 -0400 Date: Tue, 4 Jun 2002 19:33:41 +0200 (SAST) From: Zwane Mwaikambo X-X-Sender: zwane@netfinity.realnet.co.sz To: Gerald Teschl Cc: linux-kernel@vger.kernel.org, Subject: Re: [PATCH] opl3sa2 isapnp activation fix In-Reply-To: <3CFCFA33.7020106@univie.ac.at> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Jun 2002, Gerald Teschl wrote: > >>Oops, that won't work on isapnp since dma = dma2 = -1 at this stage, how > >>about; > >> > >>if ((dma != -1) && (dma2 != -1)) frob(); > >> > I don't get what you mean? I tested this, if I do "modprobe opl3sa2 > dma=1 dma2=3" it will activate > the card with dma 1,3 (according to /proc/isapnp). However, my card will > not work with these values. How about this, you check if the resource register reads 0 for the DMA value and you reassign it using the resource registers, that way you skip on using magic values. Cheers, Zwane -- http://function.linuxpower.ca - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/