Re: [alsa-devel] [PATCH v6 2/2] ASoC: da7210: Add support for ALC andNoise suppression

From: Girdwood, Liam
Date: Wed Oct 19 2011 - 12:43:41 EST


On 19 October 2011 09:54, Ashish Chavan <ashish.chavan@xxxxxxxxxxxxxxx> wrote:
> This patch adds controls to set following ALC parameters,
> Â- Max gain, Min gain, Noise gain, Attack rate, Release rate and delay
>
> It also adds a switch to enable/disable noise suppression.
>
> As per DA7210 data sheet, ALC and noise suppression can be enabled
> only if certain conditions are met. This condition checks are handled
> by simply using "_EXT" version of controls to capture change events.
>
> Signed-off-by: Ashish Chavan <ashish.chavan@xxxxxxxxxxxxxxx>
> Signed-off-by: David Dajun Chen <dchen@xxxxxxxxxxx>
> ---
> Changes since v5:
> - Changed error code from -EPERM to EINVAL
> - Used bit fields instead of magic numbers
>
> Changes since v1:
> - Reading from register instead of cache
> - Made debug message more specific about error
> - Changed "Gain" to "Volume" in names of ALC controls
> ---
> Âsound/soc/codecs/da7210.c | Â110 +++++++++++++++++++++++++++++++++++++++++++++
> Â1 files changed, 110 insertions(+), 0 deletions(-)
>

Acked-by: Liam Girdwood <lrg@xxxxxx>

Thanks

Liam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/