aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_jack.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-10-29 16:03:58 +0100
committerTakashi Iwai <tiwai@suse.de>2014-10-29 16:03:58 +0100
commit95a962c36f6e3c3edb438d1ba59e30964900d16a (patch)
treef3c12eab3e7196297f0114313f48134ceb2cea98 /sound/pci/hda/hda_jack.h
parentALSA: hda - Correct kerneldoc comments (diff)
downloadlinux-dev-95a962c36f6e3c3edb438d1ba59e30964900d16a.tar.xz
linux-dev-95a962c36f6e3c3edb438d1ba59e30964900d16a.zip
ALSA: hda - More kerneldoc comments
Put more kerneldoc comments to the exported functions. Still the generic parser code and the HD-audio controller code aren't covered yet, though. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_jack.h')
-rw-r--r--sound/pci/hda/hda_jack.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_jack.h b/sound/pci/hda/hda_jack.h
index 13cb375454f6..b279e327a23b 100644
--- a/sound/pci/hda/hda_jack.h
+++ b/sound/pci/hda/hda_jack.h
@@ -72,6 +72,11 @@ enum {
int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid);
+/**
+ * snd_hda_jack_detect - Detect the jack
+ * @codec: the HDA codec
+ * @nid: pin NID to check jack detection
+ */
static inline bool snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid)
{
return snd_hda_jack_detect_state(codec, nid) != HDA_JACK_NOT_PRESENT;