From: Greg KH <greg@kroah.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Jarod Wilson <jarod@wilsonet.com>,
Lawrence Rust <lawrence@softsystem.co.uk>,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH] Fix cx88 remote control input
Date: Wed, 4 May 2011 13:36:13 -0700 [thread overview]
Message-ID: <20110504203613.GA1091@kroah.com> (raw)
In-Reply-To: <4DC1B41D.9090200@redhat.com>
On Wed, May 04, 2011 at 05:16:29PM -0300, Mauro Carvalho Chehab wrote:
> Hi Lawerence,
>
> Em 03-05-2011 14:19, Jarod Wilson escreveu:
> > On May 3, 2011, at 3:25 AM, Lawrence Rust wrote:
> >
> >> On Mon, 2011-05-02 at 15:50 -0300, Mauro Carvalho Chehab wrote:
> >>> Em 08-04-2011 09:50, Lawrence Rust escreveu:
> >>>> This patch restores remote control input for cx2388x based boards on
> >>>> Linux kernels >= 2.6.38.
> >>>>
> >>>> After upgrading from Linux 2.6.37 to 2.6.38 I found that the remote
> >>>> control input of my Hauppauge Nova-S plus was no longer functioning.
> >>>> I posted a question on this newsgroup and Mauro Carvalho Chehab gave
> >>>> some helpful pointers as to the likely cause.
> >>>>
> >>>> Turns out that there are 2 problems:
> >>>>
> >>>> 1. In the IR interrupt handler of cx88-input.c there's a 32-bit multiply
> >>>> overflow which causes IR pulse durations to be incorrectly calculated.
>
> I'm adding the patch for it today on my linux-next tree. I'll probably send
> upstream on the next couple days.
>
> >>>>
> >>>> 2. The RC5 decoder appends the system code to the scancode and passes
> >>>> the combination to rc_keydown(). Unfortunately, the combined value is
> >>>> then forwarded to input_event() which then fails to recognise a valid
> >>>> scancode and hence no input events are generated.
>
> In this case, a patch should be sent to -stable in separate.
>
> Greg,
>
> On 2.6.38, there are two RC5 keytables for Hauppauge devices, one with incomplete
> scancodes (just 8 bits for each key) and the other one with 14 bits. One patch
> changed the IR handling for cx88 to accept 14-bits for scancodes, but the change
> didn't switch to the complete table.
>
> For 2.6.39, all keytables for Hauppauge (4 different tables) were unified into
> just one keytable. So, on 2.6.39-rc, the cx88 code already works fine for 64-bits
> kernels, and the fix for 32-bits is undergoing.
>
> In the case of 2.6.38 kernel, the Remote Controller is broken for both kernels.
> The fix is as simple as:
>
> --- a/drivers/media/video/cx88/cx88-input.c
> +++ b/drivers/media/video/cx88/cx88-input.c
> @@ -283,7 +283,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
> case CX88_BOARD_PCHDTV_HD3000:
> case CX88_BOARD_PCHDTV_HD5500:
> case CX88_BOARD_HAUPPAUGE_IRONLY:
> - ir_codes = RC_MAP_HAUPPAUGE_NEW;
> + ir_codes = RC_MAP_RC5_HAUPPAUGE_NEW;
> ir->sampling = 1;
> break;
> case CX88_BOARD_WINFAST_DTV2000H:
>
>
> But this change diverges from upstream, due to the table unify. Would such patch
> be acceptable for stable, even not having a corresponding upstream commit?
Yes, as long as .39 is working properly. We take patches in -stable for
stuff like this at times, it just needs to be specified exactly like you
did above. Want me to take this patch as-is for .38-stable?
thanks,
greg k-h
next prev parent reply other threads:[~2011-05-04 20:39 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 12:50 [PATCH] Fix cx88 remote control input Lawrence Rust
2011-04-08 14:32 ` Jarod Wilson
2011-04-08 14:41 ` Jarod Wilson
2011-04-08 15:22 ` Lawrence Rust
2011-04-08 16:21 ` Jarod Wilson
2011-04-08 16:50 ` Lawrence Rust
2011-04-08 18:18 ` Jarod Wilson
2011-04-08 17:07 ` Devin Heitmueller
2011-04-08 18:00 ` Jarod Wilson
2011-04-08 18:38 ` Devin Heitmueller
2011-04-08 19:27 ` Jarod Wilson
2011-04-08 20:50 ` Andy Walls
2011-04-10 1:39 ` Jarod Wilson
2011-04-10 23:08 ` HVR-1250/CX23885 IR Rx (Re: [PATCH] Fix cx88 remote control input) Andy Walls
2011-06-28 0:38 ` HVR-1250/CX23885 IR Rx Jarod Wilson
2011-06-28 10:30 ` Andy Walls
2011-06-28 21:39 ` Jarod Wilson
2011-06-28 22:32 ` Andy Walls
2011-06-29 2:17 ` Jarod Wilson
2011-06-29 3:54 ` Andy Walls
2011-05-02 18:50 ` [PATCH] Fix cx88 remote control input Mauro Carvalho Chehab
2011-05-03 7:25 ` Lawrence Rust
2011-05-03 17:19 ` Jarod Wilson
2011-05-04 20:16 ` Mauro Carvalho Chehab
2011-05-04 20:36 ` Greg KH [this message]
2011-05-05 2:25 ` Mauro Carvalho Chehab
2011-05-05 20:35 ` Greg KH
2011-05-05 21:08 ` Patch "[media] cx88: Fix HVR4000 IR keymap" has been added to the 2.6.38-stable tree gregkh
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=20110504203613.GA1091@kroah.com \
--to=greg@kroah.com \
--cc=jarod@wilsonet.com \
--cc=lawrence@softsystem.co.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox