Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp582013pxk; Wed, 16 Sep 2020 11:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpI68Lq//LTHwbY8YDkTY+gbE77fXT9R3PbvZtGf65eOvKDMjdbasT7xZ/HGCJZoVZTP8V X-Received: by 2002:a17:906:4cc2:: with SMTP id q2mr15045442ejt.422.1600280480039; Wed, 16 Sep 2020 11:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600280480; cv=none; d=google.com; s=arc-20160816; b=XAA7pQHRNhkCGHMrOYMb1P+M0R+/K/a4suF+NBarvverfzkOTXcL28+4cwWbHgjKt6 VCG4M1o8rOCKSDjTCbTOXX3MhC3U5E1tMZ/mcC3yMZOi7/iQZjjIUygF8jq8RSuJ6xDw LM2T0bhWzmJr1oVHKl7MjsThHAiTzdT7pts3xlgPa0jkcIsFFDKFJUaPf0G2bwV2jzaC e3nzhz+Ue5yvi25ZMwYrpm6U6udxbw7LA8zYI6g9bilcyfU5zP7BQvpy3RoddGpXAAzF xQ660oEiDIB33gf6EVa6vYJCSOIR31sTiaaeR7y8Zel1HGRW1aJ53EVei7W26RWimFrn +eNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vECOC8ibablR608brBLT3gbTLS1KLOMdj3p+cEle5uU=; b=K/LHwqdXnJjpunztB3+sNRAYSLwbnyW6oP/I5xpFtO40oxId6k9k7zTDhVBPpNEabk RZ74yhKn0OUfs43i/P7EwwFcO0w62dATVcVls+c11bbTAk6U8SwIV3SR1AmU/0TBPyFk Bs9Bc0IrAX7by7ER73wW1C+SJNSadNryY+Pl5VCJpAPo/teGqmzdhDG/G88ARPts47bX A2Zdd20duscWNdQb7bsztMhPG1NXL8hbVcTeqng5GCJnHGvy8C4qbicXIGhv24ImJHpf DmkM483dRcdkdPCg81hP+BIoUJeTmY+TTnYZz7i1yuPEBKWplFV8aXVvESPknafzK4Zv uJOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf11si11961495ejb.48.2020.09.16.11.20.57; Wed, 16 Sep 2020 11:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727875AbgIPSUQ (ORCPT + 99 others); Wed, 16 Sep 2020 14:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727907AbgIPSUG (ORCPT ); Wed, 16 Sep 2020 14:20:06 -0400 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7481EC061756; Wed, 16 Sep 2020 11:20:00 -0700 (PDT) Received: by gofer.mess.org (Postfix, from userid 1000) id CDB6DC63F3; Wed, 16 Sep 2020 19:19:54 +0100 (BST) Date: Wed, 16 Sep 2020 19:19:54 +0100 From: Sean Young To: Joakim Zhang Cc: "mchehab@kernel.org" , "linux-media@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , Andy Duan Subject: Re: [PATCH] media: rc: gpio-ir-recv: add QoS support for cpuidle system Message-ID: <20200916181954.GA27005@gofer.mess.org> References: <20200915150202.24165-1-qiangqing.zhang@nxp.com> <20200915093342.GA24139@gofer.mess.org> <20200915201947.GA4019@gofer.mess.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joakim, On Wed, Sep 16, 2020 at 10:22:11AM +0000, Joakim Zhang wrote: > > Hi Sean, > > Thanks for your hint, I will send a V2 soon according to your suggestions. > > We also have a concern, since you are a IR expert, may you can give us answers. With this patch, the first frame once press could not been decoded. > AFAIK, IR protocols have not specify how may frames transmitting once press, is there ang criterion to decide this? > > Is it possible that single frame transmitting once pressing? Per my understanding, it will transmit more than one frame. So remotes send IR signals while a button is being pressed down. For the remotes I've seen, when pressing a button a short amount of time will repeat the IR message at least three times. This is a few times when I've tried this, but by no means exhaustive of all remotes or protocols. I think the question you are trying to answer is, if we miss the first message, will we at least have another chance if the message is repeated? So I think the message will be repeated, but the repeat message is not enough for the nec protocol. The nec repeat is a shorter message which does not carry any information apart from "last key still pressed": https://www.sbprojects.net/knowledge/ir/nec.php Thanks, Sean