diff options
| author | martin <martin@NetBSD.org> | 2020-01-27 07:06:02 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2020-01-27 07:06:02 +0000 |
| commit | ff3af85e33ea8cdfd414819820cb7ca409133932 (patch) | |
| tree | e7927d5e2c3b05869f82229b48d778a9aef02288 /sys/dev | |
| parent | a8d6024dab9730a0979644d4300a63002de81793 (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')
| -rw-r--r-- | sys/dev/audio/audiodef.h | 6 | ||||
| -rw-r--r-- | sys/dev/files.audio | 4 |
2 files changed, 8 insertions, 2 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) diff --git a/sys/dev/files.audio b/sys/dev/files.audio index d6648d6860e..108bdf52206 100644 --- a/sys/dev/files.audio +++ b/sys/dev/files.audio @@ -1,4 +1,6 @@ -# $NetBSD: files.audio,v 1.12 2019/05/08 13:40:17 isaki Exp $ +# $NetBSD: files.audio,v 1.12.2.1 2020/01/27 07:06:02 martin Exp $ + +defparam opt_audio.h AUDIO_BLK_MS define audiobus { } define midibus { } |
