From patchwork Wed Jan 6 20:27:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 7970631 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 0434CBEEE5 for ; Wed, 6 Jan 2016 20:28:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DB502015E for ; Wed, 6 Jan 2016 20:28:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5DF0020120 for ; Wed, 6 Jan 2016 20:28:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120AbcAFU2G (ORCPT ); Wed, 6 Jan 2016 15:28:06 -0500 Received: from resqmta-po-06v.sys.comcast.net ([96.114.154.165]:60643 "EHLO resqmta-po-06v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752245AbcAFU1i (ORCPT ); Wed, 6 Jan 2016 15:27:38 -0500 Received: from resomta-po-06v.sys.comcast.net ([96.114.154.230]) by resqmta-po-06v.sys.comcast.net with comcast id 2kTY1s0034yXVJQ01kTcdx; Wed, 06 Jan 2016 20:27:36 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-06v.sys.comcast.net with comcast id 2kTU1s0081LXgTt01kTbK7; Wed, 06 Jan 2016 20:27:35 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 771DD9F42D; Wed, 6 Jan 2016 13:27:34 -0700 (MST) From: Shuah Khan To: mchehab@osg.samsung.com, tiwai@suse.com, clemens@ladisch.de, hans.verkuil@cisco.com, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com, javier@osg.samsung.com Cc: Shuah Khan , pawel@osciak.com, m.szyprowski@samsung.com, kyungmin.park@samsung.com, perex@perex.cz, arnd@arndb.de, dan.carpenter@oracle.com, tvboxspy@gmail.com, crope@iki.fi, ruchandani.tina@gmail.com, corbet@lwn.net, chehabrafael@gmail.com, k.kozlowski@samsung.com, stefanr@s5r6.in-berlin.de, inki.dae@samsung.com, jh1009.sung@samsung.com, elfring@users.sourceforge.net, prabhakar.csengg@gmail.com, sw0312.kim@samsung.com, p.zabel@pengutronix.de, ricardo.ribalda@gmail.com, labbott@fedoraproject.org, pierre-louis.bossart@linux.intel.com, ricard.wanderlof@axis.com, julian@jusst.de, takamichiho@gmail.com, dominic.sacre@gmx.de, misterpib@gmail.com, daniel@zonque.org, gtmkramer@xs4all.nl, normalperson@yhbt.net, joe@oampo.co.uk, linuxbugs@vittgam.net, johan@oljud.se, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-api@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 22/31] media: dvb-core create tuner to demod pad link in disabled state Date: Wed, 6 Jan 2016 13:27:11 -0700 Message-Id: <753bb19d9d474ab419ad7ee37f7d30a1db6a8e35.1452105878.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1452112056; bh=idRpiaH/aiHusQmcpOJUMKnMTIPuCZ3KYR1m+w1XJ3Q=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=NVYoni94cjrj5Vf3fvaFAYCVk2kjAZiJjyQQDmsc6lA2PsGtMjTAsgEiWbMzzacZM VkJ6qaDw9Vm7RSkSz0Q2WJrbOZRHsk2ZkHZEUynIuGp8q8GW/xh7K1H9lh+Q1AfjmG El4MoTeV76yvi/Wqdy4F0rVPw/XoU3iYulGG256KeL/pbxGYe2+UsRmsqyqI17k5um h2H1crmYGaqcQ1BLCm55EDbPnNEJLdDzTzLc2lpmmVfV/R2FPBiwqk6lQOuw2dSBgn f1ElndJ8sPX3B2HSbaVhc7b+mJ3k9S2ptPJoJUv/+Aho0HTSFGzbS236+XRuf78cSQ yooETBQrT75xg== 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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 Create tuner to demod pad link in disabled state to help avoid disable step when tuner resource is requested by video or audio. Signed-off-by: Shuah Khan --- drivers/media/dvb-core/dvbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index b56e008..1d10fa6 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/drivers/media/dvb-core/dvbdev.c @@ -593,8 +593,9 @@ int dvb_create_media_graph(struct dvb_adapter *adap) } if (tuner && demod) { + /* create tuner to demod link deactivated */ ret = media_create_pad_link(tuner, TUNER_PAD_IF_OUTPUT, - demod, 0, MEDIA_LNK_FL_ENABLED); + demod, 0, 0); if (ret) return ret; }