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 <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/433237
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
This commit is contained in:
Songhee Baek
2014-07-01 09:53:57 -07:00
committed by Sameer Pujar
parent 0c17f1f661
commit b097ef0c7b
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ static int tegra210_adx_set_audio_cif(struct tegra210_adx *adx,
struct tegra210_xbar_cif_conf cif_conf; struct tegra210_xbar_cif_conf cif_conf;
channels = params_channels(params); channels = params_channels(params);
if (channels < 2) if (channels < 1 || channels > 16)
return -EINVAL; return -EINVAL;
switch (params_format(params)) { switch (params_format(params)) {

View File

@@ -237,7 +237,7 @@ static int tegra210_amx_set_audio_cif(struct tegra210_amx *amx,
struct tegra210_xbar_cif_conf cif_conf; struct tegra210_xbar_cif_conf cif_conf;
channels = params_channels(params); channels = params_channels(params);
if (channels < 2) if (channels < 1 || channels > 16)
return -EINVAL; return -EINVAL;
switch (params_format(params)) { switch (params_format(params)) {