From: Srinivas Kandagatla <srini@kernel.org>
To: Richard Acayan <mailingradian@gmail.com>,
Srinivas Kandagatla <srini@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Konrad Dybcio <konradybcio@kernel.org>,
linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org
Cc: Nickolay Goppen <setotau@mainlining.org>,
Adam Skladowski <a39.skl@gmail.com>,
Vladimir Lypak <vladimir.lypak@gmail.com>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>,
Johan Hovold <johan@kernel.org>, Kees Cook <kees@kernel.org>,
Charles Keepax <ckeepax@opensource.cirrus.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Subject: Re: [PATCH v6 07/15] ASoC: qdsp6: q6afe: add internal mi2s support
Date: Thu, 30 Jul 2026 23:51:55 +0100 [thread overview]
Message-ID: <27f61470-349a-4166-aac9-64f33f1b9dc7@kernel.org> (raw)
In-Reply-To: <20260730174353.108023-8-mailingradian@gmail.com>
On 7/30/26 6:43 PM, Richard Acayan wrote:
> The bindings for LPI MI2S ports, originally exclusive to q6apm, can be
> used for internal MI2S ports on q6afe. Add the port mappings for
> internal MI2S, found on the Snapdragon 660 internal sound card.
>
> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
> ---
lgtm,
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
--srini
> sound/soc/qcom/qdsp6/q6afe.c | 56 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 56 insertions(+)
>
> diff --git a/sound/soc/qcom/qdsp6/q6afe.c b/sound/soc/qcom/qdsp6/q6afe.c
> index 40237267fda0..1d68a80e8e0c 100644
> --- a/sound/soc/qcom/qdsp6/q6afe.c
> +++ b/sound/soc/qcom/qdsp6/q6afe.c
> @@ -132,6 +132,20 @@
> #define AFE_PORT_ID_QUINARY_MI2S_TX 0x1017
> #define AFE_PORT_ID_SENARY_MI2S_RX 0x1018
> #define AFE_PORT_ID_SENARY_MI2S_TX 0x1019
> +#define AFE_PORT_ID_INT0_MI2S_RX 0x102e
> +#define AFE_PORT_ID_INT0_MI2S_TX 0x102f
> +#define AFE_PORT_ID_INT1_MI2S_RX 0x1030
> +#define AFE_PORT_ID_INT1_MI2S_TX 0x1031
> +#define AFE_PORT_ID_INT2_MI2S_RX 0x1032
> +#define AFE_PORT_ID_INT2_MI2S_TX 0x1033
> +#define AFE_PORT_ID_INT3_MI2S_RX 0x1034
> +#define AFE_PORT_ID_INT3_MI2S_TX 0x1035
> +#define AFE_PORT_ID_INT4_MI2S_RX 0x1036
> +#define AFE_PORT_ID_INT4_MI2S_TX 0x1037
> +#define AFE_PORT_ID_INT5_MI2S_RX 0x1038
> +#define AFE_PORT_ID_INT5_MI2S_TX 0x1039
> +#define AFE_PORT_ID_INT6_MI2S_RX 0x103a
> +#define AFE_PORT_ID_INT6_MI2S_TX 0x103b
>
> /* Start of the range of port IDs for TDM devices. */
> #define AFE_PORT_ID_TDM_PORT_RANGE_START 0x9000
> @@ -931,6 +945,34 @@ static struct afe_port_map port_maps[AFE_PORT_MAX] = {
> [RX_CODEC_DMA_RX_7] = { AFE_PORT_ID_RX_CODEC_DMA_RX_7,
> RX_CODEC_DMA_RX_7, 1, 1},
> [USB_RX] = { AFE_PORT_ID_USB_RX, USB_RX, 1, 1},
> + [LPI_MI2S_RX_0] = { AFE_PORT_ID_INT0_MI2S_RX,
> + LPI_MI2S_RX_0, 1, 1},
> + [LPI_MI2S_TX_0] = { AFE_PORT_ID_INT0_MI2S_TX,
> + LPI_MI2S_TX_0, 0, 1},
> + [LPI_MI2S_RX_1] = { AFE_PORT_ID_INT1_MI2S_RX,
> + LPI_MI2S_RX_1, 1, 1},
> + [LPI_MI2S_TX_1] = { AFE_PORT_ID_INT1_MI2S_TX,
> + LPI_MI2S_TX_1, 0, 1},
> + [LPI_MI2S_RX_2] = { AFE_PORT_ID_INT2_MI2S_RX,
> + LPI_MI2S_RX_2, 1, 1},
> + [LPI_MI2S_TX_2] = { AFE_PORT_ID_INT2_MI2S_TX,
> + LPI_MI2S_TX_2, 0, 1},
> + [LPI_MI2S_RX_3] = { AFE_PORT_ID_INT3_MI2S_RX,
> + LPI_MI2S_RX_3, 1, 1},
> + [LPI_MI2S_TX_3] = { AFE_PORT_ID_INT3_MI2S_TX,
> + LPI_MI2S_TX_3, 0, 1},
> + [LPI_MI2S_RX_4] = { AFE_PORT_ID_INT4_MI2S_RX,
> + LPI_MI2S_RX_4, 1, 1},
> + [LPI_MI2S_TX_4] = { AFE_PORT_ID_INT4_MI2S_TX,
> + LPI_MI2S_TX_4, 0, 1},
> + [LPI_MI2S_RX_5] = { AFE_PORT_ID_INT5_MI2S_RX,
> + LPI_MI2S_RX_5, 1, 1},
> + [LPI_MI2S_TX_5] = { AFE_PORT_ID_INT5_MI2S_TX,
> + LPI_MI2S_TX_5, 0, 1},
> + [LPI_MI2S_RX_6] = { AFE_PORT_ID_INT6_MI2S_RX,
> + LPI_MI2S_RX_6, 1, 1},
> + [LPI_MI2S_TX_6] = { AFE_PORT_ID_INT6_MI2S_TX,
> + LPI_MI2S_TX_6, 0, 1},
> };
>
> static void q6afe_port_free(struct kref *ref)
> @@ -1785,6 +1827,20 @@ struct q6afe_port *q6afe_port_get_from_id(struct device *dev, int id)
> case AFE_PORT_ID_QUINARY_MI2S_TX:
> case AFE_PORT_ID_SENARY_MI2S_RX:
> case AFE_PORT_ID_SENARY_MI2S_TX:
> + case AFE_PORT_ID_INT0_MI2S_RX:
> + case AFE_PORT_ID_INT0_MI2S_TX:
> + case AFE_PORT_ID_INT1_MI2S_RX:
> + case AFE_PORT_ID_INT1_MI2S_TX:
> + case AFE_PORT_ID_INT2_MI2S_RX:
> + case AFE_PORT_ID_INT2_MI2S_TX:
> + case AFE_PORT_ID_INT3_MI2S_RX:
> + case AFE_PORT_ID_INT3_MI2S_TX:
> + case AFE_PORT_ID_INT4_MI2S_RX:
> + case AFE_PORT_ID_INT4_MI2S_TX:
> + case AFE_PORT_ID_INT5_MI2S_RX:
> + case AFE_PORT_ID_INT5_MI2S_TX:
> + case AFE_PORT_ID_INT6_MI2S_RX:
> + case AFE_PORT_ID_INT6_MI2S_TX:
> cfg_type = AFE_PARAM_ID_I2S_CONFIG;
> break;
> case AFE_PORT_ID_PRIMARY_TDM_RX ... AFE_PORT_ID_QUINARY_TDM_TX_7:
next prev parent reply other threads:[~2026-07-30 22:52 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 17:43 [PATCH v6 00/15] SDM660 sound card and internal MI2S support Richard Acayan
2026-07-30 17:43 ` [PATCH v6 01/15] ASoC: dt-bindings: qcom,sm8250: add compatible for sdm660 Richard Acayan
2026-07-30 17:43 ` [PATCH v6 02/15] ASoC: dt-bindings: qcom: q6dsp: add support for lpi mi2s ports 5-6 Richard Acayan
2026-07-30 17:43 ` [PATCH v6 03/15] ASoC: dt-bindings: pm8916-wcd-analog-codec: Document pm8950/pm8953 Richard Acayan
2026-07-30 17:43 ` [PATCH v6 04/15] ASoC: dt-bindings: pm8916-analog-codec: Add PM660L compatible Richard Acayan
2026-07-30 17:43 ` [PATCH v6 05/15] ASoC: dt-bindings: msm8916-digital-codec: Add SDM660 compatible Richard Acayan
2026-07-30 17:43 ` [PATCH v6 06/15] ASoC: qdsp6: q6dsp-lpass-ports: add support for lpi mi2s ports 5-6 Richard Acayan
2026-07-30 18:15 ` sashiko-bot
2026-07-30 22:49 ` Srinivas Kandagatla
2026-07-30 17:43 ` [PATCH v6 07/15] ASoC: qdsp6: q6afe: add internal mi2s support Richard Acayan
2026-07-30 18:21 ` sashiko-bot
2026-07-30 22:51 ` Srinivas Kandagatla [this message]
2026-07-30 17:43 ` [PATCH v6 08/15] ASoC: qdsp6: q6afe-dai: " Richard Acayan
2026-07-30 18:06 ` sashiko-bot
2026-07-30 22:55 ` Srinivas Kandagatla
2026-07-30 17:43 ` [PATCH v6 09/15] ASoC: qdsp6: q6routing: add lpi " Richard Acayan
2026-07-30 22:57 ` Srinivas Kandagatla
2026-07-30 17:43 ` [PATCH v6 10/15] ASoC: qdsp6: common: support headphone jacks connected to lpi mi2s Richard Acayan
2026-07-30 17:43 ` [PATCH v6 11/15] ASoC: qcom: sm8250: add support for LPI_MI2S_RX_0 and LPI_MI2S_TX_3 Richard Acayan
2026-07-30 18:02 ` sashiko-bot
2026-07-30 17:43 ` [PATCH v6 12/15] ASoC: qcom: sm8250: add SDM660 compatible Richard Acayan
2026-07-30 17:43 ` [PATCH v6 13/15] ASoC: msm8916-wcd-analog: add pm8950 codec Richard Acayan
2026-07-30 17:59 ` sashiko-bot
2026-07-30 17:43 ` [PATCH v6 14/15] ASoC: msm8916-wcd-analog: add pm8953 codec Richard Acayan
2026-07-30 18:03 ` sashiko-bot
2026-07-30 17:43 ` [PATCH v6 15/15] ASoC: msm8916-wcd-analog: add quirk for cajon 2.0 Richard Acayan
2026-07-30 18:03 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27f61470-349a-4166-aac9-64f33f1b9dc7@kernel.org \
--to=srini@kernel.org \
--cc=a39.skl@gmail.com \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=johan@kernel.org \
--cc=kees@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mailingradian@gmail.com \
--cc=mohammad.rafi.shaik@oss.qualcomm.com \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=setotau@mainlining.org \
--cc=tiwai@suse.com \
--cc=vladimir.lypak@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox