mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 09:25:30 -04:00
Stop streaming when changing baseband configuration.
Without, the baseband would get confused.
This commit is contained in:
parent
e751e10e45
commit
5d9079f87f
3 changed files with 9 additions and 0 deletions
|
@ -161,6 +161,10 @@ void streaming_enable() {
|
||||||
baseband_sgpio.streaming_enable();
|
baseband_sgpio.streaming_enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void streaming_disable() {
|
||||||
|
baseband_sgpio.streaming_disable();
|
||||||
|
}
|
||||||
|
|
||||||
void disable() {
|
void disable() {
|
||||||
baseband_sgpio.streaming_disable();
|
baseband_sgpio.streaming_disable();
|
||||||
baseband_codec.set_mode(max5864::Mode::Shutdown);
|
baseband_codec.set_mode(max5864::Mode::Shutdown);
|
||||||
|
|
|
@ -43,6 +43,7 @@ void set_baseband_filter_bandwidth(const uint32_t bandwidth_minimum);
|
||||||
void set_baseband_decimation_by(const size_t n);
|
void set_baseband_decimation_by(const size_t n);
|
||||||
|
|
||||||
void streaming_enable();
|
void streaming_enable();
|
||||||
|
void streaming_disable();
|
||||||
void disable();
|
void disable();
|
||||||
|
|
||||||
extern rffc507x::RFFC507x first_if;
|
extern rffc507x::RFFC507x first_if;
|
||||||
|
|
|
@ -171,6 +171,8 @@ void ReceiverModel::set_baseband_configuration(const BasebandConfiguration confi
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReceiverModel::update_baseband_configuration() {
|
void ReceiverModel::update_baseband_configuration() {
|
||||||
|
radio::streaming_disable();
|
||||||
|
|
||||||
clock_manager.set_sampling_frequency(sampling_rate() * baseband_oversampling());
|
clock_manager.set_sampling_frequency(sampling_rate() * baseband_oversampling());
|
||||||
update_tuning_frequency();
|
update_tuning_frequency();
|
||||||
radio::set_baseband_decimation_by(baseband_oversampling());
|
radio::set_baseband_decimation_by(baseband_oversampling());
|
||||||
|
@ -181,6 +183,8 @@ void ReceiverModel::update_baseband_configuration() {
|
||||||
if( baseband_configuration.mode == 3 ) {
|
if( baseband_configuration.mode == 3 ) {
|
||||||
update_fsk_configuration();
|
update_fsk_configuration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
radio::streaming_enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReceiverModel::update_headphone_volume() {
|
void ReceiverModel::update_headphone_volume() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue