Commit 6714b012 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (4923): Splitted usbvision cards from usbvison.h

Having the cards description into a separated file makes
easier to maintain and follows the same standard as other
drivers.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 781aa1d1
usbvision-objs := usbvision-core.o usbvision-i2c.o usbvision-objs := usbvision-core.o usbvision-i2c.o usbvision-cards.o
obj-$(CONFIG_VIDEO_USBVISION) += usbvision.o obj-$(CONFIG_VIDEO_USBVISION) += usbvision.o
......
This diff is collapsed.
...@@ -339,12 +339,10 @@ ...@@ -339,12 +339,10 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/usb.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/video_decoder.h> #include <linux/video_decoder.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include "usbvision-i2c.h"
#define USBVISION_DRIVER_VERSION_MAJOR 0 #define USBVISION_DRIVER_VERSION_MAJOR 0
#define USBVISION_DRIVER_VERSION_MINOR 8 #define USBVISION_DRIVER_VERSION_MINOR 8
...@@ -428,6 +426,18 @@ enum { ...@@ -428,6 +426,18 @@ enum {
ISOC_MODE_COMPRESS = 0x60, ISOC_MODE_COMPRESS = 0x60,
}; };
static struct usbvision_v4l2_format_st usbvision_v4l2_format[] = {
{ 1, 1, 8, V4L2_PIX_FMT_GREY , "GREY" },
{ 1, 2, 16, V4L2_PIX_FMT_RGB565 , "RGB565" },
{ 1, 3, 24, V4L2_PIX_FMT_RGB24 , "RGB24" },
{ 1, 4, 32, V4L2_PIX_FMT_RGB32 , "RGB32" },
{ 1, 2, 16, V4L2_PIX_FMT_RGB555 , "RGB555" },
{ 1, 2, 16, V4L2_PIX_FMT_YUYV , "YUV422" },
{ 1, 2, 12, V4L2_PIX_FMT_YVU420 , "YUV420P" }, // 1.5 !
{ 1, 2, 16, V4L2_PIX_FMT_YUV422P , "YUV422P" }
};
/* /*
* The value of 'scratch_buf_size' affects quality of the picture * The value of 'scratch_buf_size' affects quality of the picture
* in many ways. Shorter buffers may cause loss of data when client * in many ways. Shorter buffers may cause loss of data when client
...@@ -5691,8 +5701,6 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf) ...@@ -5691,8 +5701,6 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf)
} }
MODULE_DEVICE_TABLE (usb, usbvision_table);
static struct usb_driver usbvision_driver = { static struct usb_driver usbvision_driver = {
.name = "usbvision", .name = "usbvision",
.id_table = usbvision_table, .id_table = usbvision_table,
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment