aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/easycap
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2011-02-08 18:12:46 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-09 14:59:06 -0500
commita78392aa3458d93c81201bcc431f166d348cfac6 (patch)
treedd1cf9107390fe4f096ed04648f3cc61f0afebd0 /drivers/staging/easycap
parent6ae2dbec4d9673ae0935233e42dc890659702dfb (diff)
staging/easycap: remove EASYCAP_SILENT option
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>
Diffstat (limited to 'drivers/staging/easycap')
-rw-r--r--drivers/staging/easycap/easycap.h1
-rw-r--r--drivers/staging/easycap/easycap_low.c8
-rw-r--r--drivers/staging/easycap/easycap_main.c6
3 files changed, 0 insertions, 15 deletions
diff --git a/drivers/staging/easycap/easycap.h b/drivers/staging/easycap/easycap.h
index 00669b60aa4..4753d434867 100644
--- a/drivers/staging/easycap/easycap.h
+++ b/drivers/staging/easycap/easycap.h
@@ -33,7 +33,6 @@
33 * EASYCAP_NEEDS_USBVIDEO_H 33 * EASYCAP_NEEDS_USBVIDEO_H
34 * EASYCAP_NEEDS_V4L2_DEVICE_H 34 * EASYCAP_NEEDS_V4L2_DEVICE_H
35 * EASYCAP_NEEDS_V4L2_FOPS 35 * EASYCAP_NEEDS_V4L2_FOPS
36 * EASYCAP_SILENT
37 * 36 *
38 * IF REQUIRED THEY MUST BE EXTERNALLY DEFINED, FOR EXAMPLE AS COMPILER 37 * IF REQUIRED THEY MUST BE EXTERNALLY DEFINED, FOR EXAMPLE AS COMPILER
39 * OPTIONS. 38 * OPTIONS.
diff --git a/drivers/staging/easycap/easycap_low.c b/drivers/staging/easycap/easycap_low.c
index f3dc1fc7e25..06ccd19d845 100644
--- a/drivers/staging/easycap/easycap_low.c
+++ b/drivers/staging/easycap/easycap_low.c
@@ -133,11 +133,7 @@ static const struct saa7113config{
133 int set; 133 int set;
134} saa7113configPAL[256] = { 134} saa7113configPAL[256] = {
135 {0x01, 0x08}, 135 {0x01, 0x08},
136#ifdef ANTIALIAS
137 {0x02, 0xC0},
138#else
139 {0x02, 0x80}, 136 {0x02, 0x80},
140#endif /*ANTIALIAS*/
141 {0x03, 0x33}, 137 {0x03, 0x33},
142 {0x04, 0x00}, 138 {0x04, 0x00},
143 {0x05, 0x00}, 139 {0x05, 0x00},
@@ -191,11 +187,7 @@ static const struct saa7113config{
191/*--------------------------------------------------------------------------*/ 187/*--------------------------------------------------------------------------*/
192static const struct saa7113config saa7113configNTSC[256] = { 188static const struct saa7113config saa7113configNTSC[256] = {
193 {0x01, 0x08}, 189 {0x01, 0x08},
194#ifdef ANTIALIAS
195 {0x02, 0xC0},
196#else
197 {0x02, 0x80}, 190 {0x02, 0x80},
198#endif /*ANTIALIAS*/
199 {0x03, 0x33}, 191 {0x03, 0x33},
200 {0x04, 0x00}, 192 {0x04, 0x00},
201 {0x05, 0x00}, 193 {0x05, 0x00},
diff --git a/drivers/staging/easycap/easycap_main.c b/drivers/staging/easycap/easycap_main.c
index 2887f014274..997e75574f5 100644
--- a/drivers/staging/easycap/easycap_main.c
+++ b/drivers/staging/easycap/easycap_main.c
@@ -4188,9 +4188,6 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
4188 */ 4188 */
4189/*--------------------------------------------------------------------------*/ 4189/*--------------------------------------------------------------------------*/
4190 case 1: { 4190 case 1: {
4191#ifdef EASYCAP_SILENT
4192 return -ENOENT;
4193#endif /*EASYCAP_SILENT*/
4194 if (!peasycap) { 4191 if (!peasycap) {
4195 SAM("MISTAKE: peasycap is NULL\n"); 4192 SAM("MISTAKE: peasycap is NULL\n");
4196 return -EFAULT; 4193 return -EFAULT;
@@ -4207,9 +4204,6 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
4207 } 4204 }
4208 /*--------------------------------------------------------------------------*/ 4205 /*--------------------------------------------------------------------------*/
4209 case 2: { 4206 case 2: {
4210#ifdef EASYCAP_SILENT
4211 return -ENOENT;
4212#endif /*EASYCAP_SILENT*/
4213 if (!peasycap) { 4207 if (!peasycap) {
4214 SAM("MISTAKE: peasycap is NULL\n"); 4208 SAM("MISTAKE: peasycap is NULL\n");
4215 return -EFAULT; 4209 return -EFAULT;