]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/hda/patch_analog.c
ALSA: hda - Remove codec-specific pin save/restore functions
[linux-2.6-omap-h63xx.git] / sound / pci / hda / patch_analog.c
index 2c58d7b05aba3d8bd2f751f1a940ffdd14bc9301..53d0edaf04c7dd9df87627a1ff3288194cc5535a 100644 (file)
@@ -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;
 }