Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev If the harware ring is starved of data...Insert sile...
details: https://anonhg.NetBSD.org/src/rev/bb006ef49c19
branches: trunk
changeset: 355664:bb006ef49c19
user: nat <nat%NetBSD.org@localhost>
date: Tue Aug 08 22:21:35 2017 +0000
description:
If the harware ring is starved of data...Insert silence into the mix ring
so mix_write can function properly.
diffstat:
sys/dev/audio.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (35 lines):
diff -r 5f8a9ef4a8a1 -r bb006ef49c19 sys/dev/audio.c
--- a/sys/dev/audio.c Tue Aug 08 17:27:34 2017 +0000
+++ b/sys/dev/audio.c Tue Aug 08 22:21:35 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.391 2017/08/08 05:58:12 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.392 2017/08/08 22:21:35 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.391 2017/08/08 05:58:12 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.392 2017/08/08 22:21:35 nat Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -3662,12 +3662,12 @@
DPRINTFN(3, ("HW RING - INSERT SILENCE\n"));
used = blksize;
while (used > 0) {
- cc = vc->sc_mpr.s.end - vc->sc_mpr.s.inp;
+ cc = sc->sc_pr.s.end - sc->sc_pr.s.inp;
if (cc > used)
cc = used;
- audio_fill_silence(&vc->sc_pparams, vc->sc_mpr.s.inp, cc);
- vc->sc_mpr.s.inp = audio_stream_add_inp(&vc->sc_mpr.s,
- vc->sc_mpr.s.inp, cc);
+ audio_fill_silence(&vc->sc_pustream->param, sc->sc_pr.s.inp, cc);
+ sc->sc_pr.s.inp = audio_stream_add_inp(&sc->sc_pr.s,
+ sc->sc_pr.s.inp, cc);
used -= cc;
}
}
Home |
Main Index |
Thread Index |
Old Index