1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-04-17 00:15:25 +00:00

it6613: dump registers according to SW1

This commit is contained in:
Gyorgy Szombathelyi
2024-09-21 17:19:35 +02:00
parent c1560a4c7c
commit 64e10e0a29
5 changed files with 7 additions and 12 deletions

View File

@@ -42,3 +42,7 @@ void DelayMS(unsigned int ms)
{
WaitTimer(ms);
}
char HDMITX_isdebug() {
return user_io_dip_switch1();
}

View File

@@ -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
//////////////////////////////////////////////////////////////////////
@@ -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 ;
}

View File

@@ -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_

View File

@@ -103,7 +103,7 @@ HDMITX_SetOutput()
}
}
SetAVMute(FALSE) ;
DumpCatHDMITXReg();
if (HDMITX_isdebug()) DumpCatHDMITXReg();
bChangeMode = FALSE ;
}

View File

@@ -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