mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
tegra-alt: incr ADSP params limit
For plugins which send integer type data, increasing limit to 0xFFFFFFFF allows for negative values to be sent to ADSP where plugin code can typecast uint to int and obtain desired negative value Bug 1990609 Bug 200381729 Change-Id: I2afecc934e10d4f82badab739e26f7adae1d4cca Signed-off-by: Hariharan Sivaraman <hariharans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1641078 (cherry picked from commit 315bae2da963f24785acb24705ae9273bdb0f436) Reviewed-on: https://git-master.nvidia.com/r/1645013 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Uday Gupta <udayg@nvidia.com> Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com> Reviewed-by: Mohan Kumar D <mkumard@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-by: Nitin Pai <npai@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
2f3fa3e1d2
commit
05577afab1
@@ -2,7 +2,7 @@
|
||||
* tegra210_adsp_alt.c - Tegra ADSP audio driver
|
||||
*
|
||||
* Author: Sumit Bhattacharya <sumitb@nvidia.com>
|
||||
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@@ -4183,7 +4183,7 @@ static int tegra210_adsp_param_info(struct snd_kcontrol *kcontrol,
|
||||
if (params->mask == SNDRV_CTL_ELEM_TYPE_INTEGER) {
|
||||
params->num_regs = 128;
|
||||
uinfo->value.integer.min = 0;
|
||||
uinfo->value.integer.max = 0x7fffffff;
|
||||
uinfo->value.integer.max = 0xffffffff;
|
||||
}
|
||||
uinfo->type = params->mask;
|
||||
uinfo->count = params->num_regs;
|
||||
|
||||
Reference in New Issue
Block a user