Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev No need to ratify block size twice as this is done i...
details: https://anonhg.NetBSD.org/src/rev/eaf542c63a0c
branches: trunk
changeset: 357254:eaf542c63a0c
user: nat <nat%NetBSD.org@localhost>
date: Fri Nov 03 05:31:38 2017 +0000
description:
No need to ratify block size twice as this is done in audio_initbufs.
This is a rework of rev 1.421.
diffstat:
sys/dev/audio.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (46 lines):
diff -r dec4155302c0 -r eaf542c63a0c sys/dev/audio.c
--- a/sys/dev/audio.c Fri Nov 03 05:09:49 2017 +0000
+++ b/sys/dev/audio.c Fri Nov 03 05:31:38 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.425 2017/11/03 05:09:49 nat Exp $ */
+/* $NetBSD: audio.c,v 1.426 2017/11/03 05:31:38 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.425 2017/11/03 05:09:49 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.426 2017/11/03 05:31:38 nat Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -2676,26 +2676,22 @@
{
struct audio_ringbuffer *mixcb, *cb;
audio_params_t *parm;
- audio_stream_t *stream;
if (mode == AUMODE_RECORD) {
mixcb = &sc->sc_mixring.sc_mrr;
cb = &vc->sc_mrr;
parm = &vc->sc_rparams;
- stream = vc->sc_rustream;
} else {
mixcb = &sc->sc_mixring.sc_mpr;
cb = &vc->sc_mpr;
parm = &vc->sc_pparams;
- stream = vc->sc_pustream;
}
if (vc == sc->sc_hwvc) {
mixcb->blksize = audio_calc_blksize(sc, parm);
cb->blksize = audio_calc_blksize(sc, &cb->s.param);
} else {
- cb->blksize = audio_calc_blksize(sc, &stream->param);
- if (SPECIFIED(blksize) && blksize > cb->blksize)
+ if (SPECIFIED(blksize))
cb->blksize = blksize;
}
}
Home |
Main Index |
Thread Index |
Old Index