Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (3692): Keep experimental SLICED_VBI defines under an #if 0

The sliced VBI defines added in videodev2.h are removed since requires
more discussion.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
9bc7400a 2868c41f

+21 -62
+3 -3
drivers/media/video/cx25840/cx25840-vbi.c
··· 152 152 case VIDIOC_G_FMT: 153 153 { 154 154 static u16 lcr2vbi[] = { 155 - 0, V4L2_SLICED_TELETEXT_PAL_B, 0, /* 1 */ 155 + 0, V4L2_SLICED_TELETEXT_B, 0, /* 1 */ 156 156 0, V4L2_SLICED_WSS_625, 0, /* 4 */ 157 157 V4L2_SLICED_CAPTION_525, /* 6 */ 158 158 0, 0, V4L2_SLICED_VPS, 0, 0, /* 9 */ ··· 232 232 for (i = 7; i <= 23; i++) { 233 233 for (x = 0; x <= 1; x++) { 234 234 switch (svbi->service_lines[1-x][i]) { 235 - case V4L2_SLICED_TELETEXT_PAL_B: 235 + case V4L2_SLICED_TELETEXT_B: 236 236 lcr[i] |= 1 << (4 * x); 237 237 break; 238 238 case V4L2_SLICED_WSS_625: ··· 283 283 284 284 switch (id2) { 285 285 case 1: 286 - id2 = V4L2_SLICED_TELETEXT_PAL_B; 286 + id2 = V4L2_SLICED_TELETEXT_B; 287 287 break; 288 288 case 4: 289 289 id2 = V4L2_SLICED_WSS_625;
+3 -3
drivers/media/video/saa7115.c
··· 852 852 case 0: 853 853 lcr[i] |= 0xf << (4 * x); 854 854 break; 855 - case V4L2_SLICED_TELETEXT_PAL_B: 855 + case V4L2_SLICED_TELETEXT_B: 856 856 lcr[i] |= 1 << (4 * x); 857 857 break; 858 858 case V4L2_SLICED_CAPTION_525: ··· 881 881 static int saa7115_get_v4lfmt(struct i2c_client *client, struct v4l2_format *fmt) 882 882 { 883 883 static u16 lcr2vbi[] = { 884 - 0, V4L2_SLICED_TELETEXT_PAL_B, 0, /* 1 */ 884 + 0, V4L2_SLICED_TELETEXT_B, 0, /* 1 */ 885 885 0, V4L2_SLICED_CAPTION_525, /* 4 */ 886 886 V4L2_SLICED_WSS_625, 0, /* 5 */ 887 887 V4L2_SLICED_VPS, 0, 0, 0, 0, /* 7 */ ··· 1046 1046 /* decode payloads */ 1047 1047 switch (id2) { 1048 1048 case 1: 1049 - vbi->type = V4L2_SLICED_TELETEXT_PAL_B; 1049 + vbi->type = V4L2_SLICED_TELETEXT_B; 1050 1050 break; 1051 1051 case 4: 1052 1052 if (!saa7115_odd_parity(p[0]) || !saa7115_odd_parity(p[1]))
+9 -1
drivers/media/video/tvp5150.c
··· 500 500 501 501 static struct i2c_vbi_ram_value vbi_ram_default[] = 502 502 { 503 + /* FIXME: Current api doesn't handle all VBI types, those not 504 + yet supported are placed under #if 0 */ 505 + #if 0 503 506 {0x010, /* Teletext, SECAM, WST System A */ 504 507 {V4L2_SLICED_TELETEXT_SECAM,6,23,1}, 505 508 { 0xaa, 0xaa, 0xff, 0xff, 0xe7, 0x2e, 0x20, 0x26, 506 509 0xe6, 0xb4, 0x0e, 0x00, 0x00, 0x00, 0x10, 0x00 } 507 510 }, 511 + #endif 508 512 {0x030, /* Teletext, PAL, WST System B */ 509 - {V4L2_SLICED_TELETEXT_PAL_B,6,22,1}, 513 + {V4L2_SLICED_TELETEXT_B,6,22,1}, 510 514 { 0xaa, 0xaa, 0xff, 0xff, 0x27, 0x2e, 0x20, 0x2b, 511 515 0xa6, 0x72, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00 } 512 516 }, 517 + #if 0 513 518 {0x050, /* Teletext, PAL, WST System C */ 514 519 {V4L2_SLICED_TELETEXT_PAL_C,6,22,1}, 515 520 { 0xaa, 0xaa, 0xff, 0xff, 0xe7, 0x2e, 0x20, 0x22, ··· 540 535 { 0xaa, 0x2a, 0xff, 0x3f, 0x04, 0x51, 0x6e, 0x02, 541 536 0xa6, 0x7b, 0x09, 0x00, 0x00, 0x00, 0x27, 0x00 } 542 537 }, 538 + #endif 543 539 {0x0f0, /* Closed Caption, NTSC */ 544 540 {V4L2_SLICED_CAPTION_525,21,21,1}, 545 541 { 0xaa, 0x2a, 0xff, 0x3f, 0x04, 0x51, 0x6e, 0x02, ··· 551 545 { 0x5b, 0x55, 0xc5, 0xff, 0x00, 0x71, 0x6e, 0x42, 552 546 0xa6, 0xcd, 0x0f, 0x00, 0x00, 0x00, 0x3a, 0x00 } 553 547 }, 548 + #if 0 554 549 {0x130, /* Wide Screen Signal, NTSC C */ 555 550 {V4L2_SLICED_WSS_525,20,20,1}, 556 551 { 0x38, 0x00, 0x3f, 0x00, 0x00, 0x71, 0x6e, 0x43, ··· 567 560 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x8f, 0x6d, 0x49, 568 561 0x69, 0x94, 0x08, 0x00, 0x00, 0x00, 0x4c, 0x00 } 569 562 }, 563 + #endif 570 564 {0x190, /* Video Program System (VPS), PAL */ 571 565 {V4L2_SLICED_VPS,16,16,0}, 572 566 { 0xaa, 0xaa, 0xff, 0xff, 0xba, 0xce, 0x2b, 0x0d,
+6 -55
include/linux/videodev2.h
··· 966 966 967 967 /* Teletext World System Teletext 968 968 (WST), defined on ITU-R BT.653-2 */ 969 - #define V4L2_SLICED_TELETEXT_PAL_B (0x000001) 970 - #define V4L2_SLICED_TELETEXT_PAL_C (0x000002) 971 - #define V4L2_SLICED_TELETEXT_NTSC_B (0x000010) 972 - #define V4L2_SLICED_TELETEXT_SECAM (0x000020) 973 - 974 - /* Teletext North American Broadcast Teletext Specification 975 - (NABTS), defined on ITU-R BT.653-2 */ 976 - #define V4L2_SLICED_TELETEXT_NTSC_C (0x000040) 977 - #define V4L2_SLICED_TELETEXT_NTSC_D (0x000080) 978 - 969 + #define V4L2_SLICED_TELETEXT_B (0x0001) 979 970 /* Video Program System, defined on ETS 300 231*/ 980 - #define V4L2_SLICED_VPS (0x000400) 981 - 971 + #define V4L2_SLICED_VPS (0x0400) 982 972 /* Closed Caption, defined on EIA-608 */ 983 - #define V4L2_SLICED_CAPTION_525 (0x001000) 984 - #define V4L2_SLICED_CAPTION_625 (0x002000) 985 - 973 + #define V4L2_SLICED_CAPTION_525 (0x1000) 986 974 /* Wide Screen System, defined on ITU-R BT1119.1 */ 987 - #define V4L2_SLICED_WSS_625 (0x004000) 975 + #define V4L2_SLICED_WSS_625 (0x4000) 988 976 989 - /* Wide Screen System, defined on IEC 61880 */ 990 - #define V4L2_SLICED_WSS_525 (0x008000) 977 + #define V4L2_SLICED_VBI_525 (V4L2_SLICED_CAPTION_525) 978 + #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_B | V4L2_SLICED_VPS | V4L2_SLICED_WSS_625) 991 979 992 - /* Vertical Interval Timecode (VITC), defined on SMPTE 12M */ 993 - #define V4l2_SLICED_VITC_625 (0x010000) 994 - #define V4l2_SLICED_VITC_525 (0x020000) 995 - 996 - #define V4L2_SLICED_TELETEXT_B (V4L2_SLICED_TELETEXT_PAL_B |\ 997 - V4L2_SLICED_TELETEXT_NTSC_B) 998 - 999 - #define V4L2_SLICED_TELETEXT (V4L2_SLICED_TELETEXT_PAL_B |\ 1000 - V4L2_SLICED_TELETEXT_PAL_C |\ 1001 - V4L2_SLICED_TELETEXT_SECAM |\ 1002 - V4L2_SLICED_TELETEXT_NTSC_B |\ 1003 - V4L2_SLICED_TELETEXT_NTSC_C |\ 1004 - V4L2_SLICED_TELETEXT_NTSC_D) 1005 - 1006 - #define V4L2_SLICED_CAPTION (V4L2_SLICED_CAPTION_525 |\ 1007 - V4L2_SLICED_CAPTION_625) 1008 - 1009 - #define V4L2_SLICED_WSS (V4L2_SLICED_WSS_525 |\ 1010 - V4L2_SLICED_WSS_625) 1011 - 1012 - #define V4L2_SLICED_VITC (V4L2_SLICED_VITC_525 |\ 1013 - V4L2_SLICED_VITC_625) 1014 - 1015 - #define V4L2_SLICED_VBI_525 (V4L2_SLICED_TELETEXT_NTSC_B |\ 1016 - V4L2_SLICED_TELETEXT_NTSC_C |\ 1017 - V4L2_SLICED_TELETEXT_NTSC_D |\ 1018 - V4L2_SLICED_CAPTION_525 |\ 1019 - V4L2_SLICED_WSS_525 |\ 1020 - V4l2_SLICED_VITC_525) 1021 - 1022 - #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_PAL_B |\ 1023 - V4L2_SLICED_TELETEXT_PAL_C |\ 1024 - V4L2_SLICED_TELETEXT_SECAM |\ 1025 - V4L2_SLICED_VPS |\ 1026 - V4L2_SLICED_CAPTION_625 |\ 1027 - V4L2_SLICED_WSS_625 |\ 1028 - V4l2_SLICED_VITC_625) 1029 980 1030 981 struct v4l2_sliced_vbi_cap 1031 982 {