From df593c2f0f66f4b81b21c49782904fc3da18b1b9 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 29 Dec 2015 10:55:55 -0800 Subject: [PATCH] Run codec at 1 x baseband sample rate. Do not use CPLD decimator. Codec performance appears to be unaffected by <8MHz sample rate. Saves a bit of power, eliminates dependency on CPLD decimation feature. --- firmware/application/ais_app.cpp | 2 +- firmware/application/analog_audio_app.cpp | 2 +- firmware/application/receiver_model.hpp | 2 +- firmware/application/tpms_app.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/application/ais_app.cpp b/firmware/application/ais_app.cpp index 0487a8bd..13bf711d 100644 --- a/firmware/application/ais_app.cpp +++ b/firmware/application/ais_app.cpp @@ -82,7 +82,7 @@ AISModel::AISModel() { receiver_model.set_baseband_configuration({ .mode = 3, .sampling_rate = 2457600, - .decimation_factor = 4, + .decimation_factor = 1, }); receiver_model.set_baseband_bandwidth(1750000); diff --git a/firmware/application/analog_audio_app.cpp b/firmware/application/analog_audio_app.cpp index f5ec76cf..e27ef1c6 100644 --- a/firmware/application/analog_audio_app.cpp +++ b/firmware/application/analog_audio_app.cpp @@ -30,7 +30,7 @@ AnalogAudioModel::AnalogAudioModel(ReceiverModel::Mode mode) { receiver_model.set_baseband_configuration({ .mode = toUType(mode), .sampling_rate = 3072000, - .decimation_factor = 4, + .decimation_factor = 1, }); receiver_model.set_baseband_bandwidth(1750000); } diff --git a/firmware/application/receiver_model.hpp b/firmware/application/receiver_model.hpp index c2479c97..818a21a6 100644 --- a/firmware/application/receiver_model.hpp +++ b/firmware/application/receiver_model.hpp @@ -93,7 +93,7 @@ private: BasebandConfiguration baseband_configuration { .mode = 1, /* TODO: Enum! */ .sampling_rate = 3072000, - .decimation_factor = 4, + .decimation_factor = 1, }; volume_t headphone_volume_ { -43.0_dB }; ClockManager& clock_manager; diff --git a/firmware/application/tpms_app.cpp b/firmware/application/tpms_app.cpp index 155c8aa9..85a849c8 100644 --- a/firmware/application/tpms_app.cpp +++ b/firmware/application/tpms_app.cpp @@ -30,7 +30,7 @@ TPMSModel::TPMSModel() { receiver_model.set_baseband_configuration({ .mode = 5, .sampling_rate = 2457600, - .decimation_factor = 4, + .decimation_factor = 1, }); receiver_model.set_baseband_bandwidth(1750000);