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

upstream reviews - take 2 #335

Merged

Conversation

plbossart
Copy link
Member

comments on the link DMA support to indicate the current solution is not quite final.
Also fix two issues detected during code reviews (36 patches!), we had 2 issues with error flows for the code loader and the PCM handling. @bardliao you may want to check if the PCM part impacts the load/unload work you are doing.
An additional issue was fixed already by Seppo in a separate PR.

Copy link

@RanderWang RanderWang left a comment

Choose a reason for hiding this comment

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

one question: I don't understand why it is not good to add some interfaces in sof_dsp_ops. Thanks

Copy link
Collaborator

@bardliao bardliao left a comment

Choose a reason for hiding this comment

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

We can use SNDRV_PCM_STREAM_PLAYBACK since we are freeing playback stream

sound/soc/sof/pcm.c Outdated Show resolved Hide resolved
Copy link

@keyonjie keyonjie left a comment

Choose a reason for hiding this comment

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

looks good to me except the stream direction issue as Bard mentioned should be fixed.

sound/soc/sof/pcm.c Outdated Show resolved Hide resolved
sound/soc/sof/pcm.c Outdated Show resolved Hide resolved
@plbossart
Copy link
Member Author

@RanderWang we can do whatever changes we want to sof structures since we 'own' the framework. Modifying or abusing ALSA or ASoC APIs and structures is not ok in general, we are not the owners and need to have a strong case to get a change accepted by Mark Brown and Takashi Iwai.

Make it clear that the current solution is not acceptable and has to
be reworked

Signed-off-by: Pierre-Louis Bossart <[email protected]>
It is not clear why the parsing should continue, so for now exit and
return an error. This is only used by BYT/CHT/BDW anyways so the odd
of new features being added are slim.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
The error flow in pcm_new was completely broken, make sure the page
tables are released.

The pre-allocated DMA buffer is not released since it's a task the
ALSA core will do for us. Added comment of the intent so that people
looking for balanced memory allocations understand this is not an
omission.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
@plbossart plbossart merged commit 7bbf67f into thesofproject:topic/sof-dev Nov 30, 2018
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.

4 participants