]> 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)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Fri, 3 Jun 2022 03:39:32 +0000 (12:39 +0900)
commit326a613748f3611787420e5a35c96a970d7bac38
tree0840bebdf3f18f4bc6052410934b757d46f019bd
parent3d6f95771ea221ad54a4b0d760811c92db03c0ec
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