Skip to content

Conversation

@bardliao
Copy link
Collaborator

@bardliao bardliao commented Jun 2, 2025

sof-sdw-generic.tplg will be the default topology for new SDCA audio configs. It is not likely be used since the split topologies will be used. However, the sof-sdw-generic.tplg should be present in the file system to avoid the tplg file not exist error.

sof-sdw-generic.tplg will be the default topology for new SDCA audio
configs. It is not likely be used since the split topologies will be
used. However, the sof-sdw-generic.tplg should be present in the file
system to avoid the tplg file not exist error.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Copilot AI review requested due to automatic review settings June 2, 2025 10:26
@bardliao bardliao requested review from jsarha and ranj063 as code owners June 2, 2025 10:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds the sof-sdw-generic topology file to the production targets to prevent missing file errors for SDCA audio configurations.

  • Added a new target with configuration parameters (e.g., SDW_DMIC, NUM_SDW_AMP_LINKS, etc.) for the sof-sdw-generic topology.
  • Ensures the file exists in the filesystem to avoid runtime errors.

Comment on lines +6 to +8
"cavs-sdw\;sof-sdw-generic\;SDW_DMIC=1,NUM_SDW_AMP_LINKS=1,\
SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=Playback-SmartAmp,SDW_DMIC_STREAM=Capture-SmartMic,\
SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack"
Copy link

Copilot AI Jun 2, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider formatting the long configuration string over multiple lines or adding an inline comment to explain the parameter grouping for improved maintainability.

Suggested change
"cavs-sdw\;sof-sdw-generic\;SDW_DMIC=1,NUM_SDW_AMP_LINKS=1,\
SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=Playback-SmartAmp,SDW_DMIC_STREAM=Capture-SmartMic,\
SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack"
"cavs-sdw\;sof-sdw-generic\;"
# Enable DMIC and set the number of SmartAmp links
"SDW_DMIC=1,NUM_SDW_AMP_LINKS=1,\"
# Configure SmartAmp feedback and streams
"SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=Playback-SmartAmp,SDW_DMIC_STREAM=Capture-SmartMic,\"
# Configure Jack streams
"SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack"

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

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

This is a good idea - now can copilot automatically do this for each file ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, not sure how. :P

Comment on lines +6 to +8
"cavs-sdw\;sof-sdw-generic\;SDW_DMIC=1,NUM_SDW_AMP_LINKS=1,\
SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=Playback-SmartAmp,SDW_DMIC_STREAM=Capture-SmartMic,\
SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack"
Copy link
Member

Choose a reason for hiding this comment

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

This is a good idea - now can copilot automatically do this for each file ?

@lgirdwood lgirdwood merged commit ad809eb into thesofproject:main Jun 9, 2025
43 of 48 checks passed
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