Changeset 250 for GPL/branches/alsa-resync1/alsa-kernel/pci/cs4281.c
- Timestamp:
- Aug 27, 2007, 7:41:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/pci/cs4281.c
r212 r250 27 27 #include <linux/pci.h> 28 28 #include <linux/slab.h> 29 #ifndef TARGET_OS2 //TODO: Implement linux/gameport.h 30 #include <linux/gameport.h> 31 #endif /* TARGET_OS2 */ 29 32 #include <sound/core.h> 30 33 #include <sound/control.h> … … 36 39 #include <sound/initval.h> 37 40 38 #ifndef LINUX_2_239 #include <linux/gameport.h>40 #endif41 41 42 42 MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); … … 1247 1247 */ 1248 1248 1249 #if ndef LINUX_2_21249 #if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) 1250 1250 1251 1251 typedef struct snd_cs4281_gameport { … … 1342 1342 static int snd_cs4281_free(cs4281_t *chip) 1343 1343 { 1344 #if ndef LINUX_2_21344 #if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) 1345 1345 if (chip->gameport) { 1346 1346 gameport_unregister_port(&chip->gameport->info); … … 1730 1730 chip->uartm |= CS4281_MODE_OUTPUT; 1731 1731 chip->midcr |= BA0_MIDCR_TXE; 1732 chip->midi_input = substream;1732 chip->midi_output = substream; 1733 1733 if (!(chip->uartm & CS4281_MODE_INPUT)) { 1734 1734 snd_cs4281_midi_reset(chip); … … 1913 1913 /* EOI to the PCI part... reenables interrupts */ 1914 1914 snd_cs4281_pokeBA0(chip, BA0_HICR, BA0_HICR_EOI); 1915 1915 1916 return IRQ_HANDLED; 1916 1917 … … 1991 1992 return err; 1992 1993 } 1993 #ifndef LINUX_2_21994 #ifndef TARGET_OS2 1994 1995 snd_cs4281_gameport(chip); 1995 #endif 1996 #endif /* !TARGET_OS2 */ 1996 1997 strcpy(card->driver, "CS4281"); 1997 1998 strcpy(card->shortname, "Cirrus Logic CS4281");
Note:
See TracChangeset
for help on using the changeset viewer.