Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 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/include/sound/opl3.h

    r598 r679  
     1/* SPDX-License-Identifier: GPL-2.0-or-later */
    12#ifndef __SOUND_OPL3_H
    23#define __SOUND_OPL3_H
     
    78 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>,
    89 *                  Hannu Savolainen 1993-1996
    9  *
    1010 *
    1111 *      The OPL-3 mode is switched on by writing 0x01, to the offset 5
     
    3434 *      register of the voice (0xC0-0xC8). In 4 OP voices these bits are
    3535 *      in the second half of the voice.
    36  *
    37  *
    38  *   This program is free software; you can redistribute it and/or modify
    39  *   it under the terms of the GNU General Public License as published by
    40  *   the Free Software Foundation; either version 2 of the License, or
    41  *   (at your option) any later version.
    42  *
    43  *   This program is distributed in the hope that it will be useful,
    44  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    45  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    46  *   GNU General Public License for more details.
    47  *
    48  *   You should have received a copy of the GNU General Public License
    49  *   along with this program; if not, write to the Free Software
    50  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    51  *
    5236 */
    5337
     
    5640#include <sound/timer.h>
    5741#include <sound/seq_midi_emul.h>
    58 #ifdef CONFIG_SND_SEQUENCER_OSS
    5942#include <sound/seq_oss.h>
    6043#include <sound/seq_oss_legacy.h>
    61 #endif
    6244#include <sound/seq_device.h>
    6345#include <sound/asound_fm.h>
     
    330312        unsigned char rhythm;           /* percussion mode flag */
    331313        unsigned char max_voices;       /* max number of voices */
    332 #if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
     314#if IS_ENABLED(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER)
    333315#define SNDRV_OPL3_MODE_SYNTH 0         /* OSS - voices allocated by application */
    334316#define SNDRV_OPL3_MODE_SEQ 1           /* ALSA - driver handles voice allocation */
     
    339321        struct snd_midi_channel_set * chset;
    340322
    341 #ifdef CONFIG_SND_SEQUENCER_OSS
     323#if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) || defined(CONFIG_SND_SEQUENCER)
    342324        struct snd_seq_device *oss_seq_dev;     /* OSS sequencer device */
    343325        struct snd_midi_channel_set * oss_chset;
     
    383365void snd_opl3_reset(struct snd_opl3 * opl3);
    384366
    385 #if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
     367#if IS_ENABLED(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER)
    386368long snd_opl3_write(struct snd_hwdep *hw, const char __user *buf, long count,
    387369                    loff_t *offset);
Note: See TracChangeset for help on using the changeset viewer.