diff options
author | Jaroslav Kysela <perex@perex.cz> | 2022-11-24 10:55:32 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2022-11-24 10:55:32 +0100 |
commit | 75f8e2e73e03f628a4f2ba55ca8aa3e9f50cdbd9 (patch) | |
tree | 9359c93b53c2802f80fc33bfe9bca8a6a71f07ef | |
parent | ea0850f3f3780652869c2b4550576894bc21684f (diff) | |
download | alsa-lib-75f8e2e73e03f628a4f2ba55ca8aa3e9f50cdbd9.tar.gz |
test: latency - --policy option - allow using SCHED_OTHER
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | test/latency.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/latency.c b/test/latency.c index 3b20e1c1..5e67015c 100644 --- a/test/latency.c +++ b/test/latency.c @@ -361,6 +361,9 @@ void setscheduler(void) if (strcasecmp(sched_policy, "fifo") == 0) { policy = SCHED_FIFO; spolicy = "FIFO"; + } else if (strcasecmp(sched_policy, "other") == 0) { + policy = SCHED_OTHER; + spolicy = "OTHER"; } if (sched_getparam(0, &sched_param) < 0) { printf("Scheduler getparam failed...\n"); @@ -522,7 +525,7 @@ void help(void) "-e,--effect apply an effect (bandpass filter sweep)\n" "-x,--posdump dump buffer positions\n" "-X,--realtime do a realtime check (buffering)\n" -"-O,--policy set scheduler policy (RR or FIFO)\n" +"-O,--policy set scheduler policy (RR, FIFO or OTHER)\n" ); printf("Recognized sample formats are:"); for (k = 0; k < SND_PCM_FORMAT_LAST; ++k) { |