]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: audio-graph-card2-custom-sample.dtsi: add convert-rate for DPCM (MIXer)
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 1 Nov 2022 04:22:09 +0000 (04:22 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 7 Nov 2022 13:58:06 +0000 (13:58 +0000)
audio-graph-card2-custom-sample.dtsi is assuming that
DPCM sample is MIXer connection.

FE BE
        ****
CPU3 -- *  * -- Codec3
CPU4 -- *  *
        ****

CPU3/CPU4 need to convert rate in this case.
This patch adds missing "convert-rate" setting sample for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/8735b38fta.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card2-custom-sample.dtsi

index fe547c18771ff3108f05732f1b88e30e0f8ed5b3..994db61a26b38db1a40d8679a2fdacf483c6772c 100644 (file)
         *              +-+             +-+
         *
         * [DPCM]
+        *
+        *      CPU3/CPU4 are converting rate to 44100
+        *
         *      FE              BE
         *                ****
         *      cpu3 <-@--*  *--@-> codec3
-        *      cpu4 <-@--*  *
+        *      cpu4 <-@--*  *  (44.1kHz)
         *                ****
         *
         * [DPCM-Multi]
                        port@2  { codec2_ep:  endpoint { remote-endpoint = <&mcodec2_ep>; }; };
 
                        /* [DPCM]::BE */
-                       port@3  { codec3_ep:  endpoint { remote-endpoint = <&be00_ep>; }; };
+                       port@3  {
+                               convert-rate = <44100>;
+                               codec3_ep:  endpoint { remote-endpoint = <&be00_ep>; };
+                       };
 
                        /* [DPCM-Multi]::BE */
                        port@4  { codec4_ep:  endpoint { remote-endpoint = <&mbe1_ep>; }; };