Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE5ADC433EF for ; Thu, 2 Jun 2022 10:08:23 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A25F01718; Thu, 2 Jun 2022 12:07:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A25F01718 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1654164501; bh=kKRgMFkAcrOCwy0OIAu0DsgSEAF0xJnNKwKV277U+yY=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=n9KnVdn8ntYzV+GOITaObUBDmyvcxvkIHzhNjv4BBdqxXSS32zng1T6Qm3EgsGyGn jGHf9VDhT2FB6WoS9a5jbZ/VT4bfvZMbSpGYAJWpmzD5AHP8w5Zlpp9PM1jzQa8PAL NpesL+JU6csQN6KdYwSROsRgWwbDh3vmpJ4izpks= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3CDD5F80158; Thu, 2 Jun 2022 12:07:31 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5A9A8F80236; Thu, 2 Jun 2022 12:07:29 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id 5E723F80089 for ; Thu, 2 Jun 2022 12:07:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5E723F80089 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub pull_request - edited To: alsa-devel@alsa-project.org In-Reply-To: <1654164445923382044-webhooks-bot@alsa-project.org> References: <1654164445923382044-webhooks-bot@alsa-project.org> Subject: [PATCH 0/2] hwdep: define interface for hwdep device Message-Id: <20220602100729.5A9A8F80236@alsa1.perex.cz> Date: Thu, 2 Jun 2022 12:07:29 +0200 (CEST) X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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