Johan Hovold b53cc6144a
ASoC: codecs: wsa883x: fix PA volume control
The PA gain can be set in steps of 1.5 dB from -3 dB to 18 dB, that is,
in 15 levels.

Fix the dB values for the PA volume control as experiments using wsa8835
show that the first 16 levels all map to the same lowest gain while the
last three map to the highest gain.

These values specifically need to be correct for the sound server to
provide proper volume control.

Note that level 0 (-3 dB) does not mute the PA so the mute flag should
also not be set.

Fixes: cdb09e623143 ("ASoC: codecs: wsa883x: add control, dapm widgets and map")
Cc: stable@vger.kernel.org      # 6.0
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://msgid.link/r/20240119112420.7446-2-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-01-22 15:29:01 +00:00
..
2021-04-20 17:25:51 +01:00
2023-12-01 16:59:16 +00:00
2023-12-01 16:59:19 +00:00
2023-12-01 16:59:20 +00:00
2023-09-11 13:34:39 +01:00
2023-12-06 23:06:55 +00:00
2023-12-06 23:06:55 +00:00
2023-09-14 16:12:47 +01:00
2023-12-01 16:59:23 +00:00
2023-12-01 16:59:23 +00:00
2024-01-08 08:18:02 +01:00
2023-07-23 23:33:05 +01:00
2023-12-01 16:59:25 +00:00
2023-12-01 16:59:24 +00:00
2023-08-11 21:12:45 +02:00
2021-03-31 18:00:38 +01:00
2022-06-06 12:33:10 +01:00
2024-01-12 11:55:28 -08:00
2024-01-12 11:32:19 -08:00
2023-08-10 00:19:02 +01:00
2023-08-13 19:37:49 +01:00
2023-08-13 19:37:52 +01:00
2023-08-13 19:37:52 +01:00
2022-10-13 13:01:32 +01:00
2023-08-13 19:37:53 +01:00
2023-08-17 22:38:42 +01:00
2023-08-13 19:37:54 +01:00
2023-08-13 19:37:56 +01:00
2024-01-08 08:18:02 +01:00
2023-08-13 19:37:58 +01:00
2021-12-06 10:04:05 +01:00
2022-07-08 11:52:42 +01:00
2024-01-08 08:18:02 +01:00
2024-01-16 17:37:17 +01:00
2021-12-06 10:04:05 +01:00
2020-10-02 21:05:29 +01:00