You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[media] i2c: Make use of media_bus_format enum
In order to have subsytem agnostic media bus format definitions we've moved media bus definitions to include/uapi/linux/media-bus-format.h and prefixed values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT. Replace all references to the old definitions in i2c drivers. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
32b32ce84a
commit
f5fe58fd76
@@ -63,9 +63,9 @@ static inline struct adv7170 *to_adv7170(struct v4l2_subdev *sd)
|
||||
|
||||
static char *inputs[] = { "pass_through", "play_back" };
|
||||
|
||||
static enum v4l2_mbus_pixelcode adv7170_codes[] = {
|
||||
V4L2_MBUS_FMT_UYVY8_2X8,
|
||||
V4L2_MBUS_FMT_UYVY8_1X16,
|
||||
static u32 adv7170_codes[] = {
|
||||
MEDIA_BUS_FMT_UYVY8_2X8,
|
||||
MEDIA_BUS_FMT_UYVY8_1X16,
|
||||
};
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
@@ -263,7 +263,7 @@ static int adv7170_s_routing(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int adv7170_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index >= ARRAY_SIZE(adv7170_codes))
|
||||
return -EINVAL;
|
||||
@@ -278,9 +278,9 @@ static int adv7170_g_fmt(struct v4l2_subdev *sd,
|
||||
u8 val = adv7170_read(sd, 0x7);
|
||||
|
||||
if ((val & 0x40) == (1 << 6))
|
||||
mf->code = V4L2_MBUS_FMT_UYVY8_1X16;
|
||||
mf->code = MEDIA_BUS_FMT_UYVY8_1X16;
|
||||
else
|
||||
mf->code = V4L2_MBUS_FMT_UYVY8_2X8;
|
||||
mf->code = MEDIA_BUS_FMT_UYVY8_2X8;
|
||||
|
||||
mf->colorspace = V4L2_COLORSPACE_SMPTE170M;
|
||||
mf->width = 0;
|
||||
@@ -297,11 +297,11 @@ static int adv7170_s_fmt(struct v4l2_subdev *sd,
|
||||
int ret;
|
||||
|
||||
switch (mf->code) {
|
||||
case V4L2_MBUS_FMT_UYVY8_2X8:
|
||||
case MEDIA_BUS_FMT_UYVY8_2X8:
|
||||
val &= ~0x40;
|
||||
break;
|
||||
|
||||
case V4L2_MBUS_FMT_UYVY8_1X16:
|
||||
case MEDIA_BUS_FMT_UYVY8_1X16:
|
||||
val |= 0x40;
|
||||
break;
|
||||
|
||||
|
||||
@@ -60,9 +60,9 @@ static inline struct adv7175 *to_adv7175(struct v4l2_subdev *sd)
|
||||
|
||||
static char *inputs[] = { "pass_through", "play_back", "color_bar" };
|
||||
|
||||
static enum v4l2_mbus_pixelcode adv7175_codes[] = {
|
||||
V4L2_MBUS_FMT_UYVY8_2X8,
|
||||
V4L2_MBUS_FMT_UYVY8_1X16,
|
||||
static u32 adv7175_codes[] = {
|
||||
MEDIA_BUS_FMT_UYVY8_2X8,
|
||||
MEDIA_BUS_FMT_UYVY8_1X16,
|
||||
};
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
@@ -301,7 +301,7 @@ static int adv7175_s_routing(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int adv7175_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index >= ARRAY_SIZE(adv7175_codes))
|
||||
return -EINVAL;
|
||||
@@ -316,9 +316,9 @@ static int adv7175_g_fmt(struct v4l2_subdev *sd,
|
||||
u8 val = adv7175_read(sd, 0x7);
|
||||
|
||||
if ((val & 0x40) == (1 << 6))
|
||||
mf->code = V4L2_MBUS_FMT_UYVY8_1X16;
|
||||
mf->code = MEDIA_BUS_FMT_UYVY8_1X16;
|
||||
else
|
||||
mf->code = V4L2_MBUS_FMT_UYVY8_2X8;
|
||||
mf->code = MEDIA_BUS_FMT_UYVY8_2X8;
|
||||
|
||||
mf->colorspace = V4L2_COLORSPACE_SMPTE170M;
|
||||
mf->width = 0;
|
||||
@@ -335,11 +335,11 @@ static int adv7175_s_fmt(struct v4l2_subdev *sd,
|
||||
int ret;
|
||||
|
||||
switch (mf->code) {
|
||||
case V4L2_MBUS_FMT_UYVY8_2X8:
|
||||
case MEDIA_BUS_FMT_UYVY8_2X8:
|
||||
val &= ~0x40;
|
||||
break;
|
||||
|
||||
case V4L2_MBUS_FMT_UYVY8_1X16:
|
||||
case MEDIA_BUS_FMT_UYVY8_1X16:
|
||||
val |= 0x40;
|
||||
break;
|
||||
|
||||
|
||||
@@ -422,12 +422,12 @@ static void adv7180_exit_controls(struct adv7180_state *state)
|
||||
}
|
||||
|
||||
static int adv7180_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned int index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index > 0)
|
||||
return -EINVAL;
|
||||
|
||||
*code = V4L2_MBUS_FMT_YUYV8_2X8;
|
||||
*code = MEDIA_BUS_FMT_YUYV8_2X8;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -437,7 +437,7 @@ static int adv7180_mbus_fmt(struct v4l2_subdev *sd,
|
||||
{
|
||||
struct adv7180_state *state = to_state(sd);
|
||||
|
||||
fmt->code = V4L2_MBUS_FMT_YUYV8_2X8;
|
||||
fmt->code = MEDIA_BUS_FMT_YUYV8_2X8;
|
||||
fmt->colorspace = V4L2_COLORSPACE_SMPTE170M;
|
||||
fmt->field = V4L2_FIELD_INTERLACED;
|
||||
fmt->width = 720;
|
||||
|
||||
@@ -421,12 +421,12 @@ static int adv7183_g_input_status(struct v4l2_subdev *sd, u32 *status)
|
||||
}
|
||||
|
||||
static int adv7183_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index > 0)
|
||||
return -EINVAL;
|
||||
|
||||
*code = V4L2_MBUS_FMT_UYVY8_2X8;
|
||||
*code = MEDIA_BUS_FMT_UYVY8_2X8;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -435,7 +435,7 @@ static int adv7183_try_mbus_fmt(struct v4l2_subdev *sd,
|
||||
{
|
||||
struct adv7183 *decoder = to_adv7183(sd);
|
||||
|
||||
fmt->code = V4L2_MBUS_FMT_UYVY8_2X8;
|
||||
fmt->code = MEDIA_BUS_FMT_UYVY8_2X8;
|
||||
fmt->colorspace = V4L2_COLORSPACE_SMPTE170M;
|
||||
if (decoder->std & V4L2_STD_525_60) {
|
||||
fmt->field = V4L2_FIELD_SEQ_TB;
|
||||
|
||||
+36
-36
@@ -88,7 +88,7 @@ struct adv7604_reg_seq {
|
||||
};
|
||||
|
||||
struct adv7604_format_info {
|
||||
enum v4l2_mbus_pixelcode code;
|
||||
u32 code;
|
||||
u8 op_ch_sel;
|
||||
bool rgb_out;
|
||||
bool swap_cb_cr;
|
||||
@@ -749,77 +749,77 @@ static void adv7604_write_reg_seq(struct v4l2_subdev *sd,
|
||||
*/
|
||||
|
||||
static const struct adv7604_format_info adv7604_formats[] = {
|
||||
{ V4L2_MBUS_FMT_RGB888_1X24, ADV7604_OP_CH_SEL_RGB, true, false,
|
||||
{ MEDIA_BUS_FMT_RGB888_1X24, ADV7604_OP_CH_SEL_RGB, true, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_444 | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV8_2X8, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV8_2X8, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU8_2X8, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU8_2X8, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV10_2X10, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV10_2X10, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_10BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU10_2X10, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU10_2X10, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_10BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV12_2X12, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV12_2X12, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU12_2X12, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU12_2X12, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_UYVY8_1X16, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
{ MEDIA_BUS_FMT_UYVY8_1X16, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_VYUY8_1X16, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
{ MEDIA_BUS_FMT_VYUY8_1X16, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV8_1X16, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV8_1X16, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU8_1X16, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU8_1X16, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_UYVY10_1X20, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
{ MEDIA_BUS_FMT_UYVY10_1X20, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_10BIT },
|
||||
{ V4L2_MBUS_FMT_VYUY10_1X20, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
{ MEDIA_BUS_FMT_VYUY10_1X20, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_10BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV10_1X20, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV10_1X20, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_10BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU10_1X20, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU10_1X20, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_10BIT },
|
||||
{ V4L2_MBUS_FMT_UYVY12_1X24, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
{ MEDIA_BUS_FMT_UYVY12_1X24, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_VYUY12_1X24, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
{ MEDIA_BUS_FMT_VYUY12_1X24, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV12_1X24, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV12_1X24, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU12_1X24, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU12_1X24, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
};
|
||||
|
||||
static const struct adv7604_format_info adv7611_formats[] = {
|
||||
{ V4L2_MBUS_FMT_RGB888_1X24, ADV7604_OP_CH_SEL_RGB, true, false,
|
||||
{ MEDIA_BUS_FMT_RGB888_1X24, ADV7604_OP_CH_SEL_RGB, true, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_444 | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV8_2X8, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV8_2X8, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU8_2X8, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU8_2X8, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV12_2X12, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV12_2X12, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU12_2X12, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU12_2X12, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422 | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_UYVY8_1X16, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
{ MEDIA_BUS_FMT_UYVY8_1X16, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_VYUY8_1X16, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
{ MEDIA_BUS_FMT_VYUY8_1X16, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV8_1X16, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV8_1X16, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU8_1X16, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU8_1X16, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_8BIT },
|
||||
{ V4L2_MBUS_FMT_UYVY12_1X24, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
{ MEDIA_BUS_FMT_UYVY12_1X24, ADV7604_OP_CH_SEL_RBG, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_VYUY12_1X24, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
{ MEDIA_BUS_FMT_VYUY12_1X24, ADV7604_OP_CH_SEL_RBG, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_YUYV12_1X24, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
{ MEDIA_BUS_FMT_YUYV12_1X24, ADV7604_OP_CH_SEL_RGB, false, false,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
{ V4L2_MBUS_FMT_YVYU12_1X24, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
{ MEDIA_BUS_FMT_YVYU12_1X24, ADV7604_OP_CH_SEL_RGB, false, true,
|
||||
ADV7604_OP_MODE_SEL_SDR_422_2X | ADV7604_OP_FORMAT_SEL_12BIT },
|
||||
};
|
||||
|
||||
static const struct adv7604_format_info *
|
||||
adv7604_format_info(struct adv7604_state *state, enum v4l2_mbus_pixelcode code)
|
||||
adv7604_format_info(struct adv7604_state *state, u32 code)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
@@ -1917,7 +1917,7 @@ static int adv7604_set_format(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
|
||||
|
||||
info = adv7604_format_info(state, format->format.code);
|
||||
if (info == NULL)
|
||||
info = adv7604_format_info(state, V4L2_MBUS_FMT_YUYV8_2X8);
|
||||
info = adv7604_format_info(state, MEDIA_BUS_FMT_YUYV8_2X8);
|
||||
|
||||
adv7604_fill_format(state, &format->format);
|
||||
format->format.code = info->code;
|
||||
@@ -2806,7 +2806,7 @@ static int adv7604_probe(struct i2c_client *client,
|
||||
}
|
||||
|
||||
state->timings = cea640x480;
|
||||
state->format = adv7604_format_info(state, V4L2_MBUS_FMT_YUYV8_2X8);
|
||||
state->format = adv7604_format_info(state, MEDIA_BUS_FMT_YUYV8_2X8);
|
||||
|
||||
sd = &state->sd;
|
||||
v4l2_i2c_subdev_init(sd, client, &adv7604_ops);
|
||||
|
||||
@@ -1877,12 +1877,12 @@ static int adv7842_s_routing(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int adv7842_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned int index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index)
|
||||
return -EINVAL;
|
||||
/* Good enough for now */
|
||||
*code = V4L2_MBUS_FMT_FIXED;
|
||||
*code = MEDIA_BUS_FMT_FIXED;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1893,7 +1893,7 @@ static int adv7842_g_mbus_fmt(struct v4l2_subdev *sd,
|
||||
|
||||
fmt->width = state->timings.bt.width;
|
||||
fmt->height = state->timings.bt.height;
|
||||
fmt->code = V4L2_MBUS_FMT_FIXED;
|
||||
fmt->code = MEDIA_BUS_FMT_FIXED;
|
||||
fmt->field = V4L2_FIELD_NONE;
|
||||
|
||||
if (state->mode == ADV7842_MODE_SDP) {
|
||||
|
||||
@@ -102,7 +102,7 @@ static int ak881x_try_g_mbus_fmt(struct v4l2_subdev *sd,
|
||||
v4l_bound_align_image(&mf->width, 0, 720, 2,
|
||||
&mf->height, 0, ak881x->lines, 1, 0);
|
||||
mf->field = V4L2_FIELD_INTERLACED;
|
||||
mf->code = V4L2_MBUS_FMT_YUYV8_2X8;
|
||||
mf->code = MEDIA_BUS_FMT_YUYV8_2X8;
|
||||
mf->colorspace = V4L2_COLORSPACE_SMPTE170M;
|
||||
|
||||
return 0;
|
||||
@@ -112,19 +112,19 @@ static int ak881x_s_mbus_fmt(struct v4l2_subdev *sd,
|
||||
struct v4l2_mbus_framefmt *mf)
|
||||
{
|
||||
if (mf->field != V4L2_FIELD_INTERLACED ||
|
||||
mf->code != V4L2_MBUS_FMT_YUYV8_2X8)
|
||||
mf->code != MEDIA_BUS_FMT_YUYV8_2X8)
|
||||
return -EINVAL;
|
||||
|
||||
return ak881x_try_g_mbus_fmt(sd, mf);
|
||||
}
|
||||
|
||||
static int ak881x_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned int index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index)
|
||||
return -EINVAL;
|
||||
|
||||
*code = V4L2_MBUS_FMT_YUYV8_2X8;
|
||||
*code = MEDIA_BUS_FMT_YUYV8_2X8;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1373,7 +1373,7 @@ static int cx25840_s_mbus_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt
|
||||
int HSC, VSC, Vsrc, Hsrc, filter, Vlines;
|
||||
int is_50Hz = !(state->std & V4L2_STD_525_60);
|
||||
|
||||
if (fmt->code != V4L2_MBUS_FMT_FIXED)
|
||||
if (fmt->code != MEDIA_BUS_FMT_FIXED)
|
||||
return -EINVAL;
|
||||
|
||||
fmt->field = V4L2_FIELD_INTERLACED;
|
||||
|
||||
@@ -57,14 +57,14 @@ static struct v4l2_mbus_framefmt m5mols_default_ffmt[M5MOLS_RESTYPE_MAX] = {
|
||||
[M5MOLS_RESTYPE_MONITOR] = {
|
||||
.width = 1920,
|
||||
.height = 1080,
|
||||
.code = V4L2_MBUS_FMT_VYUY8_2X8,
|
||||
.code = MEDIA_BUS_FMT_VYUY8_2X8,
|
||||
.field = V4L2_FIELD_NONE,
|
||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||
},
|
||||
[M5MOLS_RESTYPE_CAPTURE] = {
|
||||
.width = 1920,
|
||||
.height = 1080,
|
||||
.code = V4L2_MBUS_FMT_JPEG_1X8,
|
||||
.code = MEDIA_BUS_FMT_JPEG_1X8,
|
||||
.field = V4L2_FIELD_NONE,
|
||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||
},
|
||||
@@ -479,7 +479,7 @@ static int m5mols_get_version(struct v4l2_subdev *sd)
|
||||
* __find_restype - Lookup M-5MOLS resolution type according to pixel code
|
||||
* @code: pixel code
|
||||
*/
|
||||
static enum m5mols_restype __find_restype(enum v4l2_mbus_pixelcode code)
|
||||
static enum m5mols_restype __find_restype(u32 code)
|
||||
{
|
||||
enum m5mols_restype type = M5MOLS_RESTYPE_MONITOR;
|
||||
|
||||
|
||||
@@ -192,12 +192,12 @@ static int ml86v7667_g_input_status(struct v4l2_subdev *sd, u32 *status)
|
||||
}
|
||||
|
||||
static int ml86v7667_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned int index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index > 0)
|
||||
return -EINVAL;
|
||||
|
||||
*code = V4L2_MBUS_FMT_YUYV8_2X8;
|
||||
*code = MEDIA_BUS_FMT_YUYV8_2X8;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -207,7 +207,7 @@ static int ml86v7667_mbus_fmt(struct v4l2_subdev *sd,
|
||||
{
|
||||
struct ml86v7667_priv *priv = to_ml86v7667(sd);
|
||||
|
||||
fmt->code = V4L2_MBUS_FMT_YUYV8_2X8;
|
||||
fmt->code = MEDIA_BUS_FMT_YUYV8_2X8;
|
||||
fmt->colorspace = V4L2_COLORSPACE_SMPTE170M;
|
||||
/* The top field is always transferred first by the chip */
|
||||
fmt->field = V4L2_FIELD_INTERLACED_TB;
|
||||
|
||||
@@ -323,7 +323,7 @@ static int mt9m032_enum_mbus_code(struct v4l2_subdev *subdev,
|
||||
if (code->index != 0)
|
||||
return -EINVAL;
|
||||
|
||||
code->code = V4L2_MBUS_FMT_Y8_1X8;
|
||||
code->code = MEDIA_BUS_FMT_Y8_1X8;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ static int mt9m032_enum_frame_size(struct v4l2_subdev *subdev,
|
||||
struct v4l2_subdev_fh *fh,
|
||||
struct v4l2_subdev_frame_size_enum *fse)
|
||||
{
|
||||
if (fse->index != 0 || fse->code != V4L2_MBUS_FMT_Y8_1X8)
|
||||
if (fse->index != 0 || fse->code != MEDIA_BUS_FMT_Y8_1X8)
|
||||
return -EINVAL;
|
||||
|
||||
fse->min_width = MT9M032_COLUMN_SIZE_DEF;
|
||||
@@ -759,7 +759,7 @@ static int mt9m032_probe(struct i2c_client *client,
|
||||
|
||||
sensor->format.width = sensor->crop.width;
|
||||
sensor->format.height = sensor->crop.height;
|
||||
sensor->format.code = V4L2_MBUS_FMT_Y8_1X8;
|
||||
sensor->format.code = MEDIA_BUS_FMT_Y8_1X8;
|
||||
sensor->format.field = V4L2_FIELD_NONE;
|
||||
sensor->format.colorspace = V4L2_COLORSPACE_SRGB;
|
||||
|
||||
|
||||
@@ -950,9 +950,9 @@ static int mt9p031_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh)
|
||||
format = v4l2_subdev_get_try_format(fh, 0);
|
||||
|
||||
if (mt9p031->model == MT9P031_MODEL_MONOCHROME)
|
||||
format->code = V4L2_MBUS_FMT_Y12_1X12;
|
||||
format->code = MEDIA_BUS_FMT_Y12_1X12;
|
||||
else
|
||||
format->code = V4L2_MBUS_FMT_SGRBG12_1X12;
|
||||
format->code = MEDIA_BUS_FMT_SGRBG12_1X12;
|
||||
|
||||
format->width = MT9P031_WINDOW_WIDTH_DEF;
|
||||
format->height = MT9P031_WINDOW_HEIGHT_DEF;
|
||||
@@ -1120,9 +1120,9 @@ static int mt9p031_probe(struct i2c_client *client,
|
||||
mt9p031->crop.top = MT9P031_ROW_START_DEF;
|
||||
|
||||
if (mt9p031->model == MT9P031_MODEL_MONOCHROME)
|
||||
mt9p031->format.code = V4L2_MBUS_FMT_Y12_1X12;
|
||||
mt9p031->format.code = MEDIA_BUS_FMT_Y12_1X12;
|
||||
else
|
||||
mt9p031->format.code = V4L2_MBUS_FMT_SGRBG12_1X12;
|
||||
mt9p031->format.code = MEDIA_BUS_FMT_SGRBG12_1X12;
|
||||
|
||||
mt9p031->format.width = MT9P031_WINDOW_WIDTH_DEF;
|
||||
mt9p031->format.height = MT9P031_WINDOW_HEIGHT_DEF;
|
||||
|
||||
@@ -333,7 +333,7 @@ static int mt9t001_enum_mbus_code(struct v4l2_subdev *subdev,
|
||||
if (code->index > 0)
|
||||
return -EINVAL;
|
||||
|
||||
code->code = V4L2_MBUS_FMT_SGRBG10_1X10;
|
||||
code->code = MEDIA_BUS_FMT_SGRBG10_1X10;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -341,7 +341,7 @@ static int mt9t001_enum_frame_size(struct v4l2_subdev *subdev,
|
||||
struct v4l2_subdev_fh *fh,
|
||||
struct v4l2_subdev_frame_size_enum *fse)
|
||||
{
|
||||
if (fse->index >= 8 || fse->code != V4L2_MBUS_FMT_SGRBG10_1X10)
|
||||
if (fse->index >= 8 || fse->code != MEDIA_BUS_FMT_SGRBG10_1X10)
|
||||
return -EINVAL;
|
||||
|
||||
fse->min_width = (MT9T001_WINDOW_WIDTH_DEF + 1) / fse->index;
|
||||
@@ -792,7 +792,7 @@ static int mt9t001_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh)
|
||||
crop->height = MT9T001_WINDOW_HEIGHT_DEF + 1;
|
||||
|
||||
format = v4l2_subdev_get_try_format(fh, 0);
|
||||
format->code = V4L2_MBUS_FMT_SGRBG10_1X10;
|
||||
format->code = MEDIA_BUS_FMT_SGRBG10_1X10;
|
||||
format->width = MT9T001_WINDOW_WIDTH_DEF + 1;
|
||||
format->height = MT9T001_WINDOW_HEIGHT_DEF + 1;
|
||||
format->field = V4L2_FIELD_NONE;
|
||||
@@ -917,7 +917,7 @@ static int mt9t001_probe(struct i2c_client *client,
|
||||
mt9t001->crop.width = MT9T001_WINDOW_WIDTH_DEF + 1;
|
||||
mt9t001->crop.height = MT9T001_WINDOW_HEIGHT_DEF + 1;
|
||||
|
||||
mt9t001->format.code = V4L2_MBUS_FMT_SGRBG10_1X10;
|
||||
mt9t001->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
|
||||
mt9t001->format.width = MT9T001_WINDOW_WIDTH_DEF + 1;
|
||||
mt9t001->format.height = MT9T001_WINDOW_HEIGHT_DEF + 1;
|
||||
mt9t001->format.field = V4L2_FIELD_NONE;
|
||||
|
||||
@@ -325,18 +325,18 @@ static int mt9v011_reset(struct v4l2_subdev *sd, u32 val)
|
||||
}
|
||||
|
||||
static int mt9v011_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index > 0)
|
||||
return -EINVAL;
|
||||
|
||||
*code = V4L2_MBUS_FMT_SGRBG8_1X8;
|
||||
*code = MEDIA_BUS_FMT_SGRBG8_1X8;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mt9v011_try_mbus_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *fmt)
|
||||
{
|
||||
if (fmt->code != V4L2_MBUS_FMT_SGRBG8_1X8)
|
||||
if (fmt->code != MEDIA_BUS_FMT_SGRBG8_1X8)
|
||||
return -EINVAL;
|
||||
|
||||
v4l_bound_align_image(&fmt->width, 48, 639, 1,
|
||||
|
||||
@@ -454,7 +454,7 @@ static int mt9v032_enum_mbus_code(struct v4l2_subdev *subdev,
|
||||
if (code->index > 0)
|
||||
return -EINVAL;
|
||||
|
||||
code->code = V4L2_MBUS_FMT_SGRBG10_1X10;
|
||||
code->code = MEDIA_BUS_FMT_SGRBG10_1X10;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -462,7 +462,7 @@ static int mt9v032_enum_frame_size(struct v4l2_subdev *subdev,
|
||||
struct v4l2_subdev_fh *fh,
|
||||
struct v4l2_subdev_frame_size_enum *fse)
|
||||
{
|
||||
if (fse->index >= 3 || fse->code != V4L2_MBUS_FMT_SGRBG10_1X10)
|
||||
if (fse->index >= 3 || fse->code != MEDIA_BUS_FMT_SGRBG10_1X10)
|
||||
return -EINVAL;
|
||||
|
||||
fse->min_width = MT9V032_WINDOW_WIDTH_DEF / (1 << fse->index);
|
||||
@@ -814,9 +814,9 @@ static int mt9v032_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh)
|
||||
format = v4l2_subdev_get_try_format(fh, 0);
|
||||
|
||||
if (mt9v032->model->color)
|
||||
format->code = V4L2_MBUS_FMT_SGRBG10_1X10;
|
||||
format->code = MEDIA_BUS_FMT_SGRBG10_1X10;
|
||||
else
|
||||
format->code = V4L2_MBUS_FMT_Y10_1X10;
|
||||
format->code = MEDIA_BUS_FMT_Y10_1X10;
|
||||
|
||||
format->width = MT9V032_WINDOW_WIDTH_DEF;
|
||||
format->height = MT9V032_WINDOW_HEIGHT_DEF;
|
||||
@@ -966,9 +966,9 @@ static int mt9v032_probe(struct i2c_client *client,
|
||||
mt9v032->crop.height = MT9V032_WINDOW_HEIGHT_DEF;
|
||||
|
||||
if (mt9v032->model->color)
|
||||
mt9v032->format.code = V4L2_MBUS_FMT_SGRBG10_1X10;
|
||||
mt9v032->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
|
||||
else
|
||||
mt9v032->format.code = V4L2_MBUS_FMT_Y10_1X10;
|
||||
mt9v032->format.code = MEDIA_BUS_FMT_Y10_1X10;
|
||||
|
||||
mt9v032->format.width = MT9V032_WINDOW_WIDTH_DEF;
|
||||
mt9v032->format.height = MT9V032_WINDOW_HEIGHT_DEF;
|
||||
|
||||
@@ -112,7 +112,7 @@ MODULE_PARM_DESC(debug, "Enable module debug trace. Set to 1 to enable.");
|
||||
#define REG_TERM 0xFFFF
|
||||
|
||||
struct noon010_format {
|
||||
enum v4l2_mbus_pixelcode code;
|
||||
u32 code;
|
||||
enum v4l2_colorspace colorspace;
|
||||
u16 ispctl1_reg;
|
||||
};
|
||||
@@ -175,23 +175,23 @@ static const struct noon010_frmsize noon010_sizes[] = {
|
||||
/* Supported pixel formats. */
|
||||
static const struct noon010_format noon010_formats[] = {
|
||||
{
|
||||
.code = V4L2_MBUS_FMT_YUYV8_2X8,
|
||||
.code = MEDIA_BUS_FMT_YUYV8_2X8,
|
||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||
.ispctl1_reg = 0x03,
|
||||
}, {
|
||||
.code = V4L2_MBUS_FMT_YVYU8_2X8,
|
||||
.code = MEDIA_BUS_FMT_YVYU8_2X8,
|
||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||
.ispctl1_reg = 0x02,
|
||||
}, {
|
||||
.code = V4L2_MBUS_FMT_VYUY8_2X8,
|
||||
.code = MEDIA_BUS_FMT_VYUY8_2X8,
|
||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||
.ispctl1_reg = 0,
|
||||
}, {
|
||||
.code = V4L2_MBUS_FMT_UYVY8_2X8,
|
||||
.code = MEDIA_BUS_FMT_UYVY8_2X8,
|
||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||
.ispctl1_reg = 0x01,
|
||||
}, {
|
||||
.code = V4L2_MBUS_FMT_RGB565_2X8_BE,
|
||||
.code = MEDIA_BUS_FMT_RGB565_2X8_BE,
|
||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||
.ispctl1_reg = 0x40,
|
||||
},
|
||||
|
||||
@@ -632,31 +632,31 @@ static int ov7670_detect(struct v4l2_subdev *sd)
|
||||
* The magic matrix numbers come from OmniVision.
|
||||
*/
|
||||
static struct ov7670_format_struct {
|
||||
enum v4l2_mbus_pixelcode mbus_code;
|
||||
u32 mbus_code;
|
||||
enum v4l2_colorspace colorspace;
|
||||
struct regval_list *regs;
|
||||
int cmatrix[CMATRIX_LEN];
|
||||
} ov7670_formats[] = {
|
||||
{
|
||||
.mbus_code = V4L2_MBUS_FMT_YUYV8_2X8,
|
||||
.mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
|
||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||
.regs = ov7670_fmt_yuv422,
|
||||
.cmatrix = { 128, -128, 0, -34, -94, 128 },
|
||||
},
|
||||
{
|
||||
.mbus_code = V4L2_MBUS_FMT_RGB444_2X8_PADHI_LE,
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE,
|
||||
.colorspace = V4L2_COLORSPACE_SRGB,
|
||||
.regs = ov7670_fmt_rgb444,
|
||||
.cmatrix = { 179, -179, 0, -61, -176, 228 },
|
||||
},
|
||||
{
|
||||
.mbus_code = V4L2_MBUS_FMT_RGB565_2X8_LE,
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE,
|
||||
.colorspace = V4L2_COLORSPACE_SRGB,
|
||||
.regs = ov7670_fmt_rgb565,
|
||||
.cmatrix = { 179, -179, 0, -61, -176, 228 },
|
||||
},
|
||||
{
|
||||
.mbus_code = V4L2_MBUS_FMT_SBGGR8_1X8,
|
||||
.mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
|
||||
.colorspace = V4L2_COLORSPACE_SRGB,
|
||||
.regs = ov7670_fmt_raw,
|
||||
.cmatrix = { 0, 0, 0, 0, 0, 0 },
|
||||
@@ -772,7 +772,7 @@ static void ov7675_get_framerate(struct v4l2_subdev *sd,
|
||||
pll_factor = PLL_FACTOR;
|
||||
|
||||
clkrc++;
|
||||
if (info->fmt->mbus_code == V4L2_MBUS_FMT_SBGGR8_1X8)
|
||||
if (info->fmt->mbus_code == MEDIA_BUS_FMT_SBGGR8_1X8)
|
||||
clkrc = (clkrc >> 1);
|
||||
|
||||
tpf->numerator = 1;
|
||||
@@ -810,7 +810,7 @@ static int ov7675_set_framerate(struct v4l2_subdev *sd,
|
||||
} else {
|
||||
clkrc = (5 * pll_factor * info->clock_speed * tpf->numerator) /
|
||||
(4 * tpf->denominator);
|
||||
if (info->fmt->mbus_code == V4L2_MBUS_FMT_SBGGR8_1X8)
|
||||
if (info->fmt->mbus_code == MEDIA_BUS_FMT_SBGGR8_1X8)
|
||||
clkrc = (clkrc << 1);
|
||||
clkrc--;
|
||||
}
|
||||
@@ -900,7 +900,7 @@ static int ov7670_set_hw(struct v4l2_subdev *sd, int hstart, int hstop,
|
||||
|
||||
|
||||
static int ov7670_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index >= N_OV7670_FMTS)
|
||||
return -EINVAL;
|
||||
|
||||
@@ -384,17 +384,17 @@ static const struct ov965x_framesize ov965x_framesizes[] = {
|
||||
};
|
||||
|
||||
struct ov965x_pixfmt {
|
||||
enum v4l2_mbus_pixelcode code;
|
||||
u32 code;
|
||||
u32 colorspace;
|
||||
/* REG_TSLB value, only bits [3:2] may be set. */
|
||||
u8 tslb_reg;
|
||||
};
|
||||
|
||||
static const struct ov965x_pixfmt ov965x_formats[] = {
|
||||
{ V4L2_MBUS_FMT_YUYV8_2X8, V4L2_COLORSPACE_JPEG, 0x00},
|
||||
{ V4L2_MBUS_FMT_YVYU8_2X8, V4L2_COLORSPACE_JPEG, 0x04},
|
||||
{ V4L2_MBUS_FMT_UYVY8_2X8, V4L2_COLORSPACE_JPEG, 0x0c},
|
||||
{ V4L2_MBUS_FMT_VYUY8_2X8, V4L2_COLORSPACE_JPEG, 0x08},
|
||||
{ MEDIA_BUS_FMT_YUYV8_2X8, V4L2_COLORSPACE_JPEG, 0x00},
|
||||
{ MEDIA_BUS_FMT_YVYU8_2X8, V4L2_COLORSPACE_JPEG, 0x04},
|
||||
{ MEDIA_BUS_FMT_UYVY8_2X8, V4L2_COLORSPACE_JPEG, 0x0c},
|
||||
{ MEDIA_BUS_FMT_VYUY8_2X8, V4L2_COLORSPACE_JPEG, 0x08},
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
|
||||
#define DRIVER_NAME "S5C73M3"
|
||||
|
||||
#define S5C73M3_ISP_FMT V4L2_MBUS_FMT_VYUY8_2X8
|
||||
#define S5C73M3_JPEG_FMT V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8
|
||||
#define S5C73M3_ISP_FMT MEDIA_BUS_FMT_VYUY8_2X8
|
||||
#define S5C73M3_JPEG_FMT MEDIA_BUS_FMT_S5C_UYVY_JPEG_1X8
|
||||
|
||||
/* Subdevs pad index definitions */
|
||||
enum s5c73m3_pads {
|
||||
@@ -402,7 +402,7 @@ struct s5c73m3 {
|
||||
|
||||
const struct s5c73m3_frame_size *sensor_pix_size[2];
|
||||
const struct s5c73m3_frame_size *oif_pix_size[2];
|
||||
enum v4l2_mbus_pixelcode mbus_code;
|
||||
u32 mbus_code;
|
||||
|
||||
const struct s5c73m3_interval *fiv;
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ static const struct s5k4ecgx_frmsize s5k4ecgx_prev_sizes[] = {
|
||||
#define S5K4ECGX_NUM_PREV ARRAY_SIZE(s5k4ecgx_prev_sizes)
|
||||
|
||||
struct s5k4ecgx_pixfmt {
|
||||
enum v4l2_mbus_pixelcode code;
|
||||
u32 code;
|
||||
u32 colorspace;
|
||||
/* REG_TC_PCFG_Format register value */
|
||||
u16 reg_p_format;
|
||||
@@ -159,7 +159,7 @@ struct s5k4ecgx_pixfmt {
|
||||
|
||||
/* By default value, output from sensor will be YUV422 0-255 */
|
||||
static const struct s5k4ecgx_pixfmt s5k4ecgx_formats[] = {
|
||||
{ V4L2_MBUS_FMT_YUYV8_2X8, V4L2_COLORSPACE_JPEG, 5 },
|
||||
{ MEDIA_BUS_FMT_YUYV8_2X8, V4L2_COLORSPACE_JPEG, 5 },
|
||||
};
|
||||
|
||||
static const char * const s5k4ecgx_supply_names[] = {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user