[alsa-devel] [PATCH 4/4] ASoC: Tegra: Support more boards

Olof Johansson olof at lixom.net
Sun Apr 17 08:08:13 CEST 2011


Hi,

On Tue, Apr 12, 2011 at 10:40 AM, Stephen Warren <swarren at nvidia.com> wrote:
> diff --git a/sound/soc/tegra/Kconfig b/sound/soc/tegra/Kconfig
> index 21125b3..14f7119 100644
> --- a/sound/soc/tegra/Kconfig
> +++ b/sound/soc/tegra/Kconfig
> @@ -16,12 +16,13 @@ config SND_SOC_TEGRA_I2S
>
>  config SND_SOC_TEGRA_WM8903
>        tristate "SoC Audio support for Tegra boards using a WM8903 codec"
> -       depends on SND_SOC_TEGRA && MACH_HARMONY && I2C
> +       depends on SND_SOC_TEGRA && I2C
> +       depends on MACH_HARMONY || MACH_VENTANA || MACH_SEABOARD || MACH_KAEN || MACH_AEBL

This kind of Kconfig logic scales poorly.

It's better to add a silent option that those boards select in their
Kconfig (something like MACH_TEGRA_HAS_WM8903 or whatever), and depend
on that. Fewer merge conflicts down the road, etc.


-Olof


More information about the Alsa-devel mailing list