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>
Este cometimento está contido em:
@@ -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,
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador