Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2412547yba; Mon, 6 May 2019 05:47:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHEsleaVHgsv/SqKB5/KYpV+TiYTbaSVpdPELAH6HlbVmz9ADa32aj9WN3/RSfMoiU3k6T X-Received: by 2002:a65:610e:: with SMTP id z14mr7987371pgu.238.1557146867782; Mon, 06 May 2019 05:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557146867; cv=none; d=google.com; s=arc-20160816; b=FUv2MDJueROLnMehyCSrX7Ru3fg8ts79OjfW4O7fkXM6o4v52u0JvdJkJShkOjcJNh FMuYofJZp4J19yvDbM5YuQ0nOqPRM/ctIkRQBeE7PxROs1dnAfVEi4X36rxY8c7ZP8xJ rp9UDwCdzA9K9bK6RREjuntbJiuSNzFHYIzI/1ynKusAqH56w9vFzDQxOfF4kUpi2iSu eYQhrMbc5R0L2LWiqv4Mo30oLbEuwF39f3hI2GjSSJDpOOG4eEyWCAtRk8Y4GC4tepTd 8GFszQRU4uYqz6xl7S02Bl+5eiFwA75S8w0hsyzmg1t4FfNZqcJGHM1XCo2Rz7l9C/BG jJfg== 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=eY0+5DYyMAqjb4Zccz3yB8/8lAlH/xHNJKu3nTKjXys=; b=olwtFuJ8OVLhj2vzqHj6m/5nLKRC3Z1QRt6HAAPy+MDzB6Ht92evM55ikxgE3eZr44 k+QcnxI/ZGQoJYPs8Cags1RzHC0MrE8MwblriFyUAvwFVrAV/baLZ738aEjaPB0g1MPg cvH2c2ScthNJLywfWw+BhwbeJRBTEBe1Iz96tjK2TOflpmiNusgm22STHgmYz5kCCeZr Z+3Dyj88o5lb8scoqiPbbwi5K8PyqObZb0OuU/gzr1WqK58hIreY7jd5lYK5+KIyH8tj SrYWY2JQFD2W2uEbC2Ih6T9UBSxSt7iPbztpBxrjhWg6UoHVruimDaYlQH3pqGVCK32y DjPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=pjrJrSZz; 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 g15si11823976pfg.284.2019.05.06.05.47.32; Mon, 06 May 2019 05:47:47 -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=pjrJrSZz; 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 S1726327AbfEFMpc (ORCPT + 99 others); Mon, 6 May 2019 08:45:32 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:27616 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725994AbfEFMpb (ORCPT ); Mon, 6 May 2019 08:45:31 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x46CaDeE002530; Mon, 6 May 2019 14:44:13 +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=eY0+5DYyMAqjb4Zccz3yB8/8lAlH/xHNJKu3nTKjXys=; b=pjrJrSZzywdlkGypwgTqgKHAqYlReBsynnO7GW5AnMK8onxlK8YjoWvcVJ84fv2OQrTz L1Um5HbKcgktE+wuAm1fbZkXgrVao4DL/LWf8BtWyMQaCOrS31WCZPdQV7EKgxqty0+r Wq5GzkV+b7YE+a6n7kzwjPwrfmZEOauza6uuHyh2cH8tuNPP9djkxN8iV0eubHoBw0L6 g5cQSg9ITcAfuMPaHoFMYMj1Kb7iYpoIUcHf71++lsnJT+u+nzK3HkFtQFt7vRl+OATa mG+Ldc7CzUWHyG7KgV2f+qL1EhhnNU09eiFNBQ9RvG7+OQWFuUhJ3Oo3Jf1xEWbHNMj/ zw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2s94cb9en8-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 06 May 2019 14:44:13 +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 38EE33D; Mon, 6 May 2019 12:44:12 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D69A32586; Mon, 6 May 2019 12:44:11 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 May 2019 14:44:11 +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:44:11 +0200 From: Olivier Moysan To: , , , , , , , , , , , CC: Subject: [PATCH 1/3] ASoC: stm32: spdifrx: update pcm hardware constraints Date: Mon, 6 May 2019 14:44:04 +0200 Message-ID: <1557146646-18150-2-git-send-email-olivier.moysan@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557146646-18150-1-git-send-email-olivier.moysan@st.com> References: <1557146646-18150-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_spdifrx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index b4c3d983e195..aa83b50efabb 100644 --- a/sound/soc/stm/stm32_spdifrx.c +++ b/sound/soc/stm/stm32_spdifrx.c @@ -845,7 +845,8 @@ static struct snd_soc_dai_driver stm32_spdifrx_dai[] = { static const struct snd_pcm_hardware stm32_spdifrx_pcm_hw = { .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP, .buffer_bytes_max = 8 * PAGE_SIZE, - .period_bytes_max = 2048, /* MDMA constraint */ + .period_bytes_min = 1024, + .period_bytes_max = 4 * PAGE_SIZE, .periods_min = 2, .periods_max = 8, }; -- 2.7.4