'\" t .\" Title: struct snd_soc_jack_gpio .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: ASoC .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT SND_SOC_JACK_" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "ASoC" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_snd_soc_jack_gpio \- Describes a gpio pin for jack detection .SH "SYNOPSIS" .sp .nf struct snd_soc_jack_gpio { unsigned int gpio; unsigned int idx; struct device * gpiod_dev; const char * name; int report; int invert; int debounce_time; bool wake; int (* jack_status_check) (void *data); }; .fi .SH "MEMBERS" .PP gpio .RS 4 legacy gpio number .RE .PP idx .RS 4 gpio descriptor index within the function of the GPIO consumer device .RE .PP gpiod_dev .RS 4 GPIO consumer device .RE .PP name .RS 4 gpio name\&. Also as connection ID for the GPIO consumer device function name lookup .RE .PP report .RS 4 value to report when jack detected .RE .PP invert .RS 4 report presence in low state .RE .PP debounce_time .RS 4 debounce time in ms .RE .PP wake .RS 4 enable as wake source .RE .PP jack_status_check .RS 4 callback function which overrides the detection to provide more complex checks (eg, reading an ADC)\&. .RE .SH "COPYRIGHT" .br