[osal]: add new buffer type for DMA import buffer

This buffer type is used for the buffer coming from the
application, the application should make sure those
buffers are the dma buffer.

Change-Id: I2c8491f4dea77e5d7ae8d9157b0a1eda204f4bd6
Signed-off-by: Randy Li <randy.li@rock-chips.com>
This commit is contained in:
Randy Li
2018-04-12 17:34:30 +08:00
committed by Herman Chen
parent 35cb04f7bb
commit a78598dab5
8 changed files with 191 additions and 17 deletions

View File

@@ -77,7 +77,6 @@ MppRuntimeService::MppRuntimeService()
{
int fd = -1;
allocator_valid[MPP_BUFFER_TYPE_NORMAL] = 1;
allocator_valid[MPP_BUFFER_TYPE_V4L2] = 0;
fd = open("/dev/ion", O_RDWR);
if (fd < 0) {