aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authordvdli <dvdli@google.com>2021-01-28 15:03:17 +0800
committerdvdli <dvdli@google.com>2021-01-28 15:14:34 +0800
commit3694925022aa16b10978c92b9a2a69661dbbcdcf (patch)
tree9394851d20a337e98081bbc3379f61531d6fbe76 /utils
parentc0f924738de2b8f5478e8b454b4ad5521802f3f6 (diff)
Let pcm_mmap_read/write call pcm_readi/writei
The pcm_readi and pcm_writei also can deal with the mmap read/write. Also mark the pcm_mmap_read/write functions as deprecated functions and update the test case. Add mmap playback support to tinyplay
Diffstat (limited to 'utils')
-rw-r--r--utils/tinyplay.c3
1 files changed, 3 insertions, 0 deletions
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;