1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><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#idp1095227164" 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 const char * name; 8 int report; 9 int invert; 10 bool wake; 11 int (* jack_status_check) (void *data); 12}; </pre></div><div class="refsect1"><a name="idp1095245740"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">gpio</span></dt><dd><p> 13 legacy gpio number 14 </p></dd><dt><span class="term">idx</span></dt><dd><p> 15 gpio descriptor index within the function of the GPIO 16 consumer device 17 <em class="parameter"><code>gpiod_dev</code></em> GPIO consumer device 18 </p></dd><dt><span class="term">name</span></dt><dd><p> 19 gpio name. Also as connection ID for the GPIO consumer 20 device function name lookup 21 </p></dd><dt><span class="term">report</span></dt><dd><p> 22 value to report when jack detected 23 </p></dd><dt><span class="term">invert</span></dt><dd><p> 24 report presence in low state 25 </p></dd><dt><span class="term">wake</span></dt><dd><p> 26 enable as wake source 27 </p></dd><dt><span class="term">jack_status_check</span></dt><dd><p> 28 callback function which overrides the detection 29 to provide more complex checks (eg, reading an 30 ADC). 31 </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#idp1095227164">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> 32