From: Oswald Buddenhagen Date: Wed, 10 May 2023 17:37:22 +0000 (+0200) Subject: ALSA: emu10k1: don't create regular S/PDIF controls for E-MU cards X-Git-Tag: v6.6.7~2394^2~16^2~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8661af513040ed522e27d0e5339b3f757c1a351;p=platform%2Fkernel%2Flinux-starfive.git ALSA: emu10k1: don't create regular S/PDIF controls for E-MU cards These ports are unused on these cards. Signed-off-by: Oswald Buddenhagen Link: https://lore.kernel.org/r/20230510173722.3072439-1-oswald.buddenhagen@gmx.de Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/emu10k1/emumixer.c b/sound/pci/emu10k1/emumixer.c index 610700b..48f0d3f 100644 --- a/sound/pci/emu10k1/emumixer.c +++ b/sound/pci/emu10k1/emumixer.c @@ -2055,7 +2055,7 @@ int snd_emu10k1_mixer(struct snd_emu10k1 *emu, mix->attn[0] = 0xffff; } - if (! emu->card_capabilities->ecard) { /* FIXME: APS has these controls? */ + if (!emu->card_capabilities->ecard && !emu->card_capabilities->emu_model) { /* sb live! and audigy */ kctl = snd_ctl_new1(&snd_emu10k1_spdif_mask_control, emu); if (!kctl)