Commit c2de187e authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Show the line-out type in snd_hda_parse_pin_def_config()

Helpful for debugging.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ae8a60a5
...@@ -4697,10 +4697,13 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec, ...@@ -4697,10 +4697,13 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec,
/* /*
* debug prints of the parsed results * debug prints of the parsed results
*/ */
snd_printd("autoconfig: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n", snd_printd("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_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[2], cfg->line_out_pins[3],
cfg->line_out_pins[4]); cfg->line_out_pins[4],
cfg->line_out_type == AUTO_PIN_HP_OUT ? "hp" :
(cfg->line_out_type == AUTO_PIN_SPEAKER_OUT ?
"speaker" : "line"));
snd_printd(" speaker_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n", snd_printd(" speaker_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n",
cfg->speaker_outs, cfg->speaker_pins[0], cfg->speaker_outs, cfg->speaker_pins[0],
cfg->speaker_pins[1], cfg->speaker_pins[2], cfg->speaker_pins[1], cfg->speaker_pins[2],
......
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