Skip to content

[4.1] fix cyclic dma setup and i2s parameters #1194

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

Closed
wants to merge 2 commits into from

Conversation

HiassofT
Copy link
Contributor

@HiassofT HiassofT commented Nov 8, 2015

Backport bcm2835 fixes in #1193 to bcm2708

The calculation of the number of required frames was wrong which
could lead to the last frame being longer than the requested period
length and even the maximum supported transfer size.

eg when requesting a 88208 bytes buffer with a period len of 22052
(the defaults when playing a 44.1kHz stereo 16bit file with aplay)
the code would allocate 3 frames, two with 22052 bytes and the
last one with 44104 bytes instead of the expected 4 frames with
22052 bytes each.

Signed-off-by: Matthias Reichl <[email protected]>
bcm2708-dmaengine supports a maximum transfer length of 32k bytes on
the lite channels. period_bytes_max should reflect this limit.

Signed-off-by: Matthias Reichl <[email protected]>
@HiassofT HiassofT closed this Dec 20, 2015
@HiassofT HiassofT deleted the dmafix-4.1 branch December 18, 2016 14:10
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.

1 participant