Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4838852yba; Wed, 8 May 2019 03:45:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8VW1d1PHiDzsEW+2B+SKC+7EMlWLrdV/bVmZpX+a8JeX4r3EGMVAyY/lqUuy6AxGG8C1/ X-Received: by 2002:a63:6b49:: with SMTP id g70mr45986026pgc.176.1557312318964; Wed, 08 May 2019 03:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557312318; cv=none; d=google.com; s=arc-20160816; b=I+3iau2EklBv2epdAjRizeKiZEgZy7HJOGCtrkcD2j5YcjECUGAlJ2PF3isw0MEQWb q7Dpspsu/gyZtAmMMN0oHwwwGaVQTSan3fYwXe7JBZySs7JZFIifMqrW39Y7W4STeUdG 2vFi5iSOnCy2mhMKUeFlJl4i+1zRHDvjFiyvxxo8sRjRO0VeFnp7sO0sT92K2A6tg4DV T9aSkca/R5L3NYNthXscUwKa47hsyvEZtXRSvNdNhfUf+GCB8b/WdobGIGRP+iBt8Zs7 899PQ85ZeSGp7s0qlILtvwHXotLSyhXb/hYAxhhQ5JWXmBb1I5pcu+wEDk0vWHMIUfkJ nzrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=/1N9JZp2JQsf9CYYNCJzOBAG67m4fbIhB/j22kK9mlU=; b=GO4bVvVgSQYKn6/taJIgPgmpkQ1lD3+I1RSzW06Ea7fbbDleQAIEhOx0vfJF2sOVQo m/WrvwBmrR1TkPLMd7UJJz0i4jcJuZYCrHnvyDIwTerqaZOAQeMS8Ylu4ZNtPsxTByS6 KRnUyH7w3qi/4pqjRELjYPcejIJpij3SkF3vzsgUOWbRx5UNHTWXs2fzBEcG7P6Dqvi5 uXmBfb/9+sMrOPrf+QpHZQt4e3AUkE8jeMoQZF9hOd8CBjKEorCy5LE4YynpjcdtUxwy BvdK08hFdrvT+vHdRmGr/WjqweABzzUTULAQG2f55yiAVwfgT9fy2Dz8VLi0JIigD8Za QlCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=PMUHRco9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si22520474pgt.73.2019.05.08.03.44.59; Wed, 08 May 2019 03:45:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=PMUHRco9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726870AbfEHJCX (ORCPT + 99 others); Wed, 8 May 2019 05:02:23 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:46004 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726464AbfEHJCX (ORCPT ); Wed, 8 May 2019 05:02:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=/1N9JZp2JQsf9CYYNCJzOBAG67m4fbIhB/j22kK9mlU=; b=PMUHRco9ZAMJ 38hTtA/ioeQf5v4aZJ/dE3UGilVQgss3i5QRQwZwIYgUfSCb7Drtnv/0acH33nuYndnBHSQeN811R Ov2FHO86pAeBRnnNvgGjK5Qci4MJlHdRdfd6r0oyduBsctknWhT2R29R5PywS5Quf3r7ErPNOC5jV CfovM=; Received: from [61.199.190.11] (helo=finisterre.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hOISN-0007dj-1b; Wed, 08 May 2019 09:01:43 +0000 Received: by finisterre.sirena.org.uk (Postfix, from userid 1000) id 165F0440039; Wed, 8 May 2019 10:01:30 +0100 (BST) From: Mark Brown To: Olivier Moysan Cc: alexandre.torgue@st.com, alsa-devel@alsa-project.org, arnaud.pouliquen@st.com, benjamin.gaignard@st.com, broonie@kernel.org, lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Mark Brown , mcoquelin.stm32@gmail.com, olivier.moysan@st.com, perex@perex.cz, tiwai@suse.com Subject: Applied "ASoC: stm32: i2s: update pcm hardware constraints" to the asoc tree In-Reply-To: <1557147252-18679-2-git-send-email-olivier.moysan@st.com> X-Patchwork-Hint: ignore Message-Id: <20190508090130.165F0440039@finisterre.sirena.org.uk> Date: Wed, 8 May 2019 10:01:30 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: stm32: i2s: update pcm hardware constraints has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 4fc19fffaaf87335aafaeb059a561ef91aa6031c Mon Sep 17 00:00:00 2001 From: Olivier Moysan Date: Mon, 6 May 2019 14:54:11 +0200 Subject: [PATCH] ASoC: stm32: i2s: update pcm hardware constraints - Set period minimum size. Ensure at least 5ms period up to 48kHz/16 bits to prevent underrun/overrun. - Remove MDMA constraints on period maximum size and set period maximum to half the buffer maximum size. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown --- sound/soc/stm/stm32_i2s.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 97d5e9901a0e..8ee697ff1f86 100644 --- a/sound/soc/stm/stm32_i2s.c +++ b/sound/soc/stm/stm32_i2s.c @@ -731,7 +731,8 @@ static const struct snd_soc_dai_ops stm32_i2s_pcm_dai_ops = { static const struct snd_pcm_hardware stm32_i2s_pcm_hw = { .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP, .buffer_bytes_max = 8 * PAGE_SIZE, - .period_bytes_max = 2048, + .period_bytes_min = 1024, + .period_bytes_max = 4 * PAGE_SIZE, .periods_min = 2, .periods_max = 8, }; -- 2.20.1