summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2008-11-06 10:01:51 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2008-11-06 10:01:51 +0000
commita117fdabe6aa5e0be0c5433f59daaa2ee264d420 (patch)
treec8e9d05bb5dcbbd57656ca7a13a11480ef6a63ac /sys/arch/macppc/dev
parent41f41436a0b61a800cc2d0789e064438bab75e5f (diff)
input and volume twiddles
o set init data to match snapper_set_foo* o set volume to 190 (audible compared to the default) o set input to mic (most common usage) ok jakemsr@
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/snapper.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/macppc/dev/snapper.c b/sys/arch/macppc/dev/snapper.c
index b2127ccf4fd..be8dd115a69 100644
--- a/sys/arch/macppc/dev/snapper.c
+++ b/sys/arch/macppc/dev/snapper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snapper.c,v 1.33 2008/11/05 01:43:09 jakemsr Exp $ */
+/* $OpenBSD: snapper.c,v 1.34 2008/11/06 10:01:50 todd Exp $ */
/* $NetBSD: snapper.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */
/*-
@@ -578,7 +578,7 @@ snapper_set_input(struct snapper_softc *sc, int mask)
const struct tas3004_reg tas3004_initdata = {
{ DEQ_MCR1_SC_64 | DEQ_MCR1_SM_I2S | DEQ_MCR1_W_20 }, /* MCR1 */
{ 1, 0, 0, 0, 0, 0 }, /* DRC */
- { 0, 0, 0, 0, 0, 0 }, /* VOLUME */
+ { 0x00, 0xd7, 0x66, 0x00, 0xd7, 0x66 }, /* VOLUME */
{ 0x72 }, /* TREBLE */
{ 0x72 }, /* BASS */
{ 0x10, 0x00, 0x00, 0, 0, 0, 0, 0, 0 }, /* MIXER_L */
@@ -601,7 +601,7 @@ const struct tas3004_reg tas3004_initdata = {
{ 0x10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* BIQUAD */
{ 0, 0, 0 }, /* LLB_GAIN */
{ 0, 0, 0 }, /* RLB_GAIN */
- { 0 }, /* ACR */
+ { DEQ_ACR_ADM | DEQ_ACR_LRB | DEQ_ACR_INP_B }, /* ACR */
{ 0 } /* MCR2 */
};
@@ -725,12 +725,13 @@ snapper_init(struct snapper_softc *sc)
if (tas3004_init(sc))
return;
- snapper_set_volume(sc, 80, 80);
+ snapper_set_volume(sc, 190, 190);
snapper_set_treble(sc, 128); /* 0 dB */
snapper_set_bass(sc, 128); /* 0 dB */
- /* Line in, reflects tas3004_initdata.ACR */
+ /* Mic in, reflects tas3004_initdata.ACR */
sc->sc_record_source = 1 << 1;
+ snapper_set_input(sc, sc->sc_record_source);
}
int