Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Ensure to call mix write if inserting silence into t...
details: https://anonhg.NetBSD.org/src/rev/87b6d8ae65e8
branches: trunk
changeset: 355618:87b6d8ae65e8
user: nat <nat%NetBSD.org@localhost>
date: Sun Aug 06 10:07:31 2017 +0000
description:
Ensure to call mix write if inserting silence into the hw ring.
Addresses PR kern/52459.
Patch provided and tested by isaki@.
diffstat:
sys/dev/audio.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 3592a8ade435 -r 87b6d8ae65e8 sys/dev/audio.c
--- a/sys/dev/audio.c Sun Aug 06 09:14:14 2017 +0000
+++ b/sys/dev/audio.c Sun Aug 06 10:07:31 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.386 2017/08/05 13:34:06 nat Exp $ */
+/* $NetBSD: audio.c,v 1.387 2017/08/06 10:07:31 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.386 2017/08/05 13:34:06 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.387 2017/08/06 10:07:31 nat Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -3682,12 +3682,10 @@
vc->sc_mpr.s.inp, cc);
used -= cc;
}
- goto wake_mix;
}
mix_write(sc);
-wake_mix:
cv_broadcast(&sc->sc_condvar);
}
Home |
Main Index |
Thread Index |
Old Index