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

hda-dma: wait for buffer full after starting render #73

Merged
merged 1 commit into from Jul 9, 2018

Conversation

tlauda
Copy link
Contributor

@tlauda tlauda commented Jul 9, 2018

Host DMA should wait for buffer full after starting render
to avoid empty samples at the beginning. Temporary solution
until DMA unified flow will be implemented.

Signed-off-by: Tomasz Lauda tomasz.lauda@linux.intel.com

Host DMA should wait for buffer full after starting render
to avoid empty samples at the beginning. Temporary solution
until DMA unified flow will be implemented.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
do {
idelay(PLATFORM_DEFAULT_DELAY);
dgcs = host_dma_reg_read(dma, channel, DGCS);
} while (!(dgcs & DGCS_BF));
Copy link
Contributor

Choose a reason for hiding this comment

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

then how will you handle the pointers alignment with software buffer ones? I think you should do that in one same patch, otherwise, it will introduce noise issue again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What pointers alignment do you mean? BDL is much higher, than Host DMA buffer in FW. If there are some issues with Host DMA synchronization, you should consider using SPIB mode.

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

This is fine since its temporary and improves the current code.

@lgirdwood lgirdwood merged commit f9e6adf into thesofproject:master Jul 9, 2018
@tlauda tlauda deleted the topic/hda-bf branch November 22, 2019 11:25
ryans-lee pushed a commit to ryans-lee/sof that referenced this pull request Jul 16, 2020
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
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.

None yet

3 participants