From patchwork Thu Jan 6 22:48:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Schlabbach X-Patchwork-Id: 12705880 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 179B7C433F5 for ; Thu, 6 Jan 2022 22:48:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245208AbiAFWsP (ORCPT ); Thu, 6 Jan 2022 17:48:15 -0500 Received: from mout.gmx.net ([212.227.17.22]:35047 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245167AbiAFWsP (ORCPT ); Thu, 6 Jan 2022 17:48:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1641509290; bh=2YuChdkLlpiNoE8Q7Y7yh3Y+E/O33DNnmQ7FR8fwyyk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=gU3mXs723sCZr9GbHOyCdL9qPwowY2zP4QUVurSxR0Voj0GfIzRTRMeqJ2mKoIshW shMwRGRd0P36qcfTi8s2kuX6WG7tcb8d8h5aI/1gGPOx+KipSgnI/D14ajej5phW5l Hr3qaEKL899VsKhJczrIQnSxvs/nvrqLY+44vK/M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [91.65.60.26] ([91.65.60.26]) by web-mail.gmx.net (3c-app-gmx-bap68.server.lan [172.19.172.68]) (via HTTP); Thu, 6 Jan 2022 23:48:10 +0100 MIME-Version: 1.0 Message-ID: From: Robert Schlabbach To: linux-media@vger.kernel.org Cc: mchehab@kernel.org Subject: [PATCH 0/3] media: si2157: fix bandwidth set/get, add DVB-C Annex C Date: Thu, 6 Jan 2022 23:48:10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mg Ol8b2A39cZto4W/HypYfOBWmC2Ydld2W/nSXBAGedQwbnAm2ZtQ4DhxLvE6pbuZz/YgTwy29U 8R6EreDRw2sGxkfF234lKcyqHUiIsSDTeyv6P0xKMen+4X01BzUPmkiT0+HBtiNKLD/YM6hL0 MUyQjXc Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The si2157 driver was recently broken so that trying to tune to channels with a bandwidth of less than 7MHz always resulted in an error. Getting the bandwidth after digital tuning has always returned erroneous values. Furthermore, tune requests for DVB-C Annex C were rejected with -EINVAL, although it should work with the same settings as for DVB-C Annex A. The following three patches address all these issues. With all three patches applied, the driver has been verified with a Si2157-A30 to successfully: - accept tune requests for DVB-C Annex A/B/C, DVB-T/T2 and ISDB-T - receive actual 8MHz DVB-C Annex A, DVB-T and DVB-T2 signals I do not have any DVB-C Annex B/C nor ISDB-T signals available. Tested-by: Robert Schlabbach Signed-off-by: Robert Schlabbach