diff options
author | dvdli <70133153+dvdli@users.noreply.github.com> | 2021-02-01 13:29:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 13:29:04 +0800 |
commit | 1c5fb68ced57d838f2b7ecd0c00bc1fefc9ab60d (patch) | |
tree | 8b6a2d44a4291fa0c2cd3a79edbe123f52bb7a01 /utils | |
parent | 8c5da09cd7c6b35323a61e50c9e988694eb81a8e (diff) | |
parent | 5e65c16b305b9e4a3ca858cfb1b7a188db0d5242 (diff) |
Merge pull request #198 from dvdli/tinyalsa-dev
fix bugs
Diffstat (limited to 'utils')
-rw-r--r-- | utils/tinymix.c | 2 | ||||
-rw-r--r-- | utils/tinyplay.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/utils/tinymix.c b/utils/tinymix.c index 5c0378c..e272ade 100644 --- a/utils/tinymix.c +++ b/utils/tinymix.c @@ -370,7 +370,7 @@ fail: static int is_int(const char *value) { - return value[0] >= '0' || value[0] <= '9'; + return value[0] >= '0' && value[0] <= '9'; } struct parsed_int diff --git a/utils/tinyplay.c b/utils/tinyplay.c index 2689158..4c7ccf6 100644 --- a/utils/tinyplay.c +++ b/utils/tinyplay.c @@ -303,6 +303,9 @@ int main(int argc, char **argv) case 'i': cmd.filetype = opts.optarg; break; + case 'M': + cmd.flags |= PCM_MMAP; + break; case 'h': print_usage(argv[0]); return EXIT_SUCCESS; |