From a68f7b3e3e0180124755089a5e4e1b44a0cc9816 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sat, 23 Jun 2001 21:19:44 +0000 Subject: remove some debugging prints. --- sys/arch/powerpc/mac/awacs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch/powerpc/mac/awacs.c') 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; -- cgit v1.2.3