Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6013229ybc; Wed, 27 Nov 2019 13:23:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxWwKV6QdQ3ypuPIcfwOmlGntUmBdRme/aEsIfEtspqlf+3FHJKaO8sCvrZa/Yv3Wigu6bO X-Received: by 2002:a17:906:60c6:: with SMTP id f6mr3789413ejk.273.1574889813948; Wed, 27 Nov 2019 13:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574889813; cv=none; d=google.com; s=arc-20160816; b=FbCPZTdgK03Z2343oeM8YS6NwwWl1sjSIdtnSlqbFV19alklCNVra4b/yMDbIPHp3s XG7oORi+lZF2BxVqBtHUAm/ufsK5chquUKXaOfDVmIeJfcdVCzMEzd1WL8QCG1I31isA p8GjlEpKnMKFtF1y671jMKl80dZzh5YGiVvIAddhLHGzDBmdDUllzc45d4P6+Kru5/sr OHDAeeM69HOUHh8QuzGvKd5PCiocn+3d6QTuPfBzAnIreXeRcHF1Uxj1iVnhcvJjbMDC dOIz2Y15sZ4fR5NPC98rn4OTtOuvv8O4c5hGVnGSDBZhQ7cKTmQuJbxF0B+7RNICxCjX YQRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=C5hXm6XZHKl2mTg8LafMWC/2YJps9KXKjqPlhPwNgtE=; b=KMEVC0G1tQ0eFUCYkfahG5efARNtoWJSW5wDnt1VYbqs4hmhUsZM0Ngz2m1eDtsElq 7c56IYg7dQ1IB6F+/4A/Jqs+WN5Jgy2YpYt5QSuDdB6vDb/Mf6M7yrMHX11IaSD/9WNg r0VcDTjflZ870cJSJI9jW5Bg7H/NBGkoQ5eykPYqtKe1Th4ilhbj05St/fNVRKW6Hz6c 3DBB11Msk9WYcndpwjhFker8jA4HSQ9Ya7cBgY+RFWKnGpJ519om8ClOO7uOH2cHh+Bi Yj3ezu+krB29qTsCEHejWU8wyzjTMOhlOCCF21iiayz+r1Y7KrgnsRRDMzqGdih9Hw1y 8IHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JUx8Cq7E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si3637876edr.447.2019.11.27.13.23.10; Wed, 27 Nov 2019 13:23:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JUx8Cq7E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733062AbfK0VUz (ORCPT + 99 others); Wed, 27 Nov 2019 16:20:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:34548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728381AbfK0VIK (ORCPT ); Wed, 27 Nov 2019 16:08:10 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FEDE216F4; Wed, 27 Nov 2019 21:08:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888889; bh=bHDf1tUIQibMKmL2A/8ywKjSfjEElAGZ1UT0EPzYFHE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JUx8Cq7E0OJ9ioK8kqFTyHtpCGKIluS218V9df6GA1szycBmPYcLWIGAO+Y03f0/B JavTvXMqw2Vw45PnavkMAk5XhPiyJC7Cd71hA4rROBPOJpCZaIij/VoojNjzlNMQCo pVzPawVrrAuZRGjg66Uecx5mtXrBUQ4D8S2UMOtQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vandana BN , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 4.19 283/306] media: vivid: Set vid_cap_streaming and vid_out_streaming to true Date: Wed, 27 Nov 2019 21:32:13 +0100 Message-Id: <20191127203135.453138297@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vandana BN commit b4add02d2236fd5f568db141cfd8eb4290972eb3 upstream. When vbi stream is started, followed by video streaming, the vid_cap_streaming and vid_out_streaming were not being set to true, which would cause the video stream to stop when vbi stream is stopped. This patch allows to set vid_cap_streaming and vid_out_streaming to true. According to Hans Verkuil it appears that these 'if (dev->kthread_vid_cap)' checks are a left-over from the original vivid development and should never have been there. Signed-off-by: Vandana BN Cc: # for v3.18 and up Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/vivid/vivid-vid-cap.c | 3 --- drivers/media/platform/vivid/vivid-vid-out.c | 3 --- 2 files changed, 6 deletions(-) --- a/drivers/media/platform/vivid/vivid-vid-cap.c +++ b/drivers/media/platform/vivid/vivid-vid-cap.c @@ -222,9 +222,6 @@ static int vid_cap_start_streaming(struc if (vb2_is_streaming(&dev->vb_vid_out_q)) dev->can_loop_video = vivid_vid_can_loop(dev); - if (dev->kthread_vid_cap) - return 0; - dev->vid_cap_seq_count = 0; dprintk(dev, 1, "%s\n", __func__); for (i = 0; i < VIDEO_MAX_FRAME; i++) --- a/drivers/media/platform/vivid/vivid-vid-out.c +++ b/drivers/media/platform/vivid/vivid-vid-out.c @@ -146,9 +146,6 @@ static int vid_out_start_streaming(struc if (vb2_is_streaming(&dev->vb_vid_cap_q)) dev->can_loop_video = vivid_vid_can_loop(dev); - if (dev->kthread_vid_out) - return 0; - dev->vid_out_seq_count = 0; dprintk(dev, 1, "%s\n", __func__); if (dev->start_streaming_error) {