From: Janne Grunau <j@jannau.net>
To: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Taylor Ralph <taylor.ralph@gmail.com>, linux-media@vger.kernel.org
Subject: Re: [PATCH] [media] hdpvr: update picture controls to support firmware versions > 0.15
Date: Thu, 20 Oct 2011 19:08:11 +0200 [thread overview]
Message-ID: <20111020170811.GD7530@jannau.net> (raw)
In-Reply-To: <CAGoCfiwXjQsAEVfFiNA5CNw1PVuO0npO63pGb91rpbPuKGvwZQ@mail.gmail.com>
On Thu, Oct 20, 2011 at 12:35:40PM -0400, Devin Heitmueller wrote:
> On Thu, Oct 20, 2011 at 12:23 PM, Janne Grunau <janne@jannau.net> wrote:
> >
> > I've looked at them only at very beginning and if I recall correctly
> > they had no visible effects. The values in the linux driver were taken
> > from sniffing the windows driver. I remember that I've verified the
> > default brightness value since 0x86 looked odd. I'm not sure that I
> > verified all controls. I might have assumed all controls shared the
> > same value range.
> >
> > There were previous reports of the picture controls not working at all.
>
> Thanks for taking the time to chime in.
no problem, sorry for ignoring the other mails, I had no time to look
at the problem immediately and then forgot about it.
> If the controls really were broken all along under Linux, then that's
> good to know. That said, I'm not confident the changes Taylor
> proposed should really be run against older firmwares. There probably
> needs to be a check to have the values in question only applied if
> firmware >= 16. If the controls were broken entirely, then we should
> probably not advertise them in ENUM_CTRL and S_CTRL should return
> -EINVAL if running the old firmware (perhaps put a warning in the
> dmesg output saying the controls are unavailable because the user is
> not running firmware >= 16).
>
> My immediate concern is about ensuring we don't cause breakage in
> older firmware. For example, we don't know if there are some older
> firmware revisions that *did* work with the driver. The controls
> might have worked up to firmware revision 10, then been broken from
> 11-15, then work again in 16 (with the new hue value needed). The
> safe approach is to only use these new settings if they're running
> firmware >= 16.
I think such scenario is unlikely but I don't know it for sure and
I don't want to force anyone to test every firmware version.
Ignoring them for firmware version < 16 should be safe since we assume
they had no effect. Returning -EINVAL might break API-ignoring
applications written with the HD PVR in mind but I think it's a better
approach than silently ignoring those controls.
Janne
next prev parent reply other threads:[~2011-10-20 17:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-20 15:24 [PATCH] [media] hdpvr: update picture controls to support firmware versions > 0.15 Taylor Ralph
2011-10-20 15:30 ` Devin Heitmueller
2011-10-20 16:09 ` Taylor Ralph
2011-10-20 16:23 ` Janne Grunau
2011-10-20 16:35 ` Devin Heitmueller
2011-10-20 17:08 ` Janne Grunau [this message]
2011-10-20 18:14 ` Devin Heitmueller
2011-10-20 19:26 ` Taylor Ralph
2011-10-21 3:33 ` Taylor Ralph
2011-11-07 12:21 ` Mauro Carvalho Chehab
2011-11-08 0:54 ` Taylor Ralph
2011-12-21 22:14 ` Taylor Ralph
2012-02-01 3:04 ` Taylor Ralph
2012-02-14 20:43 ` Jarod Wilson
2012-02-14 21:32 ` Devin Heitmueller
2012-02-14 22:09 ` Jarod Wilson
2012-02-15 11:46 ` missing patches in patchwork (was Re: [PATCH] [media] hdpvr: update picture controls to support firmware versions > 0.15) Janne Grunau
2012-02-15 12:07 ` 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=20111020170811.GD7530@jannau.net \
--to=j@jannau.net \
--cc=dheitmueller@kernellabs.com \
--cc=linux-media@vger.kernel.org \
--cc=taylor.ralph@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox