Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Takashi Iwai <tiwai@suse.de>

+11 -9
+11 -9
sound/pci/hda/hda_auto_parser.c
··· 933 933 bool match_all_pins) 934 934 { 935 935 const struct snd_hda_pin_quirk *pq; 936 + const char *name = NULL; 936 937 937 938 if (codec->fixup_id != HDA_FIXUP_ID_NOT_SET) 938 939 return; ··· 947 946 codec->fixup_id = pq->value; 948 947 #ifdef CONFIG_SND_DEBUG_VERBOSE 949 948 codec->fixup_name = pq->name; 950 - codec_dbg(codec, "%s: picked fixup %s (pin match)\n", 951 - codec->core.chip_name, codec->fixup_name); 949 + name = pq->name; 952 950 #endif 951 + codec_info(codec, "%s: picked fixup %s (pin match)\n", 952 + codec->core.chip_name, name ? name : ""); 953 953 codec->fixup_list = fixlist; 954 954 return; 955 955 } ··· 1017 1015 if (codec->modelname && !strcmp(codec->modelname, "nofixup")) { 1018 1016 id = HDA_FIXUP_ID_NO_FIXUP; 1019 1017 fixlist = NULL; 1020 - codec_dbg(codec, "%s: picked no fixup (nofixup specified)\n", 1021 - codec->core.chip_name); 1018 + codec_info(codec, "%s: picked no fixup (nofixup specified)\n", 1019 + codec->core.chip_name); 1022 1020 goto found; 1023 1021 } 1024 1022 ··· 1028 1026 if (!strcmp(codec->modelname, models->name)) { 1029 1027 id = models->id; 1030 1028 name = models->name; 1031 - codec_dbg(codec, "%s: picked fixup %s (model specified)\n", 1032 - codec->core.chip_name, codec->fixup_name); 1029 + codec_info(codec, "%s: picked fixup %s (model specified)\n", 1030 + codec->core.chip_name, name); 1033 1031 goto found; 1034 1032 } 1035 1033 models++; ··· 1087 1085 #ifdef CONFIG_SND_DEBUG_VERBOSE 1088 1086 name = q->name; 1089 1087 #endif 1090 - codec_dbg(codec, "%s: picked fixup %s for %s %04x:%04x\n", 1091 - codec->core.chip_name, name ? name : "", 1092 - type, q->subvendor, q->subdevice); 1088 + codec_info(codec, "%s: picked fixup %s for %s %04x:%04x\n", 1089 + codec->core.chip_name, name ? name : "", 1090 + type, q->subvendor, q->subdevice); 1093 1091 found: 1094 1092 codec->fixup_id = id; 1095 1093 codec->fixup_list = fixlist;