Skip to content

topology2: sdw-jack-generic: Make BE DAI and copiers honor SDW_JACK_C…#11036

Open
rfvirgil wants to merge 1 commit into
thesofproject:mainfrom
CirrusLogic:tplg2-simple-jack-1ch-fix
Open

topology2: sdw-jack-generic: Make BE DAI and copiers honor SDW_JACK_C…#11036
rfvirgil wants to merge 1 commit into
thesofproject:mainfrom
CirrusLogic:tplg2-simple-jack-1ch-fix

Conversation

@rfvirgil

Copy link
Copy Markdown
Contributor

CS42L42 capture DP only has 1 channel.

Jack capture was not working on CS42L42 even with SDW_JACK_CAPTURE_CH=1. This was because the simple-jack tplg did not apply SDW_JACK_CAPTURE_CH to the BE DAI or copiers. The result was that SOF/ASoC would attempt to open a 2-channel stream, which would then fail to prepare because DP0.ch1 does not exist.

@rfvirgil
rfvirgil requested a review from bardliao July 24, 2026 16:05
@rfvirgil
rfvirgil requested review from jsarha and ranj063 as code owners July 24, 2026 16:05
…APTURE_CH

The BE DAI, alh-copier and host-copier for capture should honor the number
of capture channels set by SDW_JACK_CAPTURE_CH.

Before this change, the value of SDW_JACK_CAPTURE_CH only affected the
min/max channels of the FE DAI but all the other objects in the pipeline
were defaulting to 2-channel. Because of this, the codec DAI was always
asked for a 2-channel capture, which won't work on codecs that only
support 1 channel. And the host-copier output was 2-channel audio that
could not be connected to the 1-channel DAI.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
@rfvirgil
rfvirgil force-pushed the tplg2-simple-jack-1ch-fix branch from f968c19 to 91318ce Compare July 24, 2026 16:06
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.

1 participant