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
61 unsigned int idx;
64 int report;
65 int invert;
66 int debounce_time;
77 int (*jack_status_check)(void *data);
85 int status;
91 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask);
92 int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
98 int snd_soc_jack_add_zones(struct snd_soc_jack *jack, int count,
100 int snd_soc_jack_get_type(struct snd_soc_jack *jack, int micbias_voltage);
102 int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
103 struct snd_soc_jack_gpio *gpios);
104 int snd_soc_jack_add_gpiods(struct device *gpiod_dev,
106 int count, struct snd_soc_jack_gpio *gpios);
107 void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
108 struct snd_soc_jack_gpio *gpios);
110 static inline int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, in snd_soc_jack_add_gpios()
111 struct snd_soc_jack_gpio *gpios) in snd_soc_jack_add_gpios() argument
116 static inline int snd_soc_jack_add_gpiods(struct device *gpiod_dev, in snd_soc_jack_add_gpiods()
118 int count, in snd_soc_jack_add_gpiods()
119 struct snd_soc_jack_gpio *gpios) in snd_soc_jack_add_gpiods() argument
124 static inline void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, in snd_soc_jack_free_gpios()
125 struct snd_soc_jack_gpio *gpios) in snd_soc_jack_free_gpios() argument