Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5889315rdb; Sun, 17 Sep 2023 18:00:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSKgqksEmkRPZ6el1BNoz146JaQ53p19oi/IKEr9JkZWHFFAZrg1PZZWDzlXFG/tH8Qdcw X-Received: by 2002:a05:6a00:1a89:b0:68f:ee0e:95df with SMTP id e9-20020a056a001a8900b0068fee0e95dfmr9977020pfv.14.1694998843874; Sun, 17 Sep 2023 18:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694998843; cv=none; d=google.com; s=arc-20160816; b=ZVdTcZkhLm+7ZX0PWWan+uSiPd3JhJzmaXVof5SxBkhSeoA8a8gzcK3jAlDDejCRsK l2NvRzKmSFc6qt8+SrAlwUvPusC+Y2uPLgsyy5OzUYc8mI26l5HI2ifD9ZnfATFcIbMc mgPzNcYvNiyD5mivC23k2O9p6pr8wD8qdryPyKK69Xu5OkA3rEf1cYqp7jCrARL5Yc2q bZ4szSq8m3RoQx7SCr9IzdcXZOq8Yz3On6GszIH9xImik7SE+PTkeiuLfCuOi3SHX3GV hU6LbYxyDc9QNhTsb+ZfBExzCSWpoRFlpVv6yKXA7+wRUtVYAFV9z8MYBtpjss7IqpI0 D2HQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=cothmr+77o5e2+4r9KfUSFxuV8BjV2N0LakyRZnqIAM=; fh=K2LUYf+eeIUUOAFkE7bz3JhUBLdTtfJsbrtjFyoTvGs=; b=TopOSCNgHUJMWH8tfUylLOTfqxScrCqyD666GoRYMZIwcMStaKzGw3fTWn5kha2P8D x7XiE3w9CAhLfVPFIL+OZT0vtujbf0h8wlk+7CBHrsuA5AUC132IFLOmvy9LowF4GkL7 pnxUK5b2cqPVoBG4GfdNFthqU57i4KprFs0VW41WdTuCWCxAXUJ8GCxrJ5qNBv/qtLyx NSORUvN3N7E5Q7dAcZYsbT0f03gLtEYhEpROFx7i+3FqHruQhSuF5bXL4l225g1n7Nxa Fgjw8opzxE071qKJZXiq/EZL1i2w1wLrkhy4Ei0JXGEuPXh5rQ0yYDIPnSl3Fm82vH9Z /a3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=Hx+AGSSU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m11-20020a056a00080b00b006901a8f5dadsi7400516pfk.289.2023.09.17.18.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 18:00:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=Hx+AGSSU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 05077802683B; Sun, 17 Sep 2023 10:38:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236611AbjIQRiS (ORCPT + 99 others); Sun, 17 Sep 2023 13:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233692AbjIQRhr (ORCPT ); Sun, 17 Sep 2023 13:37:47 -0400 Received: from out-222.mta1.migadu.com (out-222.mta1.migadu.com [95.215.58.222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61213119 for ; Sun, 17 Sep 2023 10:37:39 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1694972257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=cothmr+77o5e2+4r9KfUSFxuV8BjV2N0LakyRZnqIAM=; b=Hx+AGSSUKxqQRB0EAhnk2jNtrY8DxlBBs4gWDHSw3BGOuKmiXCAzH93LkH3bl/8Tj2p7RM oqBdX7ALk9Pagk5qFr0uOR5fLkqlailnskw8WzyHDuPpXciVsq/+Qgwa2HEpXzDOcWDY+F WoJO80mhaMOaDfv0ILZx4pm+vXLYQnbm+WJmbfb0GMQ/Kaj/EpTdT7336m3FVbVqdL+zAk +DA/TY1SdQLjsfDrPZUP9nlN4vPUGGhPWnvkI9zKVyqf/9U1LD1tTs4jxR6uTCR//hnCcV Z0gZu2zKAF4mbf88Tk/cSAGiZvJS7pyutsdmQ07E3rfI2shF3cRVDp/Q4RiHIQ== From: John Watts To: alsa-devel@alsa-project.org Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , John Watts , patches@opensource.cirrus.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] ASoC: wm8782: Allow higher audio rates Date: Mon, 18 Sep 2023 03:37:23 +1000 Message-ID: <20230917173726.1916439-1-contact@jookia.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 17 Sep 2023 10:38:49 -0700 (PDT) The wm8782 supports higher audio rates than just 48kHz. This is configured by setting the FSAMPEN pin on the codec chip. This patch series introduces the 'wlf,fsampen' device tree property to indicate the pin status and control the maximum rate available when using the codec. v2 -> v3: - Rate is now properly constrained using ALSA constraints v1 -> v2: - Switched from max-rate property to wlf,fsampen property - Clarified property is optional, not required John Watts (3): ASoC: wm8782: Constrain maximum audio rate at runtime ASoC: wm8782: Use wlf,fsampen device tree property ASoC: dt-bindings: wlf,wm8782: Add wlf,fsampen property .../devicetree/bindings/sound/wm8782.txt | 5 ++ sound/soc/codecs/wm8782.c | 63 +++++++++++++++---- 2 files changed, 55 insertions(+), 13 deletions(-) -- 2.42.0