Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev If silence is inserted into hw ring directly the fre...
details: https://anonhg.NetBSD.org/src/rev/e27837d321a7
branches: trunk
changeset: 823859:e27837d321a7
user: nat <nat%NetBSD.org@localhost>
date: Thu May 11 23:32:27 2017 +0000
description:
If silence is inserted into hw ring directly the free space in the hw ring
not mix ring is needed.
diffstat:
sys/dev/audio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5b55850709ff -r e27837d321a7 sys/dev/audio.c
--- a/sys/dev/audio.c Thu May 11 23:26:48 2017 +0000
+++ b/sys/dev/audio.c Thu May 11 23:32:27 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.339 2017/05/11 23:26:48 nat Exp $ */
+/* $NetBSD: audio.c,v 1.340 2017/05/11 23:32:27 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.339 2017/05/11 23:26:48 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.340 2017/05/11 23:32:27 nat Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -3657,7 +3657,7 @@
DPRINTFN(3, ("HW RING - INSERT SILENCE\n"));
used = blksize;
while (used > 0) {
- cc = sc->sc_pr.s.end - sc->sc_pr.s.inp;
+ cc = vc->sc_mpr.s.end - vc->sc_mpr.s.inp;
if (cc > used)
cc = used;
audio_fill_silence(&vc->sc_pparams, vc->sc_mpr.s.inp, cc);
Home |
Main Index |
Thread Index |
Old Index