Skip to content

Commit

Permalink
it6613: dump registers according to SW1
Browse files Browse the repository at this point in the history
  • Loading branch information
gyurco committed Sep 21, 2024
1 parent c1560a4 commit 64e10e0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
4 changes: 4 additions & 0 deletions it6613/hdmitx_mist.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ void DelayMS(unsigned int ms)
{
WaitTimer(ms);
}

char HDMITX_isdebug() {
return user_io_dip_switch1();
}
9 changes: 0 additions & 9 deletions it6613/it6613_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ static void DISABLE_SPD_INFOFRM_PKT() ;
static void DISABLE_MPG_INFOFRM_PKT() ;
static BYTE countbit(BYTE b) ;

#ifdef HDMITX_REG_DEBUG
static void DumpCatHDMITXReg() ;
#endif // DEBUG





//////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -516,9 +510,6 @@ BOOL EnableAudioOutput(ULONG VideoPixelClock,BYTE bAudioSampleFreq,BYTE ChannelN
//HDMITX_AndREG_Byte(REG_TX_SW_RST,~(B_AUD_RST|B_AREF_RST)) ;
SetAudioFormat(ChannelNumber,bAudioChannelEnable,bAudioSampleFreq,bAudSWL,bSPDIF) ;

#ifdef HDMITX_REG_DEBUG
DumpCatHDMITXReg() ;
#endif // HDMITX_REG_DEBUG
return TRUE ;
}

Expand Down
2 changes: 2 additions & 0 deletions it6613/it6613_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -849,4 +849,6 @@ SYS_STATUS HDMITX_WriteI2C_Byte(BYTE RegAddr,BYTE val);
SYS_STATUS HDMITX_ReadI2C_ByteN(BYTE RegAddr,BYTE *pData,int N);
SYS_STATUS HDMITX_WriteI2C_ByteN(BYTE RegAddr,BYTE *pData,int N);

char HDMITX_isdebug();

#endif // _IT6613_H_
2 changes: 1 addition & 1 deletion it6613/it6613_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ HDMITX_SetOutput()
}
}
SetAVMute(FALSE) ;
DumpCatHDMITXReg();
if (HDMITX_isdebug()) DumpCatHDMITXReg();
bChangeMode = FALSE ;
}

Expand Down
2 changes: 0 additions & 2 deletions it6613/sysconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include "utils.h"
#include "debug.h"

//#define HDMITX_REG_DEBUG

#define OS_PRINTF iprintf
#define ErrorF hdmi_debugf
#define printf iprintf
Expand Down

0 comments on commit 64e10e0

Please sign in to comment.