Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3842144ioo; Wed, 25 May 2022 09:12:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLhNV6UI/XVaiI6YpDU+uX0tCgXNw+t+dqZwp4TU5Jjg9GJO2Tfkb1GlMZEFlRNB57OuUw X-Received: by 2002:a05:6402:c90:b0:42a:98c7:3fe with SMTP id cm16-20020a0564020c9000b0042a98c703femr35667132edb.270.1653495121265; Wed, 25 May 2022 09:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653495121; cv=none; d=google.com; s=arc-20160816; b=n+gme+fLfbGj7fbLmwITBM61WmBTfpGMbRaT4XQB8sBn14mnrd6fq1TjX7ma6yb4oS JJzZ6tUoXYHEwiyHqgyX2nuy8SOGBXDB0EniUfPabyXBeAXbdOaSRsUBIZc/OwvGX1yB euHRIDZKnoXFpWBK77imh201nTruQulLY0RU+aZaVa1sThLggV6iccR6gH3f2OoW1s8X KgAQLii3BoVxC55mdlEYPJy3KCi0p/An+MvO3QT+Qbjpd/eXzOYhrIELyBM1+eKT1bQ4 oWk4EFUNvfrESP5yqsPyghBXtBLnqxsAcBuIcC/m9yP1lvf+Vptl/MjzHdK4z+njBY1l tK/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3nGvCeiomEwWzMS4gZXWCqBfoECYVCeWQsSOkeQlwmk=; b=cZA5GRB+TtsLJPSd+ykRXwXotaRmJyNHltYmefUTRvQxsJMkv/wtAObjizQ8P4pknd zTbAp5C4A0v2A7tERxdNKij/GmS6tN1GVKKt9P1nvfrocPg7/5B58rJTcoRfGXbLjAub 4Cn7plk6egNjbmStV5StO14nJZWqmOHCKWUuRXcBYefxDvjwNV8Rp9Kiq7HdQqPRF4qI 2wS/Uc1AYEwmfFrxLa2dMLyfJVsGEYtLJl+rxM1B+UoH5Aq94KD5n5oJSLV7ObY6Nilk +MzXXGFG3AhnEFXm3KNxdnw3MW1pfuyDc7lqXo6uqbYXcmPlvJydH9pbgSJeDDoPHyoG 8qCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mess.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk40-20020a1709077fa800b006fee8aa708asi9926573ejc.415.2022.05.25.09.11.33; Wed, 25 May 2022 09:12:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mess.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235800AbiEYItk (ORCPT + 99 others); Wed, 25 May 2022 04:49:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbiEYItj (ORCPT ); Wed, 25 May 2022 04:49:39 -0400 X-Greylist: delayed 4138 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 25 May 2022 01:49:38 PDT Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1828753B6C; Wed, 25 May 2022 01:49:38 -0700 (PDT) Received: by gofer.mess.org (Postfix, from userid 1000) id 8478A101CCD; Wed, 25 May 2022 09:49:36 +0100 (BST) Date: Wed, 25 May 2022 09:49:36 +0100 From: Sean Young To: Jiri Slaby Cc: Mauro Carvalho Chehab , Linus Torvalds , Greg Kroah-Hartman , Andrew Morton , Linux Media Mailing List , Linux Kernel Mailing List Subject: Re: [GIT PULL for v5.18-rc1] media updates Message-ID: References: <20220322101406.459e2950@coco.lan> <8093277c-5098-e5e3-f606-486de5b2f67b@kernel.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="h3J3ZAFSc2DcqDuO" Content-Disposition: inline In-Reply-To: <8093277c-5098-e5e3-f606-486de5b2f67b@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --h3J3ZAFSc2DcqDuO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 25, 2022 at 10:09:38AM +0200, Jiri Slaby wrote: > Be it umaintained or not, it's still in distributions (the above is from > opensuse build system) and it is broken now. Every single distributor now > would have to go and fix this. I am happy to help out with this issue, since lircd upstream does not accept patches. I've attached a patch for your perusal. Sean --h3J3ZAFSc2DcqDuO Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="lirc.patch" diff --git a/daemons/lircd.cpp b/daemons/lircd.cpp index 4cceab7e..9f4ee0cc 100644 --- a/daemons/lircd.cpp +++ b/daemons/lircd.cpp @@ -488,9 +488,8 @@ static int setup_hardware(void) if (curr_driver->fd != -1 && curr_driver->drvctl_func) { if ((curr_driver->features & LIRC_CAN_SET_REC_CARRIER) - || (curr_driver->features & LIRC_CAN_SET_REC_TIMEOUT) - || (curr_driver->features & LIRC_CAN_SET_REC_FILTER)) { - ret = setup_frequency() && setup_timeout(); + || (curr_driver->features & LIRC_CAN_SET_REC_TIMEOUT)) { + ret = setup_frequency() && setup_timeout(); } } return ret; @@ -2180,13 +2177,6 @@ void loop(void) const char* button_name; int reps; - if (curr_driver->drvctl_func - && (curr_driver->features & LIRC_CAN_NOTIFY_DECODE) - ) { - curr_driver->drvctl_func(DRVCTL_NOTIFY_DECODE, - NULL); - } - get_release_data(&remote_name, &button_name, &reps); input_message(message, remote_name, button_name, reps); diff --git a/tools/lirc-lsplugins.cpp b/tools/lirc-lsplugins.cpp index ba67a3cb..6251ac65 100644 --- a/tools/lirc-lsplugins.cpp +++ b/tools/lirc-lsplugins.cpp @@ -57,8 +57,7 @@ "# c: LIRC_CAN_SET_SEND_CARRIER\n" \ "# d: LIRC_CAN_SET_SEND_DUTY_CYCLE\n" \ "# t: LIRC_CAN_SET_TRANSMITTER_MASK\n" \ - "# C: LIRC_CAN_MEASURE_CARRIER\n" \ - "# D: LIRC_CAN_NOTIFY_DECODE\n" + "# C: LIRC_CAN_MEASURE_CARRIER\n" const struct option options[] = { { "plugindir", required_argument, NULL, 'U' }, @@ -303,8 +302,7 @@ static void format_features(struct driver* hw, line_t* line) get(LIRC_CAN_SET_SEND_CARRIER, 'c', hw), get(LIRC_CAN_SET_SEND_DUTY_CYCLE, 'd', hw), get(LIRC_CAN_SET_TRANSMITTER_MASK, 't', hw), - get(LIRC_CAN_MEASURE_CARRIER, 'C', hw), - get(LIRC_CAN_NOTIFY_DECODE, 'D', hw) + get(LIRC_CAN_MEASURE_CARRIER, 'C', hw) ); line->features = strdup(buff); } --h3J3ZAFSc2DcqDuO--