util/spkmodem-decode: simplify valid_signal

since we have auto-detection now, we only need to know
that two signals exist, not that they are valid, since
the auto-detection now handles validation and fallback.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-12 22:53:17 +00:00
parent 5b4c3c537e
commit 745e888edf
+2 -4
View File
@@ -349,10 +349,8 @@ handle_audio(struct decoder_state *st)
static int
valid_signal(struct decoder_state *st)
{
return (st->freq_separator > st->sep_min &&
st->freq_separator < st->sep_max &&
st->freq_data > FREQ_DATA_MIN &&
st->freq_data < FREQ_DATA_MAX);
return (st->freq_separator > 0 &&
st->freq_data > 0);
}
/*