254 |
snd_kcontrol_t *master_mute; |
snd_kcontrol_t *master_mute; |
255 |
snd_kcontrol_t *master_volume; |
snd_kcontrol_t *master_volume; |
256 |
|
|
257 |
#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE) |
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) |
258 |
struct gameport gameport; |
struct gameport gameport; |
259 |
#endif |
#endif |
260 |
}; |
}; |
1189 |
|
|
1190 |
static int snd_sonicvibes_free(sonicvibes_t *sonic) |
static int snd_sonicvibes_free(sonicvibes_t *sonic) |
1191 |
{ |
{ |
1192 |
#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE) |
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) |
1193 |
if (sonic->gameport.io) |
if (sonic->gameport.io) |
1194 |
gameport_unregister_port(&sonic->gameport); |
gameport_unregister_port(&sonic->gameport); |
1195 |
#endif |
#endif |
1493 |
snd_card_free(card); |
snd_card_free(card); |
1494 |
return err; |
return err; |
1495 |
} |
} |
1496 |
#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE) |
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) |
1497 |
sonic->gameport.io = sonic->game_port; |
sonic->gameport.io = sonic->game_port; |
1498 |
gameport_register_port(&sonic->gameport); |
gameport_register_port(&sonic->gameport); |
1499 |
#endif |
#endif |