Skip to content

hwdep: define interface for hwdep device

GitHub pull_request - edited alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] hwdep: define interface for hwdep device

alsa-project/alsa-gobject pull request #73 was edited 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 (3):
  hwdep: use explicit value for iface type enumeration
  hwdep: device-common: add interface for common feature of ALSA HwDep device
  hwdep: add error domain for implementators of DeviceCommon interface

 src/hwdep/alsahwdep-enum-types.h |  89 +++++++++-------
 src/hwdep/alsahwdep.h            |   2 +
 src/hwdep/alsahwdep.map          |  10 ++
 src/hwdep/device-common.c        | 178 +++++++++++++++++++++++++++++++
 src/hwdep/device-common.h        | 106 ++++++++++++++++++
 src/hwdep/meson.build            |   2 +
 tests/alsahwdep-enums            |  10 ++
 7 files changed, 356 insertions(+), 41 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