Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3536329pxf; Mon, 15 Mar 2021 11:45:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2XeCWP44ZOpDod9CyccbHP/RA1pX5ed9WlkSAKGoUwda/j3tS7PdaGOp/M5gEC2Yzn4TG X-Received: by 2002:a05:6402:22bb:: with SMTP id cx27mr31239048edb.148.1615833949334; Mon, 15 Mar 2021 11:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833949; cv=none; d=google.com; s=arc-20160816; b=nSK9dl9v5xBJf4KqNI4sb+LKmRirXTIwr9pfoAlNGk2hPh4u5hTEiK9C8gKpi5c9x1 eOfLT+rJr9F180aKo5qB9ZyVVrBMFj0B0HdUsPP2zqLapDQokXcu27fKhjNqrVsOVb4y eIhlSq4cibINf94van1sziq4UMNVe0otDdC0UlH7k2AwuVW6KzOlO/mfgJOX7v7EGqxk ejs3upQP+CumL8GDbivlOOgxAFfP9wZIfwR5ROgOmoEj6Unce6ydwQ25S09xnszLlRWv L6AfPYg8QBR5kaCWPhw8xdB3tqIvszivMWZtY3anyeBAhKJJbluodkPmOsuCjkvalhOy 7BUQ== 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=n2McJ4orme7TVFFGukUYbf60VW2rOQ2iPSbtsUX6k5Q=; b=lWBPQihLQwLYmmAQrQhiJKM8/Yv26zt5dm6I3jTybTe+O512wuk+pjF9IQQE9ZeqLq 3E/+T/YRTOvAhSEl5T0EvxYOvG+6DxxiG4rWTaG87iDR1sa+3D1HVfjz21Ty7laSv6/F 5fGOOkfut/zHkJrZo/s/sBhJ5TpbgYvC9iAR+0A2wPuuaVGSzPqTtgczi42wnLA0x6D8 jSOEqvsU9Mi+d7cEgl523ia1eIROF2yPuwMTO1Ub0NtTI3CO6PBt2/kNXbwybysWmiEK KhZDe5VkQ0umQUOcKPKSQAHkcnfJn/CKElhYStkDfEU8X9TfwqIGSM5HnVAvyHZ92O7g La1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="AO2/KGij"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si11671241ejb.259.2021.03.15.11.45.26; Mon, 15 Mar 2021 11:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="AO2/KGij"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236690AbhCORgx (ORCPT + 99 others); Mon, 15 Mar 2021 13:36:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236289AbhCORgS (ORCPT ); Mon, 15 Mar 2021 13:36:18 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1B33C06175F for ; Mon, 15 Mar 2021 10:36:17 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id si25so11968913ejb.1 for ; Mon, 15 Mar 2021 10:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n2McJ4orme7TVFFGukUYbf60VW2rOQ2iPSbtsUX6k5Q=; b=AO2/KGij2aPAHkO/yr2Ehk3P6lxoenzqfDpfMTQ7oxOggTyhqYUS/zEpqx3G/lmMpj LFb+EUVL9D5P/YEHZHpikmK9yaXLKVjlQ9jwuhbHpljEfl+VRAUnbenkYOiwMk09U/yR sa9Trqqlr+RyD67n/tKoONGNeA5dja3YXOwv0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n2McJ4orme7TVFFGukUYbf60VW2rOQ2iPSbtsUX6k5Q=; b=eIqxO8AXsTDPsQ0OWmOkwX1ZrrsXoeZtm3aFKj4+id8m7nao6F2BRJkRoq/HdDO2Lt eb+P4EHSSGFEGNfh5zJNRHPuEDs6z093CetpKYxyDzWD8dnFubQgOFdxeV2t5TM1PLJr ZPJycAnYypx4Jd/GwaMMTQ9HB7spq9JOZ8jpB8OCxbKsoejv7dD6rgn1Ff5F2mSg3XjF 7WaGwUX3yeg+/7HD5F1RKeXKZfzfk2f6Db+7vHvVIbDZCOiZVSwHqWBNLVf7aG3liIig sBuaipYm7g46cfyuNy2FMz3msxwrKcjS69DV3g1NgIHKzGXUPnB3Y7Ux00OA3ay5M9vb o0uw== X-Gm-Message-State: AOAM5337R6ZqIKYlpEoIBTHlE7OgXHfQc3PKQhEIUMhYE8z3BJtVLySh Cmvwi8B3qJRjVZUPJsi8teQ35Q== X-Received: by 2002:a17:907:98f5:: with SMTP id ke21mr25016488ejc.552.1615829776633; Mon, 15 Mar 2021 10:36:16 -0700 (PDT) Received: from alco.lan ([80.71.134.83]) by smtp.gmail.com with ESMTPSA id a3sm8109239ejv.40.2021.03.15.10.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 10:36:16 -0700 (PDT) From: Ricardo Ribalda To: Laurent Pinchart , Mauro Carvalho Chehab , Hans Verkuil , Sergey Senozhatsky , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Subject: [PATCH v4 09/11] media: uvcvideo: Increase the size of UVC_METADATA_BUF_SIZE Date: Mon, 15 Mar 2021 18:36:07 +0100 Message-Id: <20210315173609.1547857-10-ribalda@chromium.org> X-Mailer: git-send-email 2.31.0.rc2.261.g7f71774620-goog In-Reply-To: <20210315173609.1547857-1-ribalda@chromium.org> References: <20210315173609.1547857-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hans has discovered that in his test device, for the H264 format bytesused goes up to about 570, for YUYV it will actually go up to a bit over 5000 bytes, and for MJPG up to about 2706 bytes. Credit-to: Hans Verkuil Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvcvideo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h index 1f17e4253673..91fc00ff311b 100644 --- a/drivers/media/usb/uvc/uvcvideo.h +++ b/drivers/media/usb/uvc/uvcvideo.h @@ -528,7 +528,7 @@ struct uvc_stats_stream { unsigned int max_sof; /* Maximum STC.SOF value */ }; -#define UVC_METADATA_BUF_SIZE 1024 +#define UVC_METADATA_BUF_SIZE 10240 /** * struct uvc_copy_op: Context structure to schedule asynchronous memcpy -- 2.31.0.rc2.261.g7f71774620-goog