Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3224128rdh; Mon, 27 Nov 2023 08:59:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFa3ygF6yH7KB7Is1m7L03iKUt1HjTmibPIIRc81YMGESqxzNad05Xx+QO1dezf1LmF0Z1I X-Received: by 2002:a05:6a20:5497:b0:18c:3065:8048 with SMTP id i23-20020a056a20549700b0018c30658048mr9323964pzk.42.1701104370475; Mon, 27 Nov 2023 08:59:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104370; cv=none; d=google.com; s=arc-20160816; b=HS7M+3jnBPcxx1y/6ctuOQ7Q10jlBpZadQ+fEVFGp5hTRR9RoSi2wdeHaUQQvCZyQh nZZv32gl95IbOVnIvAYBlbzfe40SPQWFhQ6UHKhgGkWJHX4Hqtz1Ivg3GtZmYaY5q1va HqzrIw6H6mBKVJu8W07zph1e64PXuKWn7Rh4sA+0xQ6BJQd3m6Uw3eYrWCYcmRZvuNlO cAZ7fOyHcsQU3mxil8VbqYZx4s7f6EPdGwc0om59a29Gi/5rPZqEBMBneRQaN/5gA49X VVurDAJ2wlx+op+2M1fMlXr597z3xU8Qci0p9n1tggnKd+ygX86qJ8DD4Rc2IZUWQwWI hJyA== 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=l5GsMUqY2Sx2ukznfFgGmU0xAhXStzQ8S0jXuq+onlE=; fh=nikTID0PJ6NwkGNufN11Ag6f/xC6mcRAltiCDIW3jKo=; b=PnU5XzLlJVNlfwdJBVws8aPxXAeEV8TWVRzQBxKS7WguhK+OI/jHjUPmsDocHA4HFY P3yVNa9iRMPw68OZwxx+Dbh1XpRi8fgDA+wch3+H7a1gfpaE3kll9lg7gKeY/avxaYAE iMu+gRr1yCXPnOPt7FKBaXEgX2eObRyvaP2GlcTLqAITaSbkHdyWWi3ULe9Yyhrf0D+0 Ao7sl+1vvs7GrSaUYXtGlF8fwipjc0ttoR5jmkpPeVMQXCe6e57f3u/7puVeLZKpO7eD jxrF6kghXcMlN7BfXJTOh5+quJ6kKRksEQRXWxvXU9vqVgwB9VgkWu1/L6ofoQ7/qkjA vhzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Q/wvnA4g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q16-20020a056a00151000b006cc04fedeadsi5857566pfu.62.2023.11.27.08.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:59:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Q/wvnA4g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 0F8E480968B2; Mon, 27 Nov 2023 08:59:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234770AbjK0Q6O (ORCPT + 99 others); Mon, 27 Nov 2023 11:58:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234747AbjK0Q43 (ORCPT ); Mon, 27 Nov 2023 11:56:29 -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 C0C7E26B1; Mon, 27 Nov 2023 08:55:40 -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 C478E6607405; Mon, 27 Nov 2023 16:55:38 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104139; bh=O6QoqjhfTjZ8fxwdlWAH4p8qUAwUTkwY0GJ5W4xynQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q/wvnA4g8SOzv8+U7u+BimIdh8r0Q9ehMJ/zalV3OCNZ0eaUROvDxJLFCFy/iDvXx Aufoa9+saUnjG8XLitslPMAYIso9fXHIFqY9qXuEp6L3AU6nXoc8V8VVSqW+qGiJ7f AVuaudIEtx/IOqstj9+2TRxrs0edqDy8pC3Ie1Ex6AFoL0gpwGAVhypbUGGLMmpsXA f918axMhhez2P9p5jagX3maoc5/ojg/0wWafSFQBuG0YTAguWtP8LJ/iAagHnFmFTU KWVFZEVzJmWgJPa0ulOFGYGRz0Bw5PpWea7HVF5gobwiSSfP0p/4najE11F6WnBoN/ 1vRO9rY11s7WA== 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 Subject: [PATCH 43/55] media: pci: bt8xx: Use min_dma_buffers_needed field Date: Mon, 27 Nov 2023 17:54:42 +0100 Message-Id: <20231127165454.166373-44-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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:59:25 -0800 (PST) bt8xx 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 --- drivers/media/pci/bt8xx/bttv-driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index 09a193bb87df..8a3fb30e73f6 100644 --- a/drivers/media/pci/bt8xx/bttv-driver.c +++ b/drivers/media/pci/bt8xx/bttv-driver.c @@ -3094,7 +3094,7 @@ static int vdev_init(struct bttv *btv, struct video_device *vfd, q->gfp_flags = __GFP_DMA32; q->buf_struct_size = sizeof(struct bttv_buffer); q->lock = &btv->lock; - q->min_buffers_needed = 2; + q->min_dma_buffers_needed = 2; q->dev = &btv->c.pci->dev; err = vb2_queue_init(q); if (err) -- 2.39.2