Module Name:    src
Committed By:   jmcneill
Date:           Sun Nov 15 23:03:50 UTC 2015

Modified Files:
        src/sys/dev/hdaudio: hdafg.c

Log Message:
disable data island packet transmission on Tegra124 HDMI codec


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/hdaudio/hdafg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hdaudio/hdafg.c
diff -u src/sys/dev/hdaudio/hdafg.c:1.8 src/sys/dev/hdaudio/hdafg.c:1.9
--- src/sys/dev/hdaudio/hdafg.c:1.8	Wed Nov  4 21:04:11 2015
+++ src/sys/dev/hdaudio/hdafg.c	Sun Nov 15 23:03:50 2015
@@ -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 <supp...@precedence.co.uk>
@@ -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 hdafg_softc {
 	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 @@ hdafg_stream_connect_hdmi(struct hdafg_s
 	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 @@ hdafg_attach(device_t parent, device_t s
 		switch (sc->sc_product) {
 		case HDAUDIO_PRODUCT_NVIDIA_TEGRA124_HDMI:
 			sc->sc_fixed_rate = 44100;
+			sc->sc_disable_dip = true;
 			break;
 		}
 		break;

Reply via email to