]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: cppi41: tweak hrtimer values
authorDaniel Mack <daniel@zonque.org>
Wed, 3 Sep 2014 15:21:24 +0000 (17:21 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 5 Sep 2014 15:59:25 +0000 (10:59 -0500)
commit42505fd10481a6e8eb927613572a464cb74ba892
tree29986af59bca20c0dc27bc7a13797ff507ece875
parent80025af23afeee2528bea0cb96bd8a1cfa5de473
usb: musb: cppi41: tweak hrtimer values

Intensive tests with USB audio devices connected to a musb host port
have shown reproducible pops and clicks in both the playback and the
capture stream.

These are related to how the early_tx hrtimer is set up, and it turns
out they can be fixed by reducing the timer's slack value from 40 to
25 us. Also, when the callback is ran without taking action, it should
be rescheduled 20 us later instead of 50 us.

Reported-and-tested-by: Sven Neumann <neumann@teufel.de>
Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_cppi41.c