aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r--sound/pci/hda/patch_sigmatel.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 7f76a97954f9..d83649c25fb2 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -4413,14 +4413,11 @@ static void stac92xx_reset_pinctl(struct hda_codec *codec, hda_nid_t nid,
4413 pin_ctl & ~flag); 4413 pin_ctl & ~flag);
4414} 4414}
4415 4415
4416static int get_pin_presence(struct hda_codec *codec, hda_nid_t nid) 4416static inline int get_pin_presence(struct hda_codec *codec, hda_nid_t nid)
4417{ 4417{
4418 if (!nid) 4418 if (!nid)
4419 return 0; 4419 return 0;
4420 if (snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PIN_SENSE, 0x00) 4420 return snd_hda_jack_detect(codec, nid);
4421 & (1 << 31))
4422 return 1;
4423 return 0;
4424} 4421}
4425 4422
4426static void stac92xx_line_out_detect(struct hda_codec *codec, 4423static void stac92xx_line_out_detect(struct hda_codec *codec,