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 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 34CADC77B7A for ; Thu, 18 May 2023 07:59:18 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 50961200; Thu, 18 May 2023 09:58:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 50961200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1684396756; bh=axCOCLYCnlKryDT5aq4X4mbqUqH64STqHNMCdz7j6wA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=NFzAfgFJQfJL3L52B2Qzuz3nFjn/EvQcaVfgfmJRZEeuaVmlYMYAaoyjLJ0WEV24y dTAwR0Y65CVYnTHMHIAtn1DOOx+gWOcjkqu55vitTLTBhLs7RnKZrmitpCKSkNdrmr wiZIVWSFI3E/Q+sZ0I2bCxFnMhAoVo4/ZRhl2r6A= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 38B6FF8025A; Thu, 18 May 2023 09:58:02 +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 C8C26F80272; Thu, 18 May 2023 09:58:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A117AF80272; Thu, 18 May 2023 09:57:56 +0200 (CEST) Received: from bluemchen.kde.org (bluemchen.kde.org [IPv6:2001:470:142:8::100]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C555AF8016D for ; Thu, 18 May 2023 09:57:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C555AF8016D Received: from ugly.fritz.box (localhost [127.0.0.1]) by bluemchen.kde.org (Postfix) with ESMTP id 925DF2421A; Thu, 18 May 2023 03:57:51 -0400 (EDT) Received: by ugly.fritz.box (masqmail 0.3.4, from userid 1000) id 1pzYWF-T8c-00; Thu, 18 May 2023 09:57:51 +0200 Date: Thu, 18 May 2023 09:57:51 +0200 From: Oswald Buddenhagen To: Takashi Iwai Cc: alsa-devel@alsa-project.org, Jaroslav Kysela Subject: Re: [PATCH 6/9] ALSA: emu10k1: fix PCM playback buffer size constraints Message-ID: Mail-Followup-To: Takashi Iwai , alsa-devel@alsa-project.org, Jaroslav Kysela References: <20230517174256.3657060-1-oswald.buddenhagen@gmx.de> <20230517174256.3657060-6-oswald.buddenhagen@gmx.de> <874joa1zab.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <874joa1zab.wl-tiwai@suse.de> Message-ID-Hash: 6OLTEN5F2TF665PUD7XMLRQR2LIKDXVI X-Message-ID-Hash: 6OLTEN5F2TF665PUD7XMLRQR2LIKDXVI X-MailFrom: ossi@kde.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.8 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: On Wed, May 17, 2023 at 10:25:00PM +0200, Takashi Iwai wrote: >On Wed, 17 May 2023 19:42:53 +0200, >Oswald Buddenhagen wrote: >> >> The period_bytes_min parameter made no sense at all, as it didn't >> correlate with any hardware limitation. > >Does the device really work with less than 64 bytes period size? >I meant not in theory but in practice. > somewhat predictably, not. >Without any value set, >dumb applications may try to set 4 bytes for period size, > the "try to" is key here. it will fail, because the frame-based constraint will prevent it from doing so. alsa's constraint system is really quite impressive, probably the technically most interesting part of the whole. :-) regards