From patchwork Tue Aug 3 09:22:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 12415769 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10A5AC4338F for ; Tue, 3 Aug 2021 09:22:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DF91F60EBD for ; Tue, 3 Aug 2021 09:22:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234840AbhHCJXD (ORCPT ); Tue, 3 Aug 2021 05:23:03 -0400 Received: from gofer.mess.org ([88.97.38.141]:47473 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234833AbhHCJXD (ORCPT ); Tue, 3 Aug 2021 05:23:03 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id D1A41C6385; Tue, 3 Aug 2021 10:22:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mess.org; s=2020; t=1627982571; bh=zwBYrixLvilIrArb8qHZ3rutY4i8GEk/aWPlQkc9E6I=; h=From:To:Subject:Date:From; b=T9XWe4iUG2q+WCyDc8VEjZ5DSrEvSK1+S7t+Q+9d7RCaChMPEWyzsLJ4Nx6rvX9Wx yn/e+elns58njj/K76laPld7C9B3azbbuEqXIVjgS6Lp/jUgVRpuy2iIcvevnGwJt2 YisPzLPB1SU9OjqKTdn1R5g0YBv/45x23a5wyqB058EWIHNlOuEAtiNN3TZZWQ8+0P E6VWt2ehwJNhQS8K3mRmoCcB6lPQb2KTK9k/S4ekrF9uV5v6pfctGDTin48nQWQ7HE adBVvrpDiVF+Yo28eEUgaMTTZSVxP4ugXm2Yjo/guPtIqrPPpw7OpttB8+Cu9K7oac ufjuTieCcgqKw== From: Sean Young To: linux-media@vger.kernel.org Subject: [PATCH 1/2] media: mceusb: ensure rx resolution can be retrieved Date: Tue, 3 Aug 2021 10:22:50 +0100 Message-Id: <20210803092251.8392-1-sean@mess.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The receiver resolution is not populated. The resolution can be used to for various purposes like calculating the margins the decoder should use. Signed-off-by: Sean Young --- drivers/media/rc/mceusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index e03dd1f0144f..28bf78ff246a 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c @@ -1612,6 +1612,7 @@ static struct rc_dev *mceusb_init_rc_dev(struct mceusb_dev *ir) rc->dev.parent = dev; rc->priv = ir; rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; + rc->rx_resolution = MCE_TIME_UNIT; rc->min_timeout = MCE_TIME_UNIT; rc->timeout = MS_TO_US(100); if (!mceusb_model[ir->model].broken_irtimeout) { From patchwork Tue Aug 3 09:22:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 12415771 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86FE8C432BE for ; Tue, 3 Aug 2021 09:22:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6B84A60EBD for ; Tue, 3 Aug 2021 09:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235004AbhHCJXF (ORCPT ); Tue, 3 Aug 2021 05:23:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234833AbhHCJXF (ORCPT ); Tue, 3 Aug 2021 05:23:05 -0400 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CD7AC06175F for ; Tue, 3 Aug 2021 02:22:54 -0700 (PDT) Received: by gofer.mess.org (Postfix, from userid 1000) id EBC7AC6050; Tue, 3 Aug 2021 10:22:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mess.org; s=2020; t=1627982571; bh=sNk2QzK8sQT0pf+e5DCO3Yr/im+YcbdF0rYPc1W8cCM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WSInzLqbHjNi9kOQbJ4vqYGG2SY8P1i5Gh0zyODHEdGeOhC7XofJKM6LetFgYUPDG M6ZyvDF+8t7TK9ta1DcxJsXmpHNVLvmAeq3pNbNLuKx0xLJt6vAcNPufVMegJ4iTCd TLqYMG0Fb7amPvyiq1HaDbABuxWOE0MvUSMie7Y5dc3JomPiNZe64qIWBt67u5OarH osp3IbUO91Xd1mCY94xeHeqD+GpVZVxZNQGVJZyjP6joZ4UN88mOzlpQKj47HbMjNG 66JXoCfjzBH9Zp6UvvGWTVaKhR+FJPuzQMNQAr1nTZT6ciN037lgwXGVAGuNp/4mrV XKMw+e+mQuxuA== From: Sean Young To: linux-media@vger.kernel.org Subject: [PATCH 2/2] media: streamzap: ensure rx resolution can be retrieved Date: Tue, 3 Aug 2021 10:22:51 +0100 Message-Id: <20210803092251.8392-2-sean@mess.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210803092251.8392-1-sean@mess.org> References: <20210803092251.8392-1-sean@mess.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The receiver resolution is not populated. The resolution can be used to for various purposes like calculating the margins the decoder should use. Signed-off-by: Sean Young --- drivers/media/rc/streamzap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c index 9cd765e31c49..1cc5ebb85b6c 100644 --- a/drivers/media/rc/streamzap.c +++ b/drivers/media/rc/streamzap.c @@ -293,6 +293,7 @@ static struct rc_dev *streamzap_init_rc_dev(struct streamzap_ir *sz) rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; rdev->driver_name = DRIVER_NAME; rdev->map_name = RC_MAP_STREAMZAP; + rdev->rx_resolution = SZ_RESOLUTION; ret = rc_register_device(rdev); if (ret < 0) {