mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
test: latency - --policy option - allow using SCHED_OTHER
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
ea0850f3f3
commit
75f8e2e73e
1 changed files with 4 additions and 1 deletions
|
|
@ -361,6 +361,9 @@ void setscheduler(void)
|
||||||
if (strcasecmp(sched_policy, "fifo") == 0) {
|
if (strcasecmp(sched_policy, "fifo") == 0) {
|
||||||
policy = SCHED_FIFO;
|
policy = SCHED_FIFO;
|
||||||
spolicy = "FIFO";
|
spolicy = "FIFO";
|
||||||
|
} else if (strcasecmp(sched_policy, "other") == 0) {
|
||||||
|
policy = SCHED_OTHER;
|
||||||
|
spolicy = "OTHER";
|
||||||
}
|
}
|
||||||
if (sched_getparam(0, &sched_param) < 0) {
|
if (sched_getparam(0, &sched_param) < 0) {
|
||||||
printf("Scheduler getparam failed...\n");
|
printf("Scheduler getparam failed...\n");
|
||||||
|
|
@ -522,7 +525,7 @@ void help(void)
|
||||||
"-e,--effect apply an effect (bandpass filter sweep)\n"
|
"-e,--effect apply an effect (bandpass filter sweep)\n"
|
||||||
"-x,--posdump dump buffer positions\n"
|
"-x,--posdump dump buffer positions\n"
|
||||||
"-X,--realtime do a realtime check (buffering)\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:");
|
printf("Recognized sample formats are:");
|
||||||
for (k = 0; k < SND_PCM_FORMAT_LAST; ++k) {
|
for (k = 0; k < SND_PCM_FORMAT_LAST; ++k) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue