summaryrefslogtreecommitdiffstats
path: root/include/sound/opl3.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-05-12 11:44:03 +0200
committerTakashi Iwai <tiwai@suse.de>2017-05-17 07:13:04 +0200
commit6d2412b80aabf5d77400fbb960ee041475df86aa (patch)
treec9a110ab8f92b4edc87426eec6238b5297bfe1f2 /include/sound/opl3.h
parent58f30d650c7f5275d4d57e62862970e1078af462 (diff)
downloadtalos-obmc-linux-6d2412b80aabf5d77400fbb960ee041475df86aa.tar.gz
talos-obmc-linux-6d2412b80aabf5d77400fbb960ee041475df86aa.zip
ALSA: Use IS_ENABLED() in common headers
Simplify the ifdef conditions with IS_ENABLED() macro in the common sound headers. No functional changes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/opl3.h')
-rw-r--r--include/sound/opl3.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/opl3.h b/include/sound/opl3.h
index 6ba670707831..5a87641c6ae4 100644
--- a/include/sound/opl3.h
+++ b/include/sound/opl3.h
@@ -321,7 +321,7 @@ struct snd_opl3 {
unsigned char fm_mode; /* OPL mode, see SNDRV_DM_FM_MODE_XXX */
unsigned char rhythm; /* percussion mode flag */
unsigned char max_voices; /* max number of voices */
-#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
+#if IS_ENABLED(CONFIG_SND_SEQUENCER)
#define SNDRV_OPL3_MODE_SYNTH 0 /* OSS - voices allocated by application */
#define SNDRV_OPL3_MODE_SEQ 1 /* ALSA - driver handles voice allocation */
int synth_mode; /* synth mode */
@@ -374,7 +374,7 @@ int snd_opl3_release(struct snd_hwdep * hw, struct file *file);
void snd_opl3_reset(struct snd_opl3 * opl3);
-#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
+#if IS_ENABLED(CONFIG_SND_SEQUENCER)
long snd_opl3_write(struct snd_hwdep *hw, const char __user *buf, long count,
loff_t *offset);
int snd_opl3_load_patch(struct snd_opl3 *opl3,
OpenPOWER on IntegriCloud