aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-04-29 13:00:40 +0200
committerTakashi Iwai <tiwai@suse.de>2011-04-29 13:01:33 +0200
commitc2de187e5b0f25b572ac1cb6cdf383f16123717d (patch)
treebb30fa2e3c1d5c4500edb0f702090a2996b81d63 /sound/pci/hda/hda_codec.c
parentae8a60a598ce39e8e42fd4ce1348c0883a23b5d8 (diff)
downloadkernel_samsung_smdk4412-c2de187e5b0f25b572ac1cb6cdf383f16123717d.zip
kernel_samsung_smdk4412-c2de187e5b0f25b572ac1cb6cdf383f16123717d.tar.gz
kernel_samsung_smdk4412-c2de187e5b0f25b572ac1cb6cdf383f16123717d.tar.bz2
ALSA: hda - Show the line-out type in snd_hda_parse_pin_def_config()
Helpful for debugging. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index fb07def..10f429f 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -4697,10 +4697,13 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec,
/*
* 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_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",
cfg->speaker_outs, cfg->speaker_pins[0],
cfg->speaker_pins[1], cfg->speaker_pins[2],