From patchwork Wed Jul 17 18:28:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Koch X-Patchwork-Id: 2828952 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 72291C0AB2 for ; Wed, 17 Jul 2013 18:28:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8F337202CA for ; Wed, 17 Jul 2013 18:28:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 11DEE202BC for ; Wed, 17 Jul 2013 18:28:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932065Ab3GQS2V (ORCPT ); Wed, 17 Jul 2013 14:28:21 -0400 Received: from mo-p00-ob.rzone.de ([81.169.146.162]:37542 "EHLO mo-p00-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754387Ab3GQS2U (ORCPT ); Wed, 17 Jul 2013 14:28:20 -0400 X-RZG-AUTH: :JmMMdE6mfuytNHJKQY544OOMs8VeiIua9Jm4YqehrBzfF0hfOnyRNxGkH9ixBJQOQwdc/s0= X-RZG-CLASS-ID: mo00 Received: from localhost (pD9E83CA6.dip0.t-ipconnect.de [217.232.60.166]) by smtp.strato.de (joses mo22) (RZmta 31.29 DYNA|AUTH) with (AES128-SHA encrypted) ESMTPA id R014adp6HIRLV7 ; Wed, 17 Jul 2013 20:28:16 +0200 (CEST) Date: Wed, 17 Jul 2013 20:28:16 +0200 From: Johannes Koch To: linux-media@vger.kernel.org, Konstantin Dimitrov Subject: [PATCH] cx23885: Fix TeVii S471 regression since introduction of ts2020 Message-ID: <20130717182815.GA22526@Loki.fritz.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Patch to make TeVii S471 cards use the ts2020 tuner, since ds3000 driver no longer contains tuning code. Signed-off-by: Johannes Koch --- drivers/media/pci/cx23885/cx23885-dvb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c index 9c5ed10..bb291c6 100644 --- a/drivers/media/pci/cx23885/cx23885-dvb.c +++ b/drivers/media/pci/cx23885/cx23885-dvb.c @@ -1249,6 +1249,10 @@ static int dvb_register(struct cx23885_tsport *port) fe0->dvb.frontend = dvb_attach(ds3000_attach, &tevii_ds3000_config, &i2c_bus->i2c_adap); + if (fe0->dvb.frontend != NULL) { + dvb_attach(ts2020_attach, fe0->dvb.frontend, + &tevii_ts2020_config, &i2c_bus->i2c_adap); + } break; case CX23885_BOARD_PROF_8000: i2c_bus = &dev->i2c_bus[0];