Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D44C7C4332F for ; Wed, 29 Dec 2021 06:52:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239035AbhL2Gw1 (ORCPT ); Wed, 29 Dec 2021 01:52:27 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:43488 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230472AbhL2Gw0 (ORCPT ); Wed, 29 Dec 2021 01:52:26 -0500 X-UUID: e5f62c06c8db414c8ac8f6e7f2d567c7-20211229 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=q3YWfjU6Q4Biwiymx+/oPiEp77CZ3uaLyS+aHaNVoYo=; b=fDx6y/eVkgkDqbaE+ooL83pTDV2saRr6p6tIjassk1z+bwa8dAbeN7pjary7RZPv5SnJpvdjQZbpm3FdDCC0TqgNK6iD47ZKLC+Ecsq0sdFFV/6HA8gPs7exKnTOjzOjuLnryji5h00DtH3CnvPHPI6d8JskO8kPzMb4MdOZZEk=; X-UUID: e5f62c06c8db414c8ac8f6e7f2d567c7-20211229 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1332812507; Wed, 29 Dec 2021 14:52:24 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Wed, 29 Dec 2021 14:52:23 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 29 Dec 2021 14:52:21 +0800 Message-ID: <8102ba18b3fdcc19e6b9f53c7a635ffc084c825b.camel@mediatek.com> Subject: Re: [PATCH v2, 03/12] media: mtk-vcodec: get capture queue buffer size from scp From: "yunfei.dong@mediatek.com" To: Tzung-Bi Shih CC: Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , "Tiffany Lin" , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , Hsin-Yi Wang , "Fritz Koenig" , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , AngeloGioacchino Del Regno , "Steve Cho" , , , , , , , Date: Wed, 29 Dec 2021 14:52:21 +0800 In-Reply-To: References: <20211228094146.20505-1-yunfei.dong@mediatek.com> <20211228094146.20505-4-yunfei.dong@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgVHp1bmctQmksDQoNClRoYW5rcyBmb3IgeW91ciBzdWdnZXN0aW9uLg0KT24gV2VkLCAyMDIx LTEyLTI5IGF0IDEzOjM2ICswODAwLCBUenVuZy1CaSBTaGloIHdyb3RlOg0KPiBPbiBUdWUsIERl YyAyOCwgMjAyMSBhdCAwNTo0MTozN1BNICswODAwLCBZdW5mZWkgRG9uZyB3cm90ZToNCj4gPiBG cm9tOiBZdW5mZWkgRG9uZyA8eXVuZmVpLmRvbmdAbWVkaWF0ZWsuY29ycC1wYXJ0bmVyLmdvb2ds ZS5jb20+DQo+IA0KPiBbLi4uXQ0KPiA+IGRpZmYgLS1naXQgYS9kcml2ZXJzL21lZGlhL3BsY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