From patchwork Thu Jan 6 22:52:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Schlabbach X-Patchwork-Id: 530761 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 BB3DDC433EF for ; Thu, 6 Jan 2022 22:52:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245283AbiAFWwy (ORCPT ); Thu, 6 Jan 2022 17:52:54 -0500 Received: from mout.gmx.net ([212.227.17.22]:43707 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245250AbiAFWwx (ORCPT ); Thu, 6 Jan 2022 17:52:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1641509569; bh=OFJIwTYCdIIXZtQINVCM1irJhNraFWh3Qx/pLhuoMlo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=NsXsA0/BuAfX5G5E11pqWJkr7GLwNOWn2y7CSiVZyg/2YFxIZ5GQFijAZjvoRjWs8 9EYt7fJrd9dLNabRbztRvHLseoHE363URzIfK4A19qaAYHV2hJ/5qFEVNnUH9xVTm1 98lHG4X5c8B5aGRFKRXZGi8LtgI+mp+weP8kN4q0= 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:52:49 +0100 MIME-Version: 1.0 Message-ID: From: Robert Schlabbach To: linux-media@vger.kernel.org Cc: mchehab@kernel.org Subject: [PATCH 3/3] media: si2157: add support for DVB-C Annex C Date: Thu, 6 Jan 2022 23:52:49 +0100 Importance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ScicnF53p++wPS3hjf0M5WeS8tgdhdJflejC3RDehzUKBDfsdqsFVKe3SCwteJAbdzvZHRqb +bKDb0VrCF2CLZl654VvF0h2EMkumQc2BmatQ8uAP0Z8tjIZDwxFFGZ2CyO0XTqQiE9gPCjTm 5XLgNoL Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org DVB-C Annex C is mostly DVB-C Annex A with only minor differences, so simply add it to the DVB-C Annex A switch case, so that tuning attempts no longer result in -EINVAL. Signed-off-by: Robert Schlabbach --- drivers/media/tuners/si2157.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index b1e00b635dbf..47029746b89e 100644 --- a/drivers/media/tuners/si2157.c +++ b/drivers/media/tuners/si2157.c @@ -490,6 +490,7 @@ static int si2157_set_params(struct dvb_frontend *fe) delivery_system = 0x20; break; case SYS_DVBC_ANNEX_A: + case SYS_DVBC_ANNEX_C: delivery_system = 0x30; break; case SYS_ISDBT: