Skip to content

Commit

Permalink
speaker-test: allow large buffer and period time setup - up to 100 se…
Browse files Browse the repository at this point in the history
…conds

BugLink: #224
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
perexg committed Aug 13, 2023
1 parent 0969202 commit c41f3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions speaker-test/speaker-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,11 +1063,11 @@ int main(int argc, char *argv[]) {
break;
case 'b':
buffer_time = atoi(optarg);
buffer_time = buffer_time > 1000000 ? 1000000 : buffer_time;
buffer_time = buffer_time > 100000000 ? 100000000 : buffer_time;
break;
case 'p':
period_time = atoi(optarg);
period_time = period_time > 1000000 ? 1000000 : period_time;
period_time = period_time > 100000000 ? 100000000 : period_time;
break;
case 'P':
nperiods = atoi(optarg);
Expand Down

0 comments on commit c41f3cf

Please sign in to comment.