diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-02-20 08:37:42 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-02-20 10:48:40 -0500 |
commit | 2f334f92cfb44d17b9f24a43f8998cca03f9a3dd (patch) | |
tree | dfc6c07b4de91da28607503f641aa60d2bfec9ec /sound/pci/hda/patch_analog.c | |
parent | 330ee9957910826a072c2ad5d4045182335f9963 (diff) |
ALSA: hda - Remove codec-specific pin save/restore functions
Replace the accessor to pin defaults with the common code for caching.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r-- | sound/pci/hda/patch_analog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 2c58d7b05aba..53d0edaf04c7 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[] = { | |||
1047 | 1047 | ||
1048 | static int is_jack_available(struct hda_codec *codec, hda_nid_t nid) | 1048 | static int is_jack_available(struct hda_codec *codec, hda_nid_t nid) |
1049 | { | 1049 | { |
1050 | unsigned int conf = snd_hda_codec_read(codec, nid, 0, | 1050 | unsigned int conf = snd_hda_codec_get_pincfg(codec, nid); |
1051 | AC_VERB_GET_CONFIG_DEFAULT, 0); | ||
1052 | return get_defcfg_connect(conf) != AC_JACK_PORT_NONE; | 1051 | return get_defcfg_connect(conf) != AC_JACK_PORT_NONE; |
1053 | } | 1052 | } |
1054 | 1053 | ||