Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 382c31a9 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] solo6x10: convert encoder nodes to vb2



As a consequence the ioctl op has been replaced by unlocked_ioctl.
Since we are now using the core lock the locking scheme has been
simplified as well.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a7eb931d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ config SOLO6X10
	tristate "Softlogic 6x10 MPEG codec cards"
	depends on PCI && VIDEO_DEV && SND && I2C
	select VIDEOBUF_DMA_SG
	select VIDEOBUF2_DMA_SG
	select SND_PCM
	---help---
	  This driver supports the Softlogic based MPEG-4 and h.264 codec
+8 −5
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/videobuf-core.h>
#include <media/videobuf2-core.h>

#include "registers.h"

@@ -135,6 +136,11 @@ struct solo_p2m_dev {

#define OSD_TEXT_MAX		44

struct solo_vb2_buf {
	struct vb2_buffer vb;
	struct list_head list;
};

enum solo_enc_types {
	SOLO_ENC_TYPE_STD,
	SOLO_ENC_TYPE_EXT,
@@ -146,10 +152,8 @@ struct solo_enc_dev {
	struct v4l2_ctrl_handler hdl;
	struct video_device	*vfd;
	/* General accounting */
	struct mutex		enable_lock;
	struct mutex		lock;
	spinlock_t		motion_lock;
	atomic_t		readers;
	atomic_t		mpeg_readers;
	u8			ch;
	u8			mode, gop, qp, interlaced, interval;
	u8			bw_weight;
@@ -169,9 +173,8 @@ struct solo_enc_dev {
	int			jpeg_len;

	u32			fmt;
	u8			enc_on;
	enum solo_enc_types	type;
	struct videobuf_queue	vidq;
	struct vb2_queue	vidq;
	struct list_head	vidq_active;
	int			desc_count;
	int			desc_nelts;
+131 −374

File changed.

Preview size limit exceeded, changes collapsed.