Commit Graph

5 Commits

Author SHA1 Message Date
Rohit kumar cebab3bf93 tinyalsa: add plugin support for mmap/poll ops 2020-09-03 11:29:44 +05:30
Ethan Sommer a6fc680aeb include/tinyalsa/plugin.h: include time.h
Older versions of linux's API header sound/asound.h accidentally rely on
indirect declaration of struct timespec, which isn't reliable, so
include time.h before it to support older versions of sound/asound.h
properly
2020-06-05 17:18:44 -04:00
Minecrell de025cac62 tinyalsa: include <sys/types.h> for ssize_t
ssize_t is defined in <sys/types.h>, see
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html

Add an include for it to avoid a compile error when building with musl:

../include/tinyalsa/plugin.h:184:5: error: expected specifier-qualifier-list before 'ssize_t'
  184 |     ssize_t (*read_event) (struct mixer_plugin *plugin,
      |     ^~~~~~~
2020-04-23 14:53:46 +02:00
Bhalchandra Gajare 26850f5435 tinyalsa: add support for mixer plugins
Update the mixer framework to support plugins. Add ability for physical
card to have either kernel registered mixer controls or plugin
registered mixer control or both. Split mixer controls into two groups,
one for kernel registered (hw_grp) and the other for plugin registered
(virtual_grp).

Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2020-02-07 12:53:00 +05:30
Bhalchandra Gajare dcea636de0 tinyalsa: add support for PCM plugins
Update the pcm framework to support plugins. Resolve the pcm device node
to be either kernel device or virtual device and setup function pointers
accordingly. Implement framework functionality for pcm_plugin.c for ease
of plugin development. Plugin itself is compiled as shared object (.so)
and dynamically linked from pcm_plugin.c.

Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2020-02-07 12:16:27 +05:30