From 2dc0106380ea2245d48698c9278d0a0e2b5ae050 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Tue, 31 May 2022 14:22:31 +0200 Subject: [PATCH] On MD-UV3x0 force silencing of HR_C6000 audio output when in M17 RX to avoid spillover of baseband signal towards the speaker. --- platform/drivers/baseband/radio_UV3x0.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platform/drivers/baseband/radio_UV3x0.cpp b/platform/drivers/baseband/radio_UV3x0.cpp index d28788d2..42b14665 100644 --- a/platform/drivers/baseband/radio_UV3x0.cpp +++ b/platform/drivers/baseband/radio_UV3x0.cpp @@ -153,6 +153,18 @@ void radio_enableRx() at1846s.setFrequency(config->rxFrequency); at1846s.setFuncMode(AT1846S_FuncMode::RX); + /* + * Force silencing of audio output when RX is enabled with M17 operating + * mode selected. Avoids the spillover of baseband signal towards the + * speaker. + * + * TODO: improve this solution. + */ + if(config->opMode == OPMODE_M17) + { + C6000.writeCfgRegister(0xE0, 0x00); + } + if(currRxBand == BND_VHF) { gpio_setPin(VHF_LNA_EN);