From patchwork Wed Jul 28 15:14:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 114827 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6SFEnUn017970 for ; Wed, 28 Jul 2010 15:14:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755128Ab0G1POs (ORCPT ); Wed, 28 Jul 2010 11:14:48 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:59260 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754927Ab0G1POp (ORCPT ); Wed, 28 Jul 2010 11:14:45 -0400 Received: by mail-bw0-f46.google.com with SMTP id 1so4014228bwz.19 for ; Wed, 28 Jul 2010 08:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=8d7dKmA4zHmvxQgVEACsA18rAviVU1IqthsoalFBr48=; b=IZ6+BD6qWgkyuGx1b1HqgPiUmRp1ij12QwDw9WfYmf9Cq+DEOs7xyxLnMnW1TwtKte Yb8UXJOsdvgjgvVs06vXw9IwgAAYcH3XkHBH/sIAuibgtKzgDblZui17ocOknTZbAiEQ SLsjwXoL1E3gnDwtRMqN0JOh57xt8DrI2K4k8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=OI8Xa3WMC73xDDwJf7kztvYFhQPeC/Pm+5ZizlnuPQZQKjGnMK8mcVLH/P2kT4b86x 5lYxlzMtRtagy6itVucEGAAF9pxDKzZTfuI6EEsImYpTAsXz9qRXodmroMHCJ6uTqTNj l215Xiwh4D9u2mgvbqkXtblmT+EKwO83oGzYE= Received: by 10.204.119.140 with SMTP id z12mr6057793bkq.203.1280330084255; Wed, 28 Jul 2010 08:14:44 -0700 (PDT) Received: from localhost.localdomain (IGLD-84-229-112-176.inter.net.il [84.229.112.176]) by mx.google.com with ESMTPS id bq20sm4855282bkb.16.2010.07.28.08.14.41 (version=SSLv3 cipher=RC4-MD5); Wed, 28 Jul 2010 08:14:43 -0700 (PDT) From: Maxim Levitsky To: lirc-list@lists.sourceforge.net Cc: Jarod Wilson , linux-input@vger.kernel.org, linux-media@vger.kernel.org, Mauro Carvalho Chehab , Maxim Levitsky Subject: [PATCH 7/9] IR: actualy report unknown scancodes the in-kernel decoders found. Date: Wed, 28 Jul 2010 18:14:09 +0300 Message-Id: <1280330051-27732-8-git-send-email-maximlevitsky@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1280330051-27732-1-git-send-email-maximlevitsky@gmail.com> References: <1280330051-27732-1-git-send-email-maximlevitsky@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 28 Jul 2010 15:14:50 +0000 (UTC) diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c index 34b9c07..1504a3b 100644 --- a/drivers/media/IR/ir-keytable.c +++ b/drivers/media/IR/ir-keytable.c @@ -383,9 +383,12 @@ void ir_keydown(struct input_dev *dev, int scancode, u8 toggle) ir->last_toggle = toggle; ir->last_keycode = keycode; + input_event(dev, EV_MSC, MSC_SCAN, scancode); + if (keycode == KEY_RESERVED) goto out; + /* Register a keypress */ ir->keypressed = true; IR_dprintk(1, "%s: key down event, key 0x%04x, scancode 0x%04x\n", @@ -480,6 +483,8 @@ int __ir_input_register(struct input_dev *input_dev, set_bit(EV_KEY, input_dev->evbit); set_bit(EV_REP, input_dev->evbit); + set_bit(EV_MSC, input_dev->evbit); + set_bit(MSC_SCAN, input_dev->mscbit); if (ir_setkeytable(input_dev, &ir_dev->rc_tab, rc_tab)) { rc = -ENOMEM;