Re: V4L2 to-do list, No.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> >  + New FREQ ioctl for multiple tuners
>  
>  Also add tuners field to struct v4l2_capability?  Any good idea how to
>  name them?  Simply FREQ2?

... and struct v4l2_tuner needs an index field too.  Patch below,
comments?

  Gerd

------------------------------- cut here ------------------------
--- 2.4.10-pre2/include/linux/videodev2.h.tuner	Thu Aug 30 16:41:22 2001
+++ 2.4.10-pre2/include/linux/videodev2.h	Thu Aug 30 16:45:40 2001
@@ -52,7 +52,8 @@
 	int	minheight;
 	int	maxframerate;
 	__u32	flags;		/* Feature flags, see below */
-	__u32	reserved[4];
+	int	tuners;		/* Num tuners */
+	__u32	reserved[3];
 };
 /* Values for 'type' field */
 #define V4L2_TYPE_CAPTURE	0	/* Is a video capture device */
@@ -634,7 +635,8 @@
 	__u32			audmode;
 	int			signal;
 	int			afc;
-	__u32			reserved[4];
+	int			index;
+	__u32			reserved[3];
 };
 struct v4l2_modulator
 {
@@ -671,7 +673,7 @@
 
 struct v4l2_frequency
 {
-	int	port;
+	int	tuner;
 	__u32	frequency;
 	__u32	reserved[2];
 };
@@ -824,6 +826,8 @@
 #define VIDIOC_S_EFFECT		_IOWR ('V', 53, int)
 #define VIDIOC_G_MODULATOR	_IOWR ('V', 54, struct v4l2_modulator)
 #define VIDIOC_S_MODULATOR	_IOW  ('V', 55, struct v4l2_modulator)
+#define VIDIOC_G_FREQ2		_IOWR ('V', 56, struct v4l2_frequency)
+#define VIDIOC_S_FREQ2		_IOW  ('V', 57, struct v4l2_frequency)
 
 #define VIDIOC_ENUM_CAPFMT	VIDIOC_ENUM_PIXFMT
 #define VIDIOC_ENUM_OUTFMT	VIDIOC_ENUM_PIXFMT





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux