Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3502511imw; Thu, 7 Jul 2022 02:56:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sMovZYIa5nqKIv+HhAJPoT+0vfuNdRG5vvLTSyBU4YMHLMmfbN5/gr2zfXmPZCfpF7Ho+g X-Received: by 2002:a63:6e08:0:b0:40c:7557:c4aa with SMTP id j8-20020a636e08000000b0040c7557c4aamr39350269pgc.356.1657187817447; Thu, 07 Jul 2022 02:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657187817; cv=none; d=google.com; s=arc-20160816; b=Uq3vZV2xQTLzhRVFh5AH3HU7kwz/uSQbj6WzOM4zOBNGqReGz41CoNCesHoBtlnuY4 VEjH/dp4WLK2R5c2iNLvGHF5bRWuRWbNTdsO5sfvKY/jhZyJq6LAsxf+Cmo/P4T3E9Oq fqkQSQxjU3q62xrX1r+MFBz5AJ987V0eJdD6XGoVUT7nM3ePaiiRea1MIvJnfmx56CFt a5uTJki0JlAis/aPVeOt22lREUUgqriCXDvPzWOuSFF7gDiwlmdyPIvB7fRwL/iOREo6 D6mvGiOEUKCKmrrWAvxYRiCj9rxo+PvB7tZ3h6TOVK1YH3lYE/Kg4523c+DUIPvAQ9j8 B+KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=nve6BKmlaYOc+otcI5eNXohDPw2cjmzrRzVfk9qXlSw=; b=ogHNTS252a8RNbdJGRwlY9hdP9ccw3/H9Bs5oXG5kvUS/VYIwags8fZCDQmtgQmrQl yOBcP3ECctcvyfmjyZnVyC/FqLO7rMiJXYn4YmU5NkhC3tsQm1lRmSmmFkTE5UTjS8Ja iqzIF6qSMzuIJwpSunLIU58xFf3Ml8l+slHlnOrR1vMKlPKiy//cQxDLCJktHU3swl3k ABXX4Ow9m4RPL5ESeN4KIo5E2VAtc/CYvQJKJc6kXaZgekA0ghRSnkJo82fLDn5pqe6C uYaYM9Fe2ERWAPLpicNAZFnaa1U9GAEQQseznB+H3uUkQwLI1ZNYrARR7SYrYm1KF8+0 itMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=QV8hoZwQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw24-20020a056a00451800b0050de3100e2asi1256923pfb.97.2022.07.07.02.56.44; Thu, 07 Jul 2022 02:56:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=QV8hoZwQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235050AbiGGJyE (ORCPT + 99 others); Thu, 7 Jul 2022 05:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233939AbiGGJyD (ORCPT ); Thu, 7 Jul 2022 05:54:03 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B2D94D14B; Thu, 7 Jul 2022 02:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1657187641; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nve6BKmlaYOc+otcI5eNXohDPw2cjmzrRzVfk9qXlSw=; b=QV8hoZwQTYaJ3Jt8bNtBQ+DQI0juH8x5zi9rMmqfAh1yP2oH9HizoJIn8ro25vqQChCN1G M9ZoL16/rzcKJcqAfnOp+VBukhcMLdDuhYIfNUJ8x/h6/TaEa7+bcVkEkOOKymU+bhNVYu KGkMwRNo+s52kdYt5n57pjrCZDEMZwE= Date: Thu, 07 Jul 2022 10:53:47 +0100 From: Paul Cercueil Subject: Re: [PATCH 11/11] ASoC: jz4740-i2s: Support continuous sample rate To: Aidan MacDonald Cc: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, linux-mips@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: <20220706211330.120198-12-aidanmacdonald.0x0@gmail.com> References: <20220706211330.120198-1-aidanmacdonald.0x0@gmail.com> <20220706211330.120198-12-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mer., juil. 6 2022 at 22:13:30 +0100, Aidan MacDonald=20 a =E9crit : > The I2S controller on JZ47xx SoCs doesn't impose restrictions on > sample rate and the driver doesn't make any assumptions about it, > so the DAI should advertise a continuous sample rate range. >=20 > Signed-off-by: Aidan MacDonald Acked-by: Paul Cercueil Cheers, -Paul > --- > sound/soc/jz4740/jz4740-i2s.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/sound/soc/jz4740/jz4740-i2s.c=20 > b/sound/soc/jz4740/jz4740-i2s.c > index ee99c5e781ec..053697c7f19e 100644 > --- a/sound/soc/jz4740/jz4740-i2s.c > +++ b/sound/soc/jz4740/jz4740-i2s.c > @@ -378,13 +378,13 @@ static struct snd_soc_dai_driver jz4740_i2s_dai=20 > =3D { > .playback =3D { > .channels_min =3D 1, > .channels_max =3D 2, > - .rates =3D SNDRV_PCM_RATE_8000_48000, > + .rates =3D SNDRV_PCM_RATE_CONTINUOUS, > .formats =3D JZ4740_I2S_FMTS, > }, > .capture =3D { > .channels_min =3D 2, > .channels_max =3D 2, > - .rates =3D SNDRV_PCM_RATE_8000_48000, > + .rates =3D SNDRV_PCM_RATE_CONTINUOUS, > .formats =3D JZ4740_I2S_FMTS, > }, > .symmetric_rate =3D 1, > @@ -415,13 +415,13 @@ static struct snd_soc_dai_driver jz4770_i2s_dai=20 > =3D { > .playback =3D { > .channels_min =3D 1, > .channels_max =3D 2, > - .rates =3D SNDRV_PCM_RATE_8000_48000, > + .rates =3D SNDRV_PCM_RATE_CONTINUOUS, > .formats =3D JZ4740_I2S_FMTS, > }, > .capture =3D { > .channels_min =3D 2, > .channels_max =3D 2, > - .rates =3D SNDRV_PCM_RATE_8000_48000, > + .rates =3D SNDRV_PCM_RATE_CONTINUOUS, > .formats =3D JZ4740_I2S_FMTS, > }, > .ops =3D &jz4740_i2s_dai_ops, > -- > 2.35.1 >=20