From patchwork Sun Jan 23 21:22:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 499391 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0NLMwsF010307 for ; Sun, 23 Jan 2011 21:22:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752010Ab1AWVWx (ORCPT ); Sun, 23 Jan 2011 16:22:53 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:38526 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416Ab1AWVWw (ORCPT ); Sun, 23 Jan 2011 16:22:52 -0500 Received: by wwa36 with SMTP id 36so3688236wwa.1 for ; Sun, 23 Jan 2011 13:22:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=wnGbcgJoySwPpAn2hWLuXAh4ERI47XDvCjgVXEKRskY=; b=ZfCS+MWoOY2XR/m7/rgdjGTGX1yT6oD/u6ZPPNXULYwM09LfZWp317mx/ca/sOS5N2 /aQ9J+PWsWdT9fbeflgGKNmNCKrdpQzlX8cey2efUtYStyIha3FvYzDle6fSNSl/1vaX wHDCBxlEKH0h3I+UIi+UjHymL6JUKYJO4nioM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=luHQG+/+t1y/3P6JDwwFJOoA0AyjQrVNFQUeZWZI9Q6+R6I7HloSJwS66mb5FYaKJZ cFsKMijqGkDPn8ASXOhD2KiQj8tMQb/QuD2+9jaohm7zif/i8JUkxsHnudiVvLvH/qc3 Rcfa1QqRvXnd1Ja9gk7HvTdDVFex8yfqwtSUE= Received: by 10.216.169.202 with SMTP id n52mr3313642wel.15.1295817771121; Sun, 23 Jan 2011 13:22:51 -0800 (PST) Received: from [10.64.64.65] (92.41.251.199.sub.mbb.three.co.uk [92.41.251.199]) by mx.google.com with ESMTPS id a50sm4658890wer.18.2011.01.23.13.22.49 (version=SSLv3 cipher=RC4-MD5); Sun, 23 Jan 2011 13:22:50 -0800 (PST) Subject: [PATCH 1/2] DM04/QQBOX Update V1.76 - use 32 bit remote decoding From: Malcolm Priestley To: linux-media@vger.kernel.org Date: Sun, 23 Jan 2011 21:22:45 +0000 Message-ID: <1295817765.3007.4.camel@tvboxspy> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 23 Jan 2011 21:22:59 +0000 (UTC) diff --git a/drivers/media/dvb/dvb-usb/lmedm04.c b/drivers/media/dvb/dvb-usb/lmedm04.c index 46ccd01..c58d3fc 100644 --- a/drivers/media/dvb/dvb-usb/lmedm04.c +++ b/drivers/media/dvb/dvb-usb/lmedm04.c @@ -191,7 +191,7 @@ static int lme2510_stream_restart(struct dvb_usb_device *d) rbuff, sizeof(rbuff)); return ret; } -static int lme2510_remote_keypress(struct dvb_usb_adapter *adap, u16 keypress) +static int lme2510_remote_keypress(struct dvb_usb_adapter *adap, u32 keypress) { struct dvb_usb_device *d = adap->dev; @@ -237,7 +237,8 @@ static void lme2510_int_response(struct urb *lme_urb) case 0xaa: debug_data_snipet(1, "INT Remote data snipet in", ibuf); lme2510_remote_keypress(adap, - (u16)(ibuf[4]<<8)+ibuf[5]); + (u32)(ibuf[2] << 24) + (ibuf[3] << 16) + + (ibuf[4] << 8) + ibuf[5]); break; case 0xbb: switch (st->tuner_config) { @@ -1109,5 +1110,5 @@ module_exit(lme2510_module_exit); MODULE_AUTHOR("Malcolm Priestley "); MODULE_DESCRIPTION("LME2510(C) DVB-S USB2.0"); -MODULE_VERSION("1.75"); +MODULE_VERSION("1.76"); MODULE_LICENSE("GPL");