From patchwork Wed Nov 16 10:52:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent McIntyre X-Patchwork-Id: 9431271 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2A3BA6047D for ; Wed, 16 Nov 2016 11:00:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 090A727FA3 for ; Wed, 16 Nov 2016 11:00:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB6A128F01; Wed, 16 Nov 2016 11:00:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51B6827FA3 for ; Wed, 16 Nov 2016 11:00:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbcKPLAg (ORCPT ); Wed, 16 Nov 2016 06:00:36 -0500 Received: from mail-pg0-f50.google.com ([74.125.83.50]:34286 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751955AbcKPLAe (ORCPT ); Wed, 16 Nov 2016 06:00:34 -0500 Received: by mail-pg0-f50.google.com with SMTP id x23so75387198pgx.1 for ; Wed, 16 Nov 2016 03:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=7fKqcjYQX+x3ultfLaFi76nd5JTjDQi68JtLbF5UQqI=; b=xkhOswk4YlnwLX++ryHVSD8mHxGsAwh7UUagbNlONkKRVZPSgsUHqxD1bQuvtmxc8v YxkptUKeJwDjCCFMSIMhsP8HwaPWBXnxXK4J6nlZBbziFfa8GEr/tbmWfOY4rrFEpCaN 7JJn2SbA72mxLKfNDxmapuNw/nzD/ZnnsudXIBeChT85MUwlVycslv080xra3CYDKQpI cipDVSU7LSrfGlrUi+Vrm7Jso9B4Z42xDP4QvHrY5wD6H3D1LHkZLm4TtqdUy/Ytjhmd jLyts9O2H1UAmbgkMidNRjuhta5DADtghdB2wXHKHbJTJeeQhoF+GY09bEcgHNw8L6pi IgUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=7fKqcjYQX+x3ultfLaFi76nd5JTjDQi68JtLbF5UQqI=; b=D/FwVYDqowRimVYv4f9VqQRQF8McEidfQdw4Q+2lGPCXGa08H6MiAmEV0NN9p7kYz7 lvUGszJ0rnd5D6jvTaC/MvJ+fMWOCGodbmoyO6U50RIoW9sBMKtIDUnYsDUoCzuh+h4W 21QcpU331B9n/it9akTehBLtJmMzEkbQzGZPisd4S9Ox8rSaC3XDYLTycHGxR4TKm87C KjmC23Yt+HRLniwQb3q/cndAztDGG3cRIjhwBQ7g9f6QNs6wQ/YzbJR6BWcmXXPiMlFV Fqi/Av2jWmpFxebDQUD+z5n8eqEmkMSvNa0Y88poaNBo+vVAxAxoDWloRj3AJm212brg 7yNQ== X-Gm-Message-State: ABUngve2B0UvFaRFt7LY0r7juqSK61nzpgvOHnV74B3A8XU8vVpJkSvIhTqLoXFrQs/pFg== X-Received: by 10.99.125.77 with SMTP id m13mr6980473pgn.58.1479293590773; Wed, 16 Nov 2016 02:53:10 -0800 (PST) Received: from shambles.local (c122-106-153-7.carlnfd1.nsw.optusnet.com.au. [122.106.153.7]) by smtp.gmail.com with ESMTPSA id p125sm1926745pfg.33.2016.11.16.02.53.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2016 02:53:09 -0800 (PST) Date: Wed, 16 Nov 2016 21:52:58 +1100 From: Vincent McIntyre To: linux-media@vger.kernel.org Subject: ir-keytable: infinite loops, segfaults Message-ID: <20161116105256.GA9998@shambles.local> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, I have a fairly old dvico dual digital 4 tuner and remote. There seem to be some issues with support for it, can I help fix them? I am using ir-keytable 1.10.0-1 on Ubuntu 16.04 LTS, with kernel 4.4.0-47-generic (package version 4.4.0-47-generic) The remote's keymapping is the one in /lib/udev/rc_keymaps/dvico_mce; kernel support for the device is in media/usb/dvb-usb/cxusb.c. Mostly it works, in that I get correct keycodes back from evtest and ir-keytable -t. But I want to change some of the keycode mappings and that is not working. # cat >testfile 0xfe47 KEY_PAUSE ^D # ir-keytable -v -d /dev/input/event15 -w testfile Parsing testfile keycode file parsing 0xfe47=KEY_PAUSE: value=119 Opening /dev/input/event15 Input Protocol version: 0x00010001 fe47=0077 Wrote 1 keycode(s) to driver So far so good, yes? But evtest still reports the same keycode for the key I tried to modify. # evtest