-
Notifications
You must be signed in to change notification settings - Fork 140
ASoC: SOF: pcm: add sof_keep_normal_fes to keep normal fes #3217
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -948,7 +948,8 @@ void snd_sof_new_platform_drv(struct snd_sof_dev *sdev) | |
| pd->compress_ops = &sof_probe_compressed_ops; | ||
| #endif | ||
| pd->pcm_construct = sof_pcm_new; | ||
| pd->ignore_machine = drv_name; | ||
| if (!plat_data->desc->sof_keep_normal_fes) | ||
| pd->ignore_machine = drv_name; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if the situation is that you have an sof plaform driver and a 'normal' platform driver then presumably they register two separate ASoC components. So it's not clear to me why we would add in the SOF driver something that relates to the other component. There should be something in the card creation that ignores FEs when the component of that FE needs to be overridden. In other words, the ignore_machine should be a component property, not a card property.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with @plbossart. Are you suggesting that the 2 platforms drivers are used concurrently? If that is the case, shouldnt the SOF platform driver always ignore the FE's that are associated with the audio paths on the AP? |
||
| pd->be_hw_params_fixup = sof_pcm_dai_link_fixup; | ||
| pd->be_pcm_base = SOF_BE_PCM_BASE; | ||
| pd->use_dai_pcm_id = true; | ||
|
|
||
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.
As this is already "sof_dev_desc", the "sof_" prefix is not needed. Also "normal" is a bit problematic, it depends on the case what is normal, so this can lead to confusion later on. Maybe "fixed_fe_link_config"?