Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hdaudio get rid of HDAUDIO_FLAG_NO_STREAM_RESET hack
details: https://anonhg.NetBSD.org/src/rev/3e9cfa9cb177
branches: trunk
changeset: 342470:3e9cfa9cb177
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Dec 23 12:45:06 2015 +0000
description:
get rid of HDAUDIO_FLAG_NO_STREAM_RESET hack
diffstat:
sys/dev/hdaudio/hdaudio.c | 7 +++----
sys/dev/hdaudio/hdaudiovar.h | 5 +----
2 files changed, 4 insertions(+), 8 deletions(-)
diffs (47 lines):
diff -r 99853000f33b -r 3e9cfa9cb177 sys/dev/hdaudio/hdaudio.c
--- a/sys/dev/hdaudio/hdaudio.c Wed Dec 23 12:44:06 2015 +0000
+++ b/sys/dev/hdaudio/hdaudio.c Wed Dec 23 12:45:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio.c,v 1.3 2015/07/26 17:54:33 jmcneill Exp $ */
+/* $NetBSD: hdaudio.c,v 1.4 2015/12/23 12:45:06 jmcneill Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdaudio.c,v 1.3 2015/07/26 17:54:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdaudio.c,v 1.4 2015/12/23 12:45:06 jmcneill Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1215,8 +1215,7 @@
KASSERT(st->st_bdl.dma_valid == true);
hdaudio_stream_stop(st);
- if ((sc->sc_flags & HDAUDIO_FLAG_NO_STREAM_RESET) == 0)
- hdaudio_stream_reset(st);
+ hdaudio_stream_reset(st);
/*
* Configure buffer descriptor list
diff -r 99853000f33b -r 3e9cfa9cb177 sys/dev/hdaudio/hdaudiovar.h
--- a/sys/dev/hdaudio/hdaudiovar.h Wed Dec 23 12:44:06 2015 +0000
+++ b/sys/dev/hdaudio/hdaudiovar.h Wed Dec 23 12:45:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudiovar.h,v 1.4 2015/07/26 17:54:33 jmcneill Exp $ */
+/* $NetBSD: hdaudiovar.h,v 1.5 2015/12/23 12:45:06 jmcneill Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -157,9 +157,6 @@
struct hdaudio_stream sc_stream[HDAUDIO_MAX_STREAMS];
uint32_t sc_stream_mask;
kmutex_t sc_stream_mtx;
-
- uint32_t sc_flags;
-#define HDAUDIO_FLAG_NO_STREAM_RESET 0x0001
};
int hdaudio_attach(device_t, struct hdaudio_softc *);
Home |
Main Index |
Thread Index |
Old Index