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 6241EC36014 for ; Mon, 31 Mar 2025 20:41:30 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9A48160207; Mon, 31 Mar 2025 22:41:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9A48160207 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1743453687; bh=DkOJkAJjPbLtcp6Ja8VjPzB1IWZLjlJMBB0Jk7+Zu3E=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=qdd4f9EEFJX72XzDvWNR7VmzqY/Z1ysLxbclfTLukSXSWclSyi/6fzs4XAujwr7ZX OJFSf3pZdb/NBLqqapb/OTZ0h5Sg1d5kYe5wPutvh+HztUxGI2hsftLbnWuAw7lEZa gfe8HFxUxYi+Fu/wlexdZlk52QQNquAqy/3CBsAk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6F7FFF805C7; Mon, 31 Mar 2025 22:40:54 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2CDC9F805B3; Mon, 31 Mar 2025 22:40:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 27BA8F8013D; Mon, 31 Mar 2025 22:40:49 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (vmi2259423.contaboserver.net [45.14.194.44]) by alsa1.perex.cz (Postfix) with ESMTP id 2ABD5F80095 for ; Mon, 31 Mar 2025 22:40:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2ABD5F80095 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org Message-Id: <1831fddaa08fb500-webhooks-bot@alsa-project.org> In-Reply-To: <1831fddaa087b800-webhooks-bot@alsa-project.org> References: <1831fddaa087b800-webhooks-bot@alsa-project.org> Subject: Difference in behaviour between physical devices and virtual endpoints Date: Mon, 31 Mar 2025 22:40:49 +0200 (CEST) Message-ID-Hash: BSEE62BZV62BAMEVLNBDGFBH6CKICLYY X-Message-ID-Hash: BSEE62BZV62BAMEVLNBDGFBH6CKICLYY X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: alsa-project/alsa-lib issue #447 was opened from reuk: As a disclaimer, there's a good chance this is user error/misunderstanding rather than a bug, but I'd appreciate any insights to help me understand the behaviour I'm seeing. # Environment - Fedora 41 x86_64 - alsa-lib-devel-1.2.13-3 # Steps - Run `aseqdump -u 1` in a terminal - Connect ProtoZOA hardware via USB - Launch QjackCtl -> Graph, then connect the ProtoZOA's MIDI 2.0 output port (0) to `aseqdump`'s input port. Image - Observe that `aseqdump` reports a new subscription from `24:0 -> 128:0` (the client IDs may vary, the important thing is that the subscription is between to ports with ID `0`). - Move one of the controllers on the ProtoZOA. Observe that `aseqdump` reports channel voice events on group 0 with source `24:1`. Image - Connect `aseqdump` to port `1:Group 1 (FB1, FB2)`, and interact with the ProtoZOA. Observe that `aseqdump` still reports channel voice events on group 0 with source `24:1`. - Now, build and run the [seq-ump-example](https://github.com/alsa-project/alsa-lib/blob/master/test/seq-ump-example.c). - Connect the ProtoZOA to the ACMESynth input, and the ACMESynth output to `aseqdump` as shown. Observe that `aseqdump` does **not** report channel voice events when interacting with the ProtoZOA. Image - Finally, update the connections as shown, so that `aseqdump` is connected to ACMESynth's `1:Group 1 (Filter 1)` output. Observe that `aseqdump` now reports channel voice events with source `128:1` when interacting with the ProtoZOA. Image # TL;DR When we subscribe to a USB `MIDI 2.0` port, we receive messages from all of the endpoint's ports. Messages are dispatched to the appropriate port based on the message group. When we subscribe to a virtual UMP endpoint's `MIDI 2.0` port, this appears to *only* subscribe to that single port, and not to the rest of the ports on the endpoint, so that messages addressed to specific groups get lost. # Questions - Is this difference in behaviour between hardware and virtual endpoints intentional? - What is the "correct" way to subscribe to all UMP events from an endpoint? Should I subscribe just to the `MIDI 2.0` endpoint, or to all ports on the endpoint, or something else? Issue URL : https://github.com/alsa-project/alsa-lib/issues/447 Repository URL: https://github.com/alsa-project/alsa-lib