aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_analog.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-02-23 14:15:47 +0100
committerTakashi Iwai <tiwai@suse.de>2009-02-23 14:15:47 +0100
commit209b14033652f0509912da97fb4a5c8001e64ec0 (patch)
tree4b9f6e00815932c65dacd1e0148fe0538bb2323d /sound/pci/hda/patch_analog.c
parent13c989beba166b470b1e6b0fa117148bcbfa3dd1 (diff)
parent39c2871eeaeeddcbecee29ec905ec528a057ca52 (diff)
Merge branch 'test/hda-pincfg' into topic/hda
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r--sound/pci/hda/patch_analog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c
index b1680284146..0253cb93aa7 100644
--- a/sound/pci/hda/patch_analog.c
+++ b/sound/pci/hda/patch_analog.c
@@ -1047,8 +1047,7 @@ static struct hda_amp_list ad1986a_loopbacks[] = {
static int is_jack_available(struct hda_codec *codec, hda_nid_t nid)
{
- unsigned int conf = snd_hda_codec_read(codec, nid, 0,
- AC_VERB_GET_CONFIG_DEFAULT, 0);
+ unsigned int conf = snd_hda_codec_get_pincfg(codec, nid);
return get_defcfg_connect(conf) != AC_JACK_PORT_NONE;
}