[PATCH] libcamera: dma_heaps: Add support for using udmabuf to alloc DMA heaps

Bryan O'Donoghue bryan.odonoghue at linaro.org
Wed May 29 02:23:03 CEST 2024


On 27/05/2024 15:16, Hans de Goede wrote:
> @@ -105,6 +111,7 @@ DmaHeap::DmaHeap(DmaHeapFlags type)
>   
>   		LOG(DmaHeap, Debug) << "Using " << info.deviceNodeName;
>   		dmaHeapHandle_ = UniqueFD(ret);
> +		useUDmaBuf_ = info.useUDmaBuf;
>   		break;

The comment at the top of this function needs to be updated

87ee158ec

  * The DMA heap type is selected with the \a type parameter, which 
defaults to
  * the CMA heap. If no heap of the given type can be accessed, the 
constructed
  * DmaHeap instance is invalid as indicated by the isValid() function.
  *

---
bod


More information about the libcamera-devel mailing list