Skip to contentSkip to conversation

hwdep: define interface for hwdep device

PATCH New GitHub pull_request - opened 1 participant 1 message Jun 2, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

cover hwdep: define interface for hwdep device

In reply to a message not in the archive

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