From 1d98c7d4be6ac521e3391025ddffcfe0400c798c Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Wed, 9 Apr 2008 09:16:33 +0200 Subject: [ALSA] oxygen: use SPDIF input only if present If the card model does not have a digital input or an AC97 codec, disable the respective interrupt and mixer controls. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai --- sound/pci/oxygen/hifier.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sound/pci/oxygen/hifier.c') diff --git a/sound/pci/oxygen/hifier.c b/sound/pci/oxygen/hifier.c index 1e54a3cd721e..50551ae0b3b4 100644 --- a/sound/pci/oxygen/hifier.c +++ b/sound/pci/oxygen/hifier.c @@ -132,11 +132,6 @@ static int hifier_control_filter(struct snd_kcontrol_new *template) template->tlv.p = ak4396_db_scale; } else if (!strcmp(template->name, "Stereo Upmixing")) { return 1; /* stereo only - we don't need upmixing */ - } else if (!strcmp(template->name, - SNDRV_CTL_NAME_IEC958("", CAPTURE, MASK)) || - !strcmp(template->name, - SNDRV_CTL_NAME_IEC958("", CAPTURE, DEFAULT))) { - return 1; /* no digital input */ } return 0; } -- cgit v1.2.1