Skip to content

Commit

Permalink
DSD demod: disable audio for YSF wide mode if AMBE feature is active. F…
Browse files Browse the repository at this point in the history
…ixes #1587
  • Loading branch information
f4exb committed Feb 4, 2023
1 parent 2385cdd commit 86c6dc8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions plugins/channelrx/demoddsd/dsddemodsink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ void DSDDemodSink::feed(const SampleVector::const_iterator& begin, const SampleV
m_scopeSampleBuffer.push_back(s);
}

// if (DSPEngine::instance()->hasDVSerialSupport())
if (m_ambeFeature)
if (m_ambeFeature && isNotYSFWide())
{
if ((m_settings.m_slot1On) && m_dsdDecoder.mbeDVReady1())
{
Expand Down Expand Up @@ -471,6 +470,15 @@ const char *DSDDemodSink::updateAndGetStatusText()
return m_formatStatusText;
}

bool DSDDemodSink::isNotYSFWide()
{
if (getDecoder().getSyncType() == DSDcc::DSDDecoder::DSDSyncYSF) {
return getDecoder().getYSFDecoder().getFICH().isNarrowMode();
}

return true;
}

void DSDDemodSink::formatStatusText()
{
switch (getDecoder().getSyncType())
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demoddsd/dsddemodsink.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class DSDDemodSink : public ChannelSampleSink {
PhaseDiscriminators m_phaseDiscri;

void formatStatusText();
bool isNotYSFWide();
};

#endif // INCLUDE_DSDDEMODSINK_H

0 comments on commit 86c6dc8

Please sign in to comment.