[alsa-devel] [PATCH] ASoC: rt5645: Add the HWEQ for the customized speaker output

Oder Chiou oder_chiou at realtek.com
Wed Oct 21 14:47:34 CEST 2015


> > +struct rt5645_eq_param_s {
> > +	unsigned short reg;
> > +	unsigned short val;
> > +};
> 
> As I said in reply to your earlier version just now this seems like a
> really strange way of configuring things - we'd need to understand why
> this is a good format for doing the configuration.
> 
There are 56 registers(0x1a4 to 0x1cd and 0x1e5 to 0x1f8) for setting the
EQ parameters, and there is a register(0xb1) to control how many bands are
enabled. The EQ parameters are affected by which bands are enabled, and we
can set the EQ parameters which are required. The goal is to implement the
function as simple as possible. In case of the Google Celes, we can only set
5 registers. We have added the check function in the "rt5645_hweq_put", if
the settings are invalid, they are not copied to private data. In the enable
function, we also validate the registers, and only the 57 registers can be
set. Could you give us some hint?


More information about the Alsa-devel mailing list