mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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:
committed by
Sameer Pujar
parent
0c17f1f661
commit
b097ef0c7b
@@ -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)) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user