Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5552958rwi; Sun, 23 Oct 2022 08:00:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+6UEq4YHavtj/0QR6vxSuq+bcreeMHInB0javsB9ULR/8LZpw5646+Qr9WsvhSyi0EQhL X-Received: by 2002:a05:6402:d06:b0:45a:3ac6:ad26 with SMTP id eb6-20020a0564020d0600b0045a3ac6ad26mr26901419edb.195.1666537206841; Sun, 23 Oct 2022 08:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666537206; cv=none; d=google.com; s=arc-20160816; b=r0+tJPI4v/2K3iPr3GvU8CYLnfOzDX1parP8wfDxagKdeosrQF3Nv++i3/plQmPgRy ieWz03rhZRZ69zGJcbxyes/pBRj9bp1Z/sYvAZQYmxQbYZfu1IjzATZERv4bs5DOkC73 CACbc8sFVLMWjsvxMLvxtUBXQ7E9ABVyGoHcUZlwnj5HBQ8/PhSUEPJGMJzS5FtpZ1Ra AhaNh4/nFtnL1V5+Qm769Y2wNP6/asC09L2HGHbMwrCvv88X8B2oMEDPQkQFr4AFlptk gc8HMO9oO//0+cR4plVfjNuU0QoUYnPXuAn9/EGR1nkYE98pDyqOSDUXFMjER+kwgoqo 19zw== 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:date:subject:cc:to:from :dkim-signature; bh=pvKXzpxFzZWAwh4ulfZ9nH6QQVrhwgz8YLgYLKE7oQk=; b=wWyC2qr/njnFrUMCWii7vyd6LOFj10MgnpXA+COfCS9oDxFIIqZkFGuSK4hKshBKJi 2+4+2B4lxtKVZBIhP7uHknvbuhzFlU0Li0W3QsMj09zJ/Q/jdd9HnExWcKXmwrUUmR2E 3myPCyafdye0YFQIl5aIC8yVry8BOSDb+BgO4zcYRgaE77NsnnEPwDpKoXsbnxy1yggu FrZEhwjTzr8/GucSvvWHWC0Y1dhqeqDTDDf34HuPIWizm3aMYHHKJytf70DLfei6slWr YnfoTfj+K1SXLLle+ycXFIzZknAX0n5vXxubcEMN94ntO0iclP9m37Ql3lZRNp41BFyy aSjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MiAv+zhV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc12-20020a1709078a0c00b0077fadd74307si25709624ejc.128.2022.10.23.07.59.42; Sun, 23 Oct 2022 08:00:06 -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=@gmail.com header.s=20210112 header.b=MiAv+zhV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbiJWOd4 (ORCPT + 99 others); Sun, 23 Oct 2022 10:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbiJWOdp (ORCPT ); Sun, 23 Oct 2022 10:33:45 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C43DD61D65; Sun, 23 Oct 2022 07:33:41 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id m29-20020a05600c3b1d00b003c6bf423c71so8348950wms.0; Sun, 23 Oct 2022 07:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pvKXzpxFzZWAwh4ulfZ9nH6QQVrhwgz8YLgYLKE7oQk=; b=MiAv+zhVnlxmLdsRupQuYxZ+FUIDw9Fj/el8pUwCqfG4qpwFptaKXOgIZ3I2VqjkjZ biPuyIRR20VekRI4LcN+B89C4XYiGOmLicys+PnEUSFspnnqkDUJiK5yW8GhA1GPe0SV xkQsFftWaV3+6oOAvUIqUqJLlinN2RypA76M9QbkIo/regxEFAyvc35MIatgg0kR8tLf PxNpcjmFvCbtn1avOhGUn3eam5WA9Yf3TlUdKoLQXIxkrBUZoJBnqQKCJoQ1bO/8b6N8 JgiWjxgbJ5kvOxcHUUUDO7ul8vG87dAiK7hptPQe1rovWUJBRHa8iXzcyCGhdkfMps26 j9/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pvKXzpxFzZWAwh4ulfZ9nH6QQVrhwgz8YLgYLKE7oQk=; b=mcs9S2hr34bVlIdaBgOeqZsGeKdduXgXFNRHEzznOrLzOD75LGjDGZn3eqroraM6Nc VrgHkCSsRJDwcq9bTim0hI+j8qdrsooDsYaGMYw19qaTUs3FYN+9l2O1fFLwIhTkvD6z oyJTKjUVhszqwDztkoZ4SnoaCwe41Xs5TitkIXZetuXgstLwTkhmJDzdQnsamZS9zdrs fsU8g3fau4n4HSmwXazMZrj6VbrRYwpK5KKwHRyK31uLi4zIbWasof3VI3FYUQ0l833s 7ZGqBGiy5loptNW5C2oxubwWqLhk5EvEjjTgwGh6FFEe2hzS/p2Z1mmuBPy8VEVWp4BL ziSw== X-Gm-Message-State: ACrzQf3C7mzFvvKAC8W/TmgEAFMb+/4jyUBtD0eQdJScVqVSaCqhLbhK 9B581JyRJgM9Cr39t23DGeIDh2vYLTo= X-Received: by 2002:a05:600c:358f:b0:3c6:da94:66f9 with SMTP id p15-20020a05600c358f00b003c6da9466f9mr18888398wmq.142.1666535620335; Sun, 23 Oct 2022 07:33:40 -0700 (PDT) Received: from localhost (94.197.10.75.threembb.co.uk. [94.197.10.75]) by smtp.gmail.com with ESMTPSA id l24-20020a1c7918000000b003b50428cf66sm8463974wme.33.2022.10.23.07.33.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Oct 2022 07:33:39 -0700 (PDT) From: Aidan MacDonald To: paul@crapouillou.net, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com Cc: zhouyu@wanyeetech.com, linux-mips@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 7/9] ASoC: jz4740-i2s: Support continuous sample rate Date: Sun, 23 Oct 2022 15:33:26 +0100 Message-Id: <20221023143328.160866-8-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221023143328.160866-1-aidanmacdonald.0x0@gmail.com> References: <20221023143328.160866-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 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. Acked-by: Paul Cercueil Signed-off-by: Aidan MacDonald --- sound/soc/jz4740/jz4740-i2s.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/jz4740/jz4740-i2s.c b/sound/soc/jz4740/jz4740-i2s.c index fd35a8a51f60..201368f828ff 100644 --- a/sound/soc/jz4740/jz4740-i2s.c +++ b/sound/soc/jz4740/jz4740-i2s.c @@ -390,13 +390,13 @@ static struct snd_soc_dai_driver jz4740_i2s_dai = { .playback = { .channels_min = 1, .channels_max = 2, - .rates = SNDRV_PCM_RATE_8000_48000, + .rates = SNDRV_PCM_RATE_CONTINUOUS, .formats = JZ4740_I2S_FMTS, }, .capture = { .channels_min = 2, .channels_max = 2, - .rates = SNDRV_PCM_RATE_8000_48000, + .rates = SNDRV_PCM_RATE_CONTINUOUS, .formats = JZ4740_I2S_FMTS, }, .symmetric_rate = 1, @@ -426,13 +426,13 @@ static struct snd_soc_dai_driver jz4770_i2s_dai = { .playback = { .channels_min = 1, .channels_max = 2, - .rates = SNDRV_PCM_RATE_8000_48000, + .rates = SNDRV_PCM_RATE_CONTINUOUS, .formats = JZ4740_I2S_FMTS, }, .capture = { .channels_min = 2, .channels_max = 2, - .rates = SNDRV_PCM_RATE_8000_48000, + .rates = SNDRV_PCM_RATE_CONTINUOUS, .formats = JZ4740_I2S_FMTS, }, .ops = &jz4740_i2s_dai_ops, -- 2.38.1