Skip to content

[WIP] dw-dma: set current_ptr to valid value after release - #1715

Closed
tlauda wants to merge 2 commits into
thesofproject:masterfrom
tlauda:topic/byt-capture-playback
Closed

tlauda wants to merge 2 commits into
thesofproject:masterfrom
tlauda:topic/byt-capture-playback

Conversation

@tlauda

@tlauda tlauda commented Aug 8, 2019

Copy link
Copy Markdown
Contributor

Sets current_ptr to valid value after releasing the transfer
for DW-DMA not supporting hardware linked lists. Not aligning
the pointer will end up in xrun reported after pause - release
sequence on platforms like byt and cht.

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

Calculation of copy_bytes is not needed, when host is working
in one shot mode. In this mode DMA will always return 0 bytes,
as it's not even enabled and it's started every copy.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@tlauda tlauda changed the title dw-dma: set current_ptr to valid value after release dw-dma: set current_ptr to valid value after release Aug 8, 2019
Sets current_ptr to valid value after releasing the transfer
for DW-DMA not supporting hardware linked lists. Not aligning
the pointer will end up in xrun reported after pause - release
sequence on platforms like byt and cht.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@tlauda
tlauda force-pushed the topic/byt-capture-playback branch from 89b7381 to 715f935 Compare August 8, 2019 12:39
@tlauda

tlauda commented Aug 8, 2019

Copy link
Copy Markdown
Contributor Author

SOFCI TEST

1 similar comment
@tlauda

tlauda commented Aug 8, 2019

Copy link
Copy Markdown
Contributor Author

SOFCI TEST

@Jiangxinx

Jiangxinx commented Aug 9, 2019 •

Copy link
Copy Markdown
Contributor

As comment #1578 (comment) said, work fine on BYT platform.

@tlauda tlauda changed the title dw-dma: set current_ptr to valid value after release [WIP] dw-dma: set current_ptr to valid value after release Aug 9, 2019
@tlauda

tlauda commented Aug 9, 2019

Copy link
Copy Markdown
Contributor Author

The same functionality implemented in #1722.

@tlauda tlauda closed this Aug 9, 2019
@tlauda
tlauda deleted the topic/byt-capture-playback branch November 22, 2019 11:23
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.

3 participants