ALSA: hda - Print codec->chip_name in autoconfig
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 7 Jan 2015 13:41:58 +0000 (14:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 7 Jan 2015 14:48:51 +0000 (15:48 +0100)
This will help end users figure out what HDA codec they have.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c

index 1ede82200ee571c07dc47d247f40c1e37ac94732..6ec3775699b228157ea38ff66ebc6719632e61c5 100644 (file)
@@ -409,10 +409,10 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
        /*
         * debug prints of the parsed results
         */
-       codec_info(codec, "autoconfig: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n",
-                  cfg->line_outs, cfg->line_out_pins[0], cfg->line_out_pins[1],
-                  cfg->line_out_pins[2], cfg->line_out_pins[3],
-                  cfg->line_out_pins[4],
+       codec_info(codec, "autoconfig for %s: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n",
+                  codec->chip_name, cfg->line_outs, cfg->line_out_pins[0],
+                  cfg->line_out_pins[1], cfg->line_out_pins[2],
+                  cfg->line_out_pins[3], cfg->line_out_pins[4],
                   cfg->line_out_type == AUTO_PIN_HP_OUT ? "hp" :
                   (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT ?
                    "speaker" : "line"));