fix mic insertion issue
This commit is contained in:
@@ -226,6 +226,8 @@ void mic_volume(unsigned level)
|
|||||||
else if(level == NAU88L21_PGA_GAIN_REG_MAX_VALUE)
|
else if(level == NAU88L21_PGA_GAIN_REG_MAX_VALUE)
|
||||||
{
|
{
|
||||||
// 内部最大值 (reg=38, +1.5dB数字增益,仅firmware使用)
|
// 内部最大值 (reg=38, +1.5dB数字增益,仅firmware使用)
|
||||||
|
// PGA设到最大(37=0x25),数字增益额外+1.5dB
|
||||||
|
unsafe {NAU88C22_REGWRITE(0x007E, (NAU88L21_PGA_GAIN_REG_MAX_VALUE-1) << 8, (client interface i2c_master_if)i_i2c_client);}
|
||||||
unsafe {NAU88C22_REGWRITE(0x0035, (0xd2d2), (client interface i2c_master_if)i_i2c_client);}
|
unsafe {NAU88C22_REGWRITE(0x0035, (0xd2d2), (client interface i2c_master_if)i_i2c_client);}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -255,8 +255,8 @@ void UserBufferManagement(unsigned sampsFromUsbToAudio[], unsigned sampsFromAudi
|
|||||||
#endif
|
#endif
|
||||||
GET_SHARED_GLOBAL(is_monitor, g_monitor_switch_t1);
|
GET_SHARED_GLOBAL(is_monitor, g_monitor_switch_t1);
|
||||||
if (is_monitor) {
|
if (is_monitor) {
|
||||||
sampsFromUsbToAudio[0] += (sampsFromAudioToUsb[0] >> 1);
|
sampsFromUsbToAudio[0] += (sampsFromAudioToUsb[0]);
|
||||||
sampsFromUsbToAudio[1] += (sampsFromAudioToUsb[1] >> 1);
|
sampsFromUsbToAudio[1] += (sampsFromAudioToUsb[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user