Lines Matching +full:int +full:- +full:gpios
1 /* SPDX-License-Identifier: GPL-2.0
3 * soc-jack.h
12 * struct snd_soc_jack_pin - Describes a pin to update based on jack detection
16 * @invert: if non-zero then pin is enabled when status is not reported
22 int mask;
27 * struct snd_soc_jack_zone - Describes voltage zones of jack detection
37 unsigned int min_mv;
38 unsigned int max_mv;
39 unsigned int jack_type;
40 unsigned int debounce_time;
45 * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection
62 unsigned int gpio;
63 unsigned int idx;
66 int report;
67 int invert;
68 int debounce_time;
79 int (*jack_status_check)(void *data);
87 int status;
93 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask);
94 int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
100 int snd_soc_jack_add_zones(struct snd_soc_jack *jack, int count,
102 int snd_soc_jack_get_type(struct snd_soc_jack *jack, int micbias_voltage);
104 int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
105 struct snd_soc_jack_gpio *gpios);
106 int snd_soc_jack_add_gpiods(struct device *gpiod_dev,
108 int count, struct snd_soc_jack_gpio *gpios);
109 void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
110 struct snd_soc_jack_gpio *gpios);
112 static inline int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, in snd_soc_jack_add_gpios()
113 struct snd_soc_jack_gpio *gpios) in snd_soc_jack_add_gpios() argument
118 static inline int snd_soc_jack_add_gpiods(struct device *gpiod_dev, in snd_soc_jack_add_gpiods()
120 int count, in snd_soc_jack_add_gpiods()
121 struct snd_soc_jack_gpio *gpios) in snd_soc_jack_add_gpiods() argument
126 static inline void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, in snd_soc_jack_free_gpios()
127 struct snd_soc_jack_gpio *gpios) in snd_soc_jack_free_gpios() argument