From b097ef0c7b3234fcf0825b59d0ee2d79d5df7a10 Mon Sep 17 00:00:00 2001 From: Songhee Baek Date: Tue, 1 Jul 2014 09:53:57 -0700 Subject: [PATCH] ASoC: tegra-alt: Support mono in T210 AMX/ADX This change is for supporting mono input in AMX and ADX. Bug 1442940 Change-Id: If3f51ddfafa56ed1474e110d2bbfe45450b714cd Signed-off-by: Songhee Baek Reviewed-on: http://git-master/r/433237 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Arun Shamanna Lakshmi Reviewed-by: Dara Ramesh Reviewed-by: Sumit Bhattacharya --- sound/soc/tegra-alt/tegra210_adx_alt.c | 2 +- sound/soc/tegra-alt/tegra210_amx_alt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) {