Commit 6c627f39 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Show the actual chip name in 'unkown model' messages

Show the actual chip name in 'unknown model..' info messages for
Realtek codecs.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 812a2cca
...@@ -4410,8 +4410,8 @@ static int patch_alc880(struct hda_codec *codec) ...@@ -4410,8 +4410,8 @@ static int patch_alc880(struct hda_codec *codec)
alc880_models, alc880_models,
alc880_cfg_tbl); alc880_cfg_tbl);
if (board_config < 0) { if (board_config < 0) {
printk(KERN_INFO "hda_codec: Unknown model for ALC880, " printk(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n", codec->chip_name);
board_config = ALC880_AUTO; board_config = ALC880_AUTO;
} }
...@@ -6054,8 +6054,9 @@ static int patch_alc260(struct hda_codec *codec) ...@@ -6054,8 +6054,9 @@ static int patch_alc260(struct hda_codec *codec)
alc260_models, alc260_models,
alc260_cfg_tbl); alc260_cfg_tbl);
if (board_config < 0) { if (board_config < 0) {
snd_printd(KERN_INFO "hda_codec: Unknown model for ALC260, " snd_printd(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n",
codec->chip_name);
board_config = ALC260_AUTO; board_config = ALC260_AUTO;
} }
...@@ -7308,8 +7309,9 @@ static int patch_alc882(struct hda_codec *codec) ...@@ -7308,8 +7309,9 @@ static int patch_alc882(struct hda_codec *codec)
alc_free(codec); alc_free(codec);
return patch_alc883(codec); return patch_alc883(codec);
} }
printk(KERN_INFO "hda_codec: Unknown model for ALC882, " printk(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n",
codec->chip_name);
board_config = ALC882_AUTO; board_config = ALC882_AUTO;
} }
} }
...@@ -9196,8 +9198,8 @@ static int patch_alc883(struct hda_codec *codec) ...@@ -9196,8 +9198,8 @@ static int patch_alc883(struct hda_codec *codec)
alc883_models, alc883_models,
alc883_cfg_tbl); alc883_cfg_tbl);
if (board_config < 0) { if (board_config < 0) {
printk(KERN_INFO "hda_codec: Unknown model for ALC883, " printk(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n", codec->chip_name);
board_config = ALC883_AUTO; board_config = ALC883_AUTO;
} }
...@@ -11040,8 +11042,8 @@ static int patch_alc262(struct hda_codec *codec) ...@@ -11040,8 +11042,8 @@ static int patch_alc262(struct hda_codec *codec)
alc262_cfg_tbl); alc262_cfg_tbl);
if (board_config < 0) { if (board_config < 0) {
printk(KERN_INFO "hda_codec: Unknown model for ALC262, " printk(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n", codec->chip_name);
board_config = ALC262_AUTO; board_config = ALC262_AUTO;
} }
...@@ -12076,8 +12078,8 @@ static int patch_alc268(struct hda_codec *codec) ...@@ -12076,8 +12078,8 @@ static int patch_alc268(struct hda_codec *codec)
alc268_cfg_tbl); alc268_cfg_tbl);
if (board_config < 0 || board_config >= ALC268_MODEL_LAST) { if (board_config < 0 || board_config >= ALC268_MODEL_LAST) {
printk(KERN_INFO "hda_codec: Unknown model for ALC268, " printk(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n", codec->chip_name);
board_config = ALC268_AUTO; board_config = ALC268_AUTO;
} }
...@@ -12924,8 +12926,8 @@ static int patch_alc269(struct hda_codec *codec) ...@@ -12924,8 +12926,8 @@ static int patch_alc269(struct hda_codec *codec)
alc269_cfg_tbl); alc269_cfg_tbl);
if (board_config < 0) { if (board_config < 0) {
printk(KERN_INFO "hda_codec: Unknown model for ALC269, " printk(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n", codec->chip_name);
board_config = ALC269_AUTO; board_config = ALC269_AUTO;
} }
...@@ -14023,8 +14025,8 @@ static int patch_alc861(struct hda_codec *codec) ...@@ -14023,8 +14025,8 @@ static int patch_alc861(struct hda_codec *codec)
alc861_cfg_tbl); alc861_cfg_tbl);
if (board_config < 0) { if (board_config < 0) {
printk(KERN_INFO "hda_codec: Unknown model for ALC861, " printk(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n", codec->chip_name);
board_config = ALC861_AUTO; board_config = ALC861_AUTO;
} }
...@@ -14947,8 +14949,8 @@ static int patch_alc861vd(struct hda_codec *codec) ...@@ -14947,8 +14949,8 @@ static int patch_alc861vd(struct hda_codec *codec)
alc861vd_cfg_tbl); alc861vd_cfg_tbl);
if (board_config < 0 || board_config >= ALC861VD_MODEL_LAST) { if (board_config < 0 || board_config >= ALC861VD_MODEL_LAST) {
printk(KERN_INFO "hda_codec: Unknown model for ALC660VD/" printk(KERN_INFO "hda_codec: Unknown model for %s, "
"ALC861VD, trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n", codec->chip_name);
board_config = ALC861VD_AUTO; board_config = ALC861VD_AUTO;
} }
...@@ -16872,8 +16874,8 @@ static int patch_alc662(struct hda_codec *codec) ...@@ -16872,8 +16874,8 @@ static int patch_alc662(struct hda_codec *codec)
alc662_models, alc662_models,
alc662_cfg_tbl); alc662_cfg_tbl);
if (board_config < 0) { if (board_config < 0) {
printk(KERN_INFO "hda_codec: Unknown model for ALC662, " printk(KERN_INFO "hda_codec: Unknown model for %s, "
"trying auto-probe from BIOS...\n"); "trying auto-probe from BIOS...\n", codec->chip_name);
board_config = ALC662_AUTO; board_config = ALC662_AUTO;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment