Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0af56de authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: sb: Use IS_REACHABLE()



Replace the complex ifdef conditions with IS_REACHABLE() macro.
No functional changes.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2e2d4cb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1138,7 +1138,7 @@ snd_emu8000_new(struct snd_card *card, int index, long port, int seq_ports,
		snd_emu8000_free(hw);
		return err;
	}
#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE))
#if IS_REACHABLE(CONFIG_SND_SEQUENCER)
	if (snd_seq_device_new(card, index, SNDRV_SEQ_DEV_ID_EMU8000,
			       sizeof(struct snd_emu8000*), &awe) >= 0) {
		strcpy(awe->name, "EMU-8000");
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labs,SB AWE 32},"
#define SNDRV_DEBUG_IRQ
#endif

#if defined(SNDRV_SBAWE) && (defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)))
#if defined(SNDRV_SBAWE) && IS_REACHABLE(CONFIG_SND_SEQUENCER)
#define SNDRV_SBAWE_EMU8000
#endif