[alsa-devel] Multiple codecs on the same DAI

Ricard Wanderlof ricard.wanderlof at axis.com
Thu Dec 7 08:47:03 CET 2017


On Wed, 6 Dec 2017, Mark Brown wrote:

> 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.

So essentially one would register this device as an auxiliary device, 
which would define a DAPM widget which in turn would be part of a DAPM 
route in the encompassing machine driver?

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30


More information about the Alsa-devel mailing list