linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone
@ 2025-07-23 14:03 Luca Weiss
  2025-07-23 14:03 ` [PATCH v3 1/3] ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode Luca Weiss
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Luca Weiss @ 2025-07-23 14:03 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai
  Cc: ~postmarketos/upstreaming, phone-devel, Krzysztof Kozlowski,
	linux-sound, linux-arm-msm, devicetree, linux-kernel, Luca Weiss,
	Wesley Cheng, Dmitry Baryshkov

Updated description for v3:
Add the missing bits for the sound subsystem to enable USB audio
offloading on the Fairphone 4. This is mostly sndcard enablement now.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
Changes in v3:
- Drop applied dts patches
- Rebase on next
- Link to v2: https://lore.kernel.org/r/20250501-fp4-usb-audio-offload-v2-0-30f4596281cd@fairphone.com

Changes in v2:
- Move num-hc-interrupters prop to sm6350.dtsi (Konrad)
- Sort cpu & codec nodes correctly (Konrad)
- Remove usb-soc-be prop as it's no longer needed (Wesley)
- Pick up tags
- Link to v1: https://lore.kernel.org/r/20250425-fp4-usb-audio-offload-v1-0-f90f571636e4@fairphone.com

---
Luca Weiss (3):
      ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode
      ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card
      ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible

 Documentation/devicetree/bindings/sound/qcom,q6afe.yaml  | 13 +++++++++++++
 Documentation/devicetree/bindings/sound/qcom,sm8250.yaml |  1 +
 sound/soc/qcom/sm8250.c                                  |  1 +
 3 files changed, 15 insertions(+)
---
base-commit: ac3f0fb04c50a909908fd375686c5ad6b27bee98
change-id: 20250425-fp4-usb-audio-offload-e5d7fb55d283

Best regards,
-- 
Luca Weiss <luca.weiss@fairphone.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v3 1/3] ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode
  2025-07-23 14:03 [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Luca Weiss
@ 2025-07-23 14:03 ` Luca Weiss
  2025-07-23 14:03 ` [PATCH v3 2/3] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card Luca Weiss
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Luca Weiss @ 2025-07-23 14:03 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai
  Cc: ~postmarketos/upstreaming, phone-devel, Krzysztof Kozlowski,
	linux-sound, linux-arm-msm, devicetree, linux-kernel, Luca Weiss,
	Wesley Cheng

Document the subnode for Q6USB, used for USB audio offloading.

Cc: Wesley Cheng <quic_wcheng@quicinc.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
 Documentation/devicetree/bindings/sound/qcom,q6afe.yaml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.yaml b/Documentation/devicetree/bindings/sound/qcom,q6afe.yaml
index 297aa362aa54ab41a956b3ceda73d4c7027d72a7..268f7073d7972da2ef46d36264c0f7d8f648071b 100644
--- a/Documentation/devicetree/bindings/sound/qcom,q6afe.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,q6afe.yaml
@@ -29,6 +29,12 @@ properties:
     unevaluatedProperties: false
     description: Qualcomm DSP audio ports
 
+  usbd:
+    type: object
+    $ref: /schemas/sound/qcom,q6usb.yaml#
+    unevaluatedProperties: false
+    description: Qualcomm DSP USB audio ports
+
 required:
   - compatible
   - dais
@@ -64,5 +70,12 @@ examples:
                     qcom,sd-lines = <0 1 2 3>;
                 };
             };
+
+            usbd {
+                compatible = "qcom,q6usb";
+                #sound-dai-cells = <1>;
+                iommus = <&apps_smmu 0x180f 0x0>;
+                qcom,usb-audio-intr-idx = /bits/ 16 <2>;
+            };
         };
     };

-- 
2.50.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v3 2/3] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card
  2025-07-23 14:03 [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Luca Weiss
  2025-07-23 14:03 ` [PATCH v3 1/3] ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode Luca Weiss
@ 2025-07-23 14:03 ` Luca Weiss
  2025-07-23 14:03 ` [PATCH v3 3/3] ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible Luca Weiss
  2025-07-23 16:48 ` [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Mark Brown
  3 siblings, 0 replies; 6+ messages in thread
From: Luca Weiss @ 2025-07-23 14:03 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai
  Cc: ~postmarketos/upstreaming, phone-devel, Krzysztof Kozlowski,
	linux-sound, linux-arm-msm, devicetree, linux-kernel, Luca Weiss

Document the bindings for the sound card on Fairphone 4 which uses the
older non-audioreach audio architecture.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
 Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
index 6b4a8dbdaf615b3254fcbe5f34dee512bf58fc96..5d3dbb6cb1ae89d9f0c376be580129e08a8126d1 100644
--- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
@@ -28,6 +28,7 @@ properties:
               - qcom,sm8750-sndcard
           - const: qcom,sm8450-sndcard
       - enum:
+          - fairphone,fp4-sndcard
           - fairphone,fp5-sndcard
           - qcom,apq8096-sndcard
           - qcom,qcm6490-idp-sndcard

-- 
2.50.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v3 3/3] ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible
  2025-07-23 14:03 [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Luca Weiss
  2025-07-23 14:03 ` [PATCH v3 1/3] ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode Luca Weiss
  2025-07-23 14:03 ` [PATCH v3 2/3] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card Luca Weiss
@ 2025-07-23 14:03 ` Luca Weiss
  2025-07-23 16:48 ` [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Mark Brown
  3 siblings, 0 replies; 6+ messages in thread
From: Luca Weiss @ 2025-07-23 14:03 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai
  Cc: ~postmarketos/upstreaming, phone-devel, Krzysztof Kozlowski,
	linux-sound, linux-arm-msm, devicetree, linux-kernel, Luca Weiss,
	Dmitry Baryshkov

Add a compatible for the SM7225-based Fairphone 4 which can use this
machine driver.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
 sound/soc/qcom/sm8250.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/qcom/sm8250.c b/sound/soc/qcom/sm8250.c
index 69c514fad0b1babafae4b61bb5ac944c6b4906dd..f5b75a06e5bd20e00874f4cd29d1b947ee89d79f 100644
--- a/sound/soc/qcom/sm8250.c
+++ b/sound/soc/qcom/sm8250.c
@@ -208,6 +208,7 @@ static int sm8250_platform_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id snd_sm8250_dt_match[] = {
+	{ .compatible = "fairphone,fp4-sndcard", .data = "sm7225" },
 	{ .compatible = "fairphone,fp5-sndcard", .data = "qcm6490" },
 	{ .compatible = "qcom,qrb4210-rb2-sndcard", .data = "sm4250" },
 	{ .compatible = "qcom,qrb5165-rb5-sndcard", .data = "sm8250" },

-- 
2.50.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone
  2025-07-23 14:03 [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Luca Weiss
                   ` (2 preceding siblings ...)
  2025-07-23 14:03 ` [PATCH v3 3/3] ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible Luca Weiss
@ 2025-07-23 16:48 ` Mark Brown
  2025-07-24  6:46   ` Luca Weiss
  3 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2025-07-23 16:48 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai,
	Luca Weiss
  Cc: ~postmarketos/upstreaming, phone-devel, Krzysztof Kozlowski,
	linux-sound, linux-arm-msm, devicetree, linux-kernel,
	Wesley Cheng, Dmitry Baryshkov

On Wed, 23 Jul 2025 16:03:37 +0200, Luca Weiss wrote:
> Updated description for v3:
> Add the missing bits for the sound subsystem to enable USB audio
> offloading on the Fairphone 4. This is mostly sndcard enablement now.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/3] ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode
      commit: b102c9d89fecd72be83eaab9b384285e2d0dc940
[2/3] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card
      commit: d664e75317e19bb79b6d207f7729e35eca504a6a
[3/3] ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible
      commit: c58c35ef6ae62e36927f506a5afc66610b7261d9

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone
  2025-07-23 16:48 ` [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Mark Brown
@ 2025-07-24  6:46   ` Luca Weiss
  0 siblings, 0 replies; 6+ messages in thread
From: Luca Weiss @ 2025-07-24  6:46 UTC (permalink / raw)
  To: Mark Brown, Srinivas Kandagatla, Liam Girdwood, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai
  Cc: ~postmarketos/upstreaming, phone-devel, Krzysztof Kozlowski,
	linux-sound, linux-arm-msm, devicetree, linux-kernel,
	Wesley Cheng, Dmitry Baryshkov

On Wed Jul 23, 2025 at 6:48 PM CEST, Mark Brown wrote:
> On Wed, 23 Jul 2025 16:03:37 +0200, Luca Weiss wrote:
>> Updated description for v3:
>> Add the missing bits for the sound subsystem to enable USB audio
>> offloading on the Fairphone 4. This is mostly sndcard enablement now.
>> 
>> 
>
> Applied to
>
>    https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
>
> Thanks!
>
> [1/3] ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode
>       commit: b102c9d89fecd72be83eaab9b384285e2d0dc940
> [2/3] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card
>       commit: d664e75317e19bb79b6d207f7729e35eca504a6a
> [3/3] ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible
>       commit: c58c35ef6ae62e36927f506a5afc66610b7261d9

Thanks, appreciate it!

Regards
Luca

>
> All being well this means that it will be integrated into the linux-next
> tree (usually sometime in the next 24 hours) and sent to Linus during
> the next merge window (or sooner if it is a bug fix), however if
> problems are discovered then the patch may be dropped or reverted.
>
> You may get further e-mails resulting from automated or manual testing
> and review of the tree, please engage with people reporting problems and
> send followup patches addressing any issues that are reported if needed.
>
> If any updates are required or you are submitting further changes they
> should be sent as incremental updates against current git, existing
> patches will not be replaced.
>
> Please add any relevant lists and maintainers to the CCs when replying
> to this mail.
>
> Thanks,
> Mark


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-24  6:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23 14:03 [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Luca Weiss
2025-07-23 14:03 ` [PATCH v3 1/3] ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode Luca Weiss
2025-07-23 14:03 ` [PATCH v3 2/3] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card Luca Weiss
2025-07-23 14:03 ` [PATCH v3 3/3] ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible Luca Weiss
2025-07-23 16:48 ` [PATCH v3 0/3] Enable USB audio offloading on Fairphone 4 smartphone Mark Brown
2025-07-24  6:46   ` Luca Weiss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).