[alsa-devel] [PATCH] ASoC: Add event variants of the AIF widgets

Liam Girdwood lrg at slimlogic.co.uk
Mon Sep 6 12:33:49 CEST 2010


On Mon, 2010-09-06 at 09:38 +0100, Mark Brown wrote:
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
>  include/sound/soc-dapm.h |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
> index c4a4456..8fd3b41 100644
> --- a/include/sound/soc-dapm.h
> +++ b/include/sound/soc-dapm.h
> @@ -172,9 +172,19 @@
>  #define SND_SOC_DAPM_AIF_IN(wname, stname, wslot, wreg, wshift, winvert) \
>  {	.id = snd_soc_dapm_aif_in, .name = wname, .sname = stname, \
>  	.reg = wreg, .shift = wshift, .invert = winvert }
> +#define SND_SOC_DAPM_AIF_IN_E(wname, stname, wslot, wreg, wshift, winvert, \
> +			      wevent, wflags)				\
> +{	.id = snd_soc_dapm_aif_in, .name = wname, .sname = stname, \
> +	.reg = wreg, .shift = wshift, .invert = winvert, \
> +	.event = wevent, .event_flags = wflags }
>  #define SND_SOC_DAPM_AIF_OUT(wname, stname, wslot, wreg, wshift, winvert) \
>  {	.id = snd_soc_dapm_aif_out, .name = wname, .sname = stname, \
>  	.reg = wreg, .shift = wshift, .invert = winvert }
> +#define SND_SOC_DAPM_AIF_OUT_E(wname, stname, wslot, wreg, wshift, winvert, \
> +			     wevent, wflags)				\
> +{	.id = snd_soc_dapm_aif_out, .name = wname, .sname = stname, \
> +	.reg = wreg, .shift = wshift, .invert = winvert, \
> +	.event = wevent, .event_flags = wflags }
>  #define SND_SOC_DAPM_DAC(wname, stname, wreg, wshift, winvert) \
>  {	.id = snd_soc_dapm_dac, .name = wname, .sname = stname, .reg = wreg, \
>  	.shift = wshift, .invert = winvert}

Acked-by: Liam Girdwood <lrg at slimlogic.co.uk>
-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk



More information about the Alsa-devel mailing list