Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev Enable CD and microphone sound input on ...



details:   https://anonhg.NetBSD.org/src/rev/0e181e7d54ca
branches:  trunk
changeset: 504447:0e181e7d54ca
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Fri Mar 02 20:36:00 2001 +0000

description:
Enable CD and microphone sound input on paddington based systems.

diffstat:

 sys/arch/macppc/dev/obio.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 2e70f1554ff0 -r 0e181e7d54ca sys/arch/macppc/dev/obio.c
--- a/sys/arch/macppc/dev/obio.c        Fri Mar 02 19:21:53 2001 +0000
+++ b/sys/arch/macppc/dev/obio.c        Fri Mar 02 20:36:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obio.c,v 1.12 2001/02/27 07:34:15 matt Exp $   */
+/*     $NetBSD: obio.c,v 1.13 2001/03/02 20:36:00 tsubai Exp $ */
 
 /*-
  * Copyright (C) 1998  Internet Research Institute, Inc.
@@ -127,6 +127,10 @@
 
        printf(": addr 0x%x\n", ca.ca_baseaddr);
 
+       /* Enable CD and microphone sound input. */
+       if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_APPLE_PADDINGTON)
+               out8(ca.ca_baseaddr + 0x37, 0x03);
+
        for (child = OF_child(node); child; child = OF_peer(child)) {
                namelen = OF_getprop(child, "name", name, sizeof(name));
                if (namelen < 0)



Home | Main Index | Thread Index | Old Index