Re: [PATCH] ASoC: Add support for multi register mux

From: Mark Brown
Date: Tue Mar 18 2014 - 20:00:11 EST


On Tue, Mar 18, 2014 at 04:51:32PM -0700, Arun Shamanna Lakshmi wrote:

> Currently soc_enum structure supports only 2 registers (reg, reg2)
> for kcontrol. However, it is possible to have multiple registers
> per mux. This change allows us to control these multiple registers.

I'd want to see a user along with this and...

> @@ -1093,6 +1093,9 @@ struct soc_enum {
> unsigned int mask;
> const char * const *texts;
> const unsigned int *values;
> + unsigned int *regs;
> + unsigned int *masks;
> + unsigned int num_regs;

...it duplicates and generally isn't joined up with the existing members
of the structure, and has no support in the helpers (for example,
converting the existing stereo controls to be two element arrays which
I'd expect to see). Helpers would count as users here.

Note that we don't support double register enums or muxes - only
numerical controls are supported. It's not clear what a multi-register
enum would mean.

Attachment: signature.asc
Description: Digital signature