Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp7149pxa; Mon, 3 Aug 2020 20:46:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUfd1Tth/xwH5wzS+EjdwpZ1ZLkFMGo3oKYxMJhXLxVIvzY4FOtCr2qGlokzvBm1t4jQWt X-Received: by 2002:a05:6402:cb3:: with SMTP id cn19mr19407847edb.368.1596512776936; Mon, 03 Aug 2020 20:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596512776; cv=none; d=google.com; s=arc-20160816; b=QwVBJGcIkvrpSxSdBQ7ZkbcciSBXTfct3V96FD3y+3zOv90WKrA33CiS1ksKvk9zll 5eweqt4BzeAcPYZFCjktSH6CG3QiftlPRJUOb9l5LXPdpKB0Eg3aBDYa+1QKQWcIKx2e PIF5YJ61loIDIOm39X89pcbnVKJo5SQE1mEnzWge4TI65E6gtRNDVsS9nV9p1Bkloidm 8XXuVnqkwjPOSkBtbvA+vDCkPDBZcIuPoNz+fzEqeMACQNp1rvG8KNWbcy6W+1GhDks6 h66FK91GGTi0oRY1551g+cbOg7b6TjJwQCPz8ZT7t6OzGH/wNC1+AbB41jh2gYLi0cH/ 1dZg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6E8DiyzZA11dvXTPp0lczGdv2dbKntgs7vbRnr2/Bzs=; b=ba3vcqI/swUaZhTDfZPirOW30uFmU3b0firoACnlcyIH2esYKbDuPXGgVOg+GH1BB1 trhCvAF8rPgR1JI94fJUA7Se1zx9N0LRKjz9g9FE53FixmSSqkSOi9z/WDOihtbRYylb KaEsmAfr6G2a7kls5EDDX0rCLqaFW8b9esOkwONu1zzCqgaTMfaAXJzyWynuKy5pvsvR iT8BNYUyj6PCCy788k9xzwDijpLGN1RXziASJJ5GQzJdCuPXt4dVPLhZSXIMuxYfbe4S dakgZJpocPPFSG0tXIcS4bLMerMmMkFZKP+5P6aFft/uImNId+3Zp15KXELxUjhuEU+i jdpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TMnL9TfP; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d16si11890791eds.521.2020.08.03.20.45.54; Mon, 03 Aug 2020 20:46:16 -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=@mediatek.com header.s=dk header.b=TMnL9TfP; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730605AbgHDDnC (ORCPT + 99 others); Mon, 3 Aug 2020 23:43:02 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:46105 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730424AbgHDDmK (ORCPT ); Mon, 3 Aug 2020 23:42:10 -0400 X-UUID: acf6a34cb4ec4a358994cbf651f1874f-20200804 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=6E8DiyzZA11dvXTPp0lczGdv2dbKntgs7vbRnr2/Bzs=; b=TMnL9TfPF3MM2Ew2sJmrQko8ohGTiUr3cV/JQUhRxBROVyB889CcgWP7Bq8MFmlACWiYa8EJVZK8Bz7exUEz+P+I1JLk2Mp+taJQpbmIFBnfd4GMpJJdXehmEylR2xt6c9vMcO3TOtJY0xEFJhG7+DL5RvgiYfntZVUz9etubbs=; X-UUID: acf6a34cb4ec4a358994cbf651f1874f-20200804 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1409302344; Tue, 04 Aug 2020 11:42:08 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 4 Aug 2020 11:42:06 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 4 Aug 2020 11:42:05 +0800 From: Xia Jiang To: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Rick Chang CC: , , , , , Marek Szyprowski , Tomasz Figa , , , , , , Xia Jiang Subject: [PATCH v11 21/28] media: platform: Refactor mtk_jpeg_set_default_params() Date: Tue, 4 Aug 2020 11:40:55 +0800 Message-ID: <20200804034102.22983-22-xia.jiang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200804034102.22983-1-xia.jiang@mediatek.com> References: <20200804034102.22983-1-xia.jiang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Q2FsbCBtdGtfanBlZ190cnlfZm10X21wbGFuZSgpIHRvIHJlcGxhY2UgdGhlIG9yaWdpbmFsIGNv bXB1dGF0aW9uIG9mDQpzaXplaW1hZ2UgYW5kIGJ5dGVzcGVybGluZSwgYmVjYXVzZSB0aGF0IG10 a19qcGVn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