Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev switch the default input to line in, to ...
details: https://anonhg.NetBSD.org/src/rev/87e4ead7ff09
branches: trunk
changeset: 999074:87e4ead7ff09
user: macallan <macallan%NetBSD.org@localhost>
date: Thu May 16 23:39:37 2019 +0000
description:
switch the default input to line in, to avoid feedback noise on laptops
should probably just mute the input, I need to read the datasheet again...
diffstat:
sys/arch/macppc/dev/snapper.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (49 lines):
diff -r bd4bedd35e99 -r 87e4ead7ff09 sys/arch/macppc/dev/snapper.c
--- a/sys/arch/macppc/dev/snapper.c Thu May 16 20:12:35 2019 +0000
+++ b/sys/arch/macppc/dev/snapper.c Thu May 16 23:39:37 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: snapper.c,v 1.50 2019/05/08 13:40:15 isaki Exp $ */
+/* $NetBSD: snapper.c,v 1.51 2019/05/16 23:39:37 macallan Exp $ */
/* Id: snapper.c,v 1.11 2002/10/31 17:42:13 tsubai Exp */
/* Id: i2s.c,v 1.12 2005/01/15 14:32:35 tsubai Exp */
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: snapper.c,v 1.50 2019/05/08 13:40:15 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snapper.c,v 1.51 2019/05/16 23:39:37 macallan Exp $");
#include <sys/param.h>
#include <sys/audioio.h>
@@ -680,7 +680,7 @@
sc->sc_baseaddr = ca->ca_baseaddr;
OF_getprop(soundbus, "reg", reg, sizeof reg);
- /* deal with messed up properties on PowerMac7,3 abd friends */
+ /* deal with messed up properties on PowerMac7,3 and friends */
if (reg[0] == 0) {
reg[0] += ca->ca_reg[0];
reg[2] += ca->ca_reg[2];
@@ -1702,7 +1702,7 @@
{ 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 */
- { DEQ_ACR_ADM | DEQ_ACR_LRB | DEQ_ACR_INP_B }, /* ACR - right channel of input B is the microphone */
+ { 0 }, /* ACR - line in */
{ 2 } /* MCR2 - AllPass mode since we don't use the equalizer anyway */
};
@@ -2031,10 +2031,10 @@
snapper_set_bass(sc, 128);
snapper_set_treble(sc, 128);
- /* Record source defaults to microphone. This reflects the
+ /* Record source defaults to line in. This reflects the
* default value for the ACR (see tas3004_initdata).
*/
- sc->sc_record_source = 1 << 0;
+ sc->sc_record_source = 1 << 1;
/* We mute the analog input for now */
sc->mixer[0] = 128;
Home |
Main Index |
Thread Index |
Old Index