From patchwork Sat Jan 1 13:51:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor M. Liplianin" X-Patchwork-Id: 5404 Return-path: Envelope-to: mchehab@gaivota Delivery-date: Sat, 01 Jan 2011 12:02:37 -0200 Received: from mchehab by gaivota with local (Exim 4.72) (envelope-from ) id 1PZ22W-0004gb-QP for mchehab@gaivota; Sat, 01 Jan 2011 12:02:37 -0200 Received: from casper.infradead.org [85.118.1.10] by gaivota with IMAP (fetchmail-6.3.17) for (single-drop); Sat, 01 Jan 2011 12:02:36 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PZ1uT-0000VU-2Z; Sat, 01 Jan 2011 13:54:17 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826Ab1AANxd (ORCPT + 1 other); Sat, 1 Jan 2011 08:53:33 -0500 Received: from mail-ew0-f46.google.com ([209.85.215.46]:59953 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752734Ab1AANxY (ORCPT ); Sat, 1 Jan 2011 08:53:24 -0500 Received: by mail-ew0-f46.google.com with SMTP id 5so5644347ewy.19 for ; Sat, 01 Jan 2011 05:53:23 -0800 (PST) Received: by 10.14.127.206 with SMTP id d54mr5857365eei.49.1293890003128; Sat, 01 Jan 2011 05:53:23 -0800 (PST) Received: from useri.localnet ([93.125.74.3]) by mx.google.com with ESMTPS id t5sm13116064eeh.14.2011.01.01.05.53.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 Jan 2011 05:53:22 -0800 (PST) From: Abylay Ospan Date: Sat, 1 Jan 2011 15:51:46 +0200 Subject: [PATCH 17/18] Force xc5000 firmware loading for NetUP Dual DVB-T/C CI RF card To: mchehab@infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-Id: <201101011551.46309.aospan@netup.ru> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Mauro Carvalho Chehab Two xc5000 tuners connected to same i2c bus. Experiments shows that situation when one tuner is not initialized while other is tuned to channel causes TS errors. Signed-off-by: Abylay Ospan --- drivers/media/video/cx23885/cx23885-dvb.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c index 53c2b6d..e17be5a 100644 --- a/drivers/media/video/cx23885/cx23885-dvb.c +++ b/drivers/media/video/cx23885/cx23885-dvb.c @@ -1071,12 +1071,15 @@ static int dvb_register(struct cx23885_tsport *port) fe0->dvb.frontend = dvb_attach(stv0367ter_attach, &netup_stv0367_config[port->nr -1], &i2c_bus->i2c_adap); - if (fe0->dvb.frontend != NULL) + if (fe0->dvb.frontend != NULL) { if (NULL == dvb_attach(xc5000_attach, fe0->dvb.frontend, &i2c_bus->i2c_adap, &netup_xc5000_tunerconfig[port->nr - 1])) goto frontend_detach; + /* load xc5000 firmware */ + fe0->dvb.frontend->ops.tuner_ops.init(fe0->dvb.frontend); + } /* MFE frontend 2 */ fe1 = videobuf_dvb_get_frontend(&port->frontends, 2); if (fe1 == NULL)