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 build fix for previous
details: https://anonhg.NetBSD.org/src/rev/6e0de24b29a5
branches: trunk
changeset: 769371:6e0de24b29a5
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Sep 07 13:07:21 2011 +0000
description:
build fix for previous
diffstat:
sys/dev/pci/hdaudio/hdafg.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r b21be9bf02fe -r 6e0de24b29a5 sys/dev/pci/hdaudio/hdafg.c
--- a/sys/dev/pci/hdaudio/hdafg.c Wed Sep 07 12:33:06 2011 +0000
+++ b/sys/dev/pci/hdaudio/hdafg.c Wed Sep 07 13:07:21 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.6 2011/09/07 12:33:06 jmcneill Exp $ */
+/* $NetBSD: hdafg.c,v 1.7 2011/09/07 13:07:21 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.6 2011/09/07 12:33:06 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.7 2011/09/07 13:07:21 jmcneill Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -3109,7 +3109,8 @@
CORB_SET_CONVERTER_FORMAT, fmt);
if (w->w_p.aw_cap & COP_AWCAP_DIGITAL) {
dfmt = hdaudio_command(sc->sc_codec, w->w_nid,
- CORB_GET_DIGITAL_CONVERTER_CONTROL_1, 0);
+ CORB_GET_DIGITAL_CONVERTER_CONTROL, 0) &
+ 0xff;
dfmt |= COP_DIGITAL_CONVCTRL1_DIGEN;
if (fmt & HDAUDIO_FMT_TYPE_NONPCM)
dfmt |= COP_DIGITAL_CONVCTRL1_NAUDIO;
Home |
Main Index |
Thread Index |
Old Index