mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
ASoC: tegra: Fix Mixer fade status control
"MIXER1 Fade Status" was listing 30 entries but MIXER has only 10 streams, hence it should show 10 entries. Update the control. JIRA TAS-2467 Change-Id: I87eeeb64b4a32221ee630ad49c266972501fef96 Signed-off-by: Sheetal <sheetal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3220158 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Sameer Pujar <spujar@nvidia.com> Reviewed-by: Mohan kumar <mkumard@nvidia.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
//
|
||||||
* Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright (c) 2021-2024 NVIDIA CORPORATION. All rights reserved.
|
||||||
*/
|
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
@@ -1637,6 +1636,10 @@ int tegra_virt_t210mixer_param_info(struct snd_kcontrol *kcontrol,
|
|||||||
uinfo->value.integer.min = 0;
|
uinfo->value.integer.min = 0;
|
||||||
uinfo->value.integer.max = 0xffffffff;
|
uinfo->value.integer.max = 0xffffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strstr(kcontrol->id.name, "Status"))
|
||||||
|
params->num_regs = 10;
|
||||||
|
|
||||||
uinfo->type = params->mask;
|
uinfo->type = params->mask;
|
||||||
uinfo->count = params->num_regs;
|
uinfo->count = params->num_regs;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user