[alsa-devel] [PATCH 020/102] ASoC: isabelle: Fix the wrong number of items in enum ctls

Mark Brown broonie at kernel.org
Wed Feb 19 17:53:57 CET 2014


On Tue, Feb 18, 2014 at 12:36:55PM +0100, Takashi Iwai wrote:
> isabelle codec driver has a few places wrongly defining the number of
> enum items.

Applied, thanks.

> Use SOC_ENUM_SINGLE_DECL() macro and they are automatically fixed.

There's also these other fixes not using that:

>  static const struct soc_enum isabelle_rx1_enum[] = {
> -	SOC_ENUM_SINGLE(ISABELLE_VOICE_HPF_CFG_REG, 3, 1, isabelle_rx1_texts),
> -	SOC_ENUM_SINGLE(ISABELLE_AUDIO_HPF_CFG_REG, 5, 1, isabelle_rx1_texts),
> +	SOC_ENUM_SINGLE(ISABELLE_VOICE_HPF_CFG_REG, 3,
> +			ARRAY_SIZE(isabelle_rx1_texts), isabelle_rx1_texts),
> +	SOC_ENUM_SINGLE(ISABELLE_AUDIO_HPF_CFG_REG, 5,
> +			ARRAY_SIZE(isabelle_rx1_texts), isabelle_rx1_texts),

but they're fine of course.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140220/05a3de07/attachment.sig>


More information about the Alsa-devel mailing list