On Wed, Dec 06, 2017 at 03:26:47PM +0100, Ricard Wanderlof wrote:
On Wed, 6 Dec 2017, Mark Brown wrote:
That just sounds like a regulator? I'd expect that just to be used as a supply as normal.
You mean as a DAPM widget?
Or via a device which uses it.
What audio specific control would this device be provdiing?
What it does provide is current sensing if the connected device draws too much power, although it does not automatically shut off the connected device if that is the case, so a small driver is required to shut down the output in the case of overcurrent. There's also a requirement to be able to read the overcurrent status. One approach is to implementet the whole thing as an auxilliary device, with one ALSA control to control the power, and a read only control to read the overcurrent status.
That does sound like an auxiliary device that's a regulator consumer.