diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-12 22:53:17 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-12 22:53:17 +0000 |
| commit | 5edd7c9fae55dbe11e3ad6d201bc6c8f39c0f683 (patch) | |
| tree | 84ac0eef3827f8b8927928c74e585a9e8580b047 /util/spkmodem_decode/spkmodem-decode.c | |
| parent | 852a6ccf117be4415a4c07cb10825b9faf1cdbfc (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/spkmodem_decode/spkmodem-decode.c')
| -rw-r--r-- | util/spkmodem_decode/spkmodem-decode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util/spkmodem_decode/spkmodem-decode.c b/util/spkmodem_decode/spkmodem-decode.c index a621db6d..26b236f6 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); } /* |
