-
Notifications
You must be signed in to change notification settings - Fork 349
topology2: add sof-sdw-generic.tplg #10040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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>
There was a problem hiding this 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.
| "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" |
Copilot
AI
Jun 2, 2025
There was a problem hiding this comment.
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.
| "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" |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
| "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" |
There was a problem hiding this comment.
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 ?
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.