/** * struct snd_soc_jack_pin - Describes a pin to update based on jack detection * * @pin: name of the pin to update * @mask: bits to check for in reported jack status * @invert: if non-zero then pin is enabled when status is not reported * @list: internal list entry
*/ struct snd_soc_jack_pin { struct list_head list; constchar *pin; int mask; bool invert;
};
/** * struct snd_soc_jack_zone - Describes voltage zones of jack detection * * @min_mv: start voltage in mv * @max_mv: end voltage in mv * @jack_type: type of jack that is expected for this voltage * @debounce_time: debounce_time for jack, codec driver should wait for this * duration before reading the adc for voltages * @list: internal list entry
*/ struct snd_soc_jack_zone { unsignedint min_mv; unsignedint max_mv; unsignedint jack_type; unsignedint debounce_time; struct list_head list;
};
/** * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection * * @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).
*/ struct snd_soc_jack_gpio { unsignedint idx; struct device *gpiod_dev; constchar *name; int report; int invert; int debounce_time; bool wake;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.