1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct snd_soc_jack_gpio</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The ALSA Driver API"><link rel="up" href="ch07.html#id-1.9.2" title="ASoC Core API"><link rel="prev" href="API-struct-snd-soc-jack-zone.html" title="struct snd_soc_jack_zone"><link rel="next" href="API-snd-soc-component-to-codec.html" title="snd_soc_component_to_codec"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct snd_soc_jack_gpio</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-snd-soc-jack-zone.html">Prev</a> </td><th width="60%" align="center">ASoC Core API</th><td width="20%" align="right"> <a accesskey="n" href="API-snd-soc-component-to-codec.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-snd-soc-jack-gpio"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct snd_soc_jack_gpio — 
2     Describes a gpio pin for jack detection
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct snd_soc_jack_gpio {
5  unsigned int gpio;
6  unsigned int idx;
7  struct device * gpiod_dev;
8  const char * name;
9  int report;
10  int invert;
11  int debounce_time;
12  bool wake;
13  int (* jack_status_check) (void *data);
14};  </pre></div><div class="refsect1"><a name="id-1.9.2.4.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">gpio</span></dt><dd><p>
15   legacy gpio number
16      </p></dd><dt><span class="term">idx</span></dt><dd><p>
17   gpio descriptor index within the function of the GPIO
18   consumer device
19      </p></dd><dt><span class="term">gpiod_dev</span></dt><dd><p>
20   GPIO consumer device
21      </p></dd><dt><span class="term">name</span></dt><dd><p>
22   gpio name. Also as connection ID for the GPIO consumer
23   device function name lookup
24      </p></dd><dt><span class="term">report</span></dt><dd><p>
25   value to report when jack detected
26      </p></dd><dt><span class="term">invert</span></dt><dd><p>
27   report presence in low state
28      </p></dd><dt><span class="term">debounce_time</span></dt><dd><p>
29   debounce time in ms
30      </p></dd><dt><span class="term">wake</span></dt><dd><p>
31   enable as wake source
32      </p></dd><dt><span class="term">jack_status_check</span></dt><dd><p>
33   callback function which overrides the detection
34   to provide more complex checks (eg, reading an
35   ADC).
36      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-snd-soc-jack-zone.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch07.html#id-1.9.2">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-snd-soc-component-to-codec.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct snd_soc_jack_zone</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">snd_soc_component_to_codec</span></td></tr></table></div></body></html>
37