提交 4f7946ec 编写于 作者: D David Henningsson 提交者: Takashi Iwai

ALSA: hda - Debug output which type of fixup was selected

Our fixup system is becoming increasingly complex, so it's becoming
time consuming to figure out which way the fix was applied.
This patch adds a few debug prints to aid when debugging why a specific
fixup was selected.
Signed-off-by: NDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 322b8af1
...@@ -920,6 +920,8 @@ void snd_hda_pick_pin_fixup(struct hda_codec *codec, ...@@ -920,6 +920,8 @@ void snd_hda_pick_pin_fixup(struct hda_codec *codec,
codec->fixup_id = pq->value; codec->fixup_id = pq->value;
#ifdef CONFIG_SND_DEBUG_VERBOSE #ifdef CONFIG_SND_DEBUG_VERBOSE
codec->fixup_name = pq->name; codec->fixup_name = pq->name;
codec_dbg(codec, "%s: picked fixup %s (pin match)\n",
codec->chip_name, codec->fixup_name);
#endif #endif
codec->fixup_list = fixlist; codec->fixup_list = fixlist;
return; return;
...@@ -960,6 +962,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec, ...@@ -960,6 +962,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
codec->fixup_list = NULL; codec->fixup_list = NULL;
codec->fixup_name = NULL; codec->fixup_name = NULL;
codec->fixup_id = HDA_FIXUP_ID_NO_FIXUP; codec->fixup_id = HDA_FIXUP_ID_NO_FIXUP;
codec_dbg(codec, "%s: picked no fixup (nofixup specified)\n",
codec->chip_name);
return; return;
} }
...@@ -969,6 +973,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec, ...@@ -969,6 +973,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
codec->fixup_id = models->id; codec->fixup_id = models->id;
codec->fixup_name = models->name; codec->fixup_name = models->name;
codec->fixup_list = fixlist; codec->fixup_list = fixlist;
codec_dbg(codec, "%s: picked fixup %s (model specified)\n",
codec->chip_name, codec->fixup_name);
return; return;
} }
models++; models++;
...@@ -980,6 +986,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec, ...@@ -980,6 +986,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
id = q->value; id = q->value;
#ifdef CONFIG_SND_DEBUG_VERBOSE #ifdef CONFIG_SND_DEBUG_VERBOSE
name = q->name; name = q->name;
codec_dbg(codec, "%s: picked fixup %s (PCI SSID%s)\n",
codec->chip_name, name, q->subdevice_mask ? "" : " - vendor generic");
#endif #endif
} }
} }
...@@ -992,6 +1000,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec, ...@@ -992,6 +1000,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
id = q->value; id = q->value;
#ifdef CONFIG_SND_DEBUG_VERBOSE #ifdef CONFIG_SND_DEBUG_VERBOSE
name = q->name; name = q->name;
codec_dbg(codec, "%s: picked fixup %s (codec SSID)\n",
codec->chip_name, name);
#endif #endif
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册