summaryrefslogtreecommitdiff
path: root/Userland/Utilities/cat.cpp
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-11-25 19:37:11 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-26 22:15:29 +0100
commit58bcb93777516eaadd1ed5a4d9088681b6577250 (patch)
tree8296641859364c58de67ab09c6d190cf43f8ad35 /Userland/Utilities/cat.cpp
parent377a984905e6443a680f7b45a1cb9c753a16335a (diff)
downloadserenity-58bcb93777516eaadd1ed5a4d9088681b6577250.zip
Kernel: Implement variable rate audio support for AC97 devices
Previously we `VERIFY()`ed that the device supports variable-rate audio (VRA). Now, we query the VRA bit and if VRA is not supported, we do not enable double-rate audio and disallow setting any sample rate except the fixed 48kHz rate as defined by the AC'97 specification. This should allow the driver to function on a wider array of hardware. Note that in the AC'97 specification, DRA without VRA is allowed when supported: this effectively doubles the sample rate to 96kHZ. For now, we ignore that possibility and let it default to 48kHZ.
Diffstat (limited to 'Userland/Utilities/cat.cpp')
0 files changed, 0 insertions, 0 deletions