[alsa-devel] [PATCH] ASoC: Add external amplifier controls for Visstrim_M10.

Lars-Peter Clausen lars at metafoo.de
Thu Jan 19 17:52:38 CET 2012


On 01/19/2012 03:53 PM, Javier Martin wrote:
> Visstrim_M10 has an external class D amplifier.
> This patch provides support for controlling the 4
> possible gain levels and per channel muting.
> 
> Signed-off-by: Javier Martin <javier.martin at vista-silicon.com>
> ---
>  sound/soc/imx/mx27vis-aic32x4.c |   72 +++++++++++++++++++++++++++++++++++++++
>  1 files changed, 72 insertions(+), 0 deletions(-)
> 
> diff --git a/sound/soc/imx/mx27vis-aic32x4.c b/sound/soc/imx/mx27vis-aic32x4.c
> index d37e23c..47a7bf9 100644
> --- a/sound/soc/imx/mx27vis-aic32x4.c
> +++ b/sound/soc/imx/mx27vis-aic32x4.c
> @@ -25,16 +25,36 @@
> [...]
> +
>  static const struct snd_kcontrol_new mx27vis_aic32x4_controls[] = {
>  	SOC_DAPM_PIN_SWITCH("External Mic"),
> +	SOC_SINGLE_EXT("LO Ext Boost", MX27VIS_AMP_GAIN, 0, 3, 0,
> +		       mx27vis_amp_get, mx27vis_amp_set),

Do you know the dB gain of the amplifier? If yes you should provide it using
SOC_SINGLE_EXT_TLV.

> [...]
>  };
>  
> [...]



More information about the Alsa-devel mailing list