Set Input and Output.
4823 const enum vip_cntrl_swap *swap = NULL;
4833 desc = get_vidfmt_desc(vidout_cfg->
format);
4835 return ERR_NOT_FOUND;
4842 return ERR_BAD_PARAM;
4850 dev->vin_cfg = vidin_cfg;
4851 dev->vout_cfg = vidout_cfg;
4868 sp_sync = SPSYNC_HEMB;
4875 sp_sync = SPSYNC_RISING_DE;
4880 switch(vidin_cfg->
mode) {
4889 swap = port_map_rgb444;
4890 mirr = mirr_map_rgb444;
4904 return ERR_BAD_PARAM;
4925 ret = tda998x_vidin_set_config(dev,
4936 ret = tda998x_video_set_inout(dev,
4958 switch (vidin_cfg->
format) {
4986 TBG_CNTRL_0_SYNC_MTHD,
4987 (uint8_t) sync_mthd);
4994 VIP_CNTRL_3_V_TGL | VIP_CNTRL_3_H_TGL | VIP_CNTRL_3_X_TGL,
4999 if (desc->reg_fmt >= VIDFORMAT_800x600p_60Hz) {
5000 set_video_config(dev, &vidformat_pc[desc->reg_fmt - VIDFORMAT_800x600p_60Hz]);
5003 ref_pix = desc->hfp + 2;
5004 ref_line = desc->vfp;
5006 if ((ref_pix >= REFPIX_MIN) &&
5007 (ref_pix <= REFPIX_MAX)) {
5013 if ((ref_line >= REFLINE_MIN) &&
5014 (ref_line <= REFLINE_MAX)) {
#define PIXREP_DEFAULT
Definition: tda998x.c:363
Definition: tda998x.h:168
enum tda998x_vid_fmt format
Definition: tda998x.h:272
vip_cntrl_3_sp_sync
Video Input Port Control Subpacket Synchronization Enumeration.
Definition: tda998x.c:268
Definition: tda998x.h:154
Definition: tda998x.c:501
Definition: tda998x.h:158
Definition: tda998x.c:289
Definition: tda998x.c:647
static int set_video_config(struct tda998x_dev *dev, struct tda998x_vid_frm *vid)
Set Video Configuration.
Definition: tda998x.c:1699
Definition: tda998x.c:447
static int tda998x_vidout_set_config(struct tda998x_dev *dev, enum tda998x_sink sink, enum tda998x_vidout_mode vout_mode, enum hvf_cntrl_0_prefil prefil, enum hvf_cntrl_1_yuv_blk yuv_blk, enum hvf_cntrl_1_vqr vqr)
Set Video Output Configuration.
Definition: tda998x.c:3366
Definition: tda998x.c:351
enum tda998x_vqr vqr
Definition: tda998x.h:294
enum tda998x_vidin_mode mode
Definition: tda998x.h:273
static int tda998x_set_tmds_output(struct tda998x_dev *dev, enum buffer_out_srl_force tmds)
Set TMDS Output.
Definition: tda998x.c:2952
Definition: tda998x.h:202
vip_cntrl_3_edge
Definition: tda998x.c:277
enum tda998x_vidout_mode mode
Definition: tda998x.h:292
static int write_reg_mask(struct tda998x_dev *dev, enum tda998x_hdmi_reg reg, uint8_t mask, uint8_t val)
Register Mask Write Write a value with mask bits to a register.
Definition: tda998x.c:1371
Definition: tda998x.c:932
enum tda998x_vid_fmt format
Definition: tda998x.h:291
tbg_cntrl_0_sync_mthd
Definition: tda998x.c:499
Definition: tda998x.c:303
vip_cntrl_mirr
Definition: tda998x.c:249
Definition: tda998x.c:437
static int write_reg16(struct tda998x_dev *dev, enum tda998x_hdmi_reg reg, uint16_t data)
Write 16-bit Register.
Definition: tda998x.c:1299
Definition: tda998x.c:1121
tda998x_dwidth
Definition: tda998x.h:201
tda998x_pix_tgl
Definition: tda998x.h:157
Definition: tda998x.c:300
Definition: tda998x.h:103
Definition: tda998x.h:108
enum tda998x_sync_src sync_src
Definition: tda998x.h:274
enum tda998x_pix_rate pix_rate
Definition: tda998x.h:275
Definition: tda998x.h:135
enum tda998x_format_3d format_3d
Definition: tda998x.h:276
Definition: tda998x.c:903
Definition: tda998x.h:129
Definition: tda998x.h:159
static int tda998x_vidout_set_sync(struct tda998x_dev *dev, bool h_ext, bool v_ext, bool de_ext, uint8_t tgl, enum tbg_cntrl_0_sync sync)
Set Video Output Synchronization.
Definition: tda998x.c:3454
Definition: tda998x.h:111
int tda998x_aud_set_input(struct tda998x_dev *dev, struct tda998x_audin_cfg *audin_cfg)
Definition: tda998x.c:2465
vip_cntrl_4_blnkit
Video Input Port Control Blanking Source Enumeration.
Definition: tda998x.c:299
Definition: tda998x.h:104
Definition: tda998x.h:177
Definition: tda998x.c:898