-
Notifications
You must be signed in to change notification settings - Fork 140
Split the "ASoC: SOF: Intel: use sof_sdw as default SDW machine driver" commit #5535
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
Split the "ASoC: SOF: Intel: use sof_sdw as default SDW machine driver" commit #5535
Conversation
This reverts commit 5f38e11. To split the commit into 2 commits. One to skip checking dummy topology and the other to use sof_sdw as default SDW machine driver.
ujfalusi
left a comment
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.
@bard only on thing to change: s/sof-bin/sof-firmware for the error path print to align with other code paths.
sound/soc/sof/topology.c
Outdated
| if (!tplg_cnt) { | ||
| if (strstr(file, "dummy")) { | ||
| dev_err(scomp->dev, | ||
| "Function topology is required, please upgrade sof-bin\n"); |
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.
in other fail paths we refer to 'sof-firmware' package, we should use it here as well.
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.
Thanks, updated.
Monolithic topology is not needed if function topology is used. Instead of creating a dummy topology in the file system, we can skip the existence check in the kernel. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
If there is no SoundWire machine matches the existing acpi match table, get the required machine data from the acpi table and construct the link adrs and endpoints. Pass the data to the default Intel SoundWire machine driver. And we don't need to add new item to the acpi match table in common cases. We will construct a dummy topology name. The dummy topology is just used to extract the platform name for function topology and should not be used. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
cc4e80e to
fce518b
Compare
We can't use default SDW machine driver if links[link_index].adr_d is null. Also, add a paranoid check to avoid kernel NULL pointer dereference. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
|
SOFCI TEST |
To extract the skip checking dummy topology part from the "ASoC: SOF: Intel: use sof_sdw as default SDW machine driver" commit. So that we can submit the "ASoC: SOF: don't check the existence of dummy topology" commit first and use a dummy topology in the acpi match table. And no need to create an unused topology,
No code change in this PR.