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

[RFC] ASoC: SOF: use 32bit valid sample size for I2S gateway #4016

Closed
wants to merge 1 commit into from

Conversation

RanderWang
Copy link

FW always generate 32bit valid sample size to dma so align it with driver.

Fix: thesofproject/sof#6595

FW always generate 32bit valid sample size to dma so
align it with driver.

Signed-off-by: Rander Wang <[email protected]>
@RanderWang
Copy link
Author

@juimonen please help to review it. Thanks!

@@ -1251,7 +1251,7 @@ sof_ipc4_prepare_copier_module(struct snd_sof_widget *swidget,
ipc4_copier = (struct sof_ipc4_copier *)dai->private;
copier_data = &ipc4_copier->data;
available_fmt = &ipc4_copier->available_fmt;
if (dir == SNDRV_PCM_STREAM_CAPTURE) {
if (dir == SNDRV_PCM_STREAM_CAPTURE || ipc4_copier->dai_type == SOF_DAI_INTEL_SSP) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Commit message: can we use the same term we are using for the components?
ASoC: SOF: ipc4-topology: Use 32bit sample size for copier on Intel SSP

s/FW/The firmware

Copy link
Collaborator

Choose a reason for hiding this comment

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

You should update the comment down at line 1259 as well.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@RanderWang the change looks good but do you have an issue that this PR fixes?

Copy link
Collaborator

Choose a reason for hiding this comment

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

and BTW can this be fixed in the nocodec tplg instead?

Copy link
Collaborator

@ranj063 ranj063 Nov 16, 2022

Choose a reason for hiding this comment

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

@RanderWang the change looks good but do you have an issue that this PR fixes?

sorry missed the issue in the description

Copy link
Author

Choose a reason for hiding this comment

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

@ranj063 yong changed nocodec tplg but made no effect thesofproject/sof#6595 (comment).

@@ -1251,7 +1251,7 @@ sof_ipc4_prepare_copier_module(struct snd_sof_widget *swidget,
ipc4_copier = (struct sof_ipc4_copier *)dai->private;
copier_data = &ipc4_copier->data;
available_fmt = &ipc4_copier->available_fmt;
if (dir == SNDRV_PCM_STREAM_CAPTURE) {
if (dir == SNDRV_PCM_STREAM_CAPTURE || ipc4_copier->dai_type == SOF_DAI_INTEL_SSP) {
Copy link
Member

Choose a reason for hiding this comment

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

I am not getting the explanations in the commit message @RanderWang
Is this really the case that ONLY the SSP gateway assumes 32-bit valid data on playback?

Copy link
Member

Choose a reason for hiding this comment

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

And all of @ujfalusi 's comments are valid.

Copy link
Author

Choose a reason for hiding this comment

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

@plbossart It is true for closed source FW. It depends on ssp blob in case of SOF, so I ask @jsarha for help

Copy link
Member

Choose a reason for hiding this comment

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

Humm, that doesn't sound good at all. This smells of an undocumented dependency between firmware implementation and NHLT blobs. Meh.

Copy link
Author

Choose a reason for hiding this comment

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

yes, different gateway has different requirement and sof should be compatible with closed source fw.

@RanderWang RanderWang changed the title ASoC: SOF: use 32bit valid sample size for I2S gateway [RFC] ASoC: SOF: use 32bit valid sample size for I2S gateway Nov 17, 2022
@RanderWang
Copy link
Author

Let's do it first in topology. I found something incorrect in yong's test topology

@plbossart
Copy link
Member

@RanderWang do we still need this PR or is this no longer needed?

@RanderWang
Copy link
Author

NO need now. Close it

@RanderWang RanderWang closed this Nov 29, 2022
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.

[BUG] no sound coming from speakers when playing 16-bit clips on DeepBuffer PCM dev
4 participants