From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 10 Sep 2002 01:33:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 10 Sep 2002 01:33:56 -0400 Received: from twilight.ucw.cz ([195.39.74.230]:44720 "EHLO twilight.ucw.cz") by vger.kernel.org with ESMTP id ; Tue, 10 Sep 2002 01:33:55 -0400 Date: Tue, 10 Sep 2002 07:38:38 +0200 From: Vojtech Pavlik To: Pascal Schmidt Cc: linux-kernel@vger.kernel.org, Alan Cox , Vojtech Pavlik Subject: Re: [PATCH] 2.4.20-pre5-ac4: Add support for ALi 5451 gameport Message-ID: <20020910073838.A6113@ucw.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from der.eremit@email.de on Tue, Sep 10, 2002 at 01:24:56AM +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 10, 2002 at 01:24:56AM +0200, Pascal Schmidt wrote: > > Hi all! > > This patch adds support for the gameport found on ALi 5451 chips to > drivers/sound/trident.c and drivers/char/joystick/pcigame.c. The ALi > 5451 gameport works just like a Trident 4DWave gameport, so the patch > just adds the ALi device id in the relevant places. > > Patch against 2.4.20-pre5-ac4 since that has the necessary code to > use trident and pcigame at the same time. > > Tested and found working on a Soyo K7ADA motherboard (ALi Magik1 chipset). > > Please cc me on any comments. Very nice. I think this is for Alan. For normal 2.4, as you said, the pcigame.c code isn't much useful, because doesn't cooperate well with the trident.c code. For 2.5, pcigame code is embedded into trident.c to make things simpler. > diff -urN linux-2.4.20-pre5-ac4/Documentation/Configure.help linux-mod/Documentation/Configure.help > --- linux-2.4.20-pre5-ac4/Documentation/Configure.help Tue Sep 10 00:06:15 2002 > +++ linux-mod/Documentation/Configure.help Tue Sep 10 01:06:15 2002 > @@ -19197,10 +19197,11 @@ > The module will be called cs461x.o. If you want to compile it as a > module, say M here and read . > > -Aureal Vortex and Trident 4DWave gameports > +Aureal Vortex, Trident 4DWave, and ALi 5451 gameports > CONFIG_INPUT_PCIGAME > Say Y here if you have a Trident 4DWave DX/NX or Aureal Vortex 1/2 > - card. For more information on how to use the driver please read > + card or an ALi 5451 chip on your motherboard. For more information > + on how to use the driver please read > . > > This driver is also available as a module ( = code which can be > diff -urN linux-2.4.20-pre5-ac4/drivers/char/joystick/Config.in linux-mod/drivers/char/joystick/Config.in > --- linux-2.4.20-pre5-ac4/drivers/char/joystick/Config.in Mon Sep 24 22:43:30 2001 > +++ linux-mod/drivers/char/joystick/Config.in Tue Sep 10 01:04:42 2002 > @@ -9,7 +9,7 @@ > dep_tristate 'Game port support' CONFIG_INPUT_GAMEPORT $CONFIG_INPUT > dep_tristate ' Classic ISA/PnP gameports' CONFIG_INPUT_NS558 $CONFIG_INPUT_GAMEPORT > dep_tristate ' PDPI Lightning 4 gamecard' CONFIG_INPUT_LIGHTNING $CONFIG_INPUT_GAMEPORT > - dep_tristate ' Aureal Vortex and Trident 4DWave gameports' CONFIG_INPUT_PCIGAME $CONFIG_INPUT_GAMEPORT > + dep_tristate ' Aureal Vortex, Trident 4DWave, and ALi 5451 gameports' CONFIG_INPUT_PCIGAME $CONFIG_INPUT_GAMEPORT > dep_tristate ' Crystal SoundFusion gameports' CONFIG_INPUT_CS461X $CONFIG_INPUT_GAMEPORT > dep_tristate ' SoundBlaster Live! gameports' CONFIG_INPUT_EMU10K1 $CONFIG_INPUT_GAMEPORT > tristate 'Serial port device support' CONFIG_INPUT_SERIO > diff -urN linux-2.4.20-pre5-ac4/drivers/char/joystick/pcigame.c linux-mod/drivers/char/joystick/pcigame.c > --- linux-2.4.20-pre5-ac4/drivers/char/joystick/pcigame.c Tue Sep 10 00:06:15 2002 > +++ linux-mod/drivers/char/joystick/pcigame.c Tue Sep 10 00:10:42 2002 > @@ -180,6 +180,7 @@ > #if !defined(CONFIG_SOUND_TRIDENT) && !defined(CONFIG_SOUND_TRIDENT_MODULE) > { PCI_VENDOR_ID_TRIDENT, 0x2000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCIGAME_4DWAVE }, > { PCI_VENDOR_ID_TRIDENT, 0x2001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCIGAME_4DWAVE }, > + { PCI_VENDOR_ID_AL, 0x5451, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCIGAME_4DWAVE }, > #endif > { PCI_VENDOR_ID_AUREAL, 0x0001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCIGAME_VORTEX }, > { PCI_VENDOR_ID_AUREAL, 0x0002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCIGAME_VORTEX2 }, > diff -urN linux-2.4.20-pre5-ac4/drivers/sound/trident.c linux-mod/drivers/sound/trident.c > --- linux-2.4.20-pre5-ac4/drivers/sound/trident.c Tue Sep 10 00:06:27 2002 > +++ linux-mod/drivers/sound/trident.c Tue Sep 10 00:19:51 2002 > @@ -36,8 +36,11 @@ > * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > * > * History > + * v0.14.10h > + * Sept 10 2002 Pascal Schmidt > + * added support for ALi 5451 joystick port > * v0.14.10g > - * Sept 05 2002 Alan Cox + * Sept 05 2002 Alan Cox > * adapt to new pci joystick attachment interface > * v0.14.10f > * July 24 2002 Muli Ben-Yehuda > @@ -213,7 +216,7 @@ > > #include "trident.h" > > -#define DRIVER_VERSION "0.14.10f" > +#define DRIVER_VERSION "0.14.10h" > > /* magic numbers to protect our data structures */ > #define TRIDENT_CARD_MAGIC 0x5072696E /* "Prin" */ > @@ -4245,7 +4248,8 @@ > trident_enable_loop_interrupts(card); > > /* Attach joystick */ > - if(pci_dev->vendor == PCI_VENDOR_ID_TRIDENT) > + if((pci_dev->vendor == PCI_VENDOR_ID_TRIDENT) || > + (pci_dev->vendor == PCI_VENDOR_ID_AL)) > card->joystick = pcigame_attach(pci_dev, PCIGAME_4DWAVE); > out: return rc; > out_unregister_sound_dsp: > -- Vojtech Pavlik SuSE Labs