diff options
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/Makefile | 2 | ||||
-rw-r--r-- | drivers/media/common/ir-functions.c | 1 | ||||
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 82 | ||||
-rw-r--r-- | drivers/media/common/saa7146_fops.c | 4 | ||||
-rw-r--r-- | drivers/media/common/saa7146_hlp.c | 1 | ||||
-rw-r--r-- | drivers/media/common/saa7146_video.c | 2 | ||||
-rw-r--r-- | drivers/media/common/saa7146_vv_ksyms.c | 12 |
7 files changed, 79 insertions, 25 deletions
diff --git a/drivers/media/common/Makefile b/drivers/media/common/Makefile index 61b89617a967..8e7448230643 100644 --- a/drivers/media/common/Makefile +++ b/drivers/media/common/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | saa7146-objs := saa7146_i2c.o saa7146_core.o | 1 | saa7146-objs := saa7146_i2c.o saa7146_core.o |
2 | saa7146_vv-objs := saa7146_vv_ksyms.o saa7146_fops.o saa7146_video.o saa7146_hlp.o saa7146_vbi.o | 2 | saa7146_vv-objs := saa7146_fops.o saa7146_video.o saa7146_hlp.o saa7146_vbi.o |
3 | ir-common-objs := ir-functions.o ir-keymaps.o | 3 | ir-common-objs := ir-functions.o ir-keymaps.o |
4 | 4 | ||
5 | obj-$(CONFIG_VIDEO_SAA7146) += saa7146.o | 5 | obj-$(CONFIG_VIDEO_SAA7146) += saa7146.o |
diff --git a/drivers/media/common/ir-functions.c b/drivers/media/common/ir-functions.c index 397cff8b345b..8eaa88fd8b9b 100644 --- a/drivers/media/common/ir-functions.c +++ b/drivers/media/common/ir-functions.c | |||
@@ -269,4 +269,3 @@ EXPORT_SYMBOL_GPL(ir_decode_pulsedistance); | |||
269 | * c-basic-offset: 8 | 269 | * c-basic-offset: 8 |
270 | * End: | 270 | * End: |
271 | */ | 271 | */ |
272 | |||
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index a294d5c2c73f..ca98d9478947 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -618,7 +618,7 @@ IR_KEYTAB_TYPE ir_codes_em_terratec[IR_KEYTAB_SIZE] = { | |||
618 | 618 | ||
619 | EXPORT_SYMBOL_GPL(ir_codes_em_terratec); | 619 | EXPORT_SYMBOL_GPL(ir_codes_em_terratec); |
620 | 620 | ||
621 | IR_KEYTAB_TYPE ir_codes_em_pinnacle_usb[IR_KEYTAB_SIZE] = { | 621 | IR_KEYTAB_TYPE ir_codes_pinnacle_grey[IR_KEYTAB_SIZE] = { |
622 | [ 0x3a ] = KEY_0, | 622 | [ 0x3a ] = KEY_0, |
623 | [ 0x31 ] = KEY_1, | 623 | [ 0x31 ] = KEY_1, |
624 | [ 0x32 ] = KEY_2, | 624 | [ 0x32 ] = KEY_2, |
@@ -670,7 +670,7 @@ IR_KEYTAB_TYPE ir_codes_em_pinnacle_usb[IR_KEYTAB_SIZE] = { | |||
670 | [ 0x27 ] = KEY_RECORD, | 670 | [ 0x27 ] = KEY_RECORD, |
671 | }; | 671 | }; |
672 | 672 | ||
673 | EXPORT_SYMBOL_GPL(ir_codes_em_pinnacle_usb); | 673 | EXPORT_SYMBOL_GPL(ir_codes_pinnacle_grey); |
674 | 674 | ||
675 | IR_KEYTAB_TYPE ir_codes_flyvideo[IR_KEYTAB_SIZE] = { | 675 | IR_KEYTAB_TYPE ir_codes_flyvideo[IR_KEYTAB_SIZE] = { |
676 | [ 0x0f ] = KEY_0, | 676 | [ 0x0f ] = KEY_0, |
@@ -1263,34 +1263,51 @@ IR_KEYTAB_TYPE ir_codes_winfast[IR_KEYTAB_SIZE] = { | |||
1263 | [ 0x0f ] = KEY_9, | 1263 | [ 0x0f ] = KEY_9, |
1264 | 1264 | ||
1265 | [ 0x00 ] = KEY_POWER, | 1265 | [ 0x00 ] = KEY_POWER, |
1266 | [ 0x02 ] = KEY_TUNER, /* TV/FM */ | 1266 | [ 0x1b ] = KEY_AUDIO, /* Audio Source */ |
1267 | [ 0x1e ] = KEY_VIDEO, | 1267 | [ 0x02 ] = KEY_TUNER, /* TV/FM, not on Y0400052 */ |
1268 | [ 0x1e ] = KEY_VIDEO, /* Video Source */ | ||
1269 | [ 0x16 ] = KEY_INFO, /* Display information */ | ||
1268 | [ 0x04 ] = KEY_VOLUMEUP, | 1270 | [ 0x04 ] = KEY_VOLUMEUP, |
1269 | [ 0x08 ] = KEY_VOLUMEDOWN, | 1271 | [ 0x08 ] = KEY_VOLUMEDOWN, |
1270 | [ 0x0c ] = KEY_CHANNELUP, | 1272 | [ 0x0c ] = KEY_CHANNELUP, |
1271 | [ 0x10 ] = KEY_CHANNELDOWN, | 1273 | [ 0x10 ] = KEY_CHANNELDOWN, |
1272 | [ 0x03 ] = KEY_ZOOM, /* fullscreen */ | 1274 | [ 0x03 ] = KEY_ZOOM, /* fullscreen */ |
1273 | [ 0x1f ] = KEY_SUBTITLE, /* closed caption/teletext */ | 1275 | [ 0x1f ] = KEY_TEXT, /* closed caption/teletext */ |
1274 | [ 0x20 ] = KEY_SLEEP, | 1276 | [ 0x20 ] = KEY_SLEEP, |
1277 | [ 0x29 ] = KEY_CLEAR, /* boss key */ | ||
1275 | [ 0x14 ] = KEY_MUTE, | 1278 | [ 0x14 ] = KEY_MUTE, |
1276 | [ 0x2b ] = KEY_RED, | 1279 | [ 0x2b ] = KEY_RED, |
1277 | [ 0x2c ] = KEY_GREEN, | 1280 | [ 0x2c ] = KEY_GREEN, |
1278 | [ 0x2d ] = KEY_YELLOW, | 1281 | [ 0x2d ] = KEY_YELLOW, |
1279 | [ 0x2e ] = KEY_BLUE, | 1282 | [ 0x2e ] = KEY_BLUE, |
1280 | [ 0x18 ] = KEY_KPPLUS, /* fine tune + */ | 1283 | [ 0x18 ] = KEY_KPPLUS, /* fine tune + , not on Y040052 */ |
1281 | [ 0x19 ] = KEY_KPMINUS, /* fine tune - */ | 1284 | [ 0x19 ] = KEY_KPMINUS, /* fine tune - , not on Y040052 */ |
1285 | [ 0x2a ] = KEY_MEDIA, /* PIP (Picture in picture */ | ||
1282 | [ 0x21 ] = KEY_DOT, | 1286 | [ 0x21 ] = KEY_DOT, |
1283 | [ 0x13 ] = KEY_ENTER, | 1287 | [ 0x13 ] = KEY_ENTER, |
1284 | [ 0x22 ] = KEY_BACK, | 1288 | [ 0x11 ] = KEY_LAST, /* Recall (last channel */ |
1289 | [ 0x22 ] = KEY_PREVIOUS, | ||
1285 | [ 0x23 ] = KEY_PLAYPAUSE, | 1290 | [ 0x23 ] = KEY_PLAYPAUSE, |
1286 | [ 0x24 ] = KEY_NEXT, | 1291 | [ 0x24 ] = KEY_NEXT, |
1292 | [ 0x25 ] = KEY_ARCHIVE, /* Time Shifting */ | ||
1287 | [ 0x26 ] = KEY_STOP, | 1293 | [ 0x26 ] = KEY_STOP, |
1288 | [ 0x27 ] = KEY_RECORD | 1294 | [ 0x27 ] = KEY_RECORD, |
1295 | [ 0x28 ] = KEY_SAVE, /* Screenshot */ | ||
1296 | [ 0x2f ] = KEY_MENU, | ||
1297 | [ 0x30 ] = KEY_CANCEL, | ||
1298 | [ 0x31 ] = KEY_CHANNEL, /* Channel Surf */ | ||
1299 | [ 0x32 ] = KEY_SUBTITLE, | ||
1300 | [ 0x33 ] = KEY_LANGUAGE, | ||
1301 | [ 0x34 ] = KEY_REWIND, | ||
1302 | [ 0x35 ] = KEY_FASTFORWARD, | ||
1303 | [ 0x36 ] = KEY_TV, | ||
1304 | [ 0x37 ] = KEY_RADIO, /* FM */ | ||
1305 | [ 0x38 ] = KEY_DVD | ||
1289 | }; | 1306 | }; |
1290 | 1307 | ||
1291 | EXPORT_SYMBOL_GPL(ir_codes_winfast); | 1308 | EXPORT_SYMBOL_GPL(ir_codes_winfast); |
1292 | 1309 | ||
1293 | IR_KEYTAB_TYPE ir_codes_pinnacle[IR_KEYTAB_SIZE] = { | 1310 | IR_KEYTAB_TYPE ir_codes_pinnacle_color[IR_KEYTAB_SIZE] = { |
1294 | [ 0x59 ] = KEY_MUTE, | 1311 | [ 0x59 ] = KEY_MUTE, |
1295 | [ 0x4a ] = KEY_POWER, | 1312 | [ 0x4a ] = KEY_POWER, |
1296 | 1313 | ||
@@ -1348,7 +1365,7 @@ IR_KEYTAB_TYPE ir_codes_pinnacle[IR_KEYTAB_SIZE] = { | |||
1348 | [ 0x0a ] = KEY_BACKSPACE, | 1365 | [ 0x0a ] = KEY_BACKSPACE, |
1349 | }; | 1366 | }; |
1350 | 1367 | ||
1351 | EXPORT_SYMBOL_GPL(ir_codes_pinnacle); | 1368 | EXPORT_SYMBOL_GPL(ir_codes_pinnacle_color); |
1352 | 1369 | ||
1353 | /* Hauppauge: the newer, gray remotes (seems there are multiple | 1370 | /* Hauppauge: the newer, gray remotes (seems there are multiple |
1354 | * slightly different versions), shipped with cx88+ivtv cards. | 1371 | * slightly different versions), shipped with cx88+ivtv cards. |
@@ -1413,3 +1430,46 @@ IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE] = { | |||
1413 | 1430 | ||
1414 | EXPORT_SYMBOL_GPL(ir_codes_hauppauge_new); | 1431 | EXPORT_SYMBOL_GPL(ir_codes_hauppauge_new); |
1415 | 1432 | ||
1433 | IR_KEYTAB_TYPE ir_codes_npgtech[IR_KEYTAB_SIZE] = { | ||
1434 | [ 0x1d ] = KEY_SWITCHVIDEOMODE, /* switch inputs */ | ||
1435 | [ 0x2a ] = KEY_FRONT, | ||
1436 | |||
1437 | [ 0x3e ] = KEY_1, | ||
1438 | [ 0x02 ] = KEY_2, | ||
1439 | [ 0x06 ] = KEY_3, | ||
1440 | [ 0x0a ] = KEY_4, | ||
1441 | [ 0x0e ] = KEY_5, | ||
1442 | [ 0x12 ] = KEY_6, | ||
1443 | [ 0x16 ] = KEY_7, | ||
1444 | [ 0x1a ] = KEY_8, | ||
1445 | [ 0x1e ] = KEY_9, | ||
1446 | [ 0x3a ] = KEY_0, | ||
1447 | [ 0x22 ] = KEY_NUMLOCK, /* -/-- */ | ||
1448 | [ 0x20 ] = KEY_REFRESH, | ||
1449 | |||
1450 | [ 0x03 ] = KEY_BRIGHTNESSDOWN, | ||
1451 | [ 0x28 ] = KEY_AUDIO, | ||
1452 | [ 0x3c ] = KEY_UP, | ||
1453 | [ 0x3f ] = KEY_LEFT, | ||
1454 | [ 0x2e ] = KEY_MUTE, | ||
1455 | [ 0x3b ] = KEY_RIGHT, | ||
1456 | [ 0x00 ] = KEY_DOWN, | ||
1457 | [ 0x07 ] = KEY_BRIGHTNESSUP, | ||
1458 | [ 0x2c ] = KEY_TEXT, | ||
1459 | |||
1460 | [ 0x37 ] = KEY_RECORD, | ||
1461 | [ 0x17 ] = KEY_PLAY, | ||
1462 | [ 0x13 ] = KEY_PAUSE, | ||
1463 | [ 0x26 ] = KEY_STOP, | ||
1464 | [ 0x18 ] = KEY_FASTFORWARD, | ||
1465 | [ 0x14 ] = KEY_REWIND, | ||
1466 | [ 0x33 ] = KEY_ZOOM, | ||
1467 | [ 0x32 ] = KEY_KEYBOARD, | ||
1468 | [ 0x30 ] = KEY_GOTO, /* Pointing arrow */ | ||
1469 | [ 0x36 ] = KEY_MACRO, /* Maximize/Minimize (yellow) */ | ||
1470 | [ 0x0b ] = KEY_RADIO, | ||
1471 | [ 0x10 ] = KEY_POWER, | ||
1472 | |||
1473 | }; | ||
1474 | |||
1475 | EXPORT_SYMBOL_GPL(ir_codes_npgtech); | ||
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c index 523ab3851c7b..0027acc5b8e9 100644 --- a/drivers/media/common/saa7146_fops.c +++ b/drivers/media/common/saa7146_fops.c | |||
@@ -501,6 +501,7 @@ int saa7146_vv_init(struct saa7146_dev* dev, struct saa7146_ext_vv *ext_vv) | |||
501 | 501 | ||
502 | return 0; | 502 | return 0; |
503 | } | 503 | } |
504 | EXPORT_SYMBOL_GPL(saa7146_vv_init); | ||
504 | 505 | ||
505 | int saa7146_vv_release(struct saa7146_dev* dev) | 506 | int saa7146_vv_release(struct saa7146_dev* dev) |
506 | { | 507 | { |
@@ -515,6 +516,7 @@ int saa7146_vv_release(struct saa7146_dev* dev) | |||
515 | 516 | ||
516 | return 0; | 517 | return 0; |
517 | } | 518 | } |
519 | EXPORT_SYMBOL_GPL(saa7146_vv_release); | ||
518 | 520 | ||
519 | int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev, | 521 | int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev, |
520 | char *name, int type) | 522 | char *name, int type) |
@@ -553,6 +555,7 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev, | |||
553 | *vid = vfd; | 555 | *vid = vfd; |
554 | return 0; | 556 | return 0; |
555 | } | 557 | } |
558 | EXPORT_SYMBOL_GPL(saa7146_register_device); | ||
556 | 559 | ||
557 | int saa7146_unregister_device(struct video_device **vid, struct saa7146_dev* dev) | 560 | int saa7146_unregister_device(struct video_device **vid, struct saa7146_dev* dev) |
558 | { | 561 | { |
@@ -571,6 +574,7 @@ int saa7146_unregister_device(struct video_device **vid, struct saa7146_dev* dev | |||
571 | 574 | ||
572 | return 0; | 575 | return 0; |
573 | } | 576 | } |
577 | EXPORT_SYMBOL_GPL(saa7146_unregister_device); | ||
574 | 578 | ||
575 | static int __init saa7146_vv_init_module(void) | 579 | static int __init saa7146_vv_init_module(void) |
576 | { | 580 | { |
diff --git a/drivers/media/common/saa7146_hlp.c b/drivers/media/common/saa7146_hlp.c index 33bec8a6843b..2092e6c33dd2 100644 --- a/drivers/media/common/saa7146_hlp.c +++ b/drivers/media/common/saa7146_hlp.c | |||
@@ -641,6 +641,7 @@ void saa7146_set_hps_source_and_sync(struct saa7146_dev *dev, int source, int sy | |||
641 | vv->current_hps_source = source; | 641 | vv->current_hps_source = source; |
642 | vv->current_hps_sync = sync; | 642 | vv->current_hps_sync = sync; |
643 | } | 643 | } |
644 | EXPORT_SYMBOL_GPL(saa7146_set_hps_source_and_sync); | ||
644 | 645 | ||
645 | int saa7146_enable_overlay(struct saa7146_fh *fh) | 646 | int saa7146_enable_overlay(struct saa7146_fh *fh) |
646 | { | 647 | { |
diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c index e7079d1bd537..8393d472d3b8 100644 --- a/drivers/media/common/saa7146_video.c +++ b/drivers/media/common/saa7146_video.c | |||
@@ -318,6 +318,7 @@ int saa7146_start_preview(struct saa7146_fh *fh) | |||
318 | 318 | ||
319 | return 0; | 319 | return 0; |
320 | } | 320 | } |
321 | EXPORT_SYMBOL_GPL(saa7146_start_preview); | ||
321 | 322 | ||
322 | int saa7146_stop_preview(struct saa7146_fh *fh) | 323 | int saa7146_stop_preview(struct saa7146_fh *fh) |
323 | { | 324 | { |
@@ -352,6 +353,7 @@ int saa7146_stop_preview(struct saa7146_fh *fh) | |||
352 | 353 | ||
353 | return 0; | 354 | return 0; |
354 | } | 355 | } |
356 | EXPORT_SYMBOL_GPL(saa7146_stop_preview); | ||
355 | 357 | ||
356 | static int s_fmt(struct saa7146_fh *fh, struct v4l2_format *f) | 358 | static int s_fmt(struct saa7146_fh *fh, struct v4l2_format *f) |
357 | { | 359 | { |
diff --git a/drivers/media/common/saa7146_vv_ksyms.c b/drivers/media/common/saa7146_vv_ksyms.c deleted file mode 100644 index 62226eb4753b..000000000000 --- a/drivers/media/common/saa7146_vv_ksyms.c +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | #include <linux/module.h> | ||
2 | #include <media/saa7146_vv.h> | ||
3 | |||
4 | EXPORT_SYMBOL_GPL(saa7146_start_preview); | ||
5 | EXPORT_SYMBOL_GPL(saa7146_stop_preview); | ||
6 | |||
7 | EXPORT_SYMBOL_GPL(saa7146_set_hps_source_and_sync); | ||
8 | EXPORT_SYMBOL_GPL(saa7146_register_device); | ||
9 | EXPORT_SYMBOL_GPL(saa7146_unregister_device); | ||
10 | |||
11 | EXPORT_SYMBOL_GPL(saa7146_vv_init); | ||
12 | EXPORT_SYMBOL_GPL(saa7146_vv_release); | ||