Skip to content

hda-dma: refactor xrun handling - #2512

Merged
jajanusz merged 1 commit into
thesofproject:masterfrom
tlauda:topic/hda-link-fixes
Mar 11, 2020
Merged

jajanusz merged 1 commit into
thesofproject:masterfrom
tlauda:topic/hda-link-fixes

Conversation

@tlauda

@tlauda tlauda commented Mar 10, 2020

Copy link
Copy Markdown
Contributor

Changes behaviour of HDA Link overruns and underruns handling.
Let's no longer stop the stream, but just report an error.
It might happen that just after the release buffer is still
full/not yet empty after the previous run, but it shouldn't
affect the data, since stream has been paused anyway.
Also adds additional bit to better reflect hardware registers.

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

Comment thread src/drivers/intel/cavs/hda-dma.c Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should both be bit 10 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@lgirdwood Yes, but have different names depends on the stream's direction. It's just cosmetic change.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ok, can you comment this otherwise it may confuse.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@lgirdwood Added additional comment.

Changes behaviour of HDA Link overruns and underruns handling.
Let's no longer stop the stream, but just report an error.
It might happen that just after the release buffer is still
full/not yet empty after the previous run, but it shouldn't
affect the data, since stream has been paused anyway.
Also adds additional bit to better reflect hardware registers.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@tlauda
tlauda force-pushed the topic/hda-link-fixes branch from 13288ae to e954709 Compare March 10, 2020 10:55
@jajanusz

Copy link
Copy Markdown
Contributor

false positives in CI, sof logger abi mismatch, unrelated

@jajanusz
jajanusz merged commit 293dfe2 into thesofproject:master Mar 11, 2020
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