linux/drivers/media
Sergey Senozhatsky a4b83deb3e media: videobuf2: rework vb2_mem_ops API
With the new DMA API we need an extension of the videobuf2 API.
Previously, videobuf2 core would set the non-coherent DMA bit
in the vb2_queue dma_attr field (if user-space would pass a
corresponding memory hint); the vb2 core then would pass the
vb2_queue dma_attrs to the vb2 allocators. The vb2 allocator
would use the queue's dma_attr and the DMA API would allocate
either coherent or non-coherent memory.

But we cannot do this anymore, since there is no corresponding DMA
attr flag and, hence, there is no way for the allocator to become
aware of what type of allocation user-space has requested. So we
need to pass more context from videobuf2 core to the allocators.

Fix this by changing the call_ptr_memop() macro to pass the
vb2 pointer to the corresponding op callbacks.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-09-30 10:07:56 +02:00
..
cec media: cec-pin: fix off-by-one SFT check 2021-09-30 10:07:54 +02:00
common media: videobuf2: rework vb2_mem_ops API 2021-09-30 10:07:56 +02:00
dvb-core media: dvb-core: frontend: make GET/SET safer 2021-06-17 09:29:11 +02:00
dvb-frontends media: cxd2820r: include the right header 2021-09-30 10:07:43 +02:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-09-30 10:07:54 +02:00
i2c media: TDA1997x: handle short reads of hdmi info frame. 2021-09-30 10:07:54 +02:00
mc media: Request API is no longer experimental 2021-09-30 10:07:55 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
platform media: camss: vfe: Don't call hw_version() before its dependencies are met 2021-09-30 10:07:56 +02:00
radio media: radio: si4713: constify static struct v4l2_ioctl_ops 2021-06-02 13:26:11 +02:00
rc media: rc: sunxi-cir: Make use of the helper function devm_platform_ioremap_resource() 2021-09-30 10:07:51 +02:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-09-30 10:07:40 +02:00
test-drivers media: vivid: add signal-free time for cec message xfer 2021-09-30 10:07:55 +02:00
tuners media: tuners: mxl5007t: Removed unnecessary 'return' 2021-09-30 10:07:40 +02:00
usb media: gspca: Limit frame size to sizeimage. 2021-09-30 10:07:56 +02:00
v4l2-core media: v4l2-ioctl: S_CTRL output the right value 2021-09-30 10:07:47 +02:00
Kconfig media: Correct 'so' 2021-03-22 11:52:09 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00