summaryrefslogtreecommitdiff
path: root/sys/dev/pci/bktr/bktr_os.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/bktr/bktr_os.c')
-rw-r--r--sys/dev/pci/bktr/bktr_os.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/bktr/bktr_os.c b/sys/dev/pci/bktr/bktr_os.c
index 99fd0455ce3..4b62d103f32 100644
--- a/sys/dev/pci/bktr/bktr_os.c
+++ b/sys/dev/pci/bktr/bktr_os.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bktr_os.c,v 1.20 2005/11/21 18:16:41 millert Exp $ */
+/* $OpenBSD: bktr_os.c,v 1.21 2005/12/02 15:01:32 robert Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_os.c,v 1.20 2000/10/20 08:16:53 roger Exp $ */
/*
@@ -1278,6 +1278,11 @@ bktr_set_info(void *v, struct radio_info *ri)
init_audio_devices(sc);
}
+ if (ri->freq < MIN_FM_FREQ)
+ ri->freq = MIN_FM_FREQ;
+ if (ri->freq > MAX_FM_FREQ)
+ ri->freq = MAX_FM_FREQ;
+
freq = ri->freq / 10;
set_audio(sc, AUDIO_INTERN); /* use internal audio */
temp_mute(sc, TRUE);