diff options
author | dvdli <70133153+dvdli@users.noreply.github.com> | 2023-09-04 17:34:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 17:34:44 +0800 |
commit | c0fbed5e2ba87ee8cacc3cbca55488bcb85f327a (patch) | |
tree | d8f0fabf18bb5338c21819d8b1669c1031eccb2e /include/tinyalsa/plugin.h | |
parent | 7c467a1179cca66bb65a4a04f889319e4bfb9b3e (diff) | |
parent | bc3af517534346742a2e753f753a0ad21f51513b (diff) |
Merge pull request #246 from CodeLinaro/master
Support pcm drain ops
Diffstat (limited to 'include/tinyalsa/plugin.h')
-rw-r--r-- | include/tinyalsa/plugin.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/tinyalsa/plugin.h b/include/tinyalsa/plugin.h index b2f97b9..055734c 100644 --- a/include/tinyalsa/plugin.h +++ b/include/tinyalsa/plugin.h @@ -124,7 +124,10 @@ struct pcm_plugin_ops { int (*prepare) (struct pcm_plugin *plugin); /** Start data transfer from/to the plugin */ int (*start) (struct pcm_plugin *plugin); - /** Drop pcm frames */ + /** Signal the plugin to drain PCM */ + int (*drain) (struct pcm_plugin *plugin); + /** Stop a PCM dropping pending frames if drain() is NOT called. + * Stop a PCM preserving pending frames if drain() is called. */ int (*drop) (struct pcm_plugin *plugin); /** Any custom or alsa specific ioctl implementation */ int (*ioctl) (struct pcm_plugin *plugin, |