From 363d827f9683627b493065c90f5ec2dc8141340e Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 5 Mar 2014 19:40:47 +0000 Subject: [PATCH] Fix incorrect thread priority which prevent the ALSA thread from running unless ulimit -r was 99. --- zalsa/pxthread.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/zalsa/pxthread.cc b/zalsa/pxthread.cc index e3e8849..21bc872 100644 --- a/zalsa/pxthread.cc +++ b/zalsa/pxthread.cc @@ -47,7 +47,6 @@ int Pxthread::thr_start (int policy, int priority, size_t stacksize) min = sched_get_priority_min (policy); max = sched_get_priority_max (policy); - priority += max; if (priority > max) priority = max; if (priority < min) priority = min; parm.sched_priority = priority;