www.pudn.com > 6027_HD65.rar
To Read all the content
[file head]:
/**********************************************************************/
/*************** MTK CONFIDENTIAL &amt; COPYRIGHTED ****************/
/*************** ****************/
/*************** $Modtime:: 04/07/22 4:13p $ ****************/
/*************** $Revision:: 12 $ ****************/
/*************** ****************/
/*************** Description : Audio Control ****************/
/*************** Interface Module ****************/
/*************** ****************/
/*************** Company : MediaTek Inc. ****************/
/*************** Programmer : ****************/
/**********************************************************************/
#define _AUD_CTRL_C_
#pragma NOAREGS
#include "general.h"
#include "../../procdef.h"
#include "..\..
... ...
[file tail]:
... ...
dDspSharedBInfo(B_KSCORE_SCORE);
bKScore = bHEXToBCD(bTmpScore);
return (bKScore);
}
BOOL fgAdspKscoreSupport(void) large
{
// It indicates no credible reference channel existing that score is lower than "(SCORE_MAX-SCORE_MIN)/2+SCORE_MIN".
BYTE bKSScore,bKSMax,bKSMin;
bKSScore=bReadDspSharedBInfo(B_KSCORE_SCORE);
bKSMax=bReadDspSharedBInfo(B_KSCORE_MAX);
bKSMin=bReadDspSharedBInfo(B_KSCORE_MIN);
return(bKSScore>((bKSMax-bKSMin)>>1)+bKSMin);
}
#ifdef KARAOKE_SCORE_TEST
void vAdspGetKSHitMiss(WORD *wHit0,WORD *wHit1, WORD *wMiss) large
{
*wHit0 = wReadDspSharedWInfo(W_KSCORE_HIT0);
*wHit1 = wReadDspSharedWInfo(W_KSCORE_HIT1);
*wMiss = wReadDspSharedWInfo(W_KSCORE_MISS);
}
#endif
void vAdspResetKScore(void) large
{
if (!(bReadDspSharedBInfo(B_KSCORECONFIG) &amt; DSP_KSCORE_ON))
return;
vWriteDspSharedBInfo(B_KSCORECONFIG, DSP_KSCORE_ON | DSP_KSCORE_RESET);
vNotifyDspSharedInfo(UOP_DSP_KARAOKE_SCORING);
}
#endif