staging/easycap: remove EASYCAP_SILENT option
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 8 Feb 2011 23:12:46 +0000 (01:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Feb 2011 19:59:06 +0000 (11:59 -0800)
This has simulated a fault condition of probing for audio capability

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap.h
drivers/staging/easycap/easycap_low.c
drivers/staging/easycap/easycap_main.c

index 00669b60aa4266878cbc6e1d163bd7b04147966a..4753d434867e6ca06f925af78e279c6ff175e035 100644 (file)
@@ -33,7 +33,6 @@
  *                EASYCAP_NEEDS_USBVIDEO_H
  *                EASYCAP_NEEDS_V4L2_DEVICE_H
  *                EASYCAP_NEEDS_V4L2_FOPS
- *                EASYCAP_SILENT
  *
  *  IF REQUIRED THEY MUST BE EXTERNALLY DEFINED, FOR EXAMPLE AS COMPILER
  *  OPTIONS.
index f3dc1fc7e255933c74a40e6a0c903086a2fc0c2f..06ccd19d8457e3c849bde91c82bf34c14cb4a356 100644 (file)
@@ -133,11 +133,7 @@ static const struct saa7113config{
        int set;
 } saa7113configPAL[256] = {
                {0x01, 0x08},
-#ifdef ANTIALIAS
-               {0x02, 0xC0},
-#else
                {0x02, 0x80},
-#endif /*ANTIALIAS*/
                {0x03, 0x33},
                {0x04, 0x00},
                {0x05, 0x00},
@@ -191,11 +187,7 @@ static const struct saa7113config{
 /*--------------------------------------------------------------------------*/
 static const struct saa7113config saa7113configNTSC[256] = {
                {0x01, 0x08},
-#ifdef ANTIALIAS
-               {0x02, 0xC0},
-#else
                {0x02, 0x80},
-#endif /*ANTIALIAS*/
                {0x03, 0x33},
                {0x04, 0x00},
                {0x05, 0x00},
index 2887f014274be20fa18eb69ff0e564c3d756fc95..997e75574f5f2ce86d191268b2d12f2c517ab8ce 100644 (file)
@@ -4188,9 +4188,6 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
  */
 /*--------------------------------------------------------------------------*/
        case 1: {
-#ifdef EASYCAP_SILENT
-               return -ENOENT;
-#endif /*EASYCAP_SILENT*/
                if (!peasycap) {
                        SAM("MISTAKE: peasycap is NULL\n");
                        return -EFAULT;
@@ -4207,9 +4204,6 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
        }
        /*--------------------------------------------------------------------------*/
        case 2: {
-#ifdef EASYCAP_SILENT
-               return -ENOENT;
-#endif /*EASYCAP_SILENT*/
                if (!peasycap) {
                        SAM("MISTAKE: peasycap is NULL\n");
                        return -EFAULT;