[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>
This commit is contained in:
committed by
Takashi Iwai
parent
11864b4b84
commit
1d98c7d4be
@@ -506,11 +506,6 @@ static int xonar_dx_control_filter(struct snd_kcontrol_new *template)
|
||||
template->tlv.p = cs4362a_db_scale;
|
||||
} else if (!strncmp(template->name, "CD Capture ", 11)) {
|
||||
return 1; /* no CD input */
|
||||
} 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user