Re: [RFC] Volume control across multiple registers
From: Mark Brown
Date: Thu Feb 20 2020 - 06:59:45 EST
On Wed, Feb 19, 2020 at 03:11:47PM -0600, Dan Murphy wrote:
> I was looking at using the DAPM calls and use PGA_E and define an event but
> there really is no good way to get the current volume setting.
Store it in a variable in the driver's private data (there's a number of
examples of doing that for various controls, the process doesn't change
just because it's a volume), or if you've got a register cache it could
be just as easy to do the register reads and combine the values.
Attachment:
signature.asc
Description: PGP signature