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 2B101C433EF for ; Thu, 2 Jun 2022 09:44:42 +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 180B81707; Thu, 2 Jun 2022 11:43:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 180B81707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1654163081; bh=/UbzQ8hLVpSvmYolL/vcTujEcBjFzu2I12SgSs0aIis=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=eulzGxZK8wo06MR2BM7AAs4g1DAYOvstfLE8Hn4StUP33MgmkcALISU5rW7r1tEw4 Neb88nxJcbwPXX4AFjkMPgjGgTMnpOYLgV7ObaNmGIM8e0OW4KRnCXiVYQly34dvSS JDINTKLipTELSKcCgNYfz04YIfx+RTJyUEtJfTeQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BA409F80124; Thu, 2 Jun 2022 11:43:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DA155F80236; Thu, 2 Jun 2022 11:43:49 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id 7FEA2F80124 for ; Thu, 2 Jun 2022 11:43:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7FEA2F80124 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub pull_request - opened To: alsa-devel@alsa-project.org In-Reply-To: <1654163027056525946-webhooks-bot@alsa-project.org> References: <1654163027056525946-webhooks-bot@alsa-project.org> Subject: [PATCH 0/2] hwdep: define interface for hwdep device Message-Id: <20220602094349.DA155F80236@alsa1.perex.cz> Date: Thu, 2 Jun 2022 11:43:49 +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 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