]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: rt721: add some vendor registers
authorShuming Fan <shumingf@realtek.com>
Fri, 8 Aug 2025 05:57:19 +0000 (13:57 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 10 Aug 2025 20:09:15 +0000 (21:09 +0100)
This patch added some vendor registers to read for debugging.

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

index 582b47d692783ae11d89dae0621f1b5101c7531e..4d8a12b13015e49db7824a0eab4bc5f8e966e874 100644 (file)
@@ -63,15 +63,14 @@ static bool rt721_sdca_volatile_register(struct device *dev, unsigned int reg)
 static bool rt721_sdca_mbq_readable_register(struct device *dev, unsigned int reg)
 {
        switch (reg) {
-       case 0x0900007:
+       case 0x0900004 ... 0x0900009:
        case 0x0a00005:
        case 0x0c00005:
        case 0x0d00014:
        case 0x0310100:
-       case 0x2000001:
-       case 0x2000002:
-       case 0x2000003:
+       case 0x2000000 ... 0x2000003:
        case 0x2000013:
+       case 0x200002c:
        case 0x200003c:
        case 0x2000046:
        case 0x5810000:
@@ -134,6 +133,8 @@ static bool rt721_sdca_mbq_volatile_register(struct device *dev, unsigned int re
 {
        switch (reg) {
        case 0x0310100:
+       case 0x0900005:
+       case 0x0900009:
        case 0x0a00005:
        case 0x0c00005:
        case 0x0d00014:
@@ -141,6 +142,7 @@ static bool rt721_sdca_mbq_volatile_register(struct device *dev, unsigned int re
        case 0x200000d:
        case 0x2000019:
        case 0x2000020:
+       case 0x200002c:
        case 0x2000030:
        case 0x2000046:
        case 0x2000067: