struct snd_soc_jack_gpio — Describes a gpio pin for jack detection
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); };
legacy gpio number
gpio descriptor index within the function of the GPIO consumer device
GPIO consumer device
gpio name. Also as connection ID for the GPIO consumer device function name lookup
value to report when jack detected
report presence in low state
debounce time in ms
enable as wake source
callback function which overrides the detection to provide more complex checks (eg, reading an ADC).