---
name: "struct_snd_soc_jack_gpio"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_snd_soc_jack_gpio"
---

# struct\_snd\_soc\_jack\_gpio(9)

Describes a gpio pin for jack detection

## NAME

struct\_snd\_soc\_jack\_gpio - Describes a gpio pin for jack detection

## SYNOPSIS

```
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);
};
```

## MEMBERS

gpio

legacy gpio number

idx

gpio descriptor index within the function of the GPIO consumer device

gpiod\_dev

GPIO consumer device

name

gpio name. Also as connection ID for the GPIO consumer device function name lookup

report

value to report when jack detected

invert

report presence in low state

debounce\_time

debounce time in ms

wake

enable as wake source

jack\_status\_check

callback function which overrides the detection to provide more complex checks (eg, reading an ADC).

## COPYRIGHT
