summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-12 22:53:17 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:58:19 +0000
commit745e888edf9219ed95199e2e7fcc64c847a5ba4c (patch)
treeafb4109fb5138aaaaf0f485e31c971dfcd34bb9d /util
parent5b4c3c537e2b9d57318e1521c2b7446998099fe1 (diff)
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>
Diffstat (limited to 'util')
-rw-r--r--util/spkmodem_decode/spkmodem-decode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util/spkmodem_decode/spkmodem-decode.c b/util/spkmodem_decode/spkmodem-decode.c
index 1ac2725f..36db693c 100644
--- a/util/spkmodem_decode/spkmodem-decode.c
+++ b/util/spkmodem_decode/spkmodem-decode.c
@@ -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);
}
/*