Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228121
b: refs/heads/master
c: 62af33e
h: refs/heads/master
i:
  228119: de30a16
v: v3
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed Nov 16, 2010
1 parent 8c34975 commit f4374f8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a65e659d97bc652b2e14a63beaf9efbf5d4e18b2
refs/heads/master: 62af33ec6e73d658720ea1190861c8c0609a94b3
4 changes: 2 additions & 2 deletions trunk/drivers/staging/easycap/easycap.h
Original file line number Diff line number Diff line change
Expand Up @@ -630,13 +630,13 @@ unsigned long long int remainder;

#if defined(EASYCAP_DEBUG)
#define JOT(n, format, args...) do { \
if (n <= debug) { \
if (n <= easycap_debug) { \
printk(KERN_DEBUG "easycap:: %s: " \
format, __func__, ##args);\
} \
} while (0)
#define JOM(n, format, args...) do { \
if (n <= debug) { \
if (n <= easycap_debug) { \
printk(KERN_DEBUG "easycap::%i%s: " \
format, peasycap->isdongle, __func__, ##args);\
} \
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/easycap/easycap_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
*
*/
/*****************************************************************************/
extern int debug;
extern int gain;
extern int easycap_debug;
extern int easycap_gain;
extern struct easycap_dongle easycap_dongle[];
10 changes: 5 additions & 5 deletions trunk/drivers/staging/easycap/easycap_low.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,11 +1082,11 @@ SAM("0x%04X:0x%04X is audio vendor id\n", id1, id2);
* SELECT AUDIO SOURCE "LINE IN" AND SET THE AUDIO GAIN.
*/
/*---------------------------------------------------------------------------*/
if (31 < gain)
gain = 31;
if (0 > gain)
gain = 0;
if (0 != audio_gainset(pusb_device, (__s8)gain))
if (31 < easycap_gain)
easycap_gain = 31;
if (0 > easycap_gain)
easycap_gain = 0;
if (0 != audio_gainset(pusb_device, (__s8)easycap_gain))
SAY("ERROR: audio_gainset() failed\n");
check_vt(pusb_device);
return 0;
Expand Down
18 changes: 9 additions & 9 deletions trunk/drivers/staging/easycap/easycap_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
#include "easycap_standard.h"
#include "easycap_ioctl.h"

int debug;
int bars;
int gain = 16;
module_param(debug, int, S_IRUGO | S_IWUSR);
module_param(bars, int, S_IRUGO | S_IWUSR);
module_param(gain, int, S_IRUGO | S_IWUSR);
static int easycap_debug;
static int easycap_bars;
int easycap_gain = 16;
module_param_named(debug, easycap_debug, int, S_IRUGO | S_IWUSR);
module_param_named(bars, easycap_bars, int, S_IRUGO | S_IWUSR);
module_param_named(gain, easycap_gain, int, S_IRUGO | S_IWUSR);

/*---------------------------------------------------------------------------*/
/*
Expand Down Expand Up @@ -1464,7 +1464,7 @@ if (peasycap->field_read == peasycap->field_fill) {
easycap_testcard(peasycap, peasycap->field_read);
#else
if (0 <= input && INPUT_MANY > input) {
if (bars && VIDEO_LOST_TOLERATE <= peasycap->lost[input])
if (easycap_bars && VIDEO_LOST_TOLERATE <= peasycap->lost[input])
easycap_testcard(peasycap, peasycap->field_read);
}
#endif /*EASYCAP_TESTCARD*/
Expand Down Expand Up @@ -5008,8 +5008,8 @@ easycap_module_init(void)
int result;

SAY("========easycap=======\n");
JOT(4, "begins. %i=debug %i=bars %i=gain\n", debug, bars, \
gain);
JOT(4, "begins. %i=debug %i=bars %i=gain\n", easycap_debug, easycap_bars, \
easycap_gain);
SAY("version: " EASYCAP_DRIVER_VERSION "\n");
/*---------------------------------------------------------------------------*/
/*
Expand Down

0 comments on commit f4374f8

Please sign in to comment.