From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=no 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 48791C07E9C for ; Fri, 9 Jul 2021 15:47:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2A4F7613BC for ; Fri, 9 Jul 2021 15:47:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232458AbhGIPu3 (ORCPT ); Fri, 9 Jul 2021 11:50:29 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:60572 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232269AbhGIPu2 (ORCPT ); Fri, 9 Jul 2021 11:50:28 -0400 X-UUID: 93cd3a901c1d4bc0a6581af0ce5b11b6-20210709 X-UUID: 93cd3a901c1d4bc0a6581af0ce5b11b6-20210709 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 403364121; Fri, 09 Jul 2021 23:47:40 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 9 Jul 2021 23:47:39 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 9 Jul 2021 23:47:39 +0800 From: YP WU To: CC: , , , , , , , , Subject: Re: How to use "DTV_FE_CAPABILITY" command for Frontend.h of Linux DVB Date: Fri, 9 Jul 2021 23:47:39 +0800 Message-ID: <20210709154739.30394-1-yp.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210623093312.6f9883a5@coco.lan> References: <20210623093312.6f9883a5@coco.lan> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >From: YP WU >>To: >>Cc: , , >> , , >> , , >> , , >> >>Subject: Re: How to use "DTV_FE_CAPABILITY" command for Frontend.h of Linux DVB >>Date: Fri, 2 Jul 2021 17:28:34 +0800 >>Message-ID: <20210702092834.11699-1-yp.wu@mediatek.com> (raw) >>In-Reply-To: <20210623093312.6f9883a5@coco.lan> >> >>Hello, Mr.Mauro, >>>-> About use case, I describe below: >> >> For our design of kernel, demod/tuner and LNB are registered to different frontend device nodes. >>We want to implement property command to know if the frontend device node is LNB device or demod/tuner device. >>If it is LNB device node, the value would return true >>If it is demod/tuner device node, the value would return false. >> >>Do you have better idea or suggestion for our usage? >>Please let me know if your have better suggestion. >>Very thank you for your help. >> >>BRs, >>YP Hello, Mr.Mauro, Frist of all, thanks for your reply. Based on previous discussion, we think we can create a new property command to achieve our goal. A new property command "DTV_FE_LNB_CAPABILITY". We can use "FE_GET_PROPERTY" with case "DTV_FE_LNB_CAPABILITY" to get LNB capability. We also should add a new variable named "LNB_capability" in dtv_frontend_properties. Like below: bool LNB_capability; If the device node is LNB, LNB_capability should set to TRUE. If the device node is demod/tuner, LNB_capability should set to FALSE. What's your opinion? If you have a better idea or suggestion, please let me know. Very thank you. BRs, YP