0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 22:31:25 +03:00

cleaner RX audio ?

This commit is contained in:
OneOfEleven 2023-12-05 08:29:29 +00:00
parent 47a8aeaf5d
commit 2fe7ed2240
3 changed files with 3 additions and 2 deletions

View File

@ -126,7 +126,7 @@ void BK4819_Init(void)
BK4819_write_reg(0x11, 0x027B);
BK4819_write_reg(0x10, 0x007A);
BK4819_write_reg(0x14, 0x0019);
BK4819_write_reg(0x49, 0x2A38);
BK4819_write_reg(0x49, 0x2A38); // 00 1010100 0111000
BK4819_write_reg(0x7B, 0x8420);
BK4819_write_reg(0x1E, 0x4C58); // ???
@ -442,7 +442,6 @@ void BK4819_EnableVox(uint16_t VoxEnableThreshold, uint16_t VoxDisableThreshold)
void BK4819_set_TX_deviation(uint16_t deviation)
{
// const uint8_t scrambler = (BK4819_read_reg(0x31) >> 1) & 1u;
// uint16_t deviation = narrow ? 900 : 1232;
// if (scrambler)
// deviation -= 200;
if (deviation > 4095)
@ -780,6 +779,8 @@ void BK4819_SetCompander(const unsigned int mode)
if (mode == COMPAND_OFF)
{ // disable
BK4819_write_reg(0x31, r31 & ~(1ul << 3));
BK4819_write_reg(0x29, 0);
BK4819_write_reg(0x28, 0);
return;
}

Binary file not shown.

Binary file not shown.