Skip to content

topology1: add sof-rpl-rt722-l0.tplg - #11617

Open
bardliao wants to merge 3 commits into
thesofproject:stable-v2.2from
bardliao:topology1-sof-rpl-rt722-l0
Open

bardliao wants to merge 3 commits into
thesofproject:stable-v2.2from
bardliao:topology1-sof-rpl-rt722-l0

Conversation

@bardliao

@bardliao bardliao commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Add a topology1 target for Raptor Lake with a Realtek RT722 SDCA
multi-function codec on SoundWire link 0.

…ntrol

The RTNR bytes control in pipe-google-rtc-audio-processing-rtnr-capture.m4
calls CONTROLBYTES_EXTOPS() without the put argument, which expands to
put "" in the generated conf. Newer alsa-lib rejects the empty ops
string and fails to build sof-mt8195-mt6359-max98390-rt5682-google-aec-rtnr:

  (lookup_ops) [error.topology] wrong kcontrol ops value string ''
  (tplg_load_config) [error.topology] failed to parse topology

Pass 258 for put as the other read-only RTNR pipelines do. The control
is still created with C_CONTROLBYTES_READONLY, so it stays read-only.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
The MFC option maps the jack, amp and mic DAIs of a multi-function
codec on a single SoundWire link to ALH pins. The pin order must
follow the codec DAI order used by the kernel sof_sdw machine
driver, which allocates pins starting from 2 in DAI order, playback
before capture.

The existing MFC pin mapping matches Cirrus Logic cs42l43 (jack out,
mic, jack in, amp), but Realtek SDCA codecs such as RT722 expose
their DAIs as jack (playback/capture), amp, mic. Using the cs42l43
mapping for RT722 makes the topology DAI index differ from the one
the kernel sends in DAI_CONFIG, and the firmware rejects it with
-ENODEV.

Rename MFC to MFC_CS for the Cirrus Logic pin order and add MFC_RTK
for the Realtek pin order. Both share the same DAI link names. The
generated sof-rpl-cs42l43-l0 topology is unchanged.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Add a topology1 target for Raptor Lake with a Realtek RT722 SDCA
multi-function codec on SoundWire link 0.

RT722 provides headset jack, speaker amplifier and DMIC functions on
a single SoundWire link, so reuse the sof-icl-rt711-rt1308-rt715-hdmi
template with the multi-function codec option:

 - UAJ_LINK, AMP_1_LINK and MIC_LINK all set to link 0
 - MONO, as there is only one amplifier link (no demux needed)
 - MFC_RTK, to use the Realtek pin mapping (jack out, jack in, amp,
   mic) and the Playback-SimpleJack/Capture-SimpleJack/
   Playback-SmartAmp/Capture-SmartMic DAI link names
 - DYNAMIC=1, consistent with the other RPL SoundWire targets

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
@bardliao
bardliao requested review from kv2019i and lgirdwood and a balanced review from Copilot December 4, 2026 14:28
@bardliao
bardliao requested a review from ranj063 as a code owner December 4, 2026 14:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The review requests the RPL/RT722 runtime-test result in the PR description or a commitment to inspect the next daily result covering it after merge.

1 open issue
What changed in this PR

Adds a topology1 target for Raptor Lake systems with a Realtek RT722 SDCA codec on SoundWire link 0.

Changes:

  • Registers sof-rpl-rt722-l0.tplg.
  • Separates Realtek and Cirrus multi-function codec pin mappings.
  • Adds a put-handler binding to the RTNR bytes control.
File Description
tools/​topology/​topology1/​sof/​pipe-google-rtc-audio-processing-rtnr-capture.m4 Adds the RTNR bytes put-handler binding.
tools/​topology/​topology1/​sof-icl-rt711-rt1308-rt715-hdmi.m4 Defines codec-specific multi-function pin mappings.
tools/​topology/​topology1/​CMakeLists.txt Registers RT722 and updates the Cirrus codec selector.

Review effort: Balanced

"sof-icl-rt711-rt1308-rt715-hdmi\;sof-rpl-rt711-l0-rt1318-l12\;-DPLATFORM=rpl\;-DUAJ_LINK=0\;-DAMP_1_LINK=1\;-DAMP_2_LINK=2\;-DEXT_AMP_REF\;-DNO_LOCAL_MIC\;-DDYNAMIC=1"
"sof-icl-rt711-rt1308-rt715-hdmi\;sof-rpl-cs42l43-l0\;-DPLATFORM=adl\;-DUAJ_LINK=0\;-DMIC_LINK=0\;-DAMP_1_LINK=0\;-DMONO\;-DMFC"
"sof-icl-rt711-rt1308-rt715-hdmi\;sof-rpl-cs42l43-l0\;-DPLATFORM=adl\;-DUAJ_LINK=0\;-DMIC_LINK=0\;-DAMP_1_LINK=0\;-DMONO\;-DMFC_CS"
"sof-icl-rt711-rt1308-rt715-hdmi\;sof-rpl-rt722-l0\;-DPLATFORM=rpl\;-DUAJ_LINK=0\;-DMIC_LINK=0\;-DAMP_1_LINK=0\;-DMONO\;-DMFC_RTK\;-DDYNAMIC=1"

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bardliao CI no longer tests this on HW, so it developer tested only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants