mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user