chip.c (424f0750edd5af866f80f5e65998e0610503cb5c) | chip.c (a67ff6a54095e27093ea501fb143fefe51a536c2) |
---|---|
1/* 2 * Linux driver for TerraTec DMX 6Fire USB 3 * 4 * Main routines and module definitions. 5 * 6 * Author: Torsten Schenk <torsten.schenk@zoho.com> 7 * Created: Jan 01, 2011 8 * Version: 0.3.0 --- 21 unchanged lines hidden (view full) --- 30 31MODULE_AUTHOR("Torsten Schenk <torsten.schenk@zoho.com>"); 32MODULE_DESCRIPTION("TerraTec DMX 6Fire USB audio driver, version 0.3.0"); 33MODULE_LICENSE("GPL v2"); 34MODULE_SUPPORTED_DEVICE("{{TerraTec, DMX 6Fire USB}}"); 35 36static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ 37static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for card */ | 1/* 2 * Linux driver for TerraTec DMX 6Fire USB 3 * 4 * Main routines and module definitions. 5 * 6 * Author: Torsten Schenk <torsten.schenk@zoho.com> 7 * Created: Jan 01, 2011 8 * Version: 0.3.0 --- 21 unchanged lines hidden (view full) --- 30 31MODULE_AUTHOR("Torsten Schenk <torsten.schenk@zoho.com>"); 32MODULE_DESCRIPTION("TerraTec DMX 6Fire USB audio driver, version 0.3.0"); 33MODULE_LICENSE("GPL v2"); 34MODULE_SUPPORTED_DEVICE("{{TerraTec, DMX 6Fire USB}}"); 35 36static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ 37static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for card */ |
38static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable card */ | 38static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable card */ |
39static struct sfire_chip *chips[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; 40static struct usb_device *devices[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; 41 42module_param_array(index, int, NULL, 0444); 43MODULE_PARM_DESC(index, "Index value for the 6fire sound device"); 44module_param_array(id, charp, NULL, 0444); 45MODULE_PARM_DESC(id, "ID string for the 6fire sound device."); 46module_param_array(enable, bool, NULL, 0444); --- 159 unchanged lines hidden (view full) --- 206 .idVendor = 0x0ccd, 207 .idProduct = 0x0080 208 }, 209 {} 210}; 211 212MODULE_DEVICE_TABLE(usb, device_table); 213 | 39static struct sfire_chip *chips[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; 40static struct usb_device *devices[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; 41 42module_param_array(index, int, NULL, 0444); 43MODULE_PARM_DESC(index, "Index value for the 6fire sound device"); 44module_param_array(id, charp, NULL, 0444); 45MODULE_PARM_DESC(id, "ID string for the 6fire sound device."); 46module_param_array(enable, bool, NULL, 0444); --- 159 unchanged lines hidden (view full) --- 206 .idVendor = 0x0ccd, 207 .idProduct = 0x0080 208 }, 209 {} 210}; 211 212MODULE_DEVICE_TABLE(usb, device_table); 213 |
214static struct usb_driver usb_driver = { | 214static struct usb_driver driver = { |
215 .name = "snd-usb-6fire", 216 .probe = usb6fire_chip_probe, 217 .disconnect = usb6fire_chip_disconnect, 218 .id_table = device_table, 219}; 220 | 215 .name = "snd-usb-6fire", 216 .probe = usb6fire_chip_probe, 217 .disconnect = usb6fire_chip_disconnect, 218 .id_table = device_table, 219}; 220 |
221module_usb_driver(usb_driver); | 221static int __init usb6fire_chip_init(void) 222{ 223 return usb_register(&driver); 224} 225 226static void __exit usb6fire_chip_cleanup(void) 227{ 228 usb_deregister(&driver); 229} 230 231module_init(usb6fire_chip_init); 232module_exit(usb6fire_chip_cleanup); |