summaryrefslogtreecommitdiff
path: root/sys/dev/audio
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2020-01-27 07:06:02 +0000
committermartin <martin@NetBSD.org>2020-01-27 07:06:02 +0000
commitff3af85e33ea8cdfd414819820cb7ca409133932 (patch)
treee7927d5e2c3b05869f82229b48d778a9aef02288 /sys/dev/audio
parenta8d6024dab9730a0979644d4300a63002de81793 (diff)
Pull up following revision(s) (requested by nia in ticket #657):
sys/dev/files.audio: revision 1.13 sys/dev/files.audio: revision 1.14 sys/arch/amd64/conf/GENERIC: revision 1.559 sys/arch/evbarm/conf/GENERIC: revision 1.71 sys/arch/evbarm/conf/GENERIC64: revision 1.134 sys/dev/audio/audiodef.h: revision 1.8 Set AUDIO_BLK_MS=4 - unlikely to cause significant overhead on non-m68k. Several of us have been setting this in /etc/sysctl.conf for months, to get better performance from applications that require synced audio, etc. It's also mentioned as a good value with low overhead on most archs here: href="https://mail-index.netbsd.org/tech-kern/2019/12/07/msg025830.html We could probably go lower, but this is low enough to make most/all software run well, removing frame drops. It's also low enough to get emulators/mednafen to stop complaining in the console. defopt AUDIO_BLK_MS Follow amd64 and set AUDIO_BLK_MS=4 by default defopt -> defparam (oops)
Diffstat (limited to 'sys/dev/audio')
-rw-r--r--sys/dev/audio/audiodef.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/audio/audiodef.h b/sys/dev/audio/audiodef.h
index 8765bf85353..04f7d1e6e8f 100644
--- a/sys/dev/audio/audiodef.h
+++ b/sys/dev/audio/audiodef.h
@@ -1,4 +1,4 @@
-/* $NetBSD: audiodef.h,v 1.7 2019/07/06 12:58:58 isaki Exp $ */
+/* $NetBSD: audiodef.h,v 1.7.2.1 2020/01/27 07:06:02 martin Exp $ */
/*
* Copyright (C) 2017 Tetsuya Isaki. All rights reserved.
@@ -29,6 +29,10 @@
#ifndef _SYS_DEV_AUDIO_AUDIODEF_H_
#define _SYS_DEV_AUDIO_AUDIODEF_H_
+#ifdef _KERNEL_OPT
+#include "opt_audio.h"
+#endif
+
/* Number of HW buffer's blocks. */
#define NBLKHW (3)