]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: qcm6490-fairphone-fp5: Enable USB audio offload support
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 1 Aug 2025 13:51:06 +0000 (15:51 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 12 Aug 2025 03:56:31 +0000 (22:56 -0500)
Enable USB audio offloading which allows to play audio via a USB-C
headset with lower power consumption and enabling some other features.

This can be used like the following:

  $ amixer -c0 cset name='USB_RX Audio Mixer MultiMedia1' On
  $ aplay --device=plughw:0,0 test.wav

Compared to regular playback to the USB sound card no xhci-hcd
interrupts appear during playback, instead the ADSP will be handling the
USB transfers.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250801-fp5-usb-audio-offload-v1-2-240fc213d3d3@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts

index f17ac3dc9b0653884006070e678880dc3365c3b4..519e458e1a890814e5135450c60e5c71c1b75a81 100644 (file)
                        sound-dai = <&q6routing>;
                };
        };
+
+       usb-dai-link {
+               link-name = "USB Playback";
+
+               codec {
+                       sound-dai = <&q6usbdai USB_RX>;
+               };
+
+               cpu {
+                       sound-dai = <&q6afedai USB_RX>;
+               };
+
+               platform {
+                       sound-dai = <&q6routing>;
+               };
+       };
 };
 
 &spi13 {