📄 evm5509_aic23_outgain.c
字号:
/*
* Copyright 2004 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evm5509_aic23_setfreq.c ========
* EVM5509_AIC23_setFreq() implementation
*/
#include <evm5509.h>
#include <evm5509_aic23.h>
/*
* ======== EVM5509_AIC23_outGain ========
* Set the output gain on the codec
*/
void EVM5509_AIC23_outGain(EVM5509_AIC23_CodecHandle hCodec, Uint16 outGain)
{
/* Write to codec registers (left and right) */
EVM5509_AIC23_rset(hCodec, EVM5509_AIC23_LEFTHPVOL,
(EVM5509_AIC23_rget(hCodec, EVM5509_AIC23_LEFTHPVOL) & 0xff80) | (outGain & 0x7f));
EVM5509_AIC23_rset(hCodec, EVM5509_AIC23_RIGHTHPVOL,
(EVM5509_AIC23_rget(hCodec, EVM5509_AIC23_RIGHTHPVOL) & 0xff80) | (outGain & 0x7f));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -