From patchwork Mon May 10 09:36:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 433374 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 B8A02C433B4 for ; Mon, 10 May 2021 09:36:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7EDD26146E for ; Mon, 10 May 2021 09:36:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbhEJJhT (ORCPT ); Mon, 10 May 2021 05:37:19 -0400 Received: from gofer.mess.org ([88.97.38.141]:44289 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbhEJJhR (ORCPT ); Mon, 10 May 2021 05:37:17 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id DF504C6393; Mon, 10 May 2021 10:36:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mess.org; s=2020; t=1620639371; bh=THrw7H/915DbQOJdiEYIuB4sxe6QK1T5iPOKAuScnZ4=; h=From:To:Subject:Date:From; b=E1dZBGfmz9qdGq4VJJffjJMm3f0dEbLrCCZoOEkTktwozVfYjlepbnX3IxwQaxWnl QM5IdG0RwwMFRK9Qw8JwVkkMUxq6Up5f21LqQtAPZtKSwTtzvnEgHa5Rtyjfxr1trN yzt3JaGS0huLgiwn2Cz1g7uyfDvWY/sUiPM5Y7+Qz/AWyEsJinQukr2zsQe7wUo0vk iZu7pAdZ2OjX8QHuzQ71BOng4a3Nd+bZNFtyLI8RMig6+XC8GvmTcEI51Sao+UEGmD VRPVGuPzYEUiUWgMtNIQEM6K66uUJ+Z5sfqhYRgs02AM1YqkfktgDR0Rxy2xOl+fku L80cBz9bSSJ9w== From: Sean Young To: linux-media@vger.kernel.org Subject: [PATCH] media: redrat3: enabling carrier reports switches to wideband receiver Date: Mon, 10 May 2021 10:36:11 +0100 Message-Id: <20210510093611.31304-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 In order to measure the carrier, the redrat3 needs to switch to the short range wideband receiver. This is what s_learning_mode() or the LIRC_SET_WIDEBAND_RECEIVER ioctl is for. Signed-off-by: Sean Young --- drivers/media/rc/redrat3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index 2cf3377ec63a..04483afc446b 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c @@ -952,7 +952,7 @@ static struct rc_dev *redrat3_init_rc_dev(struct redrat3_dev *rr3) rc->s_timeout = redrat3_set_timeout; rc->tx_ir = redrat3_transmit_ir; rc->s_tx_carrier = redrat3_set_tx_carrier; - rc->s_carrier_report = redrat3_wideband_receiver; + rc->s_learning_mode = redrat3_wideband_receiver; rc->driver_name = DRIVER_NAME; rc->rx_resolution = 2; rc->map_name = RC_MAP_HAUPPAUGE;