aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-03-24 02:43:24 -0400
committerTakashi Iwai <tiwai@suse.de>2009-04-21 05:10:45 -0400
commit586be3fcf97eec22fbc0ef6d67e823706aea7167 (patch)
tree1a68ce99f543d9c24050bca0949ed6173484e7b1 /sound
parentb613291fb21a2d74eb8323d97fe9aa5d281b306c (diff)
ALSA: hda - Add debug prints for Realtek auto-init
Added a couple of debug prints to show the checked id numbers in alc_subsystem_id(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 82097790f6f3..ee92c73df083 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -1022,6 +1022,9 @@ static void alc_subsystem_id(struct hda_codec *codec,
1022 if (codec->vendor_id == 0x10ec0260) 1022 if (codec->vendor_id == 0x10ec0260)
1023 nid = 0x17; 1023 nid = 0x17;
1024 ass = snd_hda_codec_get_pincfg(codec, nid); 1024 ass = snd_hda_codec_get_pincfg(codec, nid);
1025 snd_printd("realtek: No valid SSID, "
1026 "checking pincfg 0x%08x for NID 0x%x\n",
1027 nid, ass);
1025 if (!(ass & 1) && !(ass & 0x100000)) 1028 if (!(ass & 1) && !(ass & 0x100000))
1026 return; 1029 return;
1027 if ((ass >> 30) != 1) /* no physical connection */ 1030 if ((ass >> 30) != 1) /* no physical connection */
@@ -1036,6 +1039,8 @@ static void alc_subsystem_id(struct hda_codec *codec,
1036 if (((ass >> 16) & 0xf) != tmp) 1039 if (((ass >> 16) & 0xf) != tmp)
1037 return; 1040 return;
1038do_sku: 1041do_sku:
1042 snd_printd("realtek: Enabling init ASM_ID=0x%04x CODEC_ID=%08x\n",
1043 ass & 0xffff, codec->vendor_id);
1039 /* 1044 /*
1040 * 0 : override 1045 * 0 : override
1041 * 1 : Swap Jack 1046 * 1 : Swap Jack