[alsa-devel] [PATCH 1/3] ASoC: soc_jack - add function to determine jack type

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Feb 1 14:43:53 CET 2011


On Tue, Feb 01, 2011 at 07:05:26PM +0530, Harsha, Priya wrote:

Please fix the word wrapping in your MUA to wrap at less than 80
columns.

> What if I add a field debouce to snd_soc_jack and machine driver needs
> to program the value. The codec driver should wait for that time
> before reading the adc values Will this help

The driver providing the ADC (which may not be part of a CODEC at all)
shouldn't have to worry about this stuff unless it's done the
debouncing - we should avoid having to open code functionality in
individual drivers.  It feels like we should have actual code for
managing the process of detecting what's connected, with flexibility to
handle things like pre-debouncing.  If some of it is left sketchy in the
first instance that's OK but we should have an idea what the overall
picture is.


More information about the Alsa-devel mailing list