Commit 56e55693 authored by Stefan Binding's avatar Stefan Binding Committed by Matt Davis
Browse files

FROMGIT: ASoC: intel/sdw_utils: Add volume limit to cs35l56 speakers

The volume control for cs35l56 speakers has a maximum gain of +12 dB.
However, for many use cases, this can cause distorted audio, depending
various factors, such as other signal-processing elements in the chain,
for example if the audio passes through a gain control before reaching
the amp or the signal path has been tuned for a particular maximum
gain in the amp.

In the case of systems which use the soc_sdw_* driver, audio will
likely be distorted in all cases above 0 dB, therefore add a volume
limit of 400, which is 0 dB maximum volume inside this driver.

The volume limit should be applied to both soundwire and soundwire
bridge configurations.

(cherry picked from commit e99e431323b6a9c71591de65053e09a82cfa6a60 https://github.com/CirrusLogic/linux-drivers

 v6.12-cs42l43-cs35l56)
Change-Id: I97e4f10956accc26c56f375eaf53d0bc77a118ad
Signed-off-by: default avatarStefan Binding <sbinding@opensource.cirrus.com>
Signed-off-by: default avatarTongtong Pan <pantongtong@huaqin.corp-partner.google.com>
parent 4b442519
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment