[libcamera-devel,0/3] libcamera: raspberrypi: Fail early when opening dma heaps
mbox series

Message ID 20200827082038.40758-1-jacopo@jmondi.org
Headers show
Series
  • libcamera: raspberrypi: Fail early when opening dma heaps
Related show

Message

Jacopo Mondi Aug. 27, 2020, 8:20 a.m. UTC
Hello,
  three small patches to fail as earlier as possible on errors when opening
the dma heaps allocator device.

Before the series, the pipeline handler would fail at configuration time, when
it actually tries to use the allocator.

With this series the pipeline handler fails at match() time (and gets a little
more verbose in reporting errors to the user).

Thanks
  j

Jacopo Mondi (3):
  libcamera: raspberrypi: dma_heaps: Add open/close
  libcamera: raspberrypi: Fail on dmaHeaps_ open error
  libcamera: raspberrypi: dma_heaps: Be verbose on errors

 .../pipeline/raspberrypi/dma_heaps.cpp        | 29 ++++++++++++++++---
 .../pipeline/raspberrypi/dma_heaps.h          |  2 ++
 .../pipeline/raspberrypi/raspberrypi.cpp      | 13 +++++++++
 3 files changed, 40 insertions(+), 4 deletions(-)

--
2.28.0