diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-23 21:19:44 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-23 21:19:44 +0000 |
commit | a68f7b3e3e0180124755089a5e4e1b44a0cc9816 (patch) | |
tree | 5c428180b0e3d11f879cd6aee899976d3a5ced12 /sys/arch | |
parent | 297aed5613bae883b6097c6cb0e27ed5f19fddf3 (diff) |
remove some debugging prints.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc/mac/awacs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/powerpc/mac/awacs.c b/sys/arch/powerpc/mac/awacs.c index a1f99c20589..dad8e73a6c3 100644 --- a/sys/arch/powerpc/mac/awacs.c +++ b/sys/arch/powerpc/mac/awacs.c @@ -384,16 +384,18 @@ awacs_intr(v) printf("should change inputs\n"); } if (reason & AWACS_CTL_PORTCHG) { +#ifdef DEBUG + printf("status = %x\n", awacs_read_reg(sc, AWACS_CODEC_STATUS)); +#endif + if (awacs_read_reg(sc, AWACS_CODEC_STATUS) & 0x8) { /* default output to speakers */ - printf(" headphones"); sc->sc_output_mask = 1 << 1; sc->sc_codecctl1 &= ~AWACS_MUTE_HEADPHONE; sc->sc_codecctl1 |= AWACS_MUTE_SPEAKER; awacs_write_codec(sc, sc->sc_codecctl1); } else { /* default output to speakers */ - printf(" speaker"); sc->sc_output_mask = 1 << 0; sc->sc_codecctl1 &= ~AWACS_MUTE_SPEAKER; sc->sc_codecctl1 |= AWACS_MUTE_HEADPHONE; |