Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3223764rdh; Mon, 27 Nov 2023 08:58:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiJQq6FOsA6bqcj2gDerrK9dXLHVFH7O3eMhXHhq4savGuO99Txm3A577Z31NvwvRMNV6p X-Received: by 2002:a17:90a:1944:b0:27d:c95:b0ad with SMTP id 4-20020a17090a194400b0027d0c95b0admr11201728pjh.21.1701104336332; Mon, 27 Nov 2023 08:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104336; cv=none; d=google.com; s=arc-20160816; b=OIYZPR4fsQNzxv+DEibhEoQvoxHmLOHN6oB8vP6jxHnk8qiHNTEJuC14dKeGG7+w3Q VvxW6Vpes5aY0zBgu6Yc5MGT9wRzlUOjkeDwrSs2QTd8uyLaN86p8cw34CuEtD27e+KN 5ra2KNBvg0kZABdoM9MlM5esUxfmBuwYxuWfPwNudBUQ9G6BdpEvlNlPXe3ZB4hMZ8l3 bSw7+5eAEur61pYqpK4Xvl7LDImx4Upp2+8UQclbv51HLTuHCeI/Ba8D/2UJYUsnmq+9 Q4dNTI6/Vrh1bundqw4IXaQcHXBRjxO3c60B9tPlUPJJ+V98PbSmDS0Z4AVNKbM7ZZ6a pqZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d4unF0MC8cso/yBkO/55mCSxDdqFfW60qVYUZUvDOfk=; fh=NWutLdjXjYaFHjQQ3le6ZbVSIPBVby/SDpaxisLmflA=; b=B2SQuUT/mMVBdxYMYsRS5gqLjs1uWx9tOQFZYBUTXv1yaHIE1XtaJOrDNOZ4L1yUZU gyBkgcniLdtOxJxADKvULUCql2y0UsSHqOM0NdTouip9+AiC6ZRJTAcFZeSsP7jlN+xX gcWl15b72tGoc5wzwr/K6AC+F+D7oiPEBaw7YYHVTpveQNIn6oR0uJylmUYQBaCFksc6 C291bqI4ws82U1BkriQ//aIwYFTEsfNN8ZtpWFrec5mc6ecotZgo8dBjWpaI/c/6/qfz s3A57Ewyvp42l+tMABQ49PKXLRTVvTrpWxDBvar8st6GH2hA/HdKZiwKBcsKh9dZsYH8 AqqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Ci+CoOpm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id pl14-20020a17090b268e00b0028014e41ff7si10882030pjb.48.2023.11.27.08.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:58:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Ci+CoOpm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8319B805B2EC; Mon, 27 Nov 2023 08:58:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234578AbjK0Q6c (ORCPT + 99 others); Mon, 27 Nov 2023 11:58:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234399AbjK0Q4c (ORCPT ); Mon, 27 Nov 2023 11:56:32 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5950C2702; Mon, 27 Nov 2023 08:55:41 -0800 (PST) Received: from benjamin-XPS-13-9310.. (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7586966073F5; Mon, 27 Nov 2023 16:55:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104140; bh=h2KeYZ0zs78nj7d0vzmwSoQJ8cIKIqcfLHmNlVHLLY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ci+CoOpm89HWTnsAVdvkdX99vxMpyqKLn94+lpKM7gMzxF+SPJS3WqYKv/mZU2TVq O9W4L0gGC4BRpAXaTknEUGyNPNEeI43f1YP8AppYo85mEwBLKtk2mwnUKL+9zifDo/ SjANBlpRlZonOp6q1IvOws+sP+bv10Bq0kT353Sr61+DuCmfyTwleJuj6BYg1Kz/qE rIBIuASI0gi6/dOyaesXFMG5+U7XiucqF1LuAAQ7eSgvtlTxiuPd/wFaeVAb0mjfml n3RoOQDHBebGIYvnxa/q2uFwhwPMikEsdl9q++bhIt0fkQXvt585Qxz6aGckbZA8h1 McmAdpU0W5BVw== From: Benjamin Gaignard To: hverkuil@xs4all.nl, mchehab@kernel.org, tfiga@chromium.org, m.szyprowski@samsung.com, matt.ranostay@konsulko.com Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard , Andy Walls Subject: [PATCH 44/55] media: pci: cx18: Use min_dma_buffers_needed field Date: Mon, 27 Nov 2023 17:54:43 +0100 Message-Id: <20231127165454.166373-45-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127165454.166373-1-benjamin.gaignard@collabora.com> References: <20231127165454.166373-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:58:50 -0800 (PST) cx18 driver use a dma engine and needs a minimum number of buffers to be present before start streaming. That is 'min_dma_buffers_needed' purpose so use it instead of 'min_buffers_needed' field. Signed-off-by: Benjamin Gaignard CC: Andy Walls --- drivers/media/pci/cx18/cx18-streams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx18/cx18-streams.c b/drivers/media/pci/cx18/cx18-streams.c index cfbc4a907802..1b66a70c6d6e 100644 --- a/drivers/media/pci/cx18/cx18-streams.c +++ b/drivers/media/pci/cx18/cx18-streams.c @@ -287,7 +287,7 @@ static int cx18_stream_init(struct cx18 *cx, int type) s->vidq.ops = &cx18_vb2_qops; s->vidq.mem_ops = &vb2_vmalloc_memops; s->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - s->vidq.min_buffers_needed = 2; + s->vidq.min_dma_buffers_needed = 2; s->vidq.gfp_flags = GFP_DMA32; s->vidq.dev = &cx->pci_dev->dev; s->vidq.lock = &cx->serialize_lock; -- 2.39.2