Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2421546yba; Mon, 6 May 2019 05:57:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/XSf/xT6zwFTJXlOTg5d3GhG1jFL2PxPcnd4DRsYbAPSjqsrVYJupYZ1Bu/L7wY0UUixF X-Received: by 2002:a17:902:b715:: with SMTP id d21mr32154960pls.103.1557147478392; Mon, 06 May 2019 05:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557147478; cv=none; d=google.com; s=arc-20160816; b=PHY9W1rVFpNayQ3kHLdNQFgboEPhvyf9Bf+m8HP0j6ifk1tEzXDt2uuVWZGsR41BEu s48Sg98311nik17lSz1KCD2ztFdiYO5tw8pnoDgs9WQRmfQ46tBMU0hHoF6nMB8gCxBx 0xzrIca5UC8SCW7tt7BPMvPobv9pwIMjlfp8UiW2CYnDHCUtyxgV3v8xQiz1gdohbV9z LBXuEVz9GiGhdOnV0svGTwoNllKxeeQhotKSDylG07aBeK2sM+YMmqtspoGY2sA51p57 cFxgwUovjg7xr4Whdy90GolaTAKjt+AO13gpvWwlPjfTSIpu19l5hFPtGA/ODbZZ6Otl Snag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=3kFwMKbKYMsaZC/t5BJpLcimIE6oOsV4hYGP/yTI/ZI=; b=JDDxnZWAFnRISNaeDwykuz478fRnLn6QAix7qIhUpwvhYthdOAh2UfR7p43MoPFmyz 2/1qoZ0Qiu3kHfbJ5w1KllCdNcolHOFxihamPK8T7GW87RZuYfvDmCSC6EiGHUjix52G +XDrK/KklLmIn0VP7r6eOf/N3WDrVaTQH8sf6p9LV0HZpvRvtsZ8QNY9+y1NvM/lcYL1 Wip8HKRdfBfZvKSQFo8WpGOWzDY2zR/asnJYqCUG9QGRgH6BJk2pVIdDf64ivC8r6331 ofWl7z376gt+bfUW9/RCo75qYWYGMUam6BC58Sanjn8Bua6Ja0c713FZHEerek5ooP3D wQsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b="ciOFVw/g"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z19si10832040pgi.180.2019.05.06.05.57.42; Mon, 06 May 2019 05:57:58 -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=pass header.i=@st.com header.s=STMicroelectronics header.b="ciOFVw/g"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726340AbfEFMzS (ORCPT + 99 others); Mon, 6 May 2019 08:55:18 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:34026 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725852AbfEFMzR (ORCPT ); Mon, 6 May 2019 08:55:17 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x46CkflE011958; Mon, 6 May 2019 14:54:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=3kFwMKbKYMsaZC/t5BJpLcimIE6oOsV4hYGP/yTI/ZI=; b=ciOFVw/gA7djxix3O9hnH2uU5Ojmturiy812BMGs74Ez58AZkDXgc9L/GT1WWv5NDL12 zd0Ffy2TPgR6t74bnOinJm+nUPQFjokYivY9sgOhkAlbEL8urbzK9axsaUfDnYwBlFFn Tlg4+eljKJQ+6IqZvknHdzIi9XlygRQKRI3ux7H6ByszyAOn6qiBe8QCWloqP7BLKaAS G1MCoqiCEwvPy8vt0FMWQGJa+/1Jgb+me01Xpk2BLMzsv3MHCKJmMNtLbNUOBd0Aym7G 1a7T4MmfSsixbm8wbP8KWFwBr5bxsS05n97InDeYFxaeXp14qqzAtvug11J3OTjK7Yyo MQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2s94c39ge1-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 06 May 2019 14:54:26 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 26F2F3A; Mon, 6 May 2019 12:54:26 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F3D4B25BA; Mon, 6 May 2019 12:54:25 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 May 2019 14:54:25 +0200 Received: from localhost (10.201.23.16) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 May 2019 14:54:25 +0200 From: Olivier Moysan To: , , , , , , , , , , , CC: Subject: [PATCH 1/2] ASoC: stm32: i2s: update pcm hardware constraints Date: Mon, 6 May 2019 14:54:11 +0200 Message-ID: <1557147252-18679-2-git-send-email-olivier.moysan@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557147252-18679-1-git-send-email-olivier.moysan@st.com> References: <1557147252-18679-1-git-send-email-olivier.moysan@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.16] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-06_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - 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 --- 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.7.4