Implement BufferParams in the python binding #1367
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
!important: In case #1344 does not revert iio_buffer_params. In case #1344 does not revert iio_buffer_params.
8291539 ("task: Implement iio_buffer_params struct and make CMA selectable at runtime") implemented iio_buffer_params, replacing idx with a struct. In the python binding, the change broke usage since dropped optional idx with required params. Define the struct in python, defaulting .idx to 0 and .dma_allocator = IIO_DMA_ALLOCATOR_SYSTEM, and make optional, to restore compatibility with legacy code (idx was hardly set).
PR Description
necessary to understand them. List any dependencies required for this change.
any space), or simply check them after publishing the PR.
description and try to push all related PRs simultaneously.
PR Type
PR Checklist