]> git.alsa-project.org Git - alsa-gobject.git/commit
hwdep: device-common: add interface for common feature of ALSA HwDep device
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 3 Jun 2022 03:36:48 +0000 (12:36 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 3 Jun 2022 03:36:48 +0000 (12:36 +0900)
commit2aee4ea9c5d4298106f4aa0f86b381662662792e
tree0840bebdf3f18f4bc6052410934b757d46f019bd
parent88318831e246e84192fa4e96e414be4d215a6a12
hwdep: device-common: add interface for common feature of ALSA HwDep device

The protocol in ALSA HwDep character device has common feature. It's
suitable for userspace implementation to have GObject interface for such
features.

This commit adds the interface. The implementation of interface should
have four methods; open, get_protocol_version, get_device_info, and
create_source. Additionally, it should emit handle-disconnection signal
when detecting ENODEV error in the interation of source. It requires to
notify userspace application since the application should release
character device immediately.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/hwdep/alsahwdep.h
src/hwdep/alsahwdep.map
src/hwdep/device-common.c [new file with mode: 0644]
src/hwdep/device-common.h [new file with mode: 0644]
src/hwdep/meson.build