diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2020-08-28 17:43:38 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2020-08-28 18:20:11 +0200 |
commit | b5f0848d0fd3ef5c2a9a750b89329ac211a63462 (patch) | |
tree | 8953a24d28cd2c863f9bd6fab7f9cba6138460b4 /src | |
parent | 2ad832fa6e9c06b671d61aac3cf9eac5a36a6b86 (diff) |
libcamera: raspberrypi: dmaheaps: Add isValid()
Add isValid() method to verify the allocator device has been open
correctly.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/raspberrypi/dma_heaps.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/raspberrypi/dma_heaps.h b/src/libcamera/pipeline/raspberrypi/dma_heaps.h index ae6be113..79f39c51 100644 --- a/src/libcamera/pipeline/raspberrypi/dma_heaps.h +++ b/src/libcamera/pipeline/raspberrypi/dma_heaps.h @@ -18,6 +18,7 @@ class DmaHeap public: DmaHeap(); ~DmaHeap(); + bool isValid() const { return dmaHeapHandle_ > -1; } FileDescriptor alloc(const char *name, std::size_t size); private: |