Commit db2eee61 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda: Show the codec quirk info at probing

Lots of HD-audio devices need the device-specific quirk, and it's
often helpful to know which quirk is applied.  But currently the
driver shows it only as a debug output, hence we'd have to enable the
debug option at each time we want to see it (and the output becomes
too messy due to other debug messages).

This patch changes the messages to the info level, so that they appear
at probing normally.

Link: https://patch.msgid.link/20241126141010.12567-1-tiwai@suse.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent a166f803
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -933,6 +933,7 @@ void snd_hda_pick_pin_fixup(struct hda_codec *codec,
			    bool match_all_pins)
{
	const struct snd_hda_pin_quirk *pq;
	const char *name = NULL;

	if (codec->fixup_id != HDA_FIXUP_ID_NOT_SET)
		return;
@@ -946,9 +947,10 @@ void snd_hda_pick_pin_fixup(struct hda_codec *codec,
			codec->fixup_id = pq->value;
#ifdef CONFIG_SND_DEBUG_VERBOSE
			codec->fixup_name = pq->name;
			codec_dbg(codec, "%s: picked fixup %s (pin match)\n",
				  codec->core.chip_name, codec->fixup_name);
			name = pq->name;
#endif
			codec_info(codec, "%s: picked fixup %s (pin match)\n",
				   codec->core.chip_name, name ? name : "");
			codec->fixup_list = fixlist;
			return;
		}
@@ -1015,7 +1017,7 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
	if (codec->modelname && !strcmp(codec->modelname, "nofixup")) {
		id = HDA_FIXUP_ID_NO_FIXUP;
		fixlist = NULL;
		codec_dbg(codec, "%s: picked no fixup (nofixup specified)\n",
		codec_info(codec, "%s: picked no fixup (nofixup specified)\n",
			   codec->core.chip_name);
		goto found;
	}
@@ -1026,8 +1028,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
			if (!strcmp(codec->modelname, models->name)) {
				id = models->id;
				name = models->name;
				codec_dbg(codec, "%s: picked fixup %s (model specified)\n",
					  codec->core.chip_name, codec->fixup_name);
				codec_info(codec, "%s: picked fixup %s (model specified)\n",
					   codec->core.chip_name, name);
				goto found;
			}
			models++;
@@ -1085,7 +1087,7 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
#ifdef CONFIG_SND_DEBUG_VERBOSE
	name = q->name;
#endif
	codec_dbg(codec, "%s: picked fixup %s for %s %04x:%04x\n",
	codec_info(codec, "%s: picked fixup %s for %s %04x:%04x\n",
		   codec->core.chip_name, name ? name : "",
		   type, q->subvendor, q->subdevice);
 found: