Skip to contentSkip to conversation

Enable soundcard on Motorola Edge 30

PATCH Applied Val Packett 6 participants 13 messages Oct 16 – Nov 8

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

cover Enable soundcard on Motorola Edge 30

This series enables sound support on motorola-dubai, at least the speakers.. The WCD that handles microphones and analog USB-C sound is left out because it would first need:
https://lore.kernel.org/all/[email protected]/

The senary MI2S patches were previously part of:
https://lore.kernel.org/all/[email protected]/

and that series mixed up too many things and got bogged down due to the TDM stuff that's not relevant to this device..

Thanks,
~val

---

Val Packett (5):
ASoC: qcom: qdsp6: q6routing: add Senary MI2S ports
ASoC: qcom: sm8250: add Senary MI2S RX support
ASoC: dt-bindings: qcom,sm8250: Add Motorola Edge 30 sound card
ASoC: qcom: sm8250: Add motorola-dubai soundcard compatible
arm64: dts: qcom: motorola-dubai: Add sound card with aw88261 speakers

 .../bindings/sound/qcom,sm8250.yaml           |   1 +
 .../qcom/sm7325-motorola-dubai-common.dtsi    | 119 ++++++++++++++++++
 sound/soc/qcom/qdsp6/q6routing.c              |  11 ++
 sound/soc/qcom/sm8250.c                       |   9 ++
 4 files changed, 140 insertions(+)
Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/5 ASoC: qcom: qdsp6: q6routing: add Senary MI2S ports

This commit adds support for senary MI2S mixers.

---
 sound/soc/qcom/qdsp6/q6routing.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
sound/soc/qcom/qdsp6/q6routing.c +11 -0
index d076c99f197f..ea511200c8d7 100644
@@ -68,6 +68,7 @@
 	{ mix_name, "SEC_MI2S_TX", "SEC_MI2S_TX" },	\
 	{ mix_name, "QUAT_MI2S_TX", "QUAT_MI2S_TX" },	\
 	{ mix_name, "QUIN_MI2S_TX", "QUIN_MI2S_TX" },	\
+	{ mix_name, "SEN_MI2S_TX", "SEN_MI2S_TX" },	\
 	{ mix_name, "TERT_MI2S_TX", "TERT_MI2S_TX" },		\
 	{ mix_name, "SLIMBUS_0_TX", "SLIMBUS_0_TX" },		\
 	{ mix_name, "SLIMBUS_1_TX", "SLIMBUS_1_TX" },		\
@@ -152,6 +153,9 @@
 	SOC_SINGLE_EXT("QUIN_MI2S_TX", QUINARY_MI2S_TX,			\
 		id, 1, 0, msm_routing_get_audio_mixer,			\
 		msm_routing_put_audio_mixer),				\
+	SOC_SINGLE_EXT("SEN_MI2S_TX", SENARY_MI2S_TX,			\
+		id, 1, 0, msm_routing_get_audio_mixer,			\
+		msm_routing_put_audio_mixer),				\
 	SOC_SINGLE_EXT("SLIMBUS_0_TX", SLIMBUS_0_TX,			\
 		id, 1, 0, msm_routing_get_audio_mixer,			\
 		msm_routing_put_audio_mixer),				\
@@ -563,6 +567,9 @@ static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
 static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
 	Q6ROUTING_RX_MIXERS(QUINARY_MI2S_RX) };
 
+static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
+	Q6ROUTING_RX_MIXERS(SENARY_MI2S_RX) };
+
 static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
 	Q6ROUTING_RX_MIXERS(TERTIARY_MI2S_RX) };
 
@@ -825,6 +832,9 @@ static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
 	SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
 			   quinary_mi2s_rx_mixer_controls,
 			   ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
+	SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
+			   senary_mi2s_rx_mixer_controls,
+			   ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
 	SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
 			   tertiary_mi2s_rx_mixer_controls,
 			   ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
@@ -1038,6 +1048,7 @@ static const struct snd_soc_dapm_route intercon[] = {
 	Q6ROUTING_RX_DAPM_ROUTE("SLIMBUS_6_RX Audio Mixer", "SLIMBUS_6_RX"),
 	Q6ROUTING_RX_DAPM_ROUTE("QUAT_MI2S_RX Audio Mixer", "QUAT_MI2S_RX"),
 	Q6ROUTING_RX_DAPM_ROUTE("QUIN_MI2S_RX Audio Mixer", "QUIN_MI2S_RX"),
+	Q6ROUTING_RX_DAPM_ROUTE("SEN_MI2S_RX Audio Mixer", "SEN_MI2S_RX"),
 	Q6ROUTING_RX_DAPM_ROUTE("TERT_MI2S_RX Audio Mixer", "TERT_MI2S_RX"),
 	Q6ROUTING_RX_DAPM_ROUTE("SEC_MI2S_RX Audio Mixer", "SEC_MI2S_RX"),
 	Q6ROUTING_RX_DAPM_ROUTE("PRI_MI2S_RX Audio Mixer", "PRI_MI2S_RX"),
Signature · 1 line
2.55.0
#2 lore raw

PATCH 2/5 ASoC: qcom: sm8250: add Senary MI2S RX support

In reply to Val Packett

Add support for the SENARY_MI2S_RX DAI which is used on some devices to send audio data to speaker amplifiers.

---
 sound/soc/qcom/sm8250.c | 8 ++++++++
 1 file changed, 8 insertions(+)
sound/soc/qcom/sm8250.c +8 -0
index 76dc3a3f4a31..2d49b04cb1f6 100644
@@ -112,6 +112,14 @@ static int sm8250_snd_startup(struct snd_pcm_substream *substream)
 		snd_soc_dai_set_fmt(cpu_dai, fmt);
 		snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
 		break;
+	case SENARY_MI2S_RX:
+		codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
+		snd_soc_dai_set_sysclk(cpu_dai,
+			Q6AFE_LPASS_CLK_ID_SEN_MI2S_IBIT,
+			MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK);
+		snd_soc_dai_set_fmt(cpu_dai, fmt);
+		snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
+		break;
 	case LPI_MI2S_RX_0:
 		codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
 		snd_soc_dai_set_sysclk(cpu_dai,
Signature · 1 line
2.55.0
#3 lore raw

Re: [PATCH 2/5] ASoC: qcom: sm8250: add Senary MI2S RX support

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] sound: missing audio format configuration for secondary codec DAIs - [Medium] sound: unhandled…

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] sound: missing audio format configuration for secondary codec DAIs
- [Medium] sound: unhandled return values from DAI hardware configuration functions --

commit a955f60b4e954bf749d62fe6837b52a492472249
Author: Val Packett <[email protected]>
ASoC: qcom: sm8250: add Senary MI2S RX support

This patch adds support for the SENARY_MI2S_RX DAI to allow sending audio data to speaker amplifiers on some devices.

sound/soc/qcom/sm8250.c static int sm8250_snd_startup(struct snd_pcm_substream *substream) · line 119

Quoted 13 lines
sound/soc/qcom/sm8250.c +5 -0
index 76dc3a3f4a312..2d49b04cb1f69 100644
@@ -112,6 +112,14 @@ static int sm8250_snd_startup(struct snd_pcm_substream *substream)
 		snd_soc_dai_set_fmt(cpu_dai, fmt);
 		snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
 		break;
+	case SENARY_MI2S_RX:
+		codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
+		snd_soc_dai_set_sysclk(cpu_dai,
+			Q6AFE_LPASS_CLK_ID_SEN_MI2S_IBIT,
+			MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK);

[Severity: Medium]
Can these hardware configuration functions fail silently?

The newly added code calls snd_soc_dai_set_sysclk() and snd_soc_dai_set_fmt() for both the CPU and codec DAIs, but it does not check or propagate their return values.

If these operations return an error like -EINVAL or -ENOTSUPP, the initialization sequence will silently continue, potentially leaving the hardware in a misconfigured state and causing difficult-to-debug audio failures later.

sound/soc/qcom/sm8250.c static int sm8250_snd_startup(struct snd_pcm_substream *substream) · line 121

Quoted 2 lines
sound/soc/qcom/sm8250.c +2 -0
+		snd_soc_dai_set_fmt(cpu_dai, fmt);
+		snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);

[Severity: High]
Does this code miss configuring the audio format for secondary codec DAIs?

In sm8250_snd_startup(), codec_dai is retrieved earlier in the function using:

	struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);

This only fetches the first codec on the runtime link. Since the SENARY_MI2S_RX link is intended for speaker amplifiers, there may be multiple speaker codecs (such as left and right channels) on this link.

Because the driver applies the I2S format only to this single codec_dai, any additional amplifiers will not receive the required format configuration. Could this result in silent playback on one channel? Would it be better to iterate over all codec DAIs using for_each_rtd_codec_dais() instead?

Quoted 4 lines
sound/soc/qcom/sm8250.c +1 -0
+		break;
 	case LPI_MI2S_RX_0:
 		codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
 		snd_soc_dai_set_sysclk(cpu_dai,
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#4 lore raw

PATCH 3/5 ASoC: dt-bindings: qcom,sm8250: Add Motorola Edge 30 sound card

In reply to Val Packett

Document the bindings for the sound card on motorola-dubai which uses the Elite DSP architecture.

---
 Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/sound/qcom,sm8250.yaml +1 -0
index fc7bccdace0f..c76c9c670bc1 100644
@@ -36,6 +36,7 @@ properties:
           - ayaneo,pocket-s2-sndcard
           - fairphone,fp4-sndcard
           - fairphone,fp5-sndcard
+          - motorola,dubai-sndcard
           - qcom,apq8096-sndcard
           - qcom,glymur-sndcard
           - qcom,qcm6490-idp-sndcard
Signature · 1 line
2.55.0
#6 lore raw

PATCH 4/5 ASoC: qcom: sm8250: Add motorola-dubai soundcard compatible

In reply to Val Packett

Add a compatible for the SM7325-based Motorola Edge 30 which can use this machine driver.

---
 sound/soc/qcom/sm8250.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/qcom/sm8250.c +1 -0
index 2d49b04cb1f6..5866f1f34b3d 100644
@@ -215,6 +215,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 = "motorola,dubai-sndcard", .data = "sm7325" },
 	{ .compatible = "qcom,qrb2210-sndcard", .data = "qcm2290" },
 	{ .compatible = "qcom,qrb4210-rb2-sndcard", .data = "sm4250" },
 	{ .compatible = "qcom,qrb5165-rb5-sndcard", .data = "sm8250" },
Signature · 1 line
2.55.0
#7 lore raw

PATCH 5/5 arm64: dts: qcom: motorola-dubai: Add sound card with aw88261 speakers

In reply to Val Packett

Enable the sndcard node with three MultiMedia frontends, a USB offload RX link, and two Awinic AW88261 speaker amps on senary MI2S.

While here, use the correct compatible for audiocc for this phone, and remove references to power-domains from a 'reserved' node.

---
 .../qcom/sm7325-motorola-dubai-common.dtsi    | 119 ++++++++++++++++++
 1 file changed, 119 insertions(+)
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +119 -0
index 3860ab8508a0..1e1c195de1af 100644
@@ -16,6 +16,8 @@
 #include <dt-bindings/leds/common.h>
 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
+#include <dt-bindings/sound/qcom,q6asm.h>
 
 #include "sm7325.dtsi"
 #include "pm7325.dtsi"
@@ -699,6 +701,40 @@ &gpu_zap_shader {
 	firmware-name = "qcom/sm7325/motorola/dubai/a660_zap.mbn";
 };
 
+&i2c1 {
+	clock-frequency = <100000>;
+
+	status = "okay";
+
+	/* Bottom speaker */
+	aw88261_r: audio-codec@34 {
+		compatible = "awinic,aw88261";
+		reg = <0x34>;
+
+		dvdd-supply = <&vreg_l18b_1p8>;
+		sound-name-prefix = "Amplifier R";
+		firmware-name = "qcom/sm7325/motorola/dubai/aw88261_acf.bin";
+
+		awinic,audio-channel = <0>;
+
+		#sound-dai-cells = <0>;
+	};
+
+	/* Top speaker / ear speaker */
+	aw88261_l: audio-codec@35 {
+		compatible = "awinic,aw88261";
+		reg = <0x35>;
+
+		dvdd-supply = <&vreg_l18b_1p8>;
+		sound-name-prefix = "Amplifier L";
+		firmware-name = "qcom/sm7325/motorola/dubai/aw88261_acf.bin";
+
+		awinic,audio-channel = <1>;
+
+		#sound-dai-cells = <0>;
+	};
+};
+
 &i2c4 {
 	clock-frequency = <100000>;
 
@@ -732,6 +768,11 @@ &ipa {
 	status = "okay";
 };
 
+&lpass_audiocc {
+	compatible = "qcom,qcm6490-lpassaudiocc";
+	/delete-property/ power-domains;
+};
+
 &pm7250b_adc {
 	channel@4e {
 		reg = <ADC5_AMUX_THM2_100K_PU>;
@@ -972,10 +1013,22 @@ &pon_resin {
 	status = "okay";
 };
 
+&q6afedai {
+	dai@147 {
+		reg = <SENARY_MI2S_RX>;
+		qcom,sd-lines = <0>;
+	};
+};
+
 &qfprom {
 	vcc-supply = <&vdd_qfprom>;
 };
 
+&qup_i2c1_data_clk {
+	drive-strength = <2>;
+	bias-pull-up;
+};
+
 &qup_spi13_cs {
 	drive-strength = <6>;
 	bias-pull-down;
@@ -1066,6 +1119,72 @@ &rmtfs_mem {
 		    <QCOM_SCM_VMID_NAV>;
 };
 
+&sound {
+	compatible = "motorola,dubai-sndcard";
+	model = "Motorola-dubai";
+
+	pinctrl-0 = <&lpass_i2s2_active>;
+	pinctrl-1 = <&lpass_i2s2_sleep>;
+	pinctrl-names = "default",
+			"sleep";
+
+	mm1-dai-link {
+		link-name = "MultiMedia1";
+
+		cpu {
+			sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
+		};
+	};
+
+	mm2-dai-link {
+		link-name = "MultiMedia2";
+
+		cpu {
+			sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
+		};
+	};
+
+	mm3-dai-link {
+		link-name = "MultiMedia3";
+
+		cpu {
+			sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
+		};
+	};
+
+	i2s-dai-link {
+		link-name = "Senary MI2S Playback";
+
+		codec {
+			sound-dai = <&aw88261_l>, <&aw88261_r>;
+		};
+
+		cpu {
+			sound-dai = <&q6afedai SENARY_MI2S_RX>;
+		};
+
+		platform {
+			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 {
 	status = "okay";
 
Signature · 1 line
2.55.0
#8 lore raw

Re: [PATCH 5/5] arm64: dts: qcom: motorola-dubai: Add sound card with aw88261 speakers

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] dt-bindings: aw88261 audio channel assignment inverted - [Low] commit-message: inaccurate…

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: aw88261 audio channel assignment inverted
- [Low] commit-message: inaccurate description of power-domains removal
--

commit df15644ca6ae81e8d6c78e4e8358dd5c5c68d8f0
Author: Val Packett <[email protected]>
arm64: dts: qcom: motorola-dubai: Add sound card with aw88261 speakers

This commit enables the sndcard node with MultiMedia frontends, a USB offload RX link, and two aw88261 speaker amplifiers. It also fixes the audiocc compatible string and removes power-domains from a node.

Quoted 2 lines

While here, use the correct compatible for audiocc for this phone, and remove references to power-domains from a 'reserved' node.

[Severity: Low]
Is this description accurate? The patch code removes the power-domains property from lpass_audiocc, which is a clock controller, not a reserved memory node.

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +0 -0
index 3860ab8508a09..1e1c195de1af1 100644

[ ... ]

Quoted 9 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +5 -0
@@ -699,6 +701,40 @@ &gpu_zap_shader {
 	firmware-name = "qcom/sm7325/motorola/dubai/a660_zap.mbn";
 };
 
+&i2c1 {
+	clock-frequency = <100000>;
+
+	status = "okay";
+

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi &gpu_zap_shader { · line 718

Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +10 -0
+	/* Bottom speaker */
+	aw88261_r: audio-codec@34 {
+		compatible = "awinic,aw88261";
+		reg = <0x34>;
+
+		dvdd-supply = <&vreg_l18b_1p8>;
+		sound-name-prefix = "Amplifier R";
+		firmware-name = "qcom/sm7325/motorola/dubai/aw88261_acf.bin";
+
+		awinic,audio-channel = <0>;

[Severity: Medium]
Does this assign the right physical speaker to the left audio channel? Channel 0 is typically the left channel, which contradicts the "Amplifier R" and "Bottom speaker" designation. This might result in inverted stereo audio playback.

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +4 -0
+
+		#sound-dai-cells = <0>;
+	};
+

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi &gpu_zap_shader { · line 732

Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +10 -0
+	/* Top speaker / ear speaker */
+	aw88261_l: audio-codec@35 {
+		compatible = "awinic,aw88261";
+		reg = <0x35>;
+
+		dvdd-supply = <&vreg_l18b_1p8>;
+		sound-name-prefix = "Amplifier L";
+		firmware-name = "qcom/sm7325/motorola/dubai/aw88261_acf.bin";
+
+		awinic,audio-channel = <1>;

[Severity: Medium]
Similarly, does this assign the left physical speaker to the right audio channel? Assigning 1 (typically the right channel) to the top/left speaker contradicts its physical placement and name.

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +4 -0
+
+		#sound-dai-cells = <0>;
+	};
+};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=5
#9 lore raw

Re: [PATCH 5/5] arm64: dts: qcom: motorola-dubai: Add sound card with aw88261 speakers

Quoted 42 lines · On 10/16/26 5:00 AM, [email protected] wrote:

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: aw88261 audio channel assignment inverted
- [Low] commit-message: inaccurate description of power-domains removal
--

commit df15644ca6ae81e8d6c78e4e8358dd5c5c68d8f0
Author: Val Packett <[email protected]>
arm64: dts: qcom: motorola-dubai: Add sound card with aw88261 speakers

This commit enables the sndcard node with MultiMedia frontends, a USB offload RX link, and two aw88261 speaker amplifiers. It also fixes the audiocc compatible string and removes power-domains from a node.

Quoted 2 lines

While here, use the correct compatible for audiocc for this phone, and remove references to power-domains from a 'reserved' node.

[Severity: Low]
Is this description accurate? The patch code removes the power-domains property from lpass_audiocc, which is a clock controller, not a reserved memory node.

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +0 -0
index 3860ab8508a09..1e1c195de1af1 100644

[ ... ]

Quoted 16 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +12 -0
@@ -699,6 +701,40 @@ &gpu_zap_shader {
  	firmware-name = "qcom/sm7325/motorola/dubai/a660_zap.mbn";
  };
 
+&i2c1 {
+	clock-frequency = <100000>;
+
+	status = "okay";
+
+	/* Bottom speaker */
+	aw88261_r: audio-codec@34 {
+		compatible = "awinic,aw88261";
+		reg = <0x34>;
+
+		dvdd-supply = <&vreg_l18b_1p8>;
+		sound-name-prefix = "Amplifier R";
Quoted 8 lines

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi &gpu_zap_shader { · line 718

Quoted 3 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai-common.dtsi +3 -0
+		firmware-name = "qcom/sm7325/motorola/dubai/aw88261_acf.bin";
+
+		awinic,audio-channel = <0>;

[Severity: Medium]
Does this assign the right physical speaker to the left audio channel? Channel 0 is typically the left channel, which contradicts the "Amplifier R" and "Bottom speaker" designation. This might result in inverted stereo audio playback.

(It actually was inverted before, and this is the correct tested configuration, but I think awinic,audio-channel might just be unnecessary now, yet to test that though)

Reviewed-by on v1 5/5
#10 lore raw

Re: [PATCH 5/5] arm64: dts: qcom: motorola-dubai: Add sound card with aw88261 speakers

In reply to Val Packett
Quoted 8 lines · Val Packett

Enable the sndcard node with three MultiMedia frontends, a USB offload RX link, and two Awinic AW88261 speaker amps on senary MI2S.

While here, use the correct compatible for audiocc for this phone, and remove references to power-domains from a 'reserved' node.

---

Konrad

maintainer
#11 lore raw

Re: (subset) [PATCH 0/5] Enable soundcard on Motorola Edge 30

In reply to Val Packett
Quoted 8 lines · Val Packett

Enable soundcard on Motorola Edge 30

This series enables sound support on motorola-dubai, at least the speakers.. The WCD that handles microphones and analog USB-C sound is left out because it would first need:
https://lore.kernel.org/all/[email protected]/

[...]

Applied to

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

Thanks!

[1/5] ASoC: qcom: qdsp6: q6routing: add Senary MI2S ports

      https://git.kernel.org/broonie/sound/c/2b20c976bb63
[2/5] ASoC: qcom: sm8250: add Senary MI2S RX support
      https://git.kernel.org/broonie/sound/c/41c6eb15291f
[3/5] ASoC: dt-bindings: qcom,sm8250: Add Motorola Edge 30 sound card
      https://git.kernel.org/broonie/sound/c/a0f1887655af
[4/5] ASoC: qcom: sm8250: Add motorola-dubai soundcard compatible
      https://git.kernel.org/broonie/sound/c/32c9d661dab0

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

maintainer Applied
#12 lore raw

Re: (subset) [PATCH 0/5] Enable soundcard on Motorola Edge 30

In reply to Val Packett
Quoted 9 lines · Val Packett

This series enables sound support on motorola-dubai, at least the speakers.. The WCD that handles microphones and analog USB-C sound is left out because it would first need:
https://lore.kernel.org/all/[email protected]/

The senary MI2S patches were previously part of:
https://lore.kernel.org/all/[email protected]/

[...]

Applied, thanks!

[5/5] arm64: dts: qcom: motorola-dubai: Add sound card with aw88261 speakers

      commit: ba44607caa70c16a6c36d1616b669b853ffd518e

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>