[alsa-devel] [PATCH] ASoC: mc13783: add mixer controls

Lars-Peter Clausen lars at metafoo.de
Wed Oct 9 17:21:40 CEST 2013


On 10/09/2013 05:01 PM, Steffen Trumtrar wrote:
> [...]
> +
> +static const struct soc_enum mc13783_enum_asp =
> +	SOC_ENUM_SINGLE(MC13783_AUDIO_RX0, 4, ARRAY_SIZE(mc13783_alsp),
> +			mc13783_alsp);
> +
> +static const struct soc_enum mc13783_enum_alsp =
> +	SOC_ENUM_SINGLE(MC13783_AUDIO_RX0, 7, ARRAY_SIZE(mc13783_alsp),
> +			mc13783_alsp);
> +
> +static const struct soc_enum mc13783_enum_ahs =
> +	SOC_ENUM_SINGLE(MC13783_AUDIO_RX0, 11, ARRAY_SIZE(mc13783_ahs),
> +			mc13783_ahs);
> +
> +static const struct soc_enum mc13783_enum_arxout =
> +	SOC_ENUM_SINGLE(MC13783_AUDIO_RX0, 17, ARRAY_SIZE(mc13783_ahs),
> +			mc13783_ahs);
> +
> +static const struct soc_enum mc13783_enum_codec =
> +	SOC_ENUM_SINGLE(MC13783_AUDIO_RX1, 4, ARRAY_SIZE(mc13783_alsp),
> +			mc13783_alsp);

For bonus points use SOC_ENUM_SINGLE_DECL(...) ;)

- Lars


More information about the Alsa-devel mailing list