Commit 6d9a06f2 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

Revert "[media] siano: fix build with allmodconfig"

This reverts commit 6ee28d94.

The patch got some alien code there, not sure why. Revert it to apply
it properly.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b41a536c
...@@ -3,7 +3,7 @@ smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o ...@@ -3,7 +3,7 @@ smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o
obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o
ifeq ($(CONFIG_SMS_SIANO_RC),y) ifeq ($(CONFIG_SMS_SIANO_RC),y)
smsmdtv-objs += smsir.o obj-$(CONFIG_SMS_SIANO_MDTV) += smsir.o
endif endif
ccflags-y += -Idrivers/media/dvb-core ccflags-y += -Idrivers/media/dvb-core
......
...@@ -200,10 +200,10 @@ static void preview_enable_invalaw(struct isp_prev_device *prev, bool enable) ...@@ -200,10 +200,10 @@ static void preview_enable_invalaw(struct isp_prev_device *prev, bool enable)
if (enable) if (enable)
isp_reg_set(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR, isp_reg_set(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR,
ISPPRV_PCR_INVALAW); ISPPRV_PCR_WIDTH | ISPPRV_PCR_INVALAW);
else else
isp_reg_clr(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR, isp_reg_clr(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR,
ISPPRV_PCR_INVALAW); ISPPRV_PCR_WIDTH | ISPPRV_PCR_INVALAW);
} }
/* /*
...@@ -1014,7 +1014,7 @@ static void preview_config_averager(struct isp_prev_device *prev, u8 average) ...@@ -1014,7 +1014,7 @@ static void preview_config_averager(struct isp_prev_device *prev, u8 average)
/* /*
* preview_config_input_format - Configure the input format * preview_config_input_format - Configure the input format
* @prev: The preview engine * @prev: The preview engine
* @info: Sink pad format information * @format: Format on the preview engine sink pad
* *
* Enable and configure CFA interpolation for Bayer formats and disable it for * Enable and configure CFA interpolation for Bayer formats and disable it for
* greyscale formats. * greyscale formats.
...@@ -1025,29 +1025,22 @@ static void preview_config_averager(struct isp_prev_device *prev, u8 average) ...@@ -1025,29 +1025,22 @@ static void preview_config_averager(struct isp_prev_device *prev, u8 average)
* reordered to support non-GRBG Bayer patterns. * reordered to support non-GRBG Bayer patterns.
*/ */
static void preview_config_input_format(struct isp_prev_device *prev, static void preview_config_input_format(struct isp_prev_device *prev,
const struct isp_format_info *info) const struct v4l2_mbus_framefmt *format)
{ {
struct isp_device *isp = to_isp_device(prev); struct isp_device *isp = to_isp_device(prev);
struct prev_params *params; struct prev_params *params;
if (info->bpp == 8) switch (format->code) {
isp_reg_set(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR, case V4L2_MBUS_FMT_SGRBG10_1X10:
ISPPRV_PCR_WIDTH);
else
isp_reg_clr(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR,
ISPPRV_PCR_WIDTH);
switch (info->flavor) {
case V4L2_MBUS_FMT_SGRBG8_1X8:
prev->params.cfa_order = 0; prev->params.cfa_order = 0;
break; break;
case V4L2_MBUS_FMT_SRGGB8_1X8: case V4L2_MBUS_FMT_SRGGB10_1X10:
prev->params.cfa_order = 1; prev->params.cfa_order = 1;
break; break;
case V4L2_MBUS_FMT_SBGGR8_1X8: case V4L2_MBUS_FMT_SBGGR10_1X10:
prev->params.cfa_order = 2; prev->params.cfa_order = 2;
break; break;
case V4L2_MBUS_FMT_SGBRG8_1X8: case V4L2_MBUS_FMT_SGBRG10_1X10:
prev->params.cfa_order = 3; prev->params.cfa_order = 3;
break; break;
default: default:
...@@ -1396,7 +1389,6 @@ static unsigned int preview_max_out_width(struct isp_prev_device *prev) ...@@ -1396,7 +1389,6 @@ static unsigned int preview_max_out_width(struct isp_prev_device *prev)
static void preview_configure(struct isp_prev_device *prev) static void preview_configure(struct isp_prev_device *prev)
{ {
struct isp_device *isp = to_isp_device(prev); struct isp_device *isp = to_isp_device(prev);
const struct isp_format_info *info;
struct v4l2_mbus_framefmt *format; struct v4l2_mbus_framefmt *format;
unsigned long flags; unsigned long flags;
u32 update; u32 update;
...@@ -1410,19 +1402,17 @@ static void preview_configure(struct isp_prev_device *prev) ...@@ -1410,19 +1402,17 @@ static void preview_configure(struct isp_prev_device *prev)
/* PREV_PAD_SINK */ /* PREV_PAD_SINK */
format = &prev->formats[PREV_PAD_SINK]; format = &prev->formats[PREV_PAD_SINK];
info = omap3isp_video_format_info(format->code);
preview_adjust_bandwidth(prev); preview_adjust_bandwidth(prev);
preview_config_input_format(prev, info); preview_config_input_format(prev, format);
preview_config_input_size(prev, active); preview_config_input_size(prev, active);
if (prev->input == PREVIEW_INPUT_CCDC) if (prev->input == PREVIEW_INPUT_CCDC)
preview_config_inlineoffset(prev, 0); preview_config_inlineoffset(prev, 0);
else else
preview_config_inlineoffset(prev, preview_config_inlineoffset(prev,
ALIGN(format->width, 0x20) * ALIGN(format->width, 0x20) * 2);
DIV_ROUND_UP(info->bpp, 8));
preview_setup_hw(prev, update, active); preview_setup_hw(prev, update, active);
...@@ -1719,11 +1709,6 @@ __preview_get_crop(struct isp_prev_device *prev, struct v4l2_subdev_fh *fh, ...@@ -1719,11 +1709,6 @@ __preview_get_crop(struct isp_prev_device *prev, struct v4l2_subdev_fh *fh,
/* previewer format descriptions */ /* previewer format descriptions */
static const unsigned int preview_input_fmts[] = { static const unsigned int preview_input_fmts[] = {
V4L2_MBUS_FMT_Y8_1X8,
V4L2_MBUS_FMT_SGRBG8_1X8,
V4L2_MBUS_FMT_SRGGB8_1X8,
V4L2_MBUS_FMT_SBGGR8_1X8,
V4L2_MBUS_FMT_SGBRG8_1X8,
V4L2_MBUS_FMT_Y10_1X10, V4L2_MBUS_FMT_Y10_1X10,
V4L2_MBUS_FMT_SGRBG10_1X10, V4L2_MBUS_FMT_SGRBG10_1X10,
V4L2_MBUS_FMT_SRGGB10_1X10, V4L2_MBUS_FMT_SRGGB10_1X10,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment