Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/hdaudio disable data island packet transmission on T...



details:   https://anonhg.NetBSD.org/src/rev/80d48f773f7c
branches:  trunk
changeset: 341655:80d48f773f7c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Nov 15 23:03:50 2015 +0000

description:
disable data island packet transmission on Tegra124 HDMI codec

diffstat:

 sys/dev/hdaudio/hdafg.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 649f30d05e03 -r 80d48f773f7c sys/dev/hdaudio/hdafg.c
--- a/sys/dev/hdaudio/hdafg.c   Sun Nov 15 22:56:24 2015 +0000
+++ b/sys/dev/hdaudio/hdafg.c   Sun Nov 15 23:03:50 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.8 2015/11/04 21:04:11 christos Exp $ */
+/* $NetBSD: hdafg.c,v 1.9 2015/11/15 23:03:50 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.8 2015/11/04 21:04:11 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.9 2015/11/15 23:03:50 jmcneill Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -329,6 +329,7 @@
        struct hdaudio_audiodev         sc_audiodev;
 
        uint16_t                        sc_fixed_rate;
+       bool                            sc_disable_dip;
 };
 
 static int     hdafg_match(device_t, cfdata_t, void *);
@@ -3112,6 +3113,9 @@
        hdaudio_command(sc->sc_codec, w->w_nid,
            CORB_SET_HDMI_DIP_XMIT_CTRL, COP_DIP_XMIT_CTRL_DISABLE);
 
+       if (sc->sc_disable_dip)
+               return;
+
        /* build new infoframe */
        if (as->as_digital == HDAFG_AS_HDMI) {
                dip = (uint8_t *)&hdmi;
@@ -3696,6 +3700,7 @@
                switch (sc->sc_product) {
                case HDAUDIO_PRODUCT_NVIDIA_TEGRA124_HDMI:
                        sc->sc_fixed_rate = 44100;
+                       sc->sc_disable_dip = true;
                        break;
                }
                break;



Home | Main Index | Thread Index | Old Index