Version:  2.0.40 2.2.26 2.4.37 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6

Linux/drivers/media/usb/gspca/sn9c20x.c

  1 /*
  2  *      Sonix sn9c201 sn9c202 library
  3  *
  4  * Copyright (C) 2012 Jean-Francois Moine <http://moinejf.free.fr>
  5  *      Copyright (C) 2008-2009 microdia project <microdia@googlegroups.com>
  6  *      Copyright (C) 2009 Brian Johnson <brijohn@gmail.com>
  7  *
  8  * This program is free software; you can redistribute it and/or modify
  9  * it under the terms of the GNU General Public License as published by
 10  * the Free Software Foundation; either version 2 of the License, or
 11  * any later version.
 12  *
 13  * This program is distributed in the hope that it will be useful,
 14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 16  * GNU General Public License for more details.
 17  *
 18  * You should have received a copy of the GNU General Public License
 19  * along with this program; if not, write to the Free Software
 20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 21  */
 22 
 23 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 24 
 25 #include <linux/input.h>
 26 
 27 #include "gspca.h"
 28 #include "jpeg.h"
 29 
 30 #include <linux/dmi.h>
 31 
 32 MODULE_AUTHOR("Brian Johnson <brijohn@gmail.com>, "
 33                 "microdia project <microdia@googlegroups.com>");
 34 MODULE_DESCRIPTION("GSPCA/SN9C20X USB Camera Driver");
 35 MODULE_LICENSE("GPL");
 36 
 37 /*
 38  * Pixel format private data
 39  */
 40 #define SCALE_MASK      0x0f
 41 #define SCA