Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138072
b: refs/heads/master
c: 583803d
h: refs/heads/master
v: v3
  • Loading branch information
Andy Walls authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 8fa5fc9 commit 99ff08d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 386e439f0c32eb540e931b0d1874e3fd1a8a8f10
refs/heads/master: 583803d135b14d414e77b6d2b546a811cac9944e
9 changes: 5 additions & 4 deletions trunk/drivers/media/video/cx18/cx18-vbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf,
int streamtype)
{
u8 *p = (u8 *) buf->buf;
u32 *q = (u32 *) buf->buf;
__be32 *q = (__be32 *) buf->buf;
u32 size = buf->bytesused;
u32 pts;
int lines;
Expand All @@ -178,8 +178,9 @@ void cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf,
return;

/*
* The CX23418 sends us data that is 32 bit LE swapped, but we want
* the raw VBI bytes in the order they were in the raster line
* The CX23418 sends us data that is 32 bit little-endian swapped,
* but we want the raw VBI bytes in the order they were in the raster
* line. This has a side effect of making the 12 byte header big endian
*/
cx18_buf_swap(buf);

Expand Down Expand Up @@ -218,7 +219,7 @@ void cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf,

/* Sliced VBI data with data insertion */

pts = (be32_to_cpu(q[0] == 0x3fffffff)) ? be32_to_cpu(q[2]) : 0;
pts = (be32_to_cpu(q[0]) == 0x3fffffff) ? be32_to_cpu(q[2]) : 0;

/*
* For calls to compress_sliced_buf(), ensure there are an integral
Expand Down

0 comments on commit 99ff08d

Please sign in to comment.