From patchwork Mon Apr 22 10:41:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 13638341 Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E6231448C6 for ; Mon, 22 Apr 2024 10:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=88.97.38.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713782512; cv=none; b=M38lKS0T1Z+AkYfxaoLE7FaREIQdiIVJa73ZxIG/qSgc/YqKAeYwXe6TwWdjF16PKx6RFzh7w/jnk2l72fs33x1L1LjR/YQexBIIBfYCRBw+UT8Ei2hWgt6qr7QiDkKXe6jyhunqOhkL9P8BwV5znhzD7hiy1aX34xW41S3A/Do= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713782512; c=relaxed/simple; bh=2puQE6yRTjM7FGYKGNW4Z1cYTny8FyjM7SkDJiScxRg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H0UR3PdYAcLL9HxA+MgCSbvbdXAn0SYoUToR2nrFWc7+Sq4JXY2dA80I5EQl4Q0X1LOnZFrjZCEMCACss4y7RRoB1yQGX+sYiQuGmBup5bQR99I4GjF1R+3ZQVcSc9814IgF+yW3shZN4ebkgGdaYNiJyQ6+JJYXnBhFhM+TyTc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org; spf=pass smtp.mailfrom=mess.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=inYGIikx; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=eTRkrpCV; arc=none smtp.client-ip=88.97.38.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mess.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="inYGIikx"; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="eTRkrpCV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1713782508; bh=2puQE6yRTjM7FGYKGNW4Z1cYTny8FyjM7SkDJiScxRg=; h=From:To:Cc:Subject:Date:From; b=inYGIikxwhlRuXfK/hKu+oDp3//Qr9DQC/Qre3nDqCbX+0LQN4yBuHadUqeAYrJxi 0X2JRR9gGiACCq+y18t1Tl4tNEdvq75Dgzeej8hdFj7ENSKlywaz2RiLGTEdNYuC7+ 8utCFCOZLnvjkDdaUNjlWM6FAdpfRGrflGQ/4POLUnKlGnuRHcGBBZD+RxndyUp7lL dZmrn/68AHDwk9CSKrMx1aUy0/a100gmMsflA88TD3QgBgJKJlb1XqHJl94Lq2LaAe +Cqpvg/AYbJgAU0/1ws+Z830RoWeWXkxHoXkXJjDmPAArYMSgxQjv4CXNCcIIDGs7S rPb7pFcPgzsWw== Received: by gofer.mess.org (Postfix, from userid 501) id B03381009EC; Mon, 22 Apr 2024 11:41:48 +0100 (BST) X-Spam-Level: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1713782507; bh=2puQE6yRTjM7FGYKGNW4Z1cYTny8FyjM7SkDJiScxRg=; h=From:To:Cc:Subject:Date:From; b=eTRkrpCVT4X4Su/30ocOuCip409GxYOlF8iYk5/l/5N8s9/BRqCOvL+wHYfWTAr36 XuqqWPjDVq9WDM9wPwZHoeBzhkaBSTlY3PO3/7EZeBm2boZaKrxvJkceYK2PD8efG9 R6qLwj0bMccJW/oVXNwe96FYfckB91cMYcNkVYQvMiMdgBCOShcRt0FFMLppJeqaI2 qA/DU84V6UirCSVPC9LH6HJmI7TNgIhnMnEklhzrwfKpTIljYaytmk3i1FyIAFDwVm iQnleJhXi4otlAMa77ZlHXVAh9c8Fl6aeSSQycxtaT0yBBe8jrWFpItVJGoB6gEVpY RUtkeb5xESPwg== Received: from bigcore.mess.org (bigcore.local [IPv6:2a02:8011:d000:212:bc3c:1b4a:a6fa:362f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by gofer.mess.org (Postfix) with ESMTPSA id 412C41000C2; Mon, 22 Apr 2024 11:41:47 +0100 (BST) From: Sean Young To: linux-media@vger.kernel.org Cc: Sean Young Subject: [PATCH v4l-utils 1/2] ir-ctl: encode rc6 mode 0 can have 43 edges Date: Mon, 22 Apr 2024 11:41:37 +0100 Message-ID: <20240422104138.20535-1-sean@mess.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Ensure allocate enough space. Signed-off-by: Sean Young --- utils/common/ir-encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common/ir-encode.c b/utils/common/ir-encode.c index 069e7feb..c0571879 100644 --- a/utils/common/ir-encode.c +++ b/utils/common/ir-encode.c @@ -390,7 +390,7 @@ static const struct { [RC_PROTO_NECX] = { "necx", 0xffffff, 67, 38000, nec_encode }, [RC_PROTO_NEC32] = { "nec32", 0xffffffff, 67, 38000, nec_encode }, [RC_PROTO_SANYO] = { "sanyo", 0x1fffff, 87, 38000, sanyo_encode }, - [RC_PROTO_RC6_0] = { "rc6_0", 0xffff, 41, 36000, rc6_encode }, + [RC_PROTO_RC6_0] = { "rc6_0", 0xffff, 43, 36000, rc6_encode }, [RC_PROTO_RC6_6A_20] = { "rc6_6a_20", 0xfffff, 52, 36000, rc6_encode }, [RC_PROTO_RC6_6A_24] = { "rc6_6a_24", 0xffffff, 60, 36000, rc6_encode }, [RC_PROTO_RC6_6A_32] = { "rc6_6a_32", 0xffffffff, 76, 36000, rc6_encode }, From patchwork Mon Apr 22 10:41:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 13638342 Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D6C7145FF0 for ; Mon, 22 Apr 2024 10:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=88.97.38.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713782512; cv=none; b=h2HVSiD3FZ46IkrY+lVw3NhYJcEbt7ZPXiNgTmQfTbxfMTyFHSC87SZB+EZvHlo1p1qEjf9XQiY4aUf1AMk7L9jQxxVatMSoGz6jYSb/Ys60007HKVj+oXVWEmu3tlEygv5m6eadUlQLL1TgqHVb9VkQn/YGsv4BAE6lfSkduak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713782512; c=relaxed/simple; bh=lDpmYXtUMVI8m0AGrz5vlzLt9IBrvkBNEv2OM8xTfJ0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PPE8c7MeBpbqok7IuLpCRySIOxwqSNhOHiT9eMzuXzvLN58OvlNiha4K91gqmcVVIdRwjciSjkmdHt4PrLJuHEvbUFEwVkWQugHL3PAwt3w4D+7CcdjWcI99tdArunAb9jnhnCiYrGqmzmcljEEWihlu28G2LNuZpe1sX6qz2Uc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org; spf=pass smtp.mailfrom=mess.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=avIyCtre; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=P0DHtJT0; arc=none smtp.client-ip=88.97.38.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mess.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="avIyCtre"; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="P0DHtJT0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1713782509; bh=lDpmYXtUMVI8m0AGrz5vlzLt9IBrvkBNEv2OM8xTfJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=avIyCtretZN05tlCaLuxEv5q1V3NhVcJ9LBCg/bPUcywzssfRV1+Fy6Mb6eI389Hm 3HppjFRlJPvJ30jTZJwyzO6EGHJbJ/9jdepBp34dBV51y86+UvN2Z+ED+Pe0KUhMh9 gBnw2G8n2UAG6Nw8BH8Uo8NYSHmoOd0xuglHMED10qFJ30lu/nbbl93pbcmC0xJi+x qgN5OXDfUGKW+dH4DVlprBU9S9trZjKRyp+LYJdKj3oQ+BQ3WVMuGcQUKUsN31oHqi qLoyncOrzD+m0N1vYQn0GmJ4j5fvD4b6du0UPtJEYEIiCajz6zk5k3URks2X8P+zrw WAyQcP1RISW1Q== Received: by gofer.mess.org (Postfix, from userid 501) id 6A4D51000C2; Mon, 22 Apr 2024 11:41:49 +0100 (BST) X-Spam-Level: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1713782507; bh=lDpmYXtUMVI8m0AGrz5vlzLt9IBrvkBNEv2OM8xTfJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P0DHtJT0/j5Jdz6SoFmx80m4nKAWTCe2BRIeGJBAlmtv0pBhqNmps2gF0tz+Rz8e7 8HHfcT79zUQ9LlcIN19Kv4zryq4mTnYELyjUSwKZuhaX2dYqVyhRxu1DLgWkc6/4SZ 0LEuEJYXskaKzSue95WbE6aTh5NIZMXHiiCH2wXpruMV6IS2p8gwZNweKVYHmJhhQV mNHobrBCBQtLw0pYao4NurjCQaxQ3FRCCPdlEaVGvkqnXhvcomUwWA7E4jqM9rFJmd NKypKoZe8Xe/SCRzTHVJwiHM98jUgq6CoYuUPS/tCnud9z5V8r/TNTx5kz/2cgxwrr vc3UB9s5x/14w== Received: from bigcore.mess.org (bigcore.local [IPv6:2a02:8011:d000:212:bc3c:1b4a:a6fa:362f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by gofer.mess.org (Postfix) with ESMTPSA id 4909F1000FF; Mon, 22 Apr 2024 11:41:47 +0100 (BST) From: Sean Young To: linux-media@vger.kernel.org Cc: Vince Ricosti , Sean Young Subject: [PATCH v4l-utils 2/2] keytable: fix stdout/stderr inconsistency Date: Mon, 22 Apr 2024 11:41:38 +0100 Message-ID: <20240422104138.20535-2-sean@mess.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240422104138.20535-1-sean@mess.org> References: <20240422104138.20535-1-sean@mess.org> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Vince Ricosti This patch fix the keytable inconsistency about stdout/stderr. Signed-off-by: Vince Ricosti Signed-off-by: Sean Young --- utils/keytable/keytable.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c index 9f7575d6..dac99f5e 100644 --- a/utils/keytable/keytable.c +++ b/utils/keytable/keytable.c @@ -1714,7 +1714,7 @@ static int set_rate(int fd, unsigned int delay, unsigned int period) return -1; } - printf(_("Changed Repeat delay to %d ms and repeat period to %d ms\n"), delay, period); + fprintf(stderr, _("Changed Repeat delay to %d ms and repeat period to %d ms\n"), delay, period); return 0; } @@ -1728,7 +1728,7 @@ static int get_rate(int fd, unsigned int *delay, unsigned int *period) } *delay = rep[0]; *period = rep[1]; - printf(_("Repeat delay: %d ms, repeat period: %d ms\n"), *delay, *period); + fprintf(stderr, _("Repeat delay: %d ms, repeat period: %d ms\n"), *delay, *period); return 0; } @@ -1736,7 +1736,7 @@ static void show_evdev_attribs(int fd) { unsigned int delay, period; - printf("\t"); + fprintf(stderr, "\t"); get_rate(fd, &delay, &period); } @@ -1839,10 +1839,10 @@ static void show_bpf(const char *lirc_name) goto error; } - printf(_("\tAttached BPF protocols: ")); + fprintf(stderr, _("\tAttached BPF protocols: ")); for (i=0; i\n")); + fprintf(stderr, _("\tExtra capabilities: \n")); } } }