📄 evm5509_aic23_closecodec.c
字号:
/*
* Copyright 2004 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evm5509_aic23_closeCodec.c ========
* EVM5509_AIC23_closeCodec() implementation
*/
#include <evm5509.h>
#include <evm5509_aic23.h>
/*
* ======== EVM5509_AIC23_closeCodec ========
* Close the codec
*/
void EVM5509_AIC23_closeCodec(EVM5509_AIC23_CodecHandle hCodec)
{
/* Disable codec data path */
EVM5509_rset(EVM5509_MISC, EVM5509_rget(EVM5509_MISC) & 0xfe);
/* Put codec in slave mode to stop driving outputs */
EVM5509_AIC23_rset(hCodec, EVM5509_AIC23_DIGIF, EVM5509_AIC23_rget(hCodec, EVM5509_AIC23_DIGIF) & 0xbf);
/* Turn the codec off */
EVM5509_AIC23_rset(hCodec, EVM5509_AIC23_POWERDOWN, 0xff);
/* Close data channel */
MCBSP_close(EVM5509_AIC23_DATAHANDLE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -