Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/sys/arch/macppc/dev Pull up following revision(s) (reques...



details:   https://anonhg.NetBSD.org/src/rev/825ad6b630f3
branches:  netbsd-7
changeset: 800423:825ad6b630f3
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Feb 19 19:41:43 2018 +0000

description:
Pull up following revision(s) (requested by sevan in ticket #1559):
        sys/arch/macppc/dev/snapper.c: 1.42
Fix issue with audio being downpitched, thanks to <nat>
"it seems that snapper_init should be called before audio_attach_mi, as
snapper
init is setting the rate to 44100 after the hardware format has been
configured
by audio_attach_mi.
audio_attach_mi should be the last thing called during an attach of an audio
device so the audio device is ready to be configured when audio_attach_mi is
called."
Resolves PR port-macppc/52949

diffstat:

 sys/arch/macppc/dev/snapper.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 7ccabe70fc07 -r 825ad6b630f3 sys/arch/macppc/dev/snapper.c
--- a/sys/arch/macppc/dev/snapper.c     Mon Feb 19 19:39:52 2018 +0000
+++ b/sys/arch/macppc/dev/snapper.c     Mon Feb 19 19:41:43 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: snapper.c,v 1.39 2014/03/14 21:59:41 mrg Exp $ */
+/*     $NetBSD: snapper.c,v 1.39.4.1 2018/02/19 19:41:43 snj 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.39 2014/03/14 21:59:41 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snapper.c,v 1.39.4.1 2018/02/19 19:41:43 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/audioio.h>
@@ -839,10 +839,10 @@
                break;
        }
 
-       audio_attach_mi(&snapper_hw_if, sc, sc->sc_dev);
-
        /* ki2c_setmode(sc->sc_i2c, I2C_STDSUBMODE); */
        snapper_init(sc, sc->sc_node);
+
+       audio_attach_mi(&snapper_hw_if, sc, sc->sc_dev);
 }
 
 static int



Home | Main Index | Thread Index | Old Index