aboutsummaryrefslogtreecommitdiff
path: root/app/synthpod_app.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/synthpod_app.c')
-rw-r--r--app/synthpod_app.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/app/synthpod_app.c b/app/synthpod_app.c
index f545f12a..07c0ce75 100644
--- a/app/synthpod_app.c
+++ b/app/synthpod_app.c
@@ -650,13 +650,17 @@ _dsp_slave_thread(void *data)
const int num = dsp_slave - dsp_master->dsp_slaves + 1;
//printf("thread: %i\n", num);
- struct sched_param schedp;
- memset(&schedp, 0, sizeof(struct sched_param));
- schedp.sched_priority = app->driver->audio_prio - 1;
-
const pthread_t self = pthread_self();
- if(pthread_setschedparam(self, SCHED_FIFO, &schedp))
- sp_app_log_error(app, "%s: pthread_setschedparam error\n", __func__);
+
+ if(app->driver->audio_prio)
+ {
+ struct sched_param schedp;
+ memset(&schedp, 0, sizeof(struct sched_param));
+ schedp.sched_priority = app->driver->audio_prio - 1;
+
+ if(pthread_setschedparam(self, SCHED_FIFO, &schedp))
+ sp_app_log_error(app, "%s: pthread_setschedparam error\n", __func__);
+ }
if(app->driver->cpu_affinity)
{