-
Notifications
You must be signed in to change notification settings - Fork 131
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
upstream reviews - take 2 #335
Conversation
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.
one question: I don't understand why it is not good to add some interfaces in sof_dsp_ops. Thanks
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.
We can use SNDRV_PCM_STREAM_PLAYBACK since we are freeing playback stream
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.
looks good to me except the stream direction issue as Bard mentioned should be fixed.
cbdc405
to
80bb3e0
Compare
@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]>
80bb3e0
to
9374795
Compare
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.