Commit Graph

9 Commits

Author SHA1 Message Date
dvdli a003e01ecd fix test case to match the API 2021-01-28 17:46:05 +08:00
dvdli 61ed424e2b 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
2021-01-28 15:14:34 +08:00
dvdli 1db8c1f78a prepare in pcm_generic_transfer 2021-01-28 14:25:40 +08:00
dvdli a72d982b0d remove pcm_prepare in pcm_open
For the dynamic pcm device, it is valid to specify the backend after
opening it. However, it is invalid to call prepare on a dynamic pcm
device without connecting any backend device. We should not do
pcm_prepare in pcm_open.

See also: Issue #197
2021-01-12 15:55:49 +08:00
dvdli 0821e39571 fix typo, add comments to describe the tests and fix the loopback test 2020-12-02 15:20:20 +08:00
dvdli 5818ecf32c add instructions to run tests and fix typo 2020-12-01 14:10:34 +08:00
dvdli 903411c837 add unit tests
1. add mixer event test
2. add pcm capturing test
3. add pcm loopback test
2020-11-26 11:11:19 +08:00
dvdli b4dbaa08e3 add unit tests for mixer related functions 2020-11-23 11:39:27 +08:00
dvdli 8c6aba1c8d add unit tests for pcm_* functions 2020-11-16 17:07:04 +08:00