Module Name:    src
Committed By:   jmcneill
Date:           Tue Sep  6 11:14:17 UTC 2011

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

Log Message:
Set the /AUDIO digital converter control bit for non-PCM streams


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/pci/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/pci/hdaudio/hdafg.c
diff -u src/sys/dev/pci/hdaudio/hdafg.c:1.3 src/sys/dev/pci/hdaudio/hdafg.c:1.4
--- src/sys/dev/pci/hdaudio/hdafg.c:1.3	Tue Sep  6 01:51:44 2011
+++ src/sys/dev/pci/hdaudio/hdafg.c	Tue Sep  6 11:14:17 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.3 2011/09/06 01:51:44 jmcneill Exp $ */
+/* $NetBSD: hdafg.c,v 1.4 2011/09/06 11:14:17 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.3 2011/09/06 01:51:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.4 2011/09/06 11:14:17 jmcneill Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -3050,6 +3050,9 @@
 		fmt = hdaudio_stream_param(sc->sc_audiodev.ad_capture,
 		    &sc->sc_rparam);
 
+	if (fmt & HDAUDIO_FMT_TYPE_NONPCM)
+		dfmt |= COP_DIGITAL_CONVCTRL1_NAUDIO;
+
 	for (i = 0; i < sc->sc_nassocs; i++) {
 		if (as[i].as_enable == false)
 			continue;

Reply via email to