From patchwork Tue Jun 25 13:25:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 11015555 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B039C924 for ; Tue, 25 Jun 2019 13:25:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A440A28C0D for ; Tue, 25 Jun 2019 13:25:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98CEB28C12; Tue, 25 Jun 2019 13:25:28 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 423BA28C15 for ; Tue, 25 Jun 2019 13:25:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729841AbfFYNZ1 (ORCPT ); Tue, 25 Jun 2019 09:25:27 -0400 Received: from gofer.mess.org ([88.97.38.141]:37235 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbfFYNZ1 (ORCPT ); Tue, 25 Jun 2019 09:25:27 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id 273C160739; Tue, 25 Jun 2019 14:25:26 +0100 (BST) From: Sean Young To: linux-media@vger.kernel.org Subject: [PATCH v4l-utils] ir-ctl: increase limit to match kernel Date: Tue, 25 Jun 2019 14:25:26 +0100 Message-Id: <20190625132526.18749-1-sean@mess.org> X-Mailer: git-send-email 2.11.0 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 This changed in kernel v5.3. In earlier versions, EINVAL will be returned. Signed-off-by: Sean Young --- utils/ir-ctl/ir-ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c index ad830612..03c2791d 100644 --- a/utils/ir-ctl/ir-ctl.c +++ b/utils/ir-ctl/ir-ctl.c @@ -53,8 +53,8 @@ __result; }) #endif -/* See drivers/media/rc/ir-lirc-codec.c line 23 */ -#define LIRCBUF_SIZE 512 +/* See drivers/media/rc/lirc_dev.c line 22 */ +#define LIRCBUF_SIZE 1024 #define IR_DEFAULT_TIMEOUT 125000 const char *argp_program_version = "IR raw version " V4L_UTILS_VERSION;