Jon Hunter 04f1ad23f1 ASoC: tegra-alt: Fix DMIC boost gain upper limit
The Tegra DMIC 'Boost Gain' control shows an upper limit of '25600'.

nvidia@tegra-ubuntu:~$ amixer -c 1 sget "DMIC3 Boost Gain"
 Simple mixer control 'DMIC3 Boost Gain',0
 Capabilities: volume volume-joined
 Playback channels: Mono
 Capture channels: Mono
 Limits: 0 - 25600
 Mono: 0 [0%]

However, if a user attempts to set it to this the following error is
seen ...

 [  314.961362] tegra210-dmic tegra210-dmic.2: Boost Gain overflow
 [  314.970917] tegra210-dmic tegra210-dmic.2: Boost Gain overflow

Software only allows a max value of '25599' to be written to this
control and so fix this.

Bug 2069481

Change-Id: Ibdfa6f2c43e3855c72d2ec6fed6848f1395ccef8
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1673437
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2022-09-29 15:30:21 +05:30
2022-09-10 23:43:40 -07:00
2022-09-07 12:27:01 -07:00
Description
No description provided
34 MiB