Legacy Initialization, Analog Audio App, and Aliasing fixes. (#3052)

* 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

* Set initial legacy state. Improved readability of clocking initialization settings. Updated set_sampling_frequency, and udpate_bandwidth to set decimation values in the fpga_registers to avoid aliasing in low band frequencies.

* Updated clock_manager to use correct clock and clock parameters for audio pll. Ran format-code.sh.
This commit is contained in:
stafur
2026-02-27 23:43:19 -05:00
committed by GitHub
parent 56adca3bf6
commit b2bf0f2459
10 changed files with 179 additions and 143 deletions
+3 -3
View File
@@ -745,7 +745,7 @@ void WFMAudioDebugView::refresh() {
// === De-emphasis Status ===
// We can't directly read the M4 de-emphasis config, but we can indicate what SHOULD be set
// 75µs for USA, 50µs for Europe
text_deemph.set("Check M4 config");
text_deemph.set("Chk M4 cfg.");
text_deemph.set_style(Theme::getInstance()->fg_orange);
// === Status Summary ===
@@ -756,7 +756,7 @@ void WFMAudioDebugView::refresh() {
if (sample_rate_ok && lpf_ok && dc_ok) {
text_status.set("Hardware config looks OK.");
text_status.set_style(Theme::getInstance()->fg_green);
text_status2.set("If ringy: Check de-emphasis in M4!");
text_status2.set("If ringy: Chk d-emph in M4!");
text_status2.set_style(Theme::getInstance()->fg_orange);
} else {
std::string issues = "Issues: ";
@@ -765,7 +765,7 @@ void WFMAudioDebugView::refresh() {
if (!dc_ok) issues += "DC_Block ";
text_status.set(issues);
text_status.set_style(Theme::getInstance()->fg_red);
text_status2.set("Fix above before checking audio.");
text_status2.set("Fix before checking audio.");
text_status2.set_style(Theme::getInstance()->fg_red);
}
}