Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp234737rdb; Mon, 18 Sep 2023 13:25:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETmyyKHCm26adVZa+Ur3H9+/Bq3n1201ryxSyUToeZJOT3U5VI+gF+vXxyUndpQq77RN49 X-Received: by 2002:a05:6a20:8416:b0:157:dffb:fe1c with SMTP id c22-20020a056a20841600b00157dffbfe1cmr10420717pzd.22.1695068746084; Mon, 18 Sep 2023 13:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695068746; cv=none; d=google.com; s=arc-20160816; b=DpH7cBlKdhJY4oqSo0jPtV5qWy1Hk5y1D0LfbOj8vwWPA5lMr+V6oPWUkBJcaq7l7b W3iXc5w0odCJ5vInepLm02VCsjMjxO3gYSaJ7eeCXTmGa1Jv4t2gTyuZ7ojGHWsvOMAe 2SeqmZlWbhj5xaL1w5Krvc98Jv1NKCrbsCYTJ/bQ/RnqD0AwYVLtdLW0uwFE0OUPBgNS qdqlH1WCL2w6M543TVwT3Ehpy0G7cbDYnU3hqjhIBJH/2w9sqoBOo8LGhsFgVUwJ9Ina kIHDXfkjtEuWcvOF/nRCxlJE2FfsTJQxaTrkUS8Tfq3xfx10gHapCU4alCEwEVC+jlcW KtaQ== 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=pfa3PBg9asYKtNt2koiep7HfxuIir4IkICmX1c8bfJw=; fh=o2U44G9A4LTpJ59K7pAEIGHu4kjGtR8t+y7j7b/fsto=; b=O1LdGtcbfT3I85ywqJ3L3Jf8wcitOyByULFdAqtYXm0776n/g7dtD5RuU+c84mip2d nI+l3BjRHsIxd4JHDBnpqFvHdE8QHgLkgcCG3yO7eZLOweNjo3+pYoNaWmMhN7ppIIkl jGBcjTZQRQHDSM81PmFeuLht+gON08jEdF9GSIiaKRD53ZuDSEpcPX9pRhJh9YNUsheu Yc+pnpOQa7rPSxRy5JpZhfAxuDVe+oZ00OFKejm30U/QWcXJS80dWnyrghkVXul/Uiay QurYnBRQ1n8SQt9lLFoRYpSibTjZbbFG7oo0eclV+SyI5hvgksRdERm2RBQCRFR+urje XpSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=0Cv0iCXp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x2-20020a056a00188200b0068fd7cb5864si8921727pfh.263.2023.09.18.13.25.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 13:25:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=0Cv0iCXp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 2BF3980BB1D5; Mon, 18 Sep 2023 08:22:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238837AbjIRPWD (ORCPT + 99 others); Mon, 18 Sep 2023 11:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237639AbjIRPWB (ORCPT ); Mon, 18 Sep 2023 11:22:01 -0400 Received: from out-218.mta1.migadu.com (out-218.mta1.migadu.com [95.215.58.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08819E77 for ; Mon, 18 Sep 2023 08:19:51 -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=1695042943; 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=pfa3PBg9asYKtNt2koiep7HfxuIir4IkICmX1c8bfJw=; b=0Cv0iCXpSncpg9/iBG2W/hr3ugd7Y6aCght+CRTbusQBhXrfkoyA5e3PqQAVcCNmSrKE10 bFRCKoSTwnljO2/jOD21GAH9z4qCHGdOPWlA3r/nJ64qGw2H7cCwfQmc6jvmqtFAVuJv5j YjAzkWFqdFp9/rFy0yOiFg/kYyfVynqPM2BBOYQ5vWSSKy3CWwD0lVFVWPRZ/J6fYBzkcr Wz1w9KkU9qpGG1K9hZn5iJexFKp8hrHD4Gmn1qEgxlaCeZGPVyoIWVzxQOv2lmGP+eTm6h X/6sdcR7IwrSKdKHWOsBqTKN5S08v9k5dTh2SBP2ja393+93AshOUuudHaFhQQ== From: John Watts To: alsa-devel@alsa-project.org Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Charles Keepax , John Watts , patches@opensource.cirrus.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] ASoC: wm8782: Allow higher audio rates Date: Mon, 18 Sep 2023 23:15:29 +1000 Message-ID: <20230918131532.2257615-1-contact@jookia.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:22:29 -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. v3 -> v4: - Default value is specified in device tree documentation 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 | 7 +++ sound/soc/codecs/wm8782.c | 63 +++++++++++++++---- 2 files changed, 57 insertions(+), 13 deletions(-) -- 2.42.0