Lines Matching +full:jack +full:- +full:gpio
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
15 * @mask: bits to check for in reported jack status
16 * @invert: if non-zero then pin is enabled when status is not reported
27 * struct snd_soc_jack_zone - Describes voltage zones of jack detection
31 * @jack_type: type of jack that is expected for this voltage
32 * @debounce_time: debounce_time for jack, codec driver should wait for this
45 * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection
47 * @idx: gpio descriptor index within the function of the GPIO
49 * @gpiod_dev: GPIO consumer device
50 * @name: gpio name. Also as connection ID for the GPIO consumer
52 * @report: value to report when jack detected
70 struct snd_soc_jack *jack; member
82 struct snd_jack *jack; member
90 /* Jack reporting */
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,
94 void snd_soc_jack_notifier_register(struct snd_soc_jack *jack,
96 void snd_soc_jack_notifier_unregister(struct snd_soc_jack *jack,
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,
105 struct snd_soc_jack *jack,
107 void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
110 static inline int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, in snd_soc_jack_add_gpios() argument
117 struct snd_soc_jack *jack, 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() argument