mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
hdmirx: do not use vcbus mute unless game [1/1]
PD#SWPL-170597 Problem: screen split when signal change. Solution: do not use vcbus mute unless game. Verify: t3x Change-Id: I8586dd44c8b7d3b56d1f59dc46c629eabb93e5d5 Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
01cc3bcfbe
commit
876eac68ea
@@ -5972,7 +5972,8 @@ void rx_mute_t3x(bool en, u8 port_type)
|
||||
if (en) {
|
||||
if (port_type == TVIN_PORT_MAIN) {
|
||||
rx_mute_dual_video_rdma(E_RX_MUTE, E_RX_NA);
|
||||
rx_mute_dual_video_vcbus(E_RX_MUTE, E_RX_NA);
|
||||
if (tvin_get_game_mode_status(port_type))
|
||||
rx_mute_dual_video_vcbus(E_RX_MUTE, E_RX_NA);
|
||||
rx_pr("main port mute\n");
|
||||
} else if (port_type == TVIN_PORT_SUB) {
|
||||
rx_mute_dual_video_rdma(E_RX_NA, E_RX_MUTE);
|
||||
@@ -5980,6 +5981,8 @@ void rx_mute_t3x(bool en, u8 port_type)
|
||||
rx_pr("sub port mute\n");
|
||||
} else {
|
||||
rx_mute_dual_video_rdma(E_RX_NA, E_RX_NA);
|
||||
if (tvin_get_game_mode_status(port_type))
|
||||
rx_mute_dual_video_vcbus(E_RX_MUTE, E_RX_NA);
|
||||
rx_mute_dual_video_vcbus(E_RX_NA, E_RX_NA);
|
||||
rx_pr("Na\n");
|
||||
}
|
||||
|
||||
@@ -111,6 +111,7 @@ struct tvin_state_machine_ops_s *tvin_get_sm_ops(enum tvin_port_e port,
|
||||
int index);
|
||||
void tvin_notify_vdin_skip_frame(unsigned int drop_num, enum tvin_port_type_e port_type);
|
||||
void tvin_update_vdin_prop(u8 port_type);
|
||||
bool tvin_get_game_mode_status(u8 port_type);
|
||||
void viuin_select_loopback_path(void);
|
||||
void viuin_clear_loopback_path(void);
|
||||
void dsc_dec_en(bool on_off, struct dsc_pps_data_s *pps_data);
|
||||
|
||||
@@ -333,6 +333,20 @@ void tvin_notify_vdin_skip_frame(unsigned int drop_num, enum tvin_port_type_e po
|
||||
}
|
||||
EXPORT_SYMBOL(tvin_notify_vdin_skip_frame);
|
||||
|
||||
bool tvin_get_game_mode_status(u8 port_type)
|
||||
{
|
||||
struct vdin_dev_s *devp = port_type ? vdin_devp[1] : vdin_devp[0];
|
||||
|
||||
if (!devp)
|
||||
return false;
|
||||
|
||||
if (devp->game_mode)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
EXPORT_SYMBOL(tvin_get_game_mode_status);
|
||||
|
||||
/*
|
||||
* 1. find the corresponding frontend according to the port & save it.
|
||||
* 2. set default register, including:
|
||||
|
||||
Reference in New Issue
Block a user