bcm27xx: 6.1: add kernel patches
[openwrt/staging/nbd.git] / target / linux / bcm27xx / patches-6.1 / 950-0464-ASoC-ma120x0p-Corrects-the-volume-level-display.patch
1 From 4aec425e27e06f9743fd3f869f6ead77260cf523 Mon Sep 17 00:00:00 2001
2 From: Joerg Schambacher <joerg@hifiberry.com>
3 Date: Tue, 15 Nov 2022 18:04:45 +0100
4 Subject: [PATCH] ASoC:ma120x0p: Corrects the volume level display
5
6 Fixes the wrongly changed 'limiter volume' display back to -50dB minimum
7 and sets the correct minimum volume level to -144dB to be aligned with
8 the controls and display in alsamixer etc.
9
10 Signed-off-by: Joerg Schambacher <joerg@hifiberry.com>
11 ---
12 sound/soc/codecs/ma120x0p.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 --- a/sound/soc/codecs/ma120x0p.c
16 +++ b/sound/soc/codecs/ma120x0p.c
17 @@ -893,8 +893,8 @@ static SOC_VALUE_ENUM_SINGLE_DECL(pwr_mo
18 pwr_mode_texts,
19 pwr_mode_values);
20
21 -static const DECLARE_TLV_DB_SCALE(ma120x0p_vol_tlv, -5000, 100, 0);
22 -static const DECLARE_TLV_DB_SCALE(ma120x0p_lim_tlv, -14400, 100, 0);
23 +static const DECLARE_TLV_DB_SCALE(ma120x0p_vol_tlv, -14400, 100, 0);
24 +static const DECLARE_TLV_DB_SCALE(ma120x0p_lim_tlv, -5000, 100, 0);
25 static const DECLARE_TLV_DB_SCALE(ma120x0p_lr_tlv, -5000, 100, 0);
26
27 static const struct snd_kcontrol_new ma120x0p_snd_controls[] = {