Module Name: src Committed By: nat Date: Thu May 11 23:32:27 UTC 2017
Modified Files: src/sys/dev: audio.c Log Message: If silence is inserted into hw ring directly the free space in the hw ring not mix ring is needed. To generate a diff of this commit: cvs rdiff -u -r1.339 -r1.340 src/sys/dev/audio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/audio.c diff -u src/sys/dev/audio.c:1.339 src/sys/dev/audio.c:1.340 --- src/sys/dev/audio.c:1.339 Thu May 11 23:26:48 2017 +++ src/sys/dev/audio.c Thu May 11 23:32:27 2017 @@ -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 <nathanialsl...@yahoo.com.au> @@ -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 @@ audio_pint(void *v) 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);