Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/hdaudio Set the /AUDIO digital converter control...



details:   https://anonhg.NetBSD.org/src/rev/b87b975b4fc0
branches:  trunk
changeset: 769308:b87b975b4fc0
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Sep 06 11:14:17 2011 +0000

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

diffstat:

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

diffs (28 lines):

diff -r 6925f81b8b86 -r b87b975b4fc0 sys/dev/pci/hdaudio/hdafg.c
--- a/sys/dev/pci/hdaudio/hdafg.c       Tue Sep 06 10:54:03 2011 +0000
+++ b/sys/dev/pci/hdaudio/hdafg.c       Tue Sep 06 11:14:17 2011 +0000
@@ -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 <support%precedence.co.uk@localhost>
@@ -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;



Home | Main Index | Thread Index | Old Index