Skip to content

audioreach-driver: guard audio dma-heap by config - #70

Merged
quic-aditrath merged 1 commit into
AudioReach:masterfrom
mpratyus:fix-audio-dma-heap-config
Aug 16, 2026
Merged

audioreach-driver: guard audio dma-heap by config#70
quic-aditrath merged 1 commit into
AudioReach:masterfrom
mpratyus:fix-audio-dma-heap-config

Conversation

@mpratyus

@mpratyus mpratyus commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

The audio heap path uses dma_heap_add() and dma_heap_get_drvdata(),
which are only available when CONFIG_DMABUF_HEAPS is enabled.
Gate this path on CONFIG_DMABUF_HEAPS so targets without DMA-BUF
heap support do not fail during modpost. Targets with DMA-BUF heap
support keep the existing qcom,audio heap functionality enabled.
Import the DMA_BUF_HEAP namespace only when the heap path is built.

CRs-Fixed: 4646226

@mpratyus
mpratyus requested review from a team August 14, 2026 17:51
The audio heap path uses dma_heap_add() and dma_heap_get_drvdata(),
which are only available when CONFIG_DMABUF_HEAPS is enabled.
Gate this path on CONFIG_DMABUF_HEAPS so targets without DMA-BUF
heap support do not fail during modpost. Targets with DMA-BUF heap
support keep the existing qcom,audio heap functionality enabled.
Import the DMA_BUF_HEAP namespace only when the heap path is built.

Signed-off-by: Pratyush Meduri <[email protected]>
@mpratyus
mpratyus force-pushed the fix-audio-dma-heap-config branch from 7796ee6 to be78b45 Compare August 14, 2026 17:52
@quic-aditrath
quic-aditrath merged commit 9fd751c into AudioReach:master Aug 16, 2026
15 of 16 checks passed
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.

5 participants