mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 18:34:57 +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
|
static int
|
||||||
valid_signal(struct decoder_state *st)
|
valid_signal(struct decoder_state *st)
|
||||||
{
|
{
|
||||||
return (st->freq_separator > st->sep_min &&
|
return (st->freq_separator > 0 &&
|
||||||
st->freq_separator < st->sep_max &&
|
st->freq_data > 0);
|
||||||
st->freq_data > FREQ_DATA_MIN &&
|
|
||||||
st->freq_data < FREQ_DATA_MAX);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user