summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2007-07-10 22:04:28 +0000
committerjakemsr <jakemsr@openbsd.org>2007-07-10 22:04:28 +0000
commita5815c9fa9b554a722c57b43153e6b235f8e74ba (patch)
treebb31507fca61177ff51eb9e9bb64d551c20334fe /lib
parentfix firmware file name to match reality. (diff)
downloadwireguard-openbsd-a5815c9fa9b554a722c57b43153e6b235f8e74ba.tar.xz
wireguard-openbsd-a5815c9fa9b554a722c57b43153e6b235f8e74ba.zip
emu(4) incorrectly overrides the requested recoding format, setting
it to 16-bit slinear_le. this appears to be the result of a mistake in porting the driver from NetBSD. when this driver was ported, NetBSD had some members in it's 'audio_params' structure that OpenBSD doesn't have. in particular, NetBSD had 'hw_encoding' and 'hw_precision', which store what the hardware is presenting. the 'encoding' and 'precision' members store what the audio layer is presenting (both in NetBSD and OpenBSD) and can be different than what the hardware is presenting. the original NetBSD code was setting 'hw_encoding' and 'hw_precision', and in porting was changed to 'encoding' and 'precision'. with this change the hardware is still presenting 16-bit slinear_le; having the variable 'b16' set to '1' is enough to ensure this. however now the audio layer will convert it to the requested format, instead of always outputting 16-bit slinear_le.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions