[PATCH 0/2] hwdep: define interface for hwdep device
GitHub pull_request - opened
github at alsa-project.org
Thu Jun 2 11:43:49 CEST 2022
alsa-project/alsa-gobject pull request #73 was opened from takaswie:
The protocol in ALSA HwDep character device has common feature to each device. It's suitable for userspace implementation to have GObject interface for such features.
This patchset 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.
```
Takashi Sakamoto (2):
hwdep: use explicit value for iface type enumeration
hwdep: device-common: add interface for common feature of ALSA HwDep device
src/hwdep/alsahwdep-enum-types.h | 67 +++++++---------
src/hwdep/alsahwdep.h | 2 +
src/hwdep/alsahwdep.map | 6 ++
src/hwdep/device-common.c | 128 +++++++++++++++++++++++++++++++
src/hwdep/device-common.h | 102 ++++++++++++++++++++++++
src/hwdep/meson.build | 2 +
6 files changed, 267 insertions(+), 40 deletions(-)
create mode 100644 src/hwdep/device-common.c
create mode 100644 src/hwdep/device-common.h
```
Request URL : https://github.com/alsa-project/alsa-gobject/pull/73
Patch URL : https://github.com/alsa-project/alsa-gobject/pull/73.patch
Repository URL: https://github.com/alsa-project/alsa-gobject
More information about the Alsa-devel
mailing list