diff --git a/sound/soc/tegra-alt/tegra210_adx_alt.c b/sound/soc/tegra-alt/tegra210_adx_alt.c index 9ffe3071..1bf95af9 100644 --- a/sound/soc/tegra-alt/tegra210_adx_alt.c +++ b/sound/soc/tegra-alt/tegra210_adx_alt.c @@ -211,7 +211,7 @@ static int tegra210_adx_set_audio_cif(struct tegra210_adx *adx, struct tegra210_xbar_cif_conf cif_conf; channels = params_channels(params); - if (channels < 2) + if (channels < 1 || channels > 16) return -EINVAL; switch (params_format(params)) { diff --git a/sound/soc/tegra-alt/tegra210_amx_alt.c b/sound/soc/tegra-alt/tegra210_amx_alt.c index 8f9632ce..42e58b36 100644 --- a/sound/soc/tegra-alt/tegra210_amx_alt.c +++ b/sound/soc/tegra-alt/tegra210_amx_alt.c @@ -237,7 +237,7 @@ static int tegra210_amx_set_audio_cif(struct tegra210_amx *amx, struct tegra210_xbar_cif_conf cif_conf; channels = params_channels(params); - if (channels < 2) + if (channels < 1 || channels > 16) return -EINVAL; switch (params_format(params)) {