From patchwork Sat Feb 20 08:54:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 8365961 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 172D1C0553 for ; Sat, 20 Feb 2016 08:55:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3BE332051C for ; Sat, 20 Feb 2016 08:55:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 27A572051A for ; Sat, 20 Feb 2016 08:55:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1949950AbcBTIyr (ORCPT ); Sat, 20 Feb 2016 03:54:47 -0500 Received: from lists.s-osg.org ([54.187.51.154]:33409 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1948978AbcBTIyq (ORCPT ); Sat, 20 Feb 2016 03:54:46 -0500 Received: from recife.lan (177.43.16.117.dynamic.adsl.gvt.net.br [177.43.16.117]) by lists.s-osg.org (Postfix) with ESMTPSA id C07A5462C1; Sat, 20 Feb 2016 00:54:44 -0800 (PST) Date: Sat, 20 Feb 2016 06:54:40 -0200 From: Mauro Carvalho Chehab To: grigore calugar Cc: linux-media Subject: Re: SAA7134 card stop working Message-ID: <20160220065440.79b76d92@recife.lan> In-Reply-To: References: Organization: Samsung X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Em Tue, 16 Feb 2016 02:57:55 +0200 grigore calugar escreveu: > After this series of patches > http://www.spinics.net/lists/linux-media/msg97115.html > my tv card V-Stream Studio TV Terminator has no signal in tvtime until > exchange audio standard from tvtime menu. > > tvtime start with blue screen "no signal" > When exchange audio standard from PAL-BG to PAL-DK , PAL-I and back to > PAL-BG, the image appears on screen. > It seems that the tuner is uninitialized until I change audio norm. None of the changes should have changed the tuner initialization. There are changes there, however, that could have changed the initialization for different inputs. What input are you using? Could you please send the output of the command: $ lsmod to me? Also, could you please test the enclosed patch? diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134/saa7134-video.c index ffa39543eb65..f451e38e5759 100644 --- a/drivers/media/pci/saa7134/saa7134-video.c +++ b/drivers/media/pci/saa7134/saa7134-video.c @@ -479,7 +479,10 @@ void saa7134_set_tvnorm_hw(struct saa7134_dev *dev) { saa7134_set_decoder(dev); - saa_call_all(dev, video, s_std, dev->tvnorm->id); + if (card_in(dev, n).type == SAA7134_INPUT_TV || + card_in(dev, n).type == SAA7134_INPUT_TV_MONO) + saa_call_all(dev, video, s_std, dev->tvnorm->id); + /* Set the correct norm for the saa6752hs. This function does nothing if there is no saa6752hs. */ saa_call_empress(dev, video, s_std, dev->tvnorm->id);