From patchwork Mon Sep 14 09:03:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 255833 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=-14.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,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 6E0F9C43461 for ; Mon, 14 Sep 2020 09:04:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 205A6221E8 for ; Mon, 14 Sep 2020 09:04:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600074279; bh=0PU/DNFt4f6Rzyiw/4kbN0uHCEIwJDLqO3MyGp9lp6U=; h=From:Cc:Subject:Date:In-Reply-To:References:To:List-ID:From; b=Yam9v+4RpO1eHcx1zlgsQMg6BM5z4EYD4QSQD1voe5tf4CWAQty1PqlGPfZs+IPlP Ig2iHgp3mavtgxNsgGPQgfa0Wb2uBAFmX/Tdrz8QBItGl5CYbXDioXEMHg7QHqoFg/ wPxKRpmsD8A5PqluOyBPRUjHy22jmq11pFqWyz9I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726310AbgINJEa (ORCPT ); Mon, 14 Sep 2020 05:04:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:37862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbgINJDg (ORCPT ); Mon, 14 Sep 2020 05:03:36 -0400 Received: from mail.kernel.org (ip5f5ad5d8.dynamic.kabel-deutschland.de [95.90.213.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E80422220A; Mon, 14 Sep 2020 09:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600074212; bh=0PU/DNFt4f6Rzyiw/4kbN0uHCEIwJDLqO3MyGp9lp6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dsaw98HxiG8Qz5Lh2DNSZQeuBZ7/9KGo0zRzern2oUESiiSCYqNDi3uNa++Qtin/v MMk+SJVc5jrneSI1426ptYQ6Zze7wurzbV5Io+BmLTWeQMubSai2s1UUpLChzEp0n4 1n2GJ6BCz/jeaCpLnUSUtzDlu3lkNf9OAy/U1WgE= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kHkOW-002dza-2X; Mon, 14 Sep 2020 11:03:28 +0200 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , "Daniel W. S. Almeida" , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH RFC 05/11] media: vidtv: add an initial channel frequency Date: Mon, 14 Sep 2020 11:03:20 +0200 Message-Id: <9893bb388395da2559bfd212e2d354fe83d3eccb.1600073975.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Use 474 MHz frequency for DVB-T/DVB-C, as this is the first channel that it is valid on most places for DVB-T. In the case of DVB-S, let's add Astra 19.2E initial frequency at the scan files as the default, e. g. 12.5515 GHz. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_bridge.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_bridge.c b/drivers/media/test-drivers/vidtv/vidtv_bridge.c index 270c183b1d67..cb32f82f88f9 100644 --- a/drivers/media/test-drivers/vidtv/vidtv_bridge.c +++ b/drivers/media/test-drivers/vidtv/vidtv_bridge.c @@ -47,17 +47,25 @@ static unsigned int mock_tune_delay_msec; module_param(mock_tune_delay_msec, uint, 0); MODULE_PARM_DESC(mock_tune_delay_msec, "Simulate a tune delay"); -static unsigned int vidtv_valid_dvb_t_freqs[NUM_VALID_TUNER_FREQS]; +static unsigned int vidtv_valid_dvb_t_freqs[NUM_VALID_TUNER_FREQS] = { + 474000000 +}; + module_param_array(vidtv_valid_dvb_t_freqs, uint, NULL, 0); MODULE_PARM_DESC(vidtv_valid_dvb_t_freqs, "Valid DVB-T frequencies to simulate"); -static unsigned int vidtv_valid_dvb_c_freqs[NUM_VALID_TUNER_FREQS]; +static unsigned int vidtv_valid_dvb_c_freqs[NUM_VALID_TUNER_FREQS] = { + 474000000 +}; + module_param_array(vidtv_valid_dvb_c_freqs, uint, NULL, 0); MODULE_PARM_DESC(vidtv_valid_dvb_c_freqs, "Valid DVB-C frequencies to simulate"); -static unsigned int vidtv_valid_dvb_s_freqs[NUM_VALID_TUNER_FREQS]; +static unsigned int vidtv_valid_dvb_s_freqs[NUM_VALID_TUNER_FREQS] = { + 12551500 +}; module_param_array(vidtv_valid_dvb_s_freqs, uint, NULL, 0); MODULE_PARM_DESC(vidtv_valid_dvb_s_freqs, "Valid DVB-C frequencies to simulate");