Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (5 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/synth/emux/emux.c

    r399 r679  
     1// SPDX-License-Identifier: GPL-2.0-or-later
    12/*
    23 *  Copyright (C) 2000 Takashi Iwai <tiwai@suse.de>
    34 *
    45 *  Routines for control of EMU WaveTable chip
    5  *
    6  *   This program is free software; you can redistribute it and/or modify
    7  *   it under the terms of the GNU General Public License as published by
    8  *   the Free Software Foundation; either version 2 of the License, or
    9  *   (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 of
    13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  *   GNU General Public License for more details.
    15  *
    16  *   You should have received a copy of the GNU General Public License
    17  *   along with this program; if not, write to the Free Software
    18  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    196 */
    207
     
    2512#include <sound/emux_synth.h>
    2613#include <linux/init.h>
     14#include <linux/module.h>
    2715#include "emux_voice.h"
    2816
     
    4735
    4836        emu->client = -1;
    49 #ifdef CONFIG_SND_SEQUENCER_OSS
     37#if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS)
    5038        emu->oss_synth = NULL;
    5139#endif
     
    5341        emu->use_time = 0;
    5442
     43#ifndef TARGET_OS2
     44        timer_setup(&emu->tlist, snd_emux_timer_callback, 0);
     45#else
    5546        init_timer(&emu->tlist);
    56         emu->tlist.function = snd_emux_timer_callback;
     47        emu->tlist.function = (void(*)(unsigned long))snd_emux_timer_callback;
    5748        emu->tlist.data = (unsigned long)emu;
     49#endif
    5850        emu->timer_active = 0;
    5951
     
    125117
    126118        snd_emux_init_seq(emu, card, index);
    127 #ifdef CONFIG_SND_SEQUENCER_OSS
     119#if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS)
    128120        snd_emux_init_seq_oss(emu);
    129121#endif
    130122        snd_emux_init_virmidi(emu, card);
    131123
    132 #ifdef CONFIG_PROC_FS
    133124        snd_emux_proc_init(emu, card, index);
    134 #endif
    135125        return 0;
    136126}
     
    152142        spin_unlock_irqrestore(&emu->voice_lock, flags);
    153143
    154 #ifdef CONFIG_PROC_FS
    155144        snd_emux_proc_free(emu);
    156 #endif
    157145        snd_emux_delete_virmidi(emu);
    158 #ifdef CONFIG_SND_SEQUENCER_OSS
     146#if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS)
    159147        snd_emux_detach_seq_oss(emu);
    160148#endif
    161149        snd_emux_detach_seq(emu);
    162 
    163150        snd_emux_delete_hwdep(emu);
    164 
    165         if (emu->sflist)
    166                 snd_sf_free(emu->sflist);
    167 
     151        snd_sf_free(emu->sflist);
    168152        kfree(emu->voices);
    169153        kfree(emu->name);
     
    173157
    174158EXPORT_SYMBOL(snd_emux_free);
    175 
    176 
    177 /*
    178  *  INIT part
    179  */
    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.