]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: rt1320: fix speaker noise when volume bar is 100%
authorShuming Fan <shumingf@realtek.com>
Mon, 2 Jun 2025 08:58:51 +0000 (16:58 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 2 Jun 2025 11:27:41 +0000 (12:27 +0100)
This patch updates the settings to fix the speaker noise.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20250602085851.4081886-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1320-sdw.c

index f51ba345a16e641b954a3613b01dc844fa1728b6..015cc710e6dc08ae5e9b7a9ef765cdee15cd4f5e 100644 (file)
@@ -204,7 +204,7 @@ static const struct reg_sequence rt1320_vc_blind_write[] = {
        { 0x3fc2bfc0, 0x03 },
        { 0x0000d486, 0x43 },
        { SDW_SDCA_CTL(FUNC_NUM_AMP, RT1320_SDCA_ENT_PDE23, RT1320_SDCA_CTL_REQ_POWER_STATE, 0), 0x00 },
-       { 0x1000db00, 0x04 },
+       { 0x1000db00, 0x07 },
        { 0x1000db01, 0x00 },
        { 0x1000db02, 0x11 },
        { 0x1000db03, 0x00 },
@@ -225,6 +225,21 @@ static const struct reg_sequence rt1320_vc_blind_write[] = {
        { 0x1000db12, 0x00 },
        { 0x1000db13, 0x00 },
        { 0x1000db14, 0x45 },
+       { 0x1000db15, 0x0d },
+       { 0x1000db16, 0x01 },
+       { 0x1000db17, 0x00 },
+       { 0x1000db18, 0x00 },
+       { 0x1000db19, 0xbf },
+       { 0x1000db1a, 0x13 },
+       { 0x1000db1b, 0x09 },
+       { 0x1000db1c, 0x00 },
+       { 0x1000db1d, 0x00 },
+       { 0x1000db1e, 0x00 },
+       { 0x1000db1f, 0x12 },
+       { 0x1000db20, 0x09 },
+       { 0x1000db21, 0x00 },
+       { 0x1000db22, 0x00 },
+       { 0x1000db23, 0x00 },
        { 0x0000d540, 0x01 },
        { 0x0000c081, 0xfc },
        { 0x0000f01e, 0x80 },