Re: [PATCH RESEND] x86, intel_mid: ADC management

From: Jonathan Cameron
Date: Wed Apr 11 2012 - 08:55:28 EST


On 4/11/2012 1:30 PM, Alan Cox wrote:
needs to be abstracted as well. Consumers might not care that the gain
just doubled because someone else requested it, but I suspect many of them will.
At the bottom layer I'd expect a second consumer of the same data to get
-EBUSY, but you are then going to tell me there are ADCs with one gain
control for several channels no doubt 8)
yup. If you can think of it, someone hardware guy will have implemented it! In this case
often comes down to the fact that most adcs are actually a mux on the front of a single
channel and the pga may be before the mux or after it (or for a laugh, sometimes both).

A real 'fun' one is devices that do scan reads. That is you can only read certain combinations
of channels at a time and sometimes those combinations are far from obvious...


end up with most of IIO. That's effectively what we did... It's big
because there are
actually not that many 'simple' adc's out there.
Fair enough - you would be the expert there.
I just wish they were all simple!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/