summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc/mac/awacs.c6
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;