diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-09 22:50:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-09 22:50:49 -0500 |
commit | 3e7468313758913c5e4d372f35b271b96bad1298 (patch) | |
tree | eb612d252a9e2349a1173451cd779beebd18a33e /drivers/media/dvb/ttpci | |
parent | 6825fbc4cb219f2c98bb7d157915d797cf5cb823 (diff) | |
parent | e97f4677961f68e29bd906022ebf60a6df7f530a (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (345 commits)
V4L/DVB (13542): ir-keytable: Allow dynamic table change
V4L/DVB (13541): atbm8830: replace 64-bit division and floating point usage
V4L/DVB (13540): ir-common: Cleanup get key evdev code
V4L/DVB (13539): ir-common: add __func__ for debug messages
V4L/DVB (13538): ir-common: Use a dynamic keycode table
V4L/DVB (13537): ir: Prepare the code for dynamic keycode table allocation
V4L/DVB (13536): em28xx: Use the full RC5 code on HVR-950 Remote Controller
V4L/DVB (13535): ir-common: Add a hauppauge new table with the complete RC5 code
V4L/DVB (13534): ir-common: Remove some unused fields/structs
V4L/DVB (13533): ir: use dynamic tables, instead of static ones
V4L/DVB (13532): ir-common: Add infrastructure to use a dynamic keycode table
V4L/DVB (13531): ir-common: rename the debug routine to allow exporting it
V4L/DVB (13458): go7007: subdev conversion
V4L/DVB (13457): s2250: subdev conversion
V4L/DVB (13456): s2250: Change module structure
V4L/DVB (13528): em28xx: add support for em2800 VC211A card
em28xx: don't reduce scale to half size for em2800
em28xx: don't load audio modules when AC97 is mis-detected
em28xx: em2800 chips support max width of 640
V4L/DVB (13523): dvb-bt8xx: fix compile warning
...
Fix up trivial conflicts due to spelling fixes from the trivial tree in
Documentation/video4linux/gspca.txt
drivers/media/video/cx18/cx18-mailbox.h
Diffstat (limited to 'drivers/media/dvb/ttpci')
-rw-r--r-- | drivers/media/dvb/ttpci/budget-av.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-ci.c | 18 |
2 files changed, 14 insertions, 6 deletions
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c index 8ea915227674..983672aa2450 100644 --- a/drivers/media/dvb/ttpci/budget-av.c +++ b/drivers/media/dvb/ttpci/budget-av.c | |||
@@ -1055,7 +1055,7 @@ static const struct stb0899_s1_reg knc1_stb0899_s1_init_3[] = { | |||
1055 | { STB0899_TSCFGH , 0x0c }, | 1055 | { STB0899_TSCFGH , 0x0c }, |
1056 | { STB0899_TSCFGM , 0x00 }, | 1056 | { STB0899_TSCFGM , 0x00 }, |
1057 | { STB0899_TSCFGL , 0x0c }, | 1057 | { STB0899_TSCFGL , 0x0c }, |
1058 | { STB0899_TSOUT , 0x0d }, /* 0x0d for CAM */ | 1058 | { STB0899_TSOUT , 0x4d }, /* 0x0d for CAM */ |
1059 | { STB0899_RSSYNCDEL , 0x00 }, | 1059 | { STB0899_RSSYNCDEL , 0x00 }, |
1060 | { STB0899_TSINHDELH , 0x02 }, | 1060 | { STB0899_TSINHDELH , 0x02 }, |
1061 | { STB0899_TSINHDELM , 0x00 }, | 1061 | { STB0899_TSINHDELM , 0x00 }, |
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c index b5c681372b6c..7d193ebc0aea 100644 --- a/drivers/media/dvb/ttpci/budget-ci.c +++ b/drivers/media/dvb/ttpci/budget-ci.c | |||
@@ -178,7 +178,7 @@ static void msp430_ir_interrupt(unsigned long data) | |||
178 | if (budget_ci->ir.last_raw != raw || !timer_pending(&budget_ci->ir.timer_keyup)) { | 178 | if (budget_ci->ir.last_raw != raw || !timer_pending(&budget_ci->ir.timer_keyup)) { |
179 | ir_input_nokey(dev, &budget_ci->ir.state); | 179 | ir_input_nokey(dev, &budget_ci->ir.state); |
180 | ir_input_keydown(dev, &budget_ci->ir.state, | 180 | ir_input_keydown(dev, &budget_ci->ir.state, |
181 | budget_ci->ir.ir_key, raw); | 181 | budget_ci->ir.ir_key); |
182 | budget_ci->ir.last_raw = raw; | 182 | budget_ci->ir.last_raw = raw; |
183 | } | 183 | } |
184 | 184 | ||
@@ -224,8 +224,10 @@ static int msp430_ir_init(struct budget_ci *budget_ci) | |||
224 | case 0x1011: | 224 | case 0x1011: |
225 | case 0x1012: | 225 | case 0x1012: |
226 | /* The hauppauge keymap is a superset of these remotes */ | 226 | /* The hauppauge keymap is a superset of these remotes */ |
227 | ir_input_init(input_dev, &budget_ci->ir.state, | 227 | error = ir_input_init(input_dev, &budget_ci->ir.state, |
228 | IR_TYPE_RC5, &ir_codes_hauppauge_new_table); | 228 | IR_TYPE_RC5, &ir_codes_hauppauge_new_table); |
229 | if (error < 0) | ||
230 | goto out2; | ||
229 | 231 | ||
230 | if (rc5_device < 0) | 232 | if (rc5_device < 0) |
231 | budget_ci->ir.rc5_device = 0x1f; | 233 | budget_ci->ir.rc5_device = 0x1f; |
@@ -236,8 +238,10 @@ static int msp430_ir_init(struct budget_ci *budget_ci) | |||
236 | case 0x1017: | 238 | case 0x1017: |
237 | case 0x101a: | 239 | case 0x101a: |
238 | /* for the Technotrend 1500 bundled remote */ | 240 | /* for the Technotrend 1500 bundled remote */ |
239 | ir_input_init(input_dev, &budget_ci->ir.state, | 241 | error = ir_input_init(input_dev, &budget_ci->ir.state, |
240 | IR_TYPE_RC5, &ir_codes_tt_1500_table); | 242 | IR_TYPE_RC5, &ir_codes_tt_1500_table); |
243 | if (error < 0) | ||
244 | goto out2; | ||
241 | 245 | ||
242 | if (rc5_device < 0) | 246 | if (rc5_device < 0) |
243 | budget_ci->ir.rc5_device = IR_DEVICE_ANY; | 247 | budget_ci->ir.rc5_device = IR_DEVICE_ANY; |
@@ -246,8 +250,10 @@ static int msp430_ir_init(struct budget_ci *budget_ci) | |||
246 | break; | 250 | break; |
247 | default: | 251 | default: |
248 | /* unknown remote */ | 252 | /* unknown remote */ |
249 | ir_input_init(input_dev, &budget_ci->ir.state, | 253 | error = ir_input_init(input_dev, &budget_ci->ir.state, |
250 | IR_TYPE_RC5, &ir_codes_budget_ci_old_table); | 254 | IR_TYPE_RC5, &ir_codes_budget_ci_old_table); |
255 | if (error < 0) | ||
256 | goto out2; | ||
251 | 257 | ||
252 | if (rc5_device < 0) | 258 | if (rc5_device < 0) |
253 | budget_ci->ir.rc5_device = IR_DEVICE_ANY; | 259 | budget_ci->ir.rc5_device = IR_DEVICE_ANY; |
@@ -280,6 +286,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci) | |||
280 | return 0; | 286 | return 0; |
281 | 287 | ||
282 | out2: | 288 | out2: |
289 | ir_input_free(input_dev); | ||
283 | input_free_device(input_dev); | 290 | input_free_device(input_dev); |
284 | out1: | 291 | out1: |
285 | return error; | 292 | return error; |
@@ -297,6 +304,7 @@ static void msp430_ir_deinit(struct budget_ci *budget_ci) | |||
297 | del_timer_sync(&dev->timer); | 304 | del_timer_sync(&dev->timer); |
298 | ir_input_nokey(dev, &budget_ci->ir.state); | 305 | ir_input_nokey(dev, &budget_ci->ir.state); |
299 | 306 | ||
307 | ir_input_free(dev); | ||
300 | input_unregister_device(dev); | 308 | input_unregister_device(dev); |
301 | } | 309 | } |
302 | 310 | ||
@@ -1248,7 +1256,7 @@ static const struct stb0899_s1_reg tt3200_stb0899_s1_init_3[] = { | |||
1248 | { STB0899_TSCFGH , 0x0c }, | 1256 | { STB0899_TSCFGH , 0x0c }, |
1249 | { STB0899_TSCFGM , 0x00 }, | 1257 | { STB0899_TSCFGM , 0x00 }, |
1250 | { STB0899_TSCFGL , 0x0c }, | 1258 | { STB0899_TSCFGL , 0x0c }, |
1251 | { STB0899_TSOUT , 0x0d }, /* 0x0d for CAM */ | 1259 | { STB0899_TSOUT , 0x4d }, /* 0x0d for CAM */ |
1252 | { STB0899_RSSYNCDEL , 0x00 }, | 1260 | { STB0899_RSSYNCDEL , 0x00 }, |
1253 | { STB0899_TSINHDELH , 0x02 }, | 1261 | { STB0899_TSINHDELH , 0x02 }, |
1254 | { STB0899_TSINHDELM , 0x00 }, | 1262 | { STB0899_TSINHDELM , 0x00 }, |