Changeset 679 for GPL/trunk/alsa-kernel/synth/emux/emux.c
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (5 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
alsa-kernel/synth/emux/emux.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/synth/emux/emux.c
r399 r679 1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * Copyright (C) 2000 Takashi Iwai <tiwai@suse.de> 3 4 * 4 5 * Routines for control of EMU WaveTable chip 5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by8 * the Free Software Foundation; either version 2 of the License, or9 * (at your option) any later version.10 *11 * This program is distributed in the hope that it will be useful,12 * but WITHOUT ANY WARRANTY; without even the implied warranty of13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14 * GNU General Public License for more details.15 *16 * You should have received a copy of the GNU General Public License17 * along with this program; if not, write to the Free Software18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19 6 */ 20 7 … … 25 12 #include <sound/emux_synth.h> 26 13 #include <linux/init.h> 14 #include <linux/module.h> 27 15 #include "emux_voice.h" 28 16 … … 47 35 48 36 emu->client = -1; 49 #if def CONFIG_SND_SEQUENCER_OSS37 #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) 50 38 emu->oss_synth = NULL; 51 39 #endif … … 53 41 emu->use_time = 0; 54 42 43 #ifndef TARGET_OS2 44 timer_setup(&emu->tlist, snd_emux_timer_callback, 0); 45 #else 55 46 init_timer(&emu->tlist); 56 emu->tlist.function = snd_emux_timer_callback;47 emu->tlist.function = (void(*)(unsigned long))snd_emux_timer_callback; 57 48 emu->tlist.data = (unsigned long)emu; 49 #endif 58 50 emu->timer_active = 0; 59 51 … … 125 117 126 118 snd_emux_init_seq(emu, card, index); 127 #if def CONFIG_SND_SEQUENCER_OSS119 #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) 128 120 snd_emux_init_seq_oss(emu); 129 121 #endif 130 122 snd_emux_init_virmidi(emu, card); 131 123 132 #ifdef CONFIG_PROC_FS133 124 snd_emux_proc_init(emu, card, index); 134 #endif135 125 return 0; 136 126 } … … 152 142 spin_unlock_irqrestore(&emu->voice_lock, flags); 153 143 154 #ifdef CONFIG_PROC_FS155 144 snd_emux_proc_free(emu); 156 #endif157 145 snd_emux_delete_virmidi(emu); 158 #if def CONFIG_SND_SEQUENCER_OSS146 #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) 159 147 snd_emux_detach_seq_oss(emu); 160 148 #endif 161 149 snd_emux_detach_seq(emu); 162 163 150 snd_emux_delete_hwdep(emu); 164 165 if (emu->sflist) 166 snd_sf_free(emu->sflist); 167 151 snd_sf_free(emu->sflist); 168 152 kfree(emu->voices); 169 153 kfree(emu->name); … … 173 157 174 158 EXPORT_SYMBOL(snd_emux_free); 175 176 177 /*178 * INIT part179 */180 181 static int __init alsa_emux_init(void)182 {183 return 0;184 }185 186 static void __exit alsa_emux_exit(void)187 {188 }189 190 module_init(alsa_emux_init)191 module_exit(alsa_emux_exit)
Note:
See TracChangeset
for help on using the changeset viewer.
