From patchwork Wed Sep 13 17:15:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Watts X-Patchwork-Id: 722131 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C6B4EE01F1 for ; Wed, 13 Sep 2023 17:17:40 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A2971A4C; Wed, 13 Sep 2023 19:16:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A2971A4C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1694625457; bh=HmIE6g1MTK7UziarS4CimkTEySxK5WpM2bbqVxvWbwc=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=CzbHUX48JjOz+GJ+JPqpgcGAyZk8DI1TZ5TYbtvoMRC9FtnCWtdi+Fkt996AqQymq 9uA546ndyNK7p/CCT4ywKa8ReG/RWA0QjotnmtYiJLMSCfBMAaXEv6QkelsltHlGu+ z2UgSHjyR+YvlWLYZiODQFPIUEAvL3/kYsLN83xw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 563C7F8055A; Wed, 13 Sep 2023 19:16:17 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id E2D05F80431; Wed, 13 Sep 2023 19:16:16 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0030EF80212; Wed, 13 Sep 2023 19:16:12 +0200 (CEST) Received: from out-226.mta1.migadu.com (out-226.mta1.migadu.com [IPv6:2001:41d0:203:375::e2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 162A9F80212 for ; Wed, 13 Sep 2023 19:16:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 162A9F80212 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=jookia.org header.i=@jookia.org header.a=rsa-sha256 header.s=key1 header.b=MopDdj+z 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=1694625361; 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=VCy5Fm2ZbO6JXF49obe3yELdCB4LbYDYhIgHM9669eI=; b=MopDdj+zlz9nV8t6ZnIoNnxG2DgoGWJxW4X6tFEfIGfqeldt3QDA5A9focV3BTzgftWxu0 tg7qLsc9XLXozEqHe71TBgD+tQ1tr8AA4AXvj3cLCEwfIslmO2/pSihOfl5Me2PR2nByN9 F2Lq1jfD7j49idNUYIZVAZmcaWcFqNQRaCLgi4tZNJDwp7BW5azuHrGP6gvcGzAknJ0ctH XsAJkBVUBD4iki/fPv82AXwPiXwoCBooxo7sdy9zpx1o1TW+F2TITap21LSIp/L7cPOsaF L0obz0Xfpe1CxctwEil2y2dPZ7C2/ze6/OKxMp9MF7Uf83I+LBUq0LQYiZavOA== 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 v2 0/3] ASoC: wm8782: Allow higher audio rates Date: Thu, 14 Sep 2023 03:15:49 +1000 Message-ID: <20230913171552.92252-1-contact@jookia.org> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Message-ID-Hash: VNMJOED55PU4QUR4AYLZLG2ZLKCFEYHA X-Message-ID-Hash: VNMJOED55PU4QUR4AYLZLG2ZLKCFEYHA X-MailFrom: contact@jookia.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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. v1 -> v2: - Switched from max-rate property to wlf,fsampen property - Clarified property is optional, not required John Watts (3): ASoC: wm8782: Handle 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 | 66 +++++++++++++++---- 2 files changed, 58 insertions(+), 13 deletions(-)