Skip to content

Conversation

@singalsu
Copy link
Collaborator

This patch adds an echo reference capture PCM for speaker and jack playback. The additions are normally disabled but can be enabled with build options SDW_JACK_ECHO_REF=true and/or SDW_SPK_ECHO_REF=true.

@singalsu
Copy link
Collaborator Author

This PR depends on #10329 and kernel patch by @ranj063 .

@singalsu
Copy link
Collaborator Author

singalsu commented Nov 21, 2025

Build variants with echo reference, for both speaker and jack, just speaker, just jack, echoref but without speaker post-processing.

Echo reference for jack:
sof-arl-cs42l43-l0-cs35l56-l23-echoref_jack

Echo reference for jack and speaker, no EQ and DRC.
sof-arl-cs42l43-l0-cs35l56-l23-echoref_noenh

Echo reference for speaker:
sof-arl-cs42l43-l0-cs35l56-l23-echoref_spk

Echo Reference for speaker and jack, with EQ and DRC for speaker:
sof-arl-cs42l43-l0-cs35l56-l23-echoref

@singalsu singalsu force-pushed the tplg_sdw_copier_echo_ref branch from 482b7a0 to 15a0e37 Compare November 21, 2025 16:56
num_input_pins 1
num_output_pins 1
num_input_audio_formats 1
num_output_audio_formats 1
Copy link
Collaborator

@ranj063 ranj063 Nov 21, 2025

Choose a reason for hiding this comment

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

Does the host copier need to support all output formats?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, all s16/24/32 and float are OK, I can add it. The 8-bit formats are not good for the purpose.

This patch adds an echo reference capture PCM for speaker and
jack playback. The additions are normally disabled but can be
enabled with build options SDW_JACK_ECHO_REF=true and/or
SDW_SPK_ECHO_REF=true.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu force-pushed the tplg_sdw_copier_echo_ref branch from 15a0e37 to 523ee9d Compare November 24, 2025 14:42
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

Can echo ref be always available in the topology and switch on/off by opening the PCM ?

@singalsu
Copy link
Collaborator Author

Can echo ref be always available in the topology and switch on/off by opening the PCM ?

Yep, the PCMs can be used or ignored. If there is no playback and ref capture is done, it produces silence.

@lgirdwood
Copy link
Member

Can echo ref be always available in the topology and switch on/off by opening the PCM ?

Yep, the PCMs can be used or ignored. If there is no playback and ref capture is done, it produces silence.

Perfect, lets do this so its available for general usage. This would need a new PCM ID. I assume this would capture playback if the playback PCM was in use ?

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