aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-04-18 03:59:28 -0400
committerTakashi Iwai <tiwai@suse.de>2013-04-18 03:59:28 -0400
commitd5657ec9f4ad048873f2682d8945905b29938f57 (patch)
treefc13980f4233652a58fedd7525e23bdaa23773f7 /sound/pci
parent6134b1a25b684cc105c78631255eb33b36223c5c (diff)
ALSA: hda - Disable the sanity check in snd_hda_add_pincfg()
When pin default configs are overridden via patch option, these are evaluated before fixups are applied. Since some fixups change the whole codec trees and/or add pins dynamically, this sanity check might not pass when pins aren't present at the time the function is called. We may reorder the execution, but an easier fix is simply to disable this sanity check. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_codec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 3603cbe2d40e..6f9b64700f6e 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1065,8 +1065,14 @@ int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list,
1065{ 1065{
1066 struct hda_pincfg *pin; 1066 struct hda_pincfg *pin;
1067 1067
1068 /* the check below may be invalid when pins are added by a fixup
1069 * dynamically (e.g. via snd_hda_codec_update_widgets()), so disabled
1070 * for now
1071 */
1072 /*
1068 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) 1073 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN)
1069 return -EINVAL; 1074 return -EINVAL;
1075 */
1070 1076
1071 pin = look_up_pincfg(codec, list, nid); 1077 pin = look_up_pincfg(codec, list, nid);
1072 if (!pin) { 1078 if (!pin) {