From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: "llarevo@gmx.net" <llarevo@gmx.net>
Cc: Ezequiel Garcia <elezegarcia@gmail.com>,
Devin Heitmueller <dheitmueller@kernellabs.com>,
linux-media <linux-media@vger.kernel.org>
Subject: Re: [PATCH] em28xx: Fix height setting on non-progressive captures
Date: Sun, 12 Aug 2012 05:56:48 -0300 [thread overview]
Message-ID: <50276FD0.10501@redhat.com> (raw)
In-Reply-To: <1344070424.32527.7.camel@tbastian-desktop.localdomain>
Em 04-08-2012 05:53, llarevo@gmx.net escreveu:
>>>> Wait a minute, unless I completely misunderstood the bug (which is possible),
>>>> I think this patch is straightforward.
>>>>
>>>> By the look of this hunk on commit c2a6b54a:
>>>>
>>>> ---------------------------------8<--------------------------
>>>> diff --git a/drivers/media/video/em28xx/em28xx-core.c
>>>> b/drivers/media/video/em28xx/em28xx-core.c
>>>> index 5b78e19..339fffd 100644
>>>> --- a/drivers/media/video/em28xx/em28xx-core.c
>>>> +++ b/drivers/media/video/em28xx/em28xx-core.c
>>>> @@ -720,7 +720,10 @@ int em28xx_resolution_set(struct em28xx *dev)
>>>> {
>>>> int width, height;
>>>> width = norm_maxw(dev);
>>>> - height = norm_maxh(dev) >> 1;
>>>> + height = norm_maxh(dev);
>>>> +
>>>> + if (!dev->progressive)
>>>> + height >>= norm_maxh(dev);
>>>>
>>>> --------------------------------->8--------------------------
>>>>
>>>> It seems to me that for non-progressive the height should just be
>>>>
>>>> height = height / 2 (or height = height >> 1)
>>>>
>>>> as was before, and as my patch is doing. It seems to driver will
>>>> "merge" the interlaced
>>>> frames and so the "expected" height is half the real height.
>>>> I hope I got it right.
>>>>
>>>> That said and no matter how straightforward may be, which I'm not sure,
>>>> I also want the patch to get tested before being accepted.
>
> I own a Terratec Cinergy XS USB in two flavors: 0ccd:005e and
> 0ccd:0042. I work with Fedora F17. If somebody gives me an advice what
> code to patch (git or a tarball from
> http://linuxtv.org/downloads/drivers/) and what to test, I can make a
> try.
Thanks for your offering, but this should affect only em28xx-based
webcams (like the Silvercrest one).
I have a few here. I'll do the testing.
Regards,
Mauro
next prev parent reply other threads:[~2012-08-12 8:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 17:52 [PATCH] em28xx: Fix height setting on non-progressive captures Ezequiel Garcia
2012-08-03 18:11 ` Ezequiel Garcia
2012-08-03 18:26 ` Devin Heitmueller
2012-08-03 18:42 ` Ezequiel Garcia
2012-08-03 18:55 ` Devin Heitmueller
2012-08-03 19:02 ` Ezequiel Garcia
2012-08-04 8:53 ` llarevo
2012-08-12 8:56 ` Mauro Carvalho Chehab [this message]
2012-08-12 10:08 ` Mauro Carvalho Chehab
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=50276FD0.10501@redhat.com \
--to=mchehab@redhat.com \
--cc=dheitmueller@kernellabs.com \
--cc=elezegarcia@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=llarevo@gmx.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).