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] dm644x: replace the obsolete preset API by the timings API
This patch replaces the preset API by the timings API, and appropriate changes in board file. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com> Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com> Acked-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
182b967e11
commit
368640827c
@@ -35,7 +35,7 @@ struct osd_config_info {
|
||||
struct vpbe_output {
|
||||
struct v4l2_output output;
|
||||
/*
|
||||
* If output capabilities include dv_preset, list supported presets
|
||||
* If output capabilities include dv_timings, list supported timings
|
||||
* below
|
||||
*/
|
||||
char *subdev_name;
|
||||
@@ -120,16 +120,16 @@ struct vpbe_device_ops {
|
||||
unsigned int (*get_output)(struct vpbe_device *vpbe_dev);
|
||||
|
||||
/* Set DV preset at current output */
|
||||
int (*s_dv_preset)(struct vpbe_device *vpbe_dev,
|
||||
struct v4l2_dv_preset *dv_preset);
|
||||
int (*s_dv_timings)(struct vpbe_device *vpbe_dev,
|
||||
struct v4l2_dv_timings *dv_timings);
|
||||
|
||||
/* Get DV presets supported at the output */
|
||||
int (*g_dv_preset)(struct vpbe_device *vpbe_dev,
|
||||
struct v4l2_dv_preset *dv_preset);
|
||||
int (*g_dv_timings)(struct vpbe_device *vpbe_dev,
|
||||
struct v4l2_dv_timings *dv_timings);
|
||||
|
||||
/* Enumerate the DV Presets supported at the output */
|
||||
int (*enum_dv_presets)(struct vpbe_device *vpbe_dev,
|
||||
struct v4l2_dv_enum_preset *preset_info);
|
||||
int (*enum_dv_timings)(struct vpbe_device *vpbe_dev,
|
||||
struct v4l2_enum_dv_timings *timings_info);
|
||||
|
||||
/* Set std at the output */
|
||||
int (*s_std)(struct vpbe_device *vpbe_dev, v4l2_std_id *std_id);
|
||||
|
||||
@@ -32,11 +32,6 @@ enum vpbe_enc_timings_type {
|
||||
VPBE_ENC_TIMINGS_INVALID = 0x8,
|
||||
};
|
||||
|
||||
union vpbe_timings {
|
||||
v4l2_std_id std_id;
|
||||
unsigned int dv_preset;
|
||||
};
|
||||
|
||||
/*
|
||||
* struct vpbe_enc_mode_info
|
||||
* @name: ptr to name string of the standard, "NTSC", "PAL" etc
|
||||
@@ -73,7 +68,8 @@ union vpbe_timings {
|
||||
struct vpbe_enc_mode_info {
|
||||
unsigned char *name;
|
||||
enum vpbe_enc_timings_type timings_type;
|
||||
union vpbe_timings timings;
|
||||
v4l2_std_id std_id;
|
||||
struct v4l2_dv_timings dv_timings;
|
||||
unsigned int interlaced;
|
||||
unsigned int xres;
|
||||
unsigned int yres;
|
||||
|
||||
@@ -32,7 +32,7 @@ struct venc_platform_data {
|
||||
int (*setup_pinmux)(enum v4l2_mbus_pixelcode if_type,
|
||||
int field);
|
||||
int (*setup_clock)(enum vpbe_enc_timings_type type,
|
||||
unsigned int mode);
|
||||
unsigned int pixclock);
|
||||
int (*setup_if_config)(enum v4l2_mbus_pixelcode pixcode);
|
||||
/* Number of LCD outputs supported */
|
||||
int num_lcd_outputs;
|
||||
|
||||
Reference in New Issue
Block a user