From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED839C433EF for ; Sun, 19 Sep 2021 17:11:18 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 46A5861028 for ; Sun, 19 Sep 2021 17:11:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 46A5861028 Authentication-Results: mail.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alsa-project.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org 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 ADF2C1689; Sun, 19 Sep 2021 19:10:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz ADF2C1689 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1632071474; bh=qCyY3fdRBImM7PgjB46GnBUCgbRh/wYjKOcdz1K03Mo=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=QRMTYVg4qBlED4a5VIiLatTbZ0hTYzW3nw2b+hrljny9Lgdd4jMFU2oSGWETBYCJp SeIKKgi/Y6SVDCtbiVg6PGIXJXhzw83tWgWfIxPXF/VReib9zCrC7N6hxFDsWaiatq skQtWNKTk3j7SdwuEpwDvku+FTglLX0yXg0HHo/Q= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0406EF800AF; Sun, 19 Sep 2021 19:10:23 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 39971F80268; Sun, 19 Sep 2021 19:10:21 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id D4611F80152 for ; Sun, 19 Sep 2021 19:10:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D4611F80152 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 In-Reply-To: <1632071406839119911-webhooks-bot@alsa-project.org> References: <1632071406839119911-webhooks-bot@alsa-project.org> Subject: Problems with ALSA MIDI raw devices after upgrading to kernel 5.14 Message-Id: <20210919171021.39971F80268@alsa1.perex.cz> Date: Sun, 19 Sep 2021 19:10:21 +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-lib issue #178 was opened from lentferj: I installed 5.14 kernel from this source (https://github.com/geoffreybennett/scarlett-gen2/releases) on Debian Buster to test out the better USB audio latency. I found that both Bitwig and Ardour6 cannot start anymore when using ALSA MIDI raw devices. In Bitwig the sound engine keeps crashing and Ardour6 doesn't start at all when choosing raw devices. In Ardour6 I see this: ``` ALSA lib rawmidi_hw.c:100:(snd_rawmidi_hw_params) SNDRV_RAWMIDI_IOCTL_PARAMS failed: Invalid argument ardour-6.9.0: rawmidi.c:268: snd_rawmidi_open_conf: Assertion `err >= 0' failed. Aborted ``` I also tried to access devices directly with amidi, same result. ``` $ amidi --dump -p hw:5 ALSA lib rawmidi_hw.c:100:(snd_rawmidi_hw_params) SNDRV_RAWMIDI_IOCTL_PARAMS failed: Invalid argument amidi: rawmidi.c:268: snd_rawmidi_open_conf: Assertion `err >= 0' failed. Aborted ``` I manually upgraded alsa-lib and alsa-utils to 1.2.5, but I still have the same problem: ``` $ which amidi /usr/bin/amidi lentferj@ts-d20:~$ ls -l /usr/bin/amidi -rwxr-xr-x 1 root root 57064 Sep 19 18:34 /usr/bin/amidi lentferj@ts-d20:~$ ldd /usr/bin/amidi linux-vdso.so.1 (0x00007ffc50c9b000) libasound.so.2 => /usr/lib/libasound.so.2 (0x00007f9c97c85000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9c97b02000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9c97afd000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9c97adc000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9c9791b000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9c97911000) /lib64/ld-linux-x86-64.so.2 (0x00007f9c97dc0000) lentferj@ts-d20:~$ ls -l /usr/lib/libasound.so.2 lrwxrwxrwx 1 root root 18 Sep 19 18:29 /usr/lib/libasound.so.2 -> libasound.so.2.0.0 lentferj@ts-d20:~$ ls -l /usr/lib/libasound.so.2.0.0 -rwxr-xr-x 1 root root 5242136 Sep 19 18:29 /usr/lib/libasound.so.2.0.0 lentferj@ts-d20:~$ uname -a Linux ts-d20 5.14.0 0000021 SMP Mon Aug 30 00:46:47 UTC 2021 x86_64 GNU/Linux lentferj@ts-d20:~$ amidi -l Dir Device Name IO hw:2,0,0 Saffire 6USB2.0 MIDI 1 IO hw:3,0,0 Neutron(1) MIDI 1 IO hw:4,0,0 Pulse2 MIDI 1 IO hw:5,0,0 LPK25 MIDI 1 lentferj@ts-d20:~$ amidi --dump -p hw:5 ALSA lib rawmidi_hw.c:100:(snd_rawmidi_hw_params) SNDRV_RAWMIDI_IOCTL_PARAMS failed: Invalid argument amidi: rawmidi.c:256: snd_rawmidi_open_conf: Assertion `err >= 0' failed. Abgebrochen ``` When booting back to a 5.10 kernel the problems disappear. I also reported this on the Ardour Tracker ( https://tracker.ardour.org/view.php?id=8800 ). Issue URL : https://github.com/alsa-project/alsa-lib/issues/178 Repository URL: https://github.com/alsa-project/alsa-lib