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

From: Mark Brown
Date: Thu Apr 12 2012 - 13:53:14 EST


On Wed, Apr 11, 2012 at 01:30:35PM +0100, 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)

There's also some sensible use cases like the multiple system monitoring
subsystems we've got wanting to monitor the same power rail where it's
useful to have multiple consumers sharing the ADC, though with those
ones changing the gain probably doesn't make much sense.

Attachment: signature.asc
Description: Digital signature