-/* $OpenBSD: tea5757.c,v 1.3 2002/01/07 18:32:19 mickey Exp $ */
+/* $OpenBSD: tea5757.c,v 1.4 2021/11/23 00:17:59 jsg Exp $ */
/*
* Copyright (c) 2001 Vladimir Popov <jumbo@narod.ru>
ret = TEA5757_S010;
else if (lock > 14 && lock < 51)
ret = TEA5757_S030;
- else if (lock > 50)
+ else
ret = TEA5757_S150;
return ret;
-/* $OpenBSD: fmsradio.c,v 1.6 2002/06/06 16:29:37 mickey Exp $ */
+/* $OpenBSD: fmsradio.c,v 1.7 2021/11/23 00:17:59 jsg Exp $ */
/*
* Copyright (c) 2002 Vladimir Popov <jumbo@narod.ru>
ri->info |= buf & PCR_INFO_STEREO ? 0 : RADIO_INFO_STEREO;
break;
default:
- break;
+ return EINVAL;
}
ri->freq = radio->freq = tea5757_decode_freq(buf,