[media] v4l: soc-camera: Remove videobuf1 support
All remaining soc-camera drivers use videobuf2, drop support for videobuf1. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> [hans.verkuil@cisco.com: also drop 'select VIDEOBUF_GEN' from Kconfig] Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

zatwierdzone przez
Mauro Carvalho Chehab

rodzic
e8a2a41ee2
commit
73a0159920
@@ -17,7 +17,6 @@
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/pm.h>
|
||||
#include <linux/videodev2.h>
|
||||
#include <media/videobuf-core.h>
|
||||
#include <media/videobuf2-v4l2.h>
|
||||
#include <media/v4l2-async.h>
|
||||
#include <media/v4l2-ctrls.h>
|
||||
@@ -55,10 +54,7 @@ struct soc_camera_device {
|
||||
/* Asynchronous subdevice management */
|
||||
struct soc_camera_async_client *sasc;
|
||||
/* video buffer queue */
|
||||
union {
|
||||
struct videobuf_queue vb_vidq;
|
||||
struct vb2_queue vb2_vidq;
|
||||
};
|
||||
struct vb2_queue vb2_vidq;
|
||||
};
|
||||
|
||||
/* Host supports programmable stride */
|
||||
@@ -114,11 +110,8 @@ struct soc_camera_host_ops {
|
||||
int (*set_liveselection)(struct soc_camera_device *, struct v4l2_selection *);
|
||||
int (*set_fmt)(struct soc_camera_device *, struct v4l2_format *);
|
||||
int (*try_fmt)(struct soc_camera_device *, struct v4l2_format *);
|
||||
void (*init_videobuf)(struct videobuf_queue *,
|
||||
struct soc_camera_device *);
|
||||
int (*init_videobuf2)(struct vb2_queue *,
|
||||
struct soc_camera_device *);
|
||||
int (*reqbufs)(struct soc_camera_device *, struct v4l2_requestbuffers *);
|
||||
int (*querycap)(struct soc_camera_host *, struct v4l2_capability *);
|
||||
int (*set_bus_param)(struct soc_camera_device *);
|
||||
int (*get_parm)(struct soc_camera_device *, struct v4l2_streamparm *);
|
||||
@@ -396,11 +389,6 @@ static inline struct soc_camera_device *soc_camera_from_vb2q(const struct vb2_qu
|
||||
return container_of(vq, struct soc_camera_device, vb2_vidq);
|
||||
}
|
||||
|
||||
static inline struct soc_camera_device *soc_camera_from_vbq(const struct videobuf_queue *vq)
|
||||
{
|
||||
return container_of(vq, struct soc_camera_device, vb_vidq);
|
||||
}
|
||||
|
||||
static inline u32 soc_camera_grp_id(const struct soc_camera_device *icd)
|
||||
{
|
||||
return (icd->iface << 8) | (icd->devnum + 1);
|
||||
|
Reference in New Issue
Block a user