/* Query and return the pin's Presence Detect status.  */
int snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid)
/* Query and return the pin's Presence Detect status.  */
int snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid)
{
        u32 sense = snd_hda_pin_sense(codec, nid);
        return !!(sense & AC_PINSENSE_PRESENCE);
}