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=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 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 13955C433ED for ; Mon, 17 May 2021 12:38:23 +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 5571B61221 for ; Mon, 17 May 2021 12:38:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5571B61221 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=perex.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@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 DC202836; Mon, 17 May 2021 14:37:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DC202836 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1621255098; bh=jJ8OFk2LQnwrSgjoNHq171wQiQ37b4nGcXTeBQ/fq4c=; h=Subject:To:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=N6xKcaoBNBHx7ulzTu7oHfayB3SyzLV7IPMcH5ksF5ttm0SSLfIlC6JiW9tdp5deo gGrrCj5MiReQ3bCyvDHUkd4Nu4kX+NzT69Jdh6Bs6uIOP97I6+Hpw0SOfe7p9jI8J+ jUv8SZts1VTZxWki0tyd1EpSk++PdsAVrB8rxtF0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 71F1AF8016E; Mon, 17 May 2021 14:37:28 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 74FC3F80169; Mon, 17 May 2021 14:37:26 +0200 (CEST) Received: from mail1.perex.cz (mail1.perex.cz [77.48.224.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 42168F80169 for ; Mon, 17 May 2021 14:37:19 +0200 (CEST) Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id A2DAEA003F; Mon, 17 May 2021 14:37:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz A2DAEA003F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1621255038; bh=R1bU6Jrq/5ExtiJ+ZqoPvl2rIJ5SXZsHVPE/kICrvGU=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Hbe7FrAUjKOjlq0QuUBLaza2c5/bIuVEAQO2H1LWkhwnq9hwwsNEMwkT16ApsrNvt 6ik2kEc7FzZLB1KLByBtybu+rY/BhMhFZn3pwQPQQCR4tYM3CrT0jAIwoBLHhIm5rx Y9Lix8LjcCstBAnfmNQOINvKplK77guOAR8XK4U4= Received: from p1gen2.localdomain (unknown [192.168.100.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: perex) by mail1.perex.cz (Perex's E-mail Delivery System) with ESMTPSA; Mon, 17 May 2021 14:37:15 +0200 (CEST) Subject: Re: [PATCH] sound: rawmidi: Add framing mode To: David Henningsson , tiwai@suse.de, alsa-devel@alsa-project.org References: <20210515071533.55332-1-coding@diwic.se> From: Jaroslav Kysela Message-ID: Date: Mon, 17 May 2021 14:37:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210515071533.55332-1-coding@diwic.se> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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" Dne 15. 05. 21 v 9:15 David Henningsson napsal(a): > This commit adds a new framing mode that frames all MIDI data into > 32-byte frames with a timestamp. > > The main benefit is that we can get accurate timestamps even if > userspace wakeup and processing is not immediate. > > Testing on a Celeron N3150 with this mode has a max jitter of 2.8 ms, > compared to the in-kernel seq implementation which has a max jitter > of 5 ms during idle and much worse when running scheduler stress tests > in parallel. > > Signed-off-by: David Henningsson Reviewed-by: Jaroslav Kysela -- Jaroslav Kysela Linux Sound Maintainer; ALSA Project; Red Hat, Inc.