summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-01-29 00:52:24 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-01-29 00:52:24 +0000
commit760074bb0d75000eb20579785dcded09c76eb396 (patch)
treeff04b895ffef023b606d79f2aa2cda248ad8dff8 /sys/arch/hppa
parent8aa7d62000a2680332cda974b041c575c802d923 (diff)
print out the codec revision in dmesg
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/gsc/harmony.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/hppa/gsc/harmony.c b/sys/arch/hppa/gsc/harmony.c
index d2d96d4a33b..d86752d7473 100644
--- a/sys/arch/hppa/gsc/harmony.c
+++ b/sys/arch/hppa/gsc/harmony.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: harmony.c,v 1.10 2003/01/28 05:12:47 jason Exp $ */
+/* $OpenBSD: harmony.c,v 1.11 2003/01/29 00:52:23 mickey Exp $ */
/*
* Copyright (c) 2003 Jason L. Wright (jason@thought.net)
@@ -150,6 +150,7 @@ harmony_attach(parent, self, aux)
{
struct harmony_softc *sc = (struct harmony_softc *)self;
struct gsc_attach_args *ga = aux;
+ u_int32_t cntl;
int i;
sc->sc_bt = ga->ga_iot;
@@ -225,7 +226,9 @@ harmony_attach(parent, self, aux)
/* reset chip, and push default gain controls */
harmony_reset_codec(sc);
- printf("\n");
+ cntl = READ_REG(sc, HARMONY_CNTL);
+ printf(": rev %d\n",
+ (cntl & CNTL_CODEC_REV_MASK) >> CNTL_CODEC_REV_SHIFT);
audio_attach_mi(&harmony_sa_hw_if, sc, &sc->sc_dv);
}