Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/bktr Add missing definition of STATUSBIT_STEREO.



details:   https://anonhg.NetBSD.org/src/rev/46ed7baf8611
branches:  trunk
changeset: 520264:46ed7baf8611
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Jan 06 15:37:08 2002 +0000

description:
Add missing definition of STATUSBIT_STEREO.

diffstat:

 sys/dev/pci/bktr/bktr_os.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 94dc53209cf5 -r 46ed7baf8611 sys/dev/pci/bktr/bktr_os.c
--- a/sys/dev/pci/bktr/bktr_os.c        Sun Jan 06 15:17:28 2002 +0000
+++ b/sys/dev/pci/bktr/bktr_os.c        Sun Jan 06 15:37:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bktr_os.c,v 1.23 2002/01/06 02:42:45 jmcneill Exp $    */
+/*     $NetBSD: bktr_os.c,v 1.24 2002/01/06 15:37:08 jmcneill Exp $    */
 
 /* FreeBSD: src/sys/dev/bktr/bktr_os.c,v 1.20 2000/10/20 08:16:53 roger Exp */
 
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bktr_os.c,v 1.23 2002/01/06 02:42:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bktr_os.c,v 1.24 2002/01/06 15:37:08 jmcneill Exp $");
 
 #ifdef __FreeBSD__
 #include "bktr.h"
@@ -1817,11 +1817,13 @@
 
        status = get_tuner_status(sc);
 
+#define STATUSBIT_STEREO 0x10
        ri->mute = (int)sc->audio_mute_state ? 1 : 0;
        ri->stereo = (status & STATUSBIT_STEREO) ? 1 : 0;
        ri->caps = RADIO_CAPS_DETECT_STEREO | RADIO_CAPS_HW_AFC;
        ri->freq = tv->frequency * 10;
        ri->info = (status & STATUSBIT_STEREO) ? RADIO_INFO_STEREO : 0;
+#undef STATUSBIT_STEREO
 
        /* not yet supported */
        ri->volume = ri->rfreq = ri->lock = 0;



Home | Main Index | Thread Index | Old Index