Skip to content
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

ASoC: SOF: probes support related cleanups #3014

Merged

Conversation

ujfalusi
Copy link
Collaborator

Hi,

as requested by @plbossart, I have split out the cleanup patches regarding to the probes support from #3007
The probes conversion to SOF client depends on this series.

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

One minor note on a git commit message, otherwise looks great!

@ujfalusi ujfalusi force-pushed the peter/sof/pr/probes_cleanup branch from ad8f03e to 3fe860d Compare June 28, 2021 11:05
Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

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

looks ok @ujfalusi only the second commit message needs to be updated. I suggest removing the fixes tag.

@ujfalusi
Copy link
Collaborator Author

@plbossart, thank you, I'll update the PR in few minutes to remove the Fixes tag.

ujfalusi and others added 5 commits June 28, 2021 18:52
Probe related messages are missing from the logging, for example the
PROBE_INIT would show up as:

ipc tx: 0xc0010000: unknown GLB command
ipc tx succeeded: 0xc0010000: unknown GLB command

Add code to handle  the probe messages to have human readable output

Signed-off-by: Peter Ujfalusi <[email protected]>
…ence

The SND_SOC_SOF_COMPRESS is not valid Kconfig option, remove it.

At the same time remove the also the declaration of the non existent
sof_compressed_ops.

Signed-off-by: Peter Ujfalusi <[email protected]>
sof_probe_compr_ops are not platform-specific. So move
it to common compress code and export the symbol. The
compilation of the common compress code is already dependent
on the selection of CONFIG_SND_SOC_SOF_DEBUG_PROBES, so no
need to check the Kconfig section for defining sof_probe_compr_ops
again.

Signed-off-by: Ranjani Sridharan <[email protected]>
Signed-off-by: Peter Ujfalusi <[email protected]>
The probe debug functionality is implemented via compress support and it
was spread across two set of files:
probe.c/h
compress.c/h

Merge the two files into sof-probes.s/h and clean them up by removing
unused struct definitions, functions. We can also move most of the
functions static as they are only used internally.

Signed-off-by: Peter Ujfalusi <[email protected]>
The hda-compress.c is implementing the SOF probe support for intel HDA
platforms using compress API.

To avoid the confusion, rename it to reflect this.

Signed-off-by: Peter Ujfalusi <[email protected]>
@ujfalusi ujfalusi force-pushed the peter/sof/pr/probes_cleanup branch from 3fe860d to ae77862 Compare June 28, 2021 15:52
@ujfalusi
Copy link
Collaborator Author

Changes since v2:

  • removed fixes tag from patch two

Changes since v1:

  • added fixes tag to commit two

plbossart
plbossart previously approved these changes Jun 28, 2021
Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

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

LGTM @ujfalusi thanks for the cleanup!

@plbossart plbossart requested a review from kv2019i June 28, 2021 21:08
dbaluta
dbaluta previously approved these changes Jun 29, 2021
@dbaluta
Copy link
Collaborator

dbaluta commented Jun 29, 2021

Looks good to me! Thanks @ujfalusi.

…ai_ops

The snd_soc_cdai_ops have startup and shutdown callbacks defined unlike
the component callbacks where open and free is used.

Signed-off-by: Peter Ujfalusi <[email protected]>
@ujfalusi ujfalusi dismissed stale reviews from dbaluta and plbossart via 7d718d0 June 29, 2021 11:04
@ujfalusi
Copy link
Collaborator Author

Hi,

pushed one more patch to use correct postfix for the functions used in snd_soc_cdai_ops for startup and shutdown.

Sorry for the late update but I wanted to include it to this PR and not take it via the auxbus support.

@plbossart plbossart requested a review from dbaluta June 29, 2021 16:38
@plbossart plbossart merged commit 132b2ee into thesofproject:topic/sof-dev Jun 29, 2021
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.

5 participants