Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev PR 50613: Onno van der Linden: unpausing audio(4) ca...
details: https://anonhg.NetBSD.org/src/rev/1d1794a9391a
branches: trunk
changeset: 349465:1d1794a9391a
user: nat <nat%NetBSD.org@localhost>
date: Sun Dec 11 07:36:30 2016 +0000
description:
PR 50613: Onno van der Linden: unpausing audio(4) causes already written
data to be dropped.
Applied patch prepared by Onno.
diffstat:
sys/dev/audio.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 29f8c4c4877e -r 1d1794a9391a sys/dev/audio.c
--- a/sys/dev/audio.c Sun Dec 11 07:36:20 2016 +0000
+++ b/sys/dev/audio.c Sun Dec 11 07:36:30 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.275 2016/12/10 22:37:12 christos Exp $ */
+/* $NetBSD: audio.c,v 1.276 2016/12/11 07:36:30 nat Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.275 2016/12/10 22:37:12 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.276 2016/12/11 07:36:30 nat Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -4506,7 +4506,8 @@
int init_error;
mutex_enter(sc->sc_intr_lock);
- init_error = audio_initbufs(sc, n);
+ init_error = (pausechange == 1 && reset == 0) ? 0 :
+ audio_initbufs(sc, n);
if (init_error) goto err;
if (vc->sc_mpr.blksize != oldpblksize ||
vc->sc_mrr.blksize != oldrblksize ||
Home |
Main Index |
Thread Index |
Old Index