SOUND: kill gameport bits
Subsystems (3)
Dmitry Torokhov
maintainerPATCH 2/2 Input: remove gameport subsystem
In reply to Dmitry TorokhovGameport support hasn't been working well ever since cpufreq became mainstream and it becomes increasingly hard to find hardware and software that would run on such old hardware.
It is time to retire it.
--- drivers/Makefile | 1 - drivers/input/Kconfig | 2 - drivers/input/gameport/Kconfig | 63 --- drivers/input/gameport/Makefile | 11 - drivers/input/gameport/emu10k1-gp.c | 127 ------ drivers/input/gameport/fm801-gp.c | 159 ------- drivers/input/gameport/gameport.c | 823 ------------------------------------ drivers/input/gameport/lightning.c | 341 --------------- drivers/input/gameport/ns558.c | 286 ------------- drivers/input/joystick/Kconfig | 127 ------ drivers/input/joystick/Makefile | 12 - drivers/input/joystick/a3d.c | 415 ------------------ drivers/input/joystick/adi.c | 568 ------------------------- drivers/input/joystick/analog.c | 769 --------------------------------- drivers/input/joystick/cobra.c | 263 ------------ drivers/input/joystick/gf2k.c | 375 ---------------- drivers/input/joystick/grip.c | 426 ------------------- drivers/input/joystick/grip_mp.c | 689 ------------------------------ drivers/input/joystick/guillemot.c | 283 ------------- drivers/input/joystick/interact.c | 313 -------------- drivers/input/joystick/joydump.c | 161 ------- drivers/input/joystick/sidewinder.c | 822 ----------------------------------- drivers/input/joystick/tmdc.c | 438 ------------------- include/linux/gameport.h | 219 ---------- include/uapi/linux/Kbuild | 1 - include/uapi/linux/gameport.h | 28 -- 26 files changed, 7722 deletions(-) delete mode 100644 drivers/input/gameport/Kconfig delete mode 100644 drivers/input/gameport/Makefile delete mode 100644 drivers/input/gameport/emu10k1-gp.c delete mode 100644 drivers/input/gameport/fm801-gp.c delete mode 100644 drivers/input/gameport/gameport.c delete mode 100644 drivers/input/gameport/lightning.c delete mode 100644 drivers/input/gameport/ns558.c delete mode 100644 drivers/input/joystick/a3d.c delete mode 100644 drivers/input/joystick/adi.c delete mode 100644 drivers/input/joystick/analog.c delete mode 100644 drivers/input/joystick/cobra.c delete mode 100644 drivers/input/joystick/gf2k.c delete mode 100644 drivers/input/joystick/grip.c delete mode 100644 drivers/input/joystick/grip_mp.c delete mode 100644 drivers/input/joystick/guillemot.c delete mode 100644 drivers/input/joystick/interact.c delete mode 100644 drivers/input/joystick/joydump.c delete mode 100644 drivers/input/joystick/sidewinder.c delete mode 100644 drivers/input/joystick/tmdc.c delete mode 100644 include/linux/gameport.h delete mode 100644 include/uapi/linux/gameport.h
drivers/Makefile +0 -1
@@ -92,7 +92,6 @@ obj-$(CONFIG_USB) += usb/ obj-$(CONFIG_PCI) += usb/ obj-$(CONFIG_USB_GADGET) += usb/ obj-$(CONFIG_SERIO) += input/serio/ -obj-$(CONFIG_GAMEPORT) += input/gameport/ obj-$(CONFIG_INPUT) += input/ obj-$(CONFIG_I2O) += message/ obj-$(CONFIG_RTC_LIB) += rtc/
drivers/input/Kconfig +0 -2
@@ -196,8 +196,6 @@ menu "Hardware I/O ports" source "drivers/input/serio/Kconfig" -source "drivers/input/gameport/Kconfig" - endmenu endmenu
drivers/input/gameport/Kconfig deleted +0 -63
63 lines not on this page · raw message
drivers/input/gameport/Makefile deleted +0 -11
@@ -1,11 +0,0 @@ -# -# Makefile for the gameport drivers. -# - -# Each configuration option enables a list of files. - -obj-$(CONFIG_GAMEPORT) += gameport.o -obj-$(CONFIG_GAMEPORT_EMU10K1) += emu10k1-gp.o -obj-$(CONFIG_GAMEPORT_FM801) += fm801-gp.o -obj-$(CONFIG_GAMEPORT_L4) += lightning.o -obj-$(CONFIG_GAMEPORT_NS558) += ns558.o
drivers/input/gameport/emu10k1-gp.c deleted +0 -127
127 lines not on this page · raw message
drivers/input/gameport/fm801-gp.c deleted +0 -159
159 lines not on this page · raw message
drivers/input/gameport/gameport.c deleted +0 -823
823 lines not on this page · raw message
drivers/input/gameport/lightning.c deleted +0 -341
341 lines not on this page · raw message
drivers/input/gameport/ns558.c deleted +0 -286
286 lines not on this page · raw message
drivers/input/joystick/Kconfig +0 -127
139 lines not on this page · raw message
drivers/input/joystick/Makefile +0 -12
@@ -4,28 +4,16 @@ # Each configuration option enables a list of files. -obj-$(CONFIG_JOYSTICK_A3D) += a3d.o -obj-$(CONFIG_JOYSTICK_ADI) += adi.o obj-$(CONFIG_JOYSTICK_AMIGA) += amijoy.o obj-$(CONFIG_JOYSTICK_AS5011) += as5011.o -obj-$(CONFIG_JOYSTICK_ANALOG) += analog.o -obj-$(CONFIG_JOYSTICK_COBRA) += cobra.o obj-$(CONFIG_JOYSTICK_DB9) += db9.o obj-$(CONFIG_JOYSTICK_GAMECON) += gamecon.o -obj-$(CONFIG_JOYSTICK_GF2K) += gf2k.o -obj-$(CONFIG_JOYSTICK_GRIP) += grip.o -obj-$(CONFIG_JOYSTICK_GRIP_MP) += grip_mp.o -obj-$(CONFIG_JOYSTICK_GUILLEMOT) += guillemot.o obj-$(CONFIG_JOYSTICK_IFORCE) += iforce/ -obj-$(CONFIG_JOYSTICK_INTERACT) += interact.o -obj-$(CONFIG_JOYSTICK_JOYDUMP) += joydump.o obj-$(CONFIG_JOYSTICK_MAGELLAN) += magellan.o obj-$(CONFIG_JOYSTICK_MAPLE) += maplecontrol.o -obj-$(CONFIG_JOYSTICK_SIDEWINDER) += sidewinder.o obj-$(CONFIG_JOYSTICK_SPACEBALL) += spaceball.o obj-$(CONFIG_JOYSTICK_SPACEORB) += spaceorb.o obj-$(CONFIG_JOYSTICK_STINGER) += stinger.o -obj-$(CONFIG_JOYSTICK_TMDC) += tmdc.o obj-$(CONFIG_JOYSTICK_TURBOGRAFX) += turbografx.o obj-$(CONFIG_JOYSTICK_TWIDJOY) += twidjoy.o obj-$(CONFIG_JOYSTICK_WARRIOR) += warrior.o
drivers/input/joystick/a3d.c deleted +0 -415
415 lines not on this page · raw message
drivers/input/joystick/adi.c deleted +0 -568
568 lines not on this page · raw message
drivers/input/joystick/analog.c deleted +0 -769
25 lines not on this page · raw message
drivers/input/joystick/cobra.c deleted +0 -263
263 lines not on this page · raw message
drivers/input/joystick/gf2k.c deleted +0 -375
375 lines not on this page · raw message
drivers/input/joystick/grip.c deleted +0 -426
426 lines not on this page · raw message
drivers/input/joystick/grip_mp.c deleted +0 -689
689 lines not on this page · raw message
drivers/input/joystick/guillemot.c deleted +0 -283
283 lines not on this page · raw message
drivers/input/joystick/interact.c deleted +0 -313
313 lines not on this page · raw message
drivers/input/joystick/joydump.c deleted +0 -161
161 lines not on this page · raw message
drivers/input/joystick/sidewinder.c deleted +0 -822
822 lines not on this page · raw message
drivers/input/joystick/tmdc.c deleted +0 -438
438 lines not on this page · raw message
include/linux/gameport.h deleted +0 -219
219 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.1.0.rc2.206.gedb03e5
Part of the diff is not shown here. View the raw message.
Dmitry Torokhov
maintainerPATCH 1/2 SOUND: kill gameport bits
Gameport support hasn't been working well ever since cpufreq became mainstream and it becomes increasingly hard to find hardware and software that would run on such old hardware.
This patch deletes support of gamecon interfaces from sound cards in preparation of gamecon subsystem removal.
---
Takashi,
If you are OK with the patch I'd like to queue it in my queue for 3.18 together with the patch that removes gameport completely.
Thanks!
include/sound/core.h | 7 -- sound/isa/cmi8328.c | 49 +------- sound/isa/sc6000.c | 9 +- sound/isa/sscape.c | 6 - sound/pci/als4000.c | 89 --------------- sound/pci/au88x0/au8810.c | 1 - sound/pci/au88x0/au88x0.c | 5 - sound/pci/au88x0/au88x0.h | 5 - sound/pci/au88x0/au88x0_game.c | 133 ---------------------- sound/pci/azt3328.c | 238 +-------------------------------------- sound/pci/cmipci.c | 84 +------------- sound/pci/cs4281.c | 114 ------------------- sound/pci/cs46xx/cs46xx.c | 2 - sound/pci/cs46xx/cs46xx.h | 4 - sound/pci/cs46xx/cs46xx_lib.c | 105 ----------------- sound/pci/ens1370.c | 129 --------------------- sound/pci/es1938.c | 46 -------- sound/pci/es1968.c | 72 ------------ sound/pci/riptide/riptide.c | 109 +----------------- sound/pci/sonicvibes.c | 55 --------- sound/pci/trident/trident.c | 2 - sound/pci/trident/trident.h | 3 - sound/pci/trident/trident_main.c | 103 ----------------- sound/pci/via82xx.c | 77 ------------- sound/pci/ymfpci/ymfpci.c | 99 ---------------- sound/pci/ymfpci/ymfpci.h | 9 -- sound/pci/ymfpci/ymfpci_main.c | 1 - 27 files changed, 8 insertions(+), 1548 deletions(-) delete mode 100644 sound/pci/au88x0/au88x0_game.c
include/sound/core.h +0 -7
@@ -421,13 +421,6 @@ static inline void snd_printdd(const char *format, ...) {}#define SNDRV_OSS_VERSION ((3<<16)|(8<<8)|(1<<4)|(0))/* 3.8.1a */ -/* for easier backward-porting */ -#if defined(CONFIG_GAMEPORT ) || defined(CONFIG_GAMEPORT_MODULE ) -#define gameport_set_dev_parent (gp,xdev) ((gp)->dev.parent = (xdev)) -#define gameport_set_port_data (gp,r) ((gp)->port_data = (r)) -#define gameport_get_port_data (gp) (gp)->port_data -#endif -/* PCI quirk list helper */ struct snd_pci_quirk {unsigned short subvendor;/* PCI subvendor ID */
sound/isa/cmi8328.c +2 -47
94 lines not on this page · raw message
sound/isa/sc6000.c +2 -7
@@ -56,7 +56,6 @@ static long mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;/* 0x300, 0x310, 0x320, 0x330 */ static int mpu_irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;/* 5, 7, 9, 10, 0 */ static int dma[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;/* 0, 1, 3 */ -static bool joystick[SNDRV_CARDS ] = { [0 ... (SNDRV_CARDS -1 )] = false };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for sc-6000 based soundcard." );
@@ -76,8 +75,6 @@ module_param_array(mpu_irq, int, NULL, 0444);MODULE_PARM_DESC (mpu_irq,"MPU-401 IRQ # for sc-6000 driver." );module_param_array (dma, int,NULL ,0444 );MODULE_PARM_DESC (dma,"DMA # for sc-6000 driver." ); -module_param_array (joystick, bool,NULL ,0444 ); -MODULE_PARM_DESC (joystick,"Enable gameport." );/* * Commands of SC6000's DSP (SBPRO+special).
@@ -366,7 +363,7 @@ static int sc6000_init_mss(char __iomem *vport, int config,static void sc6000_hw_cfg_encode (char __iomem *vport,int *cfg,long xport,long xmpu, -long xmss_port,int joystick) +long xmss_port) { cfg[0 ] =0 ; cfg[1 ] =0 ;
@@ -379,8 +376,6 @@ static void sc6000_hw_cfg_encode(char __iomem *vport, int *cfg,if (xmss_port ==0xe80 ) cfg[0 ] |=0x10 ; cfg[0 ] |=0x40 ;/* always set */ -if (!joystick) - cfg[0 ] |=0x02 ; cfg[1 ] |=0x80 ;/* enable WSS system */ cfg[1 ] &= ~0x40 ;/* disable IDE */ snd_printd ("hw cfg %x, %x\n" , cfg[0 ], cfg[1 ]);
@@ -432,7 +427,7 @@ static int sc6000_init_board(char __iomem *vport,if (!old) {int cfg[2 ];sc6000_hw_cfg_encode (vport, &cfg[0 ], port[dev], mpu_port[dev], - mss_port[dev], joystick[dev]); + mss_port[dev]);if (sc6000_hw_cfg_write (vport, cfg) <0 ) {snd_printk (KERN_ERR "sc6000_hw_cfg_write: failed!\n" );return -EIO ;
sound/isa/sscape.c +0 -6
@@ -54,7 +54,6 @@ static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;static int mpu_irq[SNDRV_CARDS ] =SNDRV_DEFAULT_IRQ ;static int dma[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ;static int dma2[SNDRV_CARDS ] =SNDRV_DEFAULT_DMA ; -static bool joystick[SNDRV_CARDS ];module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index number for SoundScape soundcard" );
@@ -80,9 +79,6 @@ MODULE_PARM_DESC(dma, "DMA # for SoundScape driver.");module_param_array (dma2, int,NULL ,0444 );MODULE_PARM_DESC (dma2,"DMA2 # for SoundScape driver." ); -module_param_array (joystick, bool,NULL ,0444 ); -MODULE_PARM_DESC (joystick,"Enable gameport." ); -#ifdef CONFIG_PNP static int isa_registered;static int pnp_registered;
@@ -1049,8 +1045,6 @@ static int create_sscape(int dev, struct snd_card *card) mpu_irq_cfg |= mpu_irq_cfg <<2 ; val =sscape_read_unsafe (sscape->io_base,GA_HMCTL_REG ) &0xF7 ; -if (joystick[dev]) - val |=8 ;sscape_write_unsafe (sscape->io_base,GA_HMCTL_REG , val |0x10 );sscape_write_unsafe (sscape->io_base,GA_INTCFG_REG ,0xf0 | mpu_irq_cfg); sscape_write_unsafe(sscape->io_base,
sound/pci/als4000.c +0 -89
140 lines not on this page · raw message
sound/pci/au88x0/au8810.c +0 -1
@@ -9,7 +9,6 @@ static DEFINE_PCI_DEVICE_TABLE(snd_vortex_ids) = {#include "au88x0_pcm.c" #include "au88x0_mixer.c" #include "au88x0_mpu401.c" -#include "au88x0_game.c" #include "au88x0_eq.c" #include "au88x0_a3d.c" #include "au88x0_xtalk.c"
sound/pci/au88x0/au88x0.c +0 -5
@@ -123,7 +123,6 @@ static int snd_vortex_dev_free(struct snd_device *device) {vortex_t *vortex = device->device_data; -vortex_gameport_unregister (vortex);vortex_core_shutdown (vortex);// Take down PCI interface. free_irq (vortex->irq, vortex);
@@ -225,8 +224,6 @@ snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip)pci_release_regions (chip->pci_dev); regions_out:pci_disable_device (chip->pci_dev); -//FIXME: this not the right place to unregister the gameport -vortex_gameport_unregister (chip);kfree (chip);return err; }
@@ -309,8 +306,6 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)return err; } -vortex_gameport_register (chip); -#if 0 if (snd_seq_device_new (card,1 ,SNDRV_SEQ_DEV_ID_VORTEX_SYNTH , sizeof(snd_vortex_synth_arg_t), &wave) < 0
sound/pci/au88x0/au88x0.h +0 -5
@@ -180,9 +180,6 @@ struct snd_vortex {int isquad;/* cache of extended ID codec flag. */ -/* Gameport stuff. */ -struct gameport *gameport; -/* PCI hardware resources */ unsigned long io;void __iomem *mmio;
@@ -282,8 +279,6 @@ static void vortex_Vort3D_InitializeSource(a3dsrc_t * a, int en);#endif /* Driver stuff. */ -static int vortex_gameport_register (vortex_t * card); -static void vortex_gameport_unregister (vortex_t * card);#ifndef CHIP_AU8820 static int vortex_eq_init (vortex_t * vortex);static int vortex_eq_free (vortex_t * vortex);
sound/pci/au88x0/au88x0_game.c deleted +0 -133
133 lines not on this page · raw message
sound/pci/azt3328.c +1 -237
286 lines not on this page · raw message
sound/pci/cmipci.c +1 -83
132 lines not on this page · raw message
sound/pci/cs4281.c +0 -114
140 lines not on this page · raw message
sound/pci/cs46xx/cs46xx.c +0 -2
@@ -136,8 +136,6 @@ static int snd_card_cs46xx_probe(struct pci_dev *pci, } -snd_cs46xx_gameport (chip); -strcpy (card->driver,"CS46xx" );strcpy (card->shortname,"Sound Fusion CS46xx" ); sprintf(card->longname, "%s at 0x%lx/0x%lx, irq %i",
sound/pci/cs46xx/cs46xx.h +0 -4
@@ -1706,8 +1706,6 @@ struct snd_cs46xx {int accept_valid;/* accept mmap valid (for OSS) */ int in_suspend; -struct gameport *gameport; -#ifdef CONFIG_SND_CS46XX_NEW_DSP struct mutex spos_mutex;
@@ -1744,6 +1742,4 @@ int snd_cs46xx_pcm_center_lfe(struct snd_cs46xx *chip, int device, struct snd_pcint snd_cs46xx_mixer (struct snd_cs46xx *chip,int spdif_device);int snd_cs46xx_midi (struct snd_cs46xx *chip,int device,struct snd_rawmidi **rmidi);int snd_cs46xx_start_dsp (struct snd_cs46xx *chip); -int snd_cs46xx_gameport (struct snd_cs46xx *chip); -#endif /* __SOUND_CS46XX_H */
sound/pci/cs46xx/cs46xx_lib.c +0 -105
123 lines not on this page · raw message
sound/pci/ens1370.c +0 -129
174 lines not on this page · raw message
sound/pci/es1938.c +0 -46
82 lines not on this page · raw message
sound/pci/es1968.c +0 -72
120 lines not on this page · raw message
sound/pci/riptide/riptide.c +2 -107
161 lines not on this page · raw message
sound/pci/sonicvibes.c +0 -55
87 lines not on this page · raw message
sound/pci/trident/trident.c +0 -2
@@ -156,8 +156,6 @@ static int snd_trident_probe(struct pci_dev *pci,return err; } -snd_trident_create_gameport (trident); -if ((err =snd_card_register (card)) <0 ) {snd_card_free (card);return err;
sound/pci/trident/trident.h +0 -3
@@ -408,8 +408,6 @@ struct snd_trident {struct snd_kcontrol *ctl_cvol;/* center volume */ spinlock_t reg_lock; - -struct gameport *gameport; }; int snd_trident_create(struct snd_card *card,
@@ -418,7 +416,6 @@ int snd_trident_create(struct snd_card *card,int pcm_spdif_device, int max_wavetable_size, struct snd_trident ** rtrident); -int snd_trident_create_gameport (struct snd_trident *trident);int snd_trident_pcm (struct snd_trident * trident,int device,struct snd_pcm **rpcm);int snd_trident_foldback_pcm (struct snd_trident * trident,int device,struct snd_pcm **rpcm);
sound/pci/trident/trident_main.c +0 -103
121 lines not on this page · raw message
sound/pci/via82xx.c +0 -77
122 lines not on this page · raw message
sound/pci/ymfpci/ymfpci.c +0 -99
117 lines not on this page · raw message
sound/pci/ymfpci/ymfpci.h +0 -9
@@ -26,7 +26,6 @@#include <sound/rawmidi.h> #include <sound/ac97_codec.h> #include <sound/timer.h> -#include <linux/gameport.h> /* * Direct registers
@@ -176,10 +175,6 @@#define YMFPCI_LEGACY2_IMOD (1 << 15)/* legacy IRQ mode */ /* SIEN:IMOD 0:0 = legacy irq, 0:1 = INTA, 1:0 = serialized IRQ */ -#if defined(CONFIG_GAMEPORT ) || (defined(MODULE ) && defined(CONFIG_GAMEPORT_MODULE )) -#define SUPPORT_JOYSTICK -#endif -/* * */
@@ -295,9 +290,6 @@ struct snd_ymfpci {struct resource *mpu_res;unsigned short old_legacy_ctrl; -#ifdef SUPPORT_JOYSTICK -struct gameport *gameport; -#endif struct snd_dma_buffer work_ptr;
@@ -375,7 +367,6 @@ int snd_ymfpci_create(struct snd_card *card,struct pci_dev *pci, unsigned short old_legacy_ctrl, struct snd_ymfpci ** rcodec); -void snd_ymfpci_free_gameport (struct snd_ymfpci *chip);extern const struct dev_pm_ops snd_ymfpci_pm;
sound/pci/ymfpci/ymfpci_main.c +0 -1
@@ -2271,7 +2271,6 @@ static int snd_ymfpci_free(struct snd_ymfpci *chip)free_irq (chip->irq, chip);release_and_free_resource (chip->mpu_res);release_and_free_resource (chip->fm_res); -snd_ymfpci_free_gameport (chip);if (chip->reg_area_virt)iounmap (chip->reg_area_virt);if (chip->work_ptr.area)
Signature · 1 line
2.1.0.rc2.206.gedb03e5
Quoted 2 lines · Dmitry Torokhov
Gameport support hasn't been working well ever since cpufreq became mainstream
Back in the gameport-mainstream days, we did not have a usable high- resolution timer API. But why can't we use something like getrawmonotonic() now? (Yes, I'm volunteering ...)
Quoted 2 lines
and it becomes increasingly hard to find hardware and software that would run on such old hardware.
I have two such sound cards, and a joystick.
Regards,
Clemens