]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r308437 and r308461:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 12 Nov 2016 17:30:55 +0000 (17:30 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 12 Nov 2016 17:30:55 +0000 (17:30 +0000)
commitbe2a68ea45404b2f0e9193ae9c689273cdf35949
treeb73b910b32408cff89e1e7f4b49b2c9f30618405
parentb736e62fd3260d4eff5a9048ccb2cd426a5ae8f2
MFC r308437 and r308461:
Range check the jitter values to avoid bogus sample rate adjustments.
The expected deviation should not be more than 1Hz per second. The USB
v2.0 specification also mandates this requirement. Refer to chapter
5.12.4.2 about feedback.

Allow higher sample rates to have more jitter than lower ones.

PR: 208791

git-svn-id: svn://svn.freebsd.org/base/stable/10@308572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sound/usb/uaudio.c