From: Stefan Ringel <stefan.ringel@arcor.de>
To: stefan.ringel@arcor.de
Cc: linux-media@vger.kernel.org, mchehab@redhat.com
Subject: Re: [PATCH] tm6000: bugfix image position
Date: Fri, 07 May 2010 17:46:08 +0200 [thread overview]
Message-ID: <4BE435C0.4010909@arcor.de> (raw)
In-Reply-To: <1273246144-6876-1-git-send-email-stefan.ringel@arcor.de>
Am 07.05.2010 17:29, schrieb stefan.ringel@arcor.de:
> From: Stefan Ringel <stefan.ringel@arcor.de>
>
> bugfix incorrect image and line position in videobuffer
>
>
> Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
> ---
> drivers/staging/tm6000/tm6000-video.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c
> index 9554472..f7248f0 100644
> --- a/drivers/staging/tm6000/tm6000-video.c
> +++ b/drivers/staging/tm6000/tm6000-video.c
> @@ -223,8 +223,8 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp,
> * It should, instead, check if the user selected
> * entrelaced or non-entrelaced mode
> */
> - pos= ((line<<1)+field)*linewidth +
> - block*TM6000_URB_MSG_LEN;
> + pos = ((line << 1) - field - 1) * linewidth +
> + block * TM6000_URB_MSG_LEN;
>
> /* Don't allow to write out of the buffer */
> if (pos+TM6000_URB_MSG_LEN > (*buf)->vb.size) {
>
http://www.stefanringel.de/pub/tm6000_image_07_05_2010.jpg
--
Stefan Ringel <stefan.ringel@arcor.de>
next prev parent reply other threads:[~2010-05-07 15:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-07 15:29 [PATCH] tm6000: bugfix image position stefan.ringel
2010-05-07 15:46 ` Stefan Ringel [this message]
2010-05-07 18:17 ` Bee Hock Goh
2010-05-07 18:37 ` Stefan Ringel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BE435C0.4010909@arcor.de \
--to=stefan.ringel@arcor.de \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.