aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorStefan Ringel <stefan.ringel@arcor.de>2010-05-07 11:29:04 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:59:17 -0400
commit3c7c5e9e8903f201bdbc85bdffba47a2d1352e4c (patch)
tree5363299eca6980b2a61eb88e58f4447ace533e14 /drivers/staging
parent083e472176999de97848e5659cc958516ef81ecb (diff)
V4L/DVB: tm6000: bugfix image position
bugfix incorrect image and line position in videobuffer Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/tm6000/tm6000-video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c
index 721d5a52948c..7828030c4f33 100644
--- a/drivers/staging/tm6000/tm6000-video.c
+++ b/drivers/staging/tm6000/tm6000-video.c
@@ -225,8 +225,8 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp,
225 * It should, instead, check if the user selected 225 * It should, instead, check if the user selected
226 * entrelaced or non-entrelaced mode 226 * entrelaced or non-entrelaced mode
227 */ 227 */
228 pos= ((line<<1)+field)*linewidth + 228 pos = ((line << 1) - field - 1) * linewidth +
229 block*TM6000_URB_MSG_LEN; 229 block * TM6000_URB_MSG_LEN;
230 230
231 /* Don't allow to write out of the buffer */ 231 /* Don't allow to write out of the buffer */
232 if (pos+TM6000_URB_MSG_LEN > (*buf)->vb.size) { 232 if (pos+TM6000_URB_MSG_LEN > (*buf)->vb.size) {