]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: qrb5165-rb5: add compressed playback support
authorAlexey Klimov <alexey.klimov@linaro.org>
Fri, 28 Feb 2025 16:23:08 +0000 (16:23 +0000)
committerBjorn Andersson <andersson@kernel.org>
Thu, 13 Mar 2025 22:10:35 +0000 (17:10 -0500)
Audio DSP supports compressed playback on this SoC. It is required
to add compressed DAI and separate MultimeMedia DAI link to enable this.

Fcplay or cplay tools from tinycompress can playback, say, mp3 files:
fcplay -c 0 -d 3 test.mp3

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Link: https://lore.kernel.org/r/20250228162308.388818-1-alexey.klimov@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts

index 15b1873008101d166cfe1b2818b6f9fe61aefc9f..4cc14ab1b9ea0f92a12a12ef4df1cdc37bf5591c 100644 (file)
        dai@2 {
                reg = <2>;
        };
+
+       dai@3 {
+               direction = <Q6ASM_DAI_RX>;
+               is-compress-dai;
+               reg = <3>;
+       };
 };
 
 &sdhc_2 {
                "VA DMIC1", "vdd-micb",
                "MM_DL1",  "MultiMedia1 Playback",
                "MM_DL2",  "MultiMedia2 Playback",
-               "MultiMedia3 Capture", "MM_UL3";
+               "MultiMedia3 Capture", "MM_UL3",
+               "MM_DL4", "MultiMedia4 Playback";
 
        mm1-dai-link {
                link-name = "MultiMedia1";
                };
        };
 
+       mm4-dai-link {
+               link-name = "MultiMedia4";
+
+               cpu {
+                       sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
+               };
+       };
+
        hdmi-dai-link {
                link-name = "HDMI Playback";
                cpu {