diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-04-09 03:16:33 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:32 -0400 |
commit | 1d98c7d4be6ac521e3391025ddffcfe0400c798c (patch) | |
tree | baa410a35f6ef8b275cdb40aa56811f5fccf74a5 /sound/pci/oxygen/hifier.c | |
parent | 11864b4b84194b459fc20e0ec47906885bddb12e (diff) |
[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 <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen/hifier.c')
-rw-r--r-- | sound/pci/oxygen/hifier.c | 5 |
1 files changed, 0 insertions, 5 deletions
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) | |||
132 | template->tlv.p = ak4396_db_scale; | 132 | template->tlv.p = ak4396_db_scale; |
133 | } else if (!strcmp(template->name, "Stereo Upmixing")) { | 133 | } else if (!strcmp(template->name, "Stereo Upmixing")) { |
134 | return 1; /* stereo only - we don't need upmixing */ | 134 | return 1; /* stereo only - we don't need upmixing */ |
135 | } else if (!strcmp(template->name, | ||
136 | SNDRV_CTL_NAME_IEC958("", CAPTURE, MASK)) || | ||
137 | !strcmp(template->name, | ||
138 | SNDRV_CTL_NAME_IEC958("", CAPTURE, DEFAULT))) { | ||
139 | return 1; /* no digital input */ | ||
140 | } | 135 | } |
141 | return 0; | 136 | return 0; |
142 | } | 137 | } |