Repository navigation
Conversation
…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
requested review from
kv2019i and
lgirdwood
and
a balanced review from Copilot
December 4, 2026 14:28
Contributor
There was a problem hiding this comment.
🟡 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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