Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp535638pxu; Wed, 7 Oct 2020 09:18:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0AMQpwecunaKRKoR38CcyUWG5xYsF3OMTQYIEw0AafoEcAJhIXZGpNDf362cqsDXlFbnS X-Received: by 2002:a17:906:82d5:: with SMTP id a21mr4120120ejy.548.1602087499141; Wed, 07 Oct 2020 09:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602087499; cv=none; d=google.com; s=arc-20160816; b=AI8GNEZANX23Iwr/ArWr3q9UgOZrOD20AoNl5jHG09ulKIV7i1WmzKm/yMgAFZ62ws XjOZ6i3BZJ4ebaRsrSgj4SyU6vEJrm9q/hyiC3wbEAkdeyTa75WWdYeZ788GkEg25QdT XAefFCou3qQ7HoxI1TCaM1xXYygKugH6OgvqVVbt7zvibXo751Qk7o8vE6TualMEQCe3 +jGK7mOoIar7EZpsWU78p+GreMsQh/GdCQQKA8+3EhcUs/r0fCptDrZhjtZgiazzkXur 56LUyaTi5BU/2VZG51tH8MzAPaH/JP4SMJ+xYZjjNQhOaysMPVh093LQM7MzA/Wxcvkj icIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FPikfaz/iiTGQi5nWBHbRB8G4mXCShpRHE2r00v/p/k=; b=Q8hNS/cEMyt7ZzDfV6JejpAntvmUP1GR/4wiq5v94RJHKTj90Nd/SRbz0wKPwfxkN5 Vqt/7Id0xxCKcQG0mO3Y14nNZNCqlhLK399l7ZQBoR6piGhHBnEX5t7GpStAHp/epWcX 53As+fsAFe33cAoOHqc4hVU7a7l+VSUs888YHSDtgKnx1e3CuVGmBzXCgb8jSgxB3IEi nImraoqwgZeldB1Tho/bVcBgqgpXwPyCKYTpG4qFLpEYlNjFVNxxNINm5FIW9UydirF7 iqyR5xpS5yQqiQ3mvVI4tyg4peZmYrgAhCPypKgHVEnv0nyKNgAH3nmedRCQN8mc/c0Q ONVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=vGjCrBwS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si1890208edp.153.2020.10.07.09.17.56; Wed, 07 Oct 2020 09:18:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=vGjCrBwS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727852AbgJGPgK (ORCPT + 99 others); Wed, 7 Oct 2020 11:36:10 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:42196 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbgJGPgJ (ORCPT ); Wed, 7 Oct 2020 11:36:09 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 097FWFoq023619; Wed, 7 Oct 2020 17:35:15 +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=FPikfaz/iiTGQi5nWBHbRB8G4mXCShpRHE2r00v/p/k=; b=vGjCrBwSR4FcoKznqjDzzOSVKUXfCHvk188gSI2CKZoS/eSEydLL+fYhyprRyLFLLuVD c77/MrC2p9Hc2VGH6lhSl6Z7/EAdXko/TNMJjutwOBxoGGvmGAwl47vvrdcH0/wYtTXT XEhFcgVJ1A6vCeJC4pqU4k9SiHL+K/GR/x1g2C7SN3+hQyg7qmEwHFWWnM3O1TDjSs6X AV432KRVOXrg/vrKf/F4CeXZF3hmFmoucPD8AnYZRfLj/TECMSwaF9k5U06sQySwbsaZ vyzbyrjPIDRcLEVxCbcToT4i3dThv1zUWpvlVYubEdih3wAfR2JZBpoqiAyOajw8bXiV qA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3402tjwfh0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 17:35:15 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BE8CA100034; Wed, 7 Oct 2020 17:35:14 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AB1C22B8A24; Wed, 7 Oct 2020 17:35:14 +0200 (CEST) Received: from localhost (10.75.127.45) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Oct 2020 17:35:14 +0200 From: Olivier Moysan To: , , , , , , CC: , , , Subject: [PATCH 1/2] ASoC: stm32: dfsdm: change rate limits Date: Wed, 7 Oct 2020 17:34:58 +0200 Message-ID: <20201007153459.22155-2-olivier.moysan@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201007153459.22155-1-olivier.moysan@st.com> References: <20201007153459.22155-1-olivier.moysan@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG1NODE3.st.com (10.75.127.3) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-07_09:2020-10-06,2020-10-07 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DFSDM can support a larger rate range than currently supported in driver. Increase rate upper limit to 48kHz and allow all rates in the range 8kHz to 48kHz. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_adfsdm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c index ec27c13af04f..c4031988f981 100644 --- a/sound/soc/stm/stm32_adfsdm.c +++ b/sound/soc/stm/stm32_adfsdm.c @@ -47,9 +47,6 @@ static const struct snd_pcm_hardware stm32_adfsdm_pcm_hw = { SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_PAUSE, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, - .rate_min = 8000, - .rate_max = 32000, - .channels_min = 1, .channels_max = 1, @@ -143,8 +140,9 @@ static const struct snd_soc_dai_driver stm32_adfsdm_dai = { .channels_max = 1, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, - .rates = (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | - SNDRV_PCM_RATE_32000), + .rates = SNDRV_PCM_RATE_CONTINUOUS, + .rate_min = 8000, + .rate_max = 48000, }, .ops = &stm32_adfsdm_dai_ops, }; -- 2.17.1