stk1160: Fix typo s/therwise/Otherwise
PATCH 1/1 stk1160: Fix typo s/therwise/Otherwise
Fix a trivial typo.
Signed-off-by Ezequiel Garcia <[email protected]>
--- drivers/media/usb/stk1160/stk1160-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/stk1160/stk1160-core.c +1 -1
@@ -423,7 +423,7 @@ static void stk1160_disconnect(struct usb_interface *interface)/* * This calls stk1160_release if it's the last reference. -* therwise, release is posponed until there are no users left. +* Otherwise, release is posponed until there are no users left. */ v4l2_device_put (&dev->v4l2_dev); }
Signature · 1 line
2.16.3
PATCH 1/1 stk1160: Add missing calls to mutex_destroy
The mutexes are not being destroyed in the release path. Fix it.
Signed-off-by Ezequiel Garcia <[email protected]>
--- drivers/media/usb/stk1160/stk1160-core.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/media/usb/stk1160/stk1160-core.c +2 -0
@@ -167,6 +167,8 @@ static void stk1160_release(struct v4l2_device *v4l2_dev)v4l2_ctrl_handler_free (&dev->ctrl_handler);v4l2_device_unregister (&dev->v4l2_dev); +mutex_destroy (&dev->v4l_lock); +mutex_destroy (&dev->vb_queue_lock);kfree (dev->alt_max_pkt_size);kfree (dev); }
Signature · 1 line
2.16.3
PATCH 1/1 m2m-deinterlace: Remove DMA_ENGINE dependency
In reply to Ezequiel GarciaThe DMA engine subsystem provides stubs for drivers to build with !DMA_ENGINE. Drop the config dependency.
Signed-off-by Ezequiel Garcia <[email protected]>
--- drivers/media/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/Kconfig +1 -1
@@ -249,7 +249,7 @@ config VIDEO_MEDIATEK_VCODEC config VIDEO_MEM2MEM_DEINTERLACE tristate "Deinterlace support" - depends on VIDEO_DEV && VIDEO_V4L2 && DMA_ENGINE + depends on VIDEO_DEV && VIDEO_V4L2 depends on HAS_DMA select VIDEOBUF2_DMA_CONTIG select V4L2_MEM2MEM_DEV
Signature · 1 line
2.16.3
PATCH 1/1 tw686x: Fix incorrect vb2_mem_ops GFP flags
In reply to Ezequiel GarciaWhen the driver is configured in the "memcpy" dma-mode, it uses vb2_vmalloc_memops, which is backed by a SLAB allocator and so shouldn't be using GFP_DMA32.
Fix it.
Signed-off-by Ezequiel Garcia <[email protected]>
--- drivers/media/pci/tw686x/tw686x-video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/media/pci/tw686x/tw686x-video.c +2 -1
@@ -1228,7 +1228,8 @@ int tw686x_video_init(struct tw686x_dev *dev) vc->vidq.timestamp_flags =V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC ; vc->vidq.min_buffers_needed =2 ; vc->vidq.lock = &vc->vb_mutex; - vc->vidq.gfp_flags =GFP_DMA32 ; + vc->vidq.gfp_flags = dev->dma_mode !=TW686X_DMA_MODE_MEMCPY ? +GFP_DMA32 :0 ; vc->vidq.dev = &dev->pci_dev->dev; err =vb2_queue_init (&vc->vidq);
Signature · 1 line
2.16.3