Resolved root cause for loss of bluetooth functionality and added more testing options (#3049)

* Added PRO button to analog_audio.cpp for debugging metallic ringing sounds in Audio app. Ensured consitency to 4MHz in analog_audio.cpp

* Restored blutooth after loss.

* Added several sampling rates to analog_audio for testing.

* Ran format-code.sh

* Fixed 0x03 mode for DC/Q-INV/Q-SHFT being set at every tuning and sample rate change. This was the root cause for loss of bluetooth before. Sample rate, and frequency can now be changed without need for manually resetting DC/Q-INV/Q-SHIFT settings. Updated method for setting frequncies in praline so that we have more testing options.

* Ran format-code.sh and cleaned up stale comments.

* Addressed comments, and removed commented line, opting for higher register values, 5E and 5D. Added WFM Debug View to support testing demodulation ringing.

* Addressed comments in PR conversation to clean comments and ensure consistency at initializtion accross updated methods and displays.

* Ran format-code.sh
This commit is contained in:
stafur
2026-02-26 11:16:07 -05:00
committed by GitHub
parent cd7c412aa4
commit 56adca3bf6
7 changed files with 280 additions and 17 deletions
+1 -1
View File
@@ -713,7 +713,7 @@ void ClockManager::set_sampling_frequency(const uint32_t frequency) {
_base_band_frequency = frequency;
// Set FPGA decimation to 0 (no decimation) for direct passthrough
fpga_debug_register_write(2, 0);
fpga_debug_register_write(2, 0x00);
radio::invalidate_spi_config();
// The following was originally from @kitty. Adopting for testing radio.