Skip to content

Commit 34539af

Browse files
committed
Change default active LTR value to 50us (fixes DMA errors on SP8)
1 parent 8b22c72 commit 34539af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ithc-main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ static int ithc_init_device(struct ithc *ithc)
189189
// Set Latency Tolerance Reporting config. The device will automatically
190190
// apply these values depending on whether it is active or idle.
191191
// If active value is too high, DMA buffer data can become truncated.
192-
// By default, we set the active LTR value to 100us, and idle to 100ms.
192+
// By default, we set the active LTR value to 50us, and idle to 100ms.
193193
u64 active_ltr_ns = ithc_active_ltr_us >= 0 ? (u64)ithc_active_ltr_us * 1000
194194
: cfg.has_config && cfg.has_active_ltr ? (u64)cfg.active_ltr << 10
195-
: 100 * 1000;
195+
: 50 * 1000;
196196
u64 idle_ltr_ns = ithc_idle_ltr_us >= 0 ? (u64)ithc_idle_ltr_us * 1000
197197
: cfg.has_config && cfg.has_idle_ltr ? (u64)cfg.idle_ltr << 10
198198
: 100 * 1000 * 1000;

0 commit comments

Comments
 (0)