From: Fabien DESSENNE <fabien.dessenne@st.com>
To: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH 19/19] bdisp: move the V/H filter spec to bdisp-hw.c
Date: Mon, 27 Jun 2016 14:03:18 +0200 [thread overview]
Message-ID: <57711606.10704@st.com> (raw)
In-Reply-To: <068adc457f2a795b871429464dbec15388c6dc57.1466782238.git.mchehab@s-opensource.com>
On 06/24/2016 05:32 PM, Mauro Carvalho Chehab wrote:
> Those structs are used only at bdisp-hw, so they shouldn't be
> there in a header file that it is used elsewhere.
>
> This fixes the following Gcc 6.1 warnings:
>
> In file included from drivers/media/platform/sti/bdisp/bdisp-debug.c:11:0:
> drivers/media/platform/sti/bdisp/bdisp-filter.h:207:65: warning: ‘bdisp_v_spec’ defined but not used [-Wunused-const-variable=]
> static const struct __maybe_unused bdisp_filter_v_spec bdisp_v_spec[] = {
> ^~~~~~~~~
> In file included from drivers/media/platform/sti/bdisp/bdisp-debug.c:11:0:
> drivers/media/platform/sti/bdisp/bdisp-filter.h:23:65: warning: ‘bdisp_h_spec’ defined but not used [-Wunused-const-variable=]
> static const struct __maybe_unused bdisp_filter_h_spec bdisp_h_spec[] = {
> ^~~~~~~~~
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Fabien Dessenne <fabien.dessenne@st.com>
> ---
> drivers/media/platform/sti/bdisp/bdisp-filter.h | 304 -----------------------
> drivers/media/platform/sti/bdisp/bdisp-hw.c | 305 ++++++++++++++++++++++++
> 2 files changed, 305 insertions(+), 304 deletions(-)
>
> diff --git a/drivers/media/platform/sti/bdisp/bdisp-filter.h b/drivers/media/platform/sti/bdisp/bdisp-filter.h
> index fc8c54f725ad..53e52fb4127f 100644
> --- a/drivers/media/platform/sti/bdisp/bdisp-filter.h
> +++ b/drivers/media/platform/sti/bdisp/bdisp-filter.h
> @@ -19,178 +19,6 @@ struct bdisp_filter_h_spec {
> const u16 max;
> const u8 coef[BDISP_HF_NB];
> };
> -
> -static const struct bdisp_filter_h_spec bdisp_h_spec[] = {
> - {
> - .min = 0,
> - .max = 921,
> - .coef = {
> - 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
> - 0x00, 0x00, 0xff, 0x07, 0x3d, 0xfc, 0x01, 0x00,
> - 0x00, 0x01, 0xfd, 0x11, 0x36, 0xf9, 0x02, 0x00,
> - 0x00, 0x01, 0xfb, 0x1b, 0x2e, 0xf9, 0x02, 0x00,
> - 0x00, 0x01, 0xf9, 0x26, 0x26, 0xf9, 0x01, 0x00,
> - 0x00, 0x02, 0xf9, 0x30, 0x19, 0xfb, 0x01, 0x00,
> - 0x00, 0x02, 0xf9, 0x39, 0x0e, 0xfd, 0x01, 0x00,
> - 0x00, 0x01, 0xfc, 0x3e, 0x06, 0xff, 0x00, 0x00
> - }
> - },
> - {
> - .min = 921,
> - .max = 1024,
> - .coef = {
> - 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
> - 0xff, 0x03, 0xfd, 0x08, 0x3e, 0xf9, 0x04, 0xfe,
> - 0xfd, 0x06, 0xf8, 0x13, 0x3b, 0xf4, 0x07, 0xfc,
> - 0xfb, 0x08, 0xf5, 0x1f, 0x34, 0xf1, 0x09, 0xfb,
> - 0xfb, 0x09, 0xf2, 0x2b, 0x2a, 0xf1, 0x09, 0xfb,
> - 0xfb, 0x09, 0xf2, 0x35, 0x1e, 0xf4, 0x08, 0xfb,
> - 0xfc, 0x07, 0xf5, 0x3c, 0x12, 0xf7, 0x06, 0xfd,
> - 0xfe, 0x04, 0xfa, 0x3f, 0x07, 0xfc, 0x03, 0xff
> - }
> - },
> - {
> - .min = 1024,
> - .max = 1126,
> - .coef = {
> - 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
> - 0xff, 0x03, 0xfd, 0x08, 0x3e, 0xf9, 0x04, 0xfe,
> - 0xfd, 0x06, 0xf8, 0x13, 0x3b, 0xf4, 0x07, 0xfc,
> - 0xfb, 0x08, 0xf5, 0x1f, 0x34, 0xf1, 0x09, 0xfb,
> - 0xfb, 0x09, 0xf2, 0x2b, 0x2a, 0xf1, 0x09, 0xfb,
> - 0xfb, 0x09, 0xf2, 0x35, 0x1e, 0xf4, 0x08, 0xfb,
> - 0xfc, 0x07, 0xf5, 0x3c, 0x12, 0xf7, 0x06, 0xfd,
> - 0xfe, 0x04, 0xfa, 0x3f, 0x07, 0xfc, 0x03, 0xff
> - }
> - },
> - {
> - .min = 1126,
> - .max = 1228,
> - .coef = {
> - 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
> - 0xff, 0x03, 0xfd, 0x08, 0x3e, 0xf9, 0x04, 0xfe,
> - 0xfd, 0x06, 0xf8, 0x13, 0x3b, 0xf4, 0x07, 0xfc,
> - 0xfb, 0x08, 0xf5, 0x1f, 0x34, 0xf1, 0x09, 0xfb,
> - 0xfb, 0x09, 0xf2, 0x2b, 0x2a, 0xf1, 0x09, 0xfb,
> - 0xfb, 0x09, 0xf2, 0x35, 0x1e, 0xf4, 0x08, 0xfb,
> - 0xfc, 0x07, 0xf5, 0x3c, 0x12, 0xf7, 0x06, 0xfd,
> - 0xfe, 0x04, 0xfa, 0x3f, 0x07, 0xfc, 0x03, 0xff
> - }
> - },
> - {
> - .min = 1228,
> - .max = 1331,
> - .coef = {
> - 0xfd, 0x04, 0xfc, 0x05, 0x39, 0x05, 0xfc, 0x04,
> - 0xfc, 0x06, 0xf9, 0x0c, 0x39, 0xfe, 0x00, 0x02,
> - 0xfb, 0x08, 0xf6, 0x17, 0x35, 0xf9, 0x02, 0x00,
> - 0xfc, 0x08, 0xf4, 0x20, 0x30, 0xf4, 0x05, 0xff,
> - 0xfd, 0x07, 0xf4, 0x29, 0x28, 0xf3, 0x07, 0xfd,
> - 0xff, 0x05, 0xf5, 0x31, 0x1f, 0xf3, 0x08, 0xfc,
> - 0x00, 0x02, 0xf9, 0x38, 0x14, 0xf6, 0x08, 0xfb,
> - 0x02, 0x00, 0xff, 0x3a, 0x0b, 0xf8, 0x06, 0xfc
> - }
> - },
> - {
> - .min = 1331,
> - .max = 1433,
> - .coef = {
> - 0xfc, 0x06, 0xf9, 0x09, 0x34, 0x09, 0xf9, 0x06,
> - 0xfd, 0x07, 0xf7, 0x10, 0x32, 0x02, 0xfc, 0x05,
> - 0xfe, 0x07, 0xf6, 0x17, 0x2f, 0xfc, 0xff, 0x04,
> - 0xff, 0x06, 0xf5, 0x20, 0x2a, 0xf9, 0x01, 0x02,
> - 0x00, 0x04, 0xf6, 0x27, 0x25, 0xf6, 0x04, 0x00,
> - 0x02, 0x01, 0xf9, 0x2d, 0x1d, 0xf5, 0x06, 0xff,
> - 0x04, 0xff, 0xfd, 0x31, 0x15, 0xf5, 0x07, 0xfe,
> - 0x05, 0xfc, 0x02, 0x35, 0x0d, 0xf7, 0x07, 0xfd
> - }
> - },
> - {
> - .min = 1433,
> - .max = 1536,
> - .coef = {
> - 0xfe, 0x06, 0xf8, 0x0b, 0x30, 0x0b, 0xf8, 0x06,
> - 0xff, 0x06, 0xf7, 0x12, 0x2d, 0x05, 0xfa, 0x06,
> - 0x00, 0x04, 0xf6, 0x18, 0x2c, 0x00, 0xfc, 0x06,
> - 0x01, 0x02, 0xf7, 0x1f, 0x27, 0xfd, 0xff, 0x04,
> - 0x03, 0x00, 0xf9, 0x24, 0x24, 0xf9, 0x00, 0x03,
> - 0x04, 0xff, 0xfd, 0x29, 0x1d, 0xf7, 0x02, 0x01,
> - 0x06, 0xfc, 0x00, 0x2d, 0x17, 0xf6, 0x04, 0x00,
> - 0x06, 0xfa, 0x05, 0x30, 0x0f, 0xf7, 0x06, 0xff
> - }
> - },
> - {
> - .min = 1536,
> - .max = 2048,
> - .coef = {
> - 0x05, 0xfd, 0xfb, 0x13, 0x25, 0x13, 0xfb, 0xfd,
> - 0x05, 0xfc, 0xfd, 0x17, 0x24, 0x0f, 0xf9, 0xff,
> - 0x04, 0xfa, 0xff, 0x1b, 0x24, 0x0b, 0xf9, 0x00,
> - 0x03, 0xf9, 0x01, 0x1f, 0x23, 0x08, 0xf8, 0x01,
> - 0x02, 0xf9, 0x04, 0x22, 0x20, 0x04, 0xf9, 0x02,
> - 0x01, 0xf8, 0x08, 0x25, 0x1d, 0x01, 0xf9, 0x03,
> - 0x00, 0xf9, 0x0c, 0x25, 0x1a, 0xfe, 0xfa, 0x04,
> - 0xff, 0xf9, 0x10, 0x26, 0x15, 0xfc, 0xfc, 0x05
> - }
> - },
> - {
> - .min = 2048,
> - .max = 3072,
> - .coef = {
> - 0xfc, 0xfd, 0x06, 0x13, 0x18, 0x13, 0x06, 0xfd,
> - 0xfc, 0xfe, 0x08, 0x15, 0x17, 0x12, 0x04, 0xfc,
> - 0xfb, 0xfe, 0x0a, 0x16, 0x18, 0x10, 0x03, 0xfc,
> - 0xfb, 0x00, 0x0b, 0x18, 0x17, 0x0f, 0x01, 0xfb,
> - 0xfb, 0x00, 0x0d, 0x19, 0x17, 0x0d, 0x00, 0xfb,
> - 0xfb, 0x01, 0x0f, 0x19, 0x16, 0x0b, 0x00, 0xfb,
> - 0xfc, 0x03, 0x11, 0x19, 0x15, 0x09, 0xfe, 0xfb,
> - 0xfc, 0x04, 0x12, 0x1a, 0x12, 0x08, 0xfe, 0xfc
> - }
> - },
> - {
> - .min = 3072,
> - .max = 4096,
> - .coef = {
> - 0xfe, 0x02, 0x09, 0x0f, 0x0e, 0x0f, 0x09, 0x02,
> - 0xff, 0x02, 0x09, 0x0f, 0x10, 0x0e, 0x08, 0x01,
> - 0xff, 0x03, 0x0a, 0x10, 0x10, 0x0d, 0x07, 0x00,
> - 0x00, 0x04, 0x0b, 0x10, 0x0f, 0x0c, 0x06, 0x00,
> - 0x00, 0x05, 0x0c, 0x10, 0x0e, 0x0c, 0x05, 0x00,
> - 0x00, 0x06, 0x0c, 0x11, 0x0e, 0x0b, 0x04, 0x00,
> - 0x00, 0x07, 0x0d, 0x11, 0x0f, 0x0a, 0x03, 0xff,
> - 0x01, 0x08, 0x0e, 0x11, 0x0e, 0x09, 0x02, 0xff
> - }
> - },
> - {
> - .min = 4096,
> - .max = 5120,
> - .coef = {
> - 0x00, 0x04, 0x09, 0x0c, 0x0e, 0x0c, 0x09, 0x04,
> - 0x01, 0x05, 0x09, 0x0c, 0x0d, 0x0c, 0x08, 0x04,
> - 0x01, 0x05, 0x0a, 0x0c, 0x0e, 0x0b, 0x08, 0x03,
> - 0x02, 0x06, 0x0a, 0x0d, 0x0c, 0x0b, 0x07, 0x03,
> - 0x02, 0x07, 0x0a, 0x0d, 0x0d, 0x0a, 0x07, 0x02,
> - 0x03, 0x07, 0x0b, 0x0d, 0x0c, 0x0a, 0x06, 0x02,
> - 0x03, 0x08, 0x0b, 0x0d, 0x0d, 0x0a, 0x05, 0x01,
> - 0x04, 0x08, 0x0c, 0x0d, 0x0c, 0x09, 0x05, 0x01
> - }
> - },
> - {
> - .min = 5120,
> - .max = 65535,
> - .coef = {
> - 0x03, 0x06, 0x09, 0x0b, 0x09, 0x0b, 0x09, 0x06,
> - 0x03, 0x06, 0x09, 0x0b, 0x0c, 0x0a, 0x08, 0x05,
> - 0x03, 0x06, 0x09, 0x0b, 0x0c, 0x0a, 0x08, 0x05,
> - 0x04, 0x07, 0x09, 0x0b, 0x0b, 0x0a, 0x08, 0x04,
> - 0x04, 0x07, 0x0a, 0x0b, 0x0b, 0x0a, 0x07, 0x04,
> - 0x04, 0x08, 0x0a, 0x0b, 0x0b, 0x09, 0x07, 0x04,
> - 0x05, 0x08, 0x0a, 0x0b, 0x0c, 0x09, 0x06, 0x03,
> - 0x05, 0x08, 0x0a, 0x0b, 0x0c, 0x09, 0x06, 0x03
> - }
> - }
> -};
> -
> /**
> * struct bdisp_filter_v_spec - Vertical filter specification
> *
> @@ -204,138 +32,6 @@ struct bdisp_filter_v_spec {
> const u8 coef[BDISP_VF_NB];
> };
>
> -static const struct bdisp_filter_v_spec bdisp_v_spec[] = {
> - {
> - .min = 0,
> - .max = 1024,
> - .coef = {
> - 0x00, 0x00, 0x40, 0x00, 0x00,
> - 0x00, 0x06, 0x3d, 0xfd, 0x00,
> - 0xfe, 0x0f, 0x38, 0xfb, 0x00,
> - 0xfd, 0x19, 0x2f, 0xfb, 0x00,
> - 0xfc, 0x24, 0x24, 0xfc, 0x00,
> - 0xfb, 0x2f, 0x19, 0xfd, 0x00,
> - 0xfb, 0x38, 0x0f, 0xfe, 0x00,
> - 0xfd, 0x3d, 0x06, 0x00, 0x00
> - }
> - },
> - {
> - .min = 1024,
> - .max = 1331,
> - .coef = {
> - 0xfc, 0x05, 0x3e, 0x05, 0xfc,
> - 0xf8, 0x0e, 0x3b, 0xff, 0x00,
> - 0xf5, 0x18, 0x38, 0xf9, 0x02,
> - 0xf4, 0x21, 0x31, 0xf5, 0x05,
> - 0xf4, 0x2a, 0x27, 0xf4, 0x07,
> - 0xf6, 0x30, 0x1e, 0xf4, 0x08,
> - 0xf9, 0x35, 0x15, 0xf6, 0x07,
> - 0xff, 0x37, 0x0b, 0xf9, 0x06
> - }
> - },
> - {
> - .min = 1331,
> - .max = 1433,
> - .coef = {
> - 0xf8, 0x0a, 0x3c, 0x0a, 0xf8,
> - 0xf6, 0x12, 0x3b, 0x02, 0xfb,
> - 0xf4, 0x1b, 0x35, 0xfd, 0xff,
> - 0xf4, 0x23, 0x30, 0xf8, 0x01,
> - 0xf6, 0x29, 0x27, 0xf6, 0x04,
> - 0xf9, 0x2e, 0x1e, 0xf5, 0x06,
> - 0xfd, 0x31, 0x16, 0xf6, 0x06,
> - 0x02, 0x32, 0x0d, 0xf8, 0x07
> - }
> - },
> - {
> - .min = 1433,
> - .max = 1536,
> - .coef = {
> - 0xf6, 0x0e, 0x38, 0x0e, 0xf6,
> - 0xf5, 0x15, 0x38, 0x06, 0xf8,
> - 0xf5, 0x1d, 0x33, 0x00, 0xfb,
> - 0xf6, 0x23, 0x2d, 0xfc, 0xfe,
> - 0xf9, 0x28, 0x26, 0xf9, 0x00,
> - 0xfc, 0x2c, 0x1e, 0xf7, 0x03,
> - 0x00, 0x2e, 0x18, 0xf6, 0x04,
> - 0x05, 0x2e, 0x11, 0xf7, 0x05
> - }
> - },
> - {
> - .min = 1536,
> - .max = 2048,
> - .coef = {
> - 0xfb, 0x13, 0x24, 0x13, 0xfb,
> - 0xfd, 0x17, 0x23, 0x0f, 0xfa,
> - 0xff, 0x1a, 0x23, 0x0b, 0xf9,
> - 0x01, 0x1d, 0x22, 0x07, 0xf9,
> - 0x04, 0x20, 0x1f, 0x04, 0xf9,
> - 0x07, 0x22, 0x1c, 0x01, 0xfa,
> - 0x0b, 0x24, 0x17, 0xff, 0xfb,
> - 0x0f, 0x24, 0x14, 0xfd, 0xfc
> - }
> - },
> - {
> - .min = 2048,
> - .max = 3072,
> - .coef = {
> - 0x05, 0x10, 0x16, 0x10, 0x05,
> - 0x06, 0x11, 0x16, 0x0f, 0x04,
> - 0x08, 0x13, 0x15, 0x0e, 0x02,
> - 0x09, 0x14, 0x16, 0x0c, 0x01,
> - 0x0b, 0x15, 0x15, 0x0b, 0x00,
> - 0x0d, 0x16, 0x13, 0x0a, 0x00,
> - 0x0f, 0x17, 0x13, 0x08, 0xff,
> - 0x11, 0x18, 0x12, 0x07, 0xfe
> - }
> - },
> - {
> - .min = 3072,
> - .max = 4096,
> - .coef = {
> - 0x09, 0x0f, 0x10, 0x0f, 0x09,
> - 0x09, 0x0f, 0x12, 0x0e, 0x08,
> - 0x0a, 0x10, 0x11, 0x0e, 0x07,
> - 0x0b, 0x11, 0x11, 0x0d, 0x06,
> - 0x0c, 0x11, 0x12, 0x0c, 0x05,
> - 0x0d, 0x12, 0x11, 0x0c, 0x04,
> - 0x0e, 0x12, 0x11, 0x0b, 0x04,
> - 0x0f, 0x13, 0x11, 0x0a, 0x03
> - }
> - },
> - {
> - .min = 4096,
> - .max = 5120,
> - .coef = {
> - 0x0a, 0x0e, 0x10, 0x0e, 0x0a,
> - 0x0b, 0x0e, 0x0f, 0x0e, 0x0a,
> - 0x0b, 0x0f, 0x10, 0x0d, 0x09,
> - 0x0c, 0x0f, 0x10, 0x0d, 0x08,
> - 0x0d, 0x0f, 0x0f, 0x0d, 0x08,
> - 0x0d, 0x10, 0x10, 0x0c, 0x07,
> - 0x0e, 0x10, 0x0f, 0x0c, 0x07,
> - 0x0f, 0x10, 0x10, 0x0b, 0x06
> - }
> - },
> - {
> - .min = 5120,
> - .max = 65535,
> - .coef = {
> - 0x0b, 0x0e, 0x0e, 0x0e, 0x0b,
> - 0x0b, 0x0e, 0x0f, 0x0d, 0x0b,
> - 0x0c, 0x0e, 0x0f, 0x0d, 0x0a,
> - 0x0c, 0x0e, 0x0f, 0x0d, 0x0a,
> - 0x0d, 0x0f, 0x0e, 0x0d, 0x09,
> - 0x0d, 0x0f, 0x0f, 0x0c, 0x09,
> - 0x0e, 0x0f, 0x0e, 0x0c, 0x09,
> - 0x0e, 0x0f, 0x0f, 0x0c, 0x08
> - }
> - }
> -};
> -
> -#define NB_H_FILTER ARRAY_SIZE(bdisp_h_spec)
> -#define NB_V_FILTER ARRAY_SIZE(bdisp_v_spec)
> -
> /* RGB YUV 601 standard conversion */
> static const u32 bdisp_rgb_to_yuv[] = {
> 0x0e1e8bee, 0x08420419, 0xfb5ed471, 0x08004080,
> diff --git a/drivers/media/platform/sti/bdisp/bdisp-hw.c b/drivers/media/platform/sti/bdisp/bdisp-hw.c
> index 052c932ac942..3df66d11c795 100644
> --- a/drivers/media/platform/sti/bdisp/bdisp-hw.c
> +++ b/drivers/media/platform/sti/bdisp/bdisp-hw.c
> @@ -47,6 +47,311 @@ struct bdisp_filter_addr {
> dma_addr_t paddr; /* Physical address for filter table */
> };
>
> +static const struct bdisp_filter_h_spec bdisp_h_spec[] = {
> + {
> + .min = 0,
> + .max = 921,
> + .coef = {
> + 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
> + 0x00, 0x00, 0xff, 0x07, 0x3d, 0xfc, 0x01, 0x00,
> + 0x00, 0x01, 0xfd, 0x11, 0x36, 0xf9, 0x02, 0x00,
> + 0x00, 0x01, 0xfb, 0x1b, 0x2e, 0xf9, 0x02, 0x00,
> + 0x00, 0x01, 0xf9, 0x26, 0x26, 0xf9, 0x01, 0x00,
> + 0x00, 0x02, 0xf9, 0x30, 0x19, 0xfb, 0x01, 0x00,
> + 0x00, 0x02, 0xf9, 0x39, 0x0e, 0xfd, 0x01, 0x00,
> + 0x00, 0x01, 0xfc, 0x3e, 0x06, 0xff, 0x00, 0x00
> + }
> + },
> + {
> + .min = 921,
> + .max = 1024,
> + .coef = {
> + 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
> + 0xff, 0x03, 0xfd, 0x08, 0x3e, 0xf9, 0x04, 0xfe,
> + 0xfd, 0x06, 0xf8, 0x13, 0x3b, 0xf4, 0x07, 0xfc,
> + 0xfb, 0x08, 0xf5, 0x1f, 0x34, 0xf1, 0x09, 0xfb,
> + 0xfb, 0x09, 0xf2, 0x2b, 0x2a, 0xf1, 0x09, 0xfb,
> + 0xfb, 0x09, 0xf2, 0x35, 0x1e, 0xf4, 0x08, 0xfb,
> + 0xfc, 0x07, 0xf5, 0x3c, 0x12, 0xf7, 0x06, 0xfd,
> + 0xfe, 0x04, 0xfa, 0x3f, 0x07, 0xfc, 0x03, 0xff
> + }
> + },
> + {
> + .min = 1024,
> + .max = 1126,
> + .coef = {
> + 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
> + 0xff, 0x03, 0xfd, 0x08, 0x3e, 0xf9, 0x04, 0xfe,
> + 0xfd, 0x06, 0xf8, 0x13, 0x3b, 0xf4, 0x07, 0xfc,
> + 0xfb, 0x08, 0xf5, 0x1f, 0x34, 0xf1, 0x09, 0xfb,
> + 0xfb, 0x09, 0xf2, 0x2b, 0x2a, 0xf1, 0x09, 0xfb,
> + 0xfb, 0x09, 0xf2, 0x35, 0x1e, 0xf4, 0x08, 0xfb,
> + 0xfc, 0x07, 0xf5, 0x3c, 0x12, 0xf7, 0x06, 0xfd,
> + 0xfe, 0x04, 0xfa, 0x3f, 0x07, 0xfc, 0x03, 0xff
> + }
> + },
> + {
> + .min = 1126,
> + .max = 1228,
> + .coef = {
> + 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
> + 0xff, 0x03, 0xfd, 0x08, 0x3e, 0xf9, 0x04, 0xfe,
> + 0xfd, 0x06, 0xf8, 0x13, 0x3b, 0xf4, 0x07, 0xfc,
> + 0xfb, 0x08, 0xf5, 0x1f, 0x34, 0xf1, 0x09, 0xfb,
> + 0xfb, 0x09, 0xf2, 0x2b, 0x2a, 0xf1, 0x09, 0xfb,
> + 0xfb, 0x09, 0xf2, 0x35, 0x1e, 0xf4, 0x08, 0xfb,
> + 0xfc, 0x07, 0xf5, 0x3c, 0x12, 0xf7, 0x06, 0xfd,
> + 0xfe, 0x04, 0xfa, 0x3f, 0x07, 0xfc, 0x03, 0xff
> + }
> + },
> + {
> + .min = 1228,
> + .max = 1331,
> + .coef = {
> + 0xfd, 0x04, 0xfc, 0x05, 0x39, 0x05, 0xfc, 0x04,
> + 0xfc, 0x06, 0xf9, 0x0c, 0x39, 0xfe, 0x00, 0x02,
> + 0xfb, 0x08, 0xf6, 0x17, 0x35, 0xf9, 0x02, 0x00,
> + 0xfc, 0x08, 0xf4, 0x20, 0x30, 0xf4, 0x05, 0xff,
> + 0xfd, 0x07, 0xf4, 0x29, 0x28, 0xf3, 0x07, 0xfd,
> + 0xff, 0x05, 0xf5, 0x31, 0x1f, 0xf3, 0x08, 0xfc,
> + 0x00, 0x02, 0xf9, 0x38, 0x14, 0xf6, 0x08, 0xfb,
> + 0x02, 0x00, 0xff, 0x3a, 0x0b, 0xf8, 0x06, 0xfc
> + }
> + },
> + {
> + .min = 1331,
> + .max = 1433,
> + .coef = {
> + 0xfc, 0x06, 0xf9, 0x09, 0x34, 0x09, 0xf9, 0x06,
> + 0xfd, 0x07, 0xf7, 0x10, 0x32, 0x02, 0xfc, 0x05,
> + 0xfe, 0x07, 0xf6, 0x17, 0x2f, 0xfc, 0xff, 0x04,
> + 0xff, 0x06, 0xf5, 0x20, 0x2a, 0xf9, 0x01, 0x02,
> + 0x00, 0x04, 0xf6, 0x27, 0x25, 0xf6, 0x04, 0x00,
> + 0x02, 0x01, 0xf9, 0x2d, 0x1d, 0xf5, 0x06, 0xff,
> + 0x04, 0xff, 0xfd, 0x31, 0x15, 0xf5, 0x07, 0xfe,
> + 0x05, 0xfc, 0x02, 0x35, 0x0d, 0xf7, 0x07, 0xfd
> + }
> + },
> + {
> + .min = 1433,
> + .max = 1536,
> + .coef = {
> + 0xfe, 0x06, 0xf8, 0x0b, 0x30, 0x0b, 0xf8, 0x06,
> + 0xff, 0x06, 0xf7, 0x12, 0x2d, 0x05, 0xfa, 0x06,
> + 0x00, 0x04, 0xf6, 0x18, 0x2c, 0x00, 0xfc, 0x06,
> + 0x01, 0x02, 0xf7, 0x1f, 0x27, 0xfd, 0xff, 0x04,
> + 0x03, 0x00, 0xf9, 0x24, 0x24, 0xf9, 0x00, 0x03,
> + 0x04, 0xff, 0xfd, 0x29, 0x1d, 0xf7, 0x02, 0x01,
> + 0x06, 0xfc, 0x00, 0x2d, 0x17, 0xf6, 0x04, 0x00,
> + 0x06, 0xfa, 0x05, 0x30, 0x0f, 0xf7, 0x06, 0xff
> + }
> + },
> + {
> + .min = 1536,
> + .max = 2048,
> + .coef = {
> + 0x05, 0xfd, 0xfb, 0x13, 0x25, 0x13, 0xfb, 0xfd,
> + 0x05, 0xfc, 0xfd, 0x17, 0x24, 0x0f, 0xf9, 0xff,
> + 0x04, 0xfa, 0xff, 0x1b, 0x24, 0x0b, 0xf9, 0x00,
> + 0x03, 0xf9, 0x01, 0x1f, 0x23, 0x08, 0xf8, 0x01,
> + 0x02, 0xf9, 0x04, 0x22, 0x20, 0x04, 0xf9, 0x02,
> + 0x01, 0xf8, 0x08, 0x25, 0x1d, 0x01, 0xf9, 0x03,
> + 0x00, 0xf9, 0x0c, 0x25, 0x1a, 0xfe, 0xfa, 0x04,
> + 0xff, 0xf9, 0x10, 0x26, 0x15, 0xfc, 0xfc, 0x05
> + }
> + },
> + {
> + .min = 2048,
> + .max = 3072,
> + .coef = {
> + 0xfc, 0xfd, 0x06, 0x13, 0x18, 0x13, 0x06, 0xfd,
> + 0xfc, 0xfe, 0x08, 0x15, 0x17, 0x12, 0x04, 0xfc,
> + 0xfb, 0xfe, 0x0a, 0x16, 0x18, 0x10, 0x03, 0xfc,
> + 0xfb, 0x00, 0x0b, 0x18, 0x17, 0x0f, 0x01, 0xfb,
> + 0xfb, 0x00, 0x0d, 0x19, 0x17, 0x0d, 0x00, 0xfb,
> + 0xfb, 0x01, 0x0f, 0x19, 0x16, 0x0b, 0x00, 0xfb,
> + 0xfc, 0x03, 0x11, 0x19, 0x15, 0x09, 0xfe, 0xfb,
> + 0xfc, 0x04, 0x12, 0x1a, 0x12, 0x08, 0xfe, 0xfc
> + }
> + },
> + {
> + .min = 3072,
> + .max = 4096,
> + .coef = {
> + 0xfe, 0x02, 0x09, 0x0f, 0x0e, 0x0f, 0x09, 0x02,
> + 0xff, 0x02, 0x09, 0x0f, 0x10, 0x0e, 0x08, 0x01,
> + 0xff, 0x03, 0x0a, 0x10, 0x10, 0x0d, 0x07, 0x00,
> + 0x00, 0x04, 0x0b, 0x10, 0x0f, 0x0c, 0x06, 0x00,
> + 0x00, 0x05, 0x0c, 0x10, 0x0e, 0x0c, 0x05, 0x00,
> + 0x00, 0x06, 0x0c, 0x11, 0x0e, 0x0b, 0x04, 0x00,
> + 0x00, 0x07, 0x0d, 0x11, 0x0f, 0x0a, 0x03, 0xff,
> + 0x01, 0x08, 0x0e, 0x11, 0x0e, 0x09, 0x02, 0xff
> + }
> + },
> + {
> + .min = 4096,
> + .max = 5120,
> + .coef = {
> + 0x00, 0x04, 0x09, 0x0c, 0x0e, 0x0c, 0x09, 0x04,
> + 0x01, 0x05, 0x09, 0x0c, 0x0d, 0x0c, 0x08, 0x04,
> + 0x01, 0x05, 0x0a, 0x0c, 0x0e, 0x0b, 0x08, 0x03,
> + 0x02, 0x06, 0x0a, 0x0d, 0x0c, 0x0b, 0x07, 0x03,
> + 0x02, 0x07, 0x0a, 0x0d, 0x0d, 0x0a, 0x07, 0x02,
> + 0x03, 0x07, 0x0b, 0x0d, 0x0c, 0x0a, 0x06, 0x02,
> + 0x03, 0x08, 0x0b, 0x0d, 0x0d, 0x0a, 0x05, 0x01,
> + 0x04, 0x08, 0x0c, 0x0d, 0x0c, 0x09, 0x05, 0x01
> + }
> + },
> + {
> + .min = 5120,
> + .max = 65535,
> + .coef = {
> + 0x03, 0x06, 0x09, 0x0b, 0x09, 0x0b, 0x09, 0x06,
> + 0x03, 0x06, 0x09, 0x0b, 0x0c, 0x0a, 0x08, 0x05,
> + 0x03, 0x06, 0x09, 0x0b, 0x0c, 0x0a, 0x08, 0x05,
> + 0x04, 0x07, 0x09, 0x0b, 0x0b, 0x0a, 0x08, 0x04,
> + 0x04, 0x07, 0x0a, 0x0b, 0x0b, 0x0a, 0x07, 0x04,
> + 0x04, 0x08, 0x0a, 0x0b, 0x0b, 0x09, 0x07, 0x04,
> + 0x05, 0x08, 0x0a, 0x0b, 0x0c, 0x09, 0x06, 0x03,
> + 0x05, 0x08, 0x0a, 0x0b, 0x0c, 0x09, 0x06, 0x03
> + }
> + }
> +};
> +
> +#define NB_H_FILTER ARRAY_SIZE(bdisp_h_spec)
> +
> +
> +static const struct bdisp_filter_v_spec bdisp_v_spec[] = {
> + {
> + .min = 0,
> + .max = 1024,
> + .coef = {
> + 0x00, 0x00, 0x40, 0x00, 0x00,
> + 0x00, 0x06, 0x3d, 0xfd, 0x00,
> + 0xfe, 0x0f, 0x38, 0xfb, 0x00,
> + 0xfd, 0x19, 0x2f, 0xfb, 0x00,
> + 0xfc, 0x24, 0x24, 0xfc, 0x00,
> + 0xfb, 0x2f, 0x19, 0xfd, 0x00,
> + 0xfb, 0x38, 0x0f, 0xfe, 0x00,
> + 0xfd, 0x3d, 0x06, 0x00, 0x00
> + }
> + },
> + {
> + .min = 1024,
> + .max = 1331,
> + .coef = {
> + 0xfc, 0x05, 0x3e, 0x05, 0xfc,
> + 0xf8, 0x0e, 0x3b, 0xff, 0x00,
> + 0xf5, 0x18, 0x38, 0xf9, 0x02,
> + 0xf4, 0x21, 0x31, 0xf5, 0x05,
> + 0xf4, 0x2a, 0x27, 0xf4, 0x07,
> + 0xf6, 0x30, 0x1e, 0xf4, 0x08,
> + 0xf9, 0x35, 0x15, 0xf6, 0x07,
> + 0xff, 0x37, 0x0b, 0xf9, 0x06
> + }
> + },
> + {
> + .min = 1331,
> + .max = 1433,
> + .coef = {
> + 0xf8, 0x0a, 0x3c, 0x0a, 0xf8,
> + 0xf6, 0x12, 0x3b, 0x02, 0xfb,
> + 0xf4, 0x1b, 0x35, 0xfd, 0xff,
> + 0xf4, 0x23, 0x30, 0xf8, 0x01,
> + 0xf6, 0x29, 0x27, 0xf6, 0x04,
> + 0xf9, 0x2e, 0x1e, 0xf5, 0x06,
> + 0xfd, 0x31, 0x16, 0xf6, 0x06,
> + 0x02, 0x32, 0x0d, 0xf8, 0x07
> + }
> + },
> + {
> + .min = 1433,
> + .max = 1536,
> + .coef = {
> + 0xf6, 0x0e, 0x38, 0x0e, 0xf6,
> + 0xf5, 0x15, 0x38, 0x06, 0xf8,
> + 0xf5, 0x1d, 0x33, 0x00, 0xfb,
> + 0xf6, 0x23, 0x2d, 0xfc, 0xfe,
> + 0xf9, 0x28, 0x26, 0xf9, 0x00,
> + 0xfc, 0x2c, 0x1e, 0xf7, 0x03,
> + 0x00, 0x2e, 0x18, 0xf6, 0x04,
> + 0x05, 0x2e, 0x11, 0xf7, 0x05
> + }
> + },
> + {
> + .min = 1536,
> + .max = 2048,
> + .coef = {
> + 0xfb, 0x13, 0x24, 0x13, 0xfb,
> + 0xfd, 0x17, 0x23, 0x0f, 0xfa,
> + 0xff, 0x1a, 0x23, 0x0b, 0xf9,
> + 0x01, 0x1d, 0x22, 0x07, 0xf9,
> + 0x04, 0x20, 0x1f, 0x04, 0xf9,
> + 0x07, 0x22, 0x1c, 0x01, 0xfa,
> + 0x0b, 0x24, 0x17, 0xff, 0xfb,
> + 0x0f, 0x24, 0x14, 0xfd, 0xfc
> + }
> + },
> + {
> + .min = 2048,
> + .max = 3072,
> + .coef = {
> + 0x05, 0x10, 0x16, 0x10, 0x05,
> + 0x06, 0x11, 0x16, 0x0f, 0x04,
> + 0x08, 0x13, 0x15, 0x0e, 0x02,
> + 0x09, 0x14, 0x16, 0x0c, 0x01,
> + 0x0b, 0x15, 0x15, 0x0b, 0x00,
> + 0x0d, 0x16, 0x13, 0x0a, 0x00,
> + 0x0f, 0x17, 0x13, 0x08, 0xff,
> + 0x11, 0x18, 0x12, 0x07, 0xfe
> + }
> + },
> + {
> + .min = 3072,
> + .max = 4096,
> + .coef = {
> + 0x09, 0x0f, 0x10, 0x0f, 0x09,
> + 0x09, 0x0f, 0x12, 0x0e, 0x08,
> + 0x0a, 0x10, 0x11, 0x0e, 0x07,
> + 0x0b, 0x11, 0x11, 0x0d, 0x06,
> + 0x0c, 0x11, 0x12, 0x0c, 0x05,
> + 0x0d, 0x12, 0x11, 0x0c, 0x04,
> + 0x0e, 0x12, 0x11, 0x0b, 0x04,
> + 0x0f, 0x13, 0x11, 0x0a, 0x03
> + }
> + },
> + {
> + .min = 4096,
> + .max = 5120,
> + .coef = {
> + 0x0a, 0x0e, 0x10, 0x0e, 0x0a,
> + 0x0b, 0x0e, 0x0f, 0x0e, 0x0a,
> + 0x0b, 0x0f, 0x10, 0x0d, 0x09,
> + 0x0c, 0x0f, 0x10, 0x0d, 0x08,
> + 0x0d, 0x0f, 0x0f, 0x0d, 0x08,
> + 0x0d, 0x10, 0x10, 0x0c, 0x07,
> + 0x0e, 0x10, 0x0f, 0x0c, 0x07,
> + 0x0f, 0x10, 0x10, 0x0b, 0x06
> + }
> + },
> + {
> + .min = 5120,
> + .max = 65535,
> + .coef = {
> + 0x0b, 0x0e, 0x0e, 0x0e, 0x0b,
> + 0x0b, 0x0e, 0x0f, 0x0d, 0x0b,
> + 0x0c, 0x0e, 0x0f, 0x0d, 0x0a,
> + 0x0c, 0x0e, 0x0f, 0x0d, 0x0a,
> + 0x0d, 0x0f, 0x0e, 0x0d, 0x09,
> + 0x0d, 0x0f, 0x0f, 0x0c, 0x09,
> + 0x0e, 0x0f, 0x0e, 0x0c, 0x09,
> + 0x0e, 0x0f, 0x0f, 0x0c, 0x08
> + }
> + }
> +};
> +
> +#define NB_V_FILTER ARRAY_SIZE(bdisp_v_spec)
> +
> static struct bdisp_filter_addr bdisp_h_filter[NB_H_FILTER];
> static struct bdisp_filter_addr bdisp_v_filter[NB_V_FILTER];
>
> --
> 2.7.4
>
>
prev parent reply other threads:[~2016-06-27 12:03 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-24 15:31 [PATCH 00/19] Fix new warnings detected by GCC 6.1 Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 01/19] usbvision: remove some unused vars Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 02/19] exynos4-is: " Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 03/19] cx18: use macros instead of static const vars Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 04/19] m5602_core: move skeletons to the .c file Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 05/19] m5602_s5k4aa: " Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 06/19] m5602_mt9m111: " Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 07/19] m5602_ov9650: " Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 08/19] m5602_s5k83a: " Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 09/19] m5602_po1030: " Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 10/19] m5602_ov7660: " Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 11/19] cx25821-alsa: shutup a Gcc 6.1 warning Mauro Carvalho Chehab
2016-06-24 17:38 ` Luis de Bethencourt
2016-06-24 20:10 ` Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 12/19] drxj: comment out the unused nicam_presc_table_val table Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 13/19] dib0090: comment out the unused tables Mauro Carvalho Chehab
2016-06-26 21:30 ` Patrick Boettcher
2016-06-24 15:31 ` [PATCH 14/19] r820t: comment out two ancillary tables Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 15/19] zr36016: remove some unused tables Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 16/19] vivid: remove some unused vars Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 17/19] em28xx-dvb: remove some left over Mauro Carvalho Chehab
2016-06-24 15:31 ` [PATCH 18/19] adv7842: comment out a table useful for debug Mauro Carvalho Chehab
2016-06-24 15:32 ` [PATCH 19/19] bdisp: move the V/H filter spec to bdisp-hw.c Mauro Carvalho Chehab
2016-06-27 12:03 ` Fabien DESSENNE [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57711606.10704@st.com \
--to=fabien.dessenne@st.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=mchehab@s-opensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).