Commit c52f751b authored by Adrian Knoth's avatar Adrian Knoth
Browse files

Make -c c an alias for -c s

The cycle counting clock is no longer supported. For backwards
compatibility with scripts, allow the user to request the cycle clock on
the command line, but use the system clock instead.

Cross-ported from jackd1.
parent d425d803
......@@ -203,7 +203,11 @@ bool JackServerGlobals::Init()
if (tolower (optarg[0]) == 'h') {
clock_source = JACK_TIMER_HPET;
} else if (tolower (optarg[0]) == 'c') {
clock_source = JACK_TIMER_CYCLE_COUNTER;
/* For backwards compatibility with scripts, allow
* the user to request the cycle clock on the
* command line, but use the system clock instead
*/
clock_source = JACK_TIMER_SYSTEM_CLOCK;
} else if (tolower (optarg[0]) == 's') {
clock_source = JACK_TIMER_SYSTEM_CLOCK;
} else {
......
......@@ -329,7 +329,11 @@ int main(int argc, char** argv)
value.ui = JACK_TIMER_HPET;
jackctl_parameter_set_value(param, &value);
} else if (tolower (optarg[0]) == 'c') {
value.ui = JACK_TIMER_CYCLE_COUNTER;
/* For backwards compatibility with scripts, allow
* the user to request the cycle clock on the
* command line, but use the system clock instead
*/
value.ui = JACK_TIMER_SYSTEM_CLOCK;
jackctl_parameter_set_value(param, &value);
} else if (tolower (optarg[0]) == 's') {
value.ui = JACK_TIMER_SYSTEM_CLOCK;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment