aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/pci/emu10k1/emumixer.c
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>2023-05-10 19:37:22 +0200
committerTakashi Iwai <tiwai@suse.de>2023-05-12 08:58:41 +0200
commita8661af513040ed522e27d0e5339b3f757c1a351 (patch)
tree17b548924e5d6d34af39333a73d4f2a7a0255dde /sound/pci/emu10k1/emumixer.c
parentALSA: uapi: pcm: control the filling of the silence samples for drain (diff)
downloadwireguard-linux-a8661af513040ed522e27d0e5339b3f757c1a351.tar.xz
wireguard-linux-a8661af513040ed522e27d0e5339b3f757c1a351.zip
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 <oswald.buddenhagen@gmx.de> Link: https://lore.kernel.org/r/20230510173722.3072439-1-oswald.buddenhagen@gmx.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1/emumixer.c')
-rw-r--r--sound/pci/emu10k1/emumixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/emumixer.c b/sound/pci/emu10k1/emumixer.c
index 610700be1e37..48f0d3f8b8e7 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)