Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2508891lqp; Mon, 25 Mar 2024 00:18:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQFjWZYedxgnUakk41WnhiisIUUv33PvUgiUwUnRffWjI/46WyZ3UvjjC2VgHVr3MiMLYu3WJN6MOFXFjOnc59UMXYtBmry92ZEYk51w== X-Google-Smtp-Source: AGHT+IGhBI+WeqEtDmpGy86XhLn1AE6xlT6zyM2pfPf16PJow+Gf31wBox3Dvgi3Yjlq58SQ4sFG X-Received: by 2002:a05:6359:45a7:b0:17f:56be:8c93 with SMTP id no39-20020a05635945a700b0017f56be8c93mr7364201rwb.6.1711351128771; Mon, 25 Mar 2024 00:18:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711351128; cv=pass; d=google.com; s=arc-20160816; b=cyJpuw1/gK4hWBJJMT+TUwTDa0rC4f5kviWMszsZ4sz4ODPgg18di9YF5PQmNO67xS 7itC90ozenQ+mhAhJuBMLPPmiV9Mh7a33KKKWnLYp++oMLo0UXD8P60uCcmZswjyHno6 xzgD26RQqTmU+73LFOZPUThNGaB5C2SAOa9tj1oFevMPSPLHxUTYGjc2Cw0kE5Z6yxvb az3DdFo0qj6ZrFC0AUBGF9fiYzxDM5Z1gcuYAK43Ph5nW/J70kzJ4q7gLgkbdUcbzIsu 2oDdHpYihD/AOV/90C+HYqq2R22iuXJydvB9CuvS21d9EJ/VsdD4eCdqTrpqgXI6PLN0 N55g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7f6uufN7SgpLxXjL7LyVeeQMRWnlC8F7J9EtXJZ3qMs=; fh=W5da1yWB/5mQ2DeIYnwpNDtzBoHnT4KtOAqBjpQNWVQ=; b=mLrcEIKS9o5uPRsdAwuaGUXJq+ecge8io7g4hfz4tyLfEksZiiVYCF4QW1Thnqt75Z yUKPj/ne8p5MIsh5n4FyU++PPQvF05GlNQyhrIJ5aqSjSalFcTX4gibs63iWZncpC304 XPOibYq8Phlh1O5lj2RksOiTvo3y4W+nAgjP32+j0Gwpe3KOd+Mxa0r2vAFHZx4ZK0zG 8zfStdPPNbCZhIKDR/1dn5z21KiDofM4VjrpesADP+WRvahkTbLeB6vIbC3Wj61jQvqD /S0+2KK4qiZ3DM84RUJdJUn4+ywyAcRK8YqP/D3r291NSdbawnXcsLaG7BGUYEvk740u xczg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RJ84GMna; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t23-20020a635357000000b005c66a3f3f5bsi6879496pgl.745.2024.03.25.00.18.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 00:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RJ84GMna; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 59FD129E300 for ; Mon, 25 Mar 2024 07:11:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C48431BEDA4; Mon, 25 Mar 2024 00:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RJ84GMna" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9E5F17A379; Sun, 24 Mar 2024 23:40:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323654; cv=none; b=HOjXOvV2BSZiaeyZJ2W8LrXY/H1iDJxgznuV0CwLl9cLCAGfToWNYqwcNNPV3f95vrh4/YCieD78NlbcmPu2PGQlm1ZTYCqjgHj6F/aEjFabhu10v00+hT+Nq4TfPJQ5AlWvpYrM4TxLf/eNY/2xHdDBo+H5brrycx2p+slY7PI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323654; c=relaxed/simple; bh=Gp9IO464KiE0GU2Yx/UvzMNFMfeX7usV3cGwqZ/sgbY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fWdJaW1sabZph0gC/RDJLdIUaPo2F4XGxVEjW7fxm2LDt4h3g2xyxrqGCK7ZezmuOjtNg0bQJe6Ll1IRoC9ahmtt+rpgbXgGcMVjSAFzbrQs9sa1tMfBufAsRdVBuI0e3vR48Mm6rFNb8UUrC3R2VUbJtX9zgeMhn2SvmCDMMuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RJ84GMna; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBE46C43390; Sun, 24 Mar 2024 23:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323653; bh=Gp9IO464KiE0GU2Yx/UvzMNFMfeX7usV3cGwqZ/sgbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RJ84GMnaEsRdo6kw+J5yOj5MnK/Qp7TFhGjVVfgSv7gll09zXX1HPWEnysEzzE1qX zWTWUqt54gdwGdBiBJLmkeDliSIOp31da03RddQa7tbYRtlT0WhpkAm+j6Dyo19zBk sx/GSEN7aSU6ql/zRJErPaHUnW2X1t8Sf3L5ilzWuxB3nKsIhGc27kK9VBwL6V+0fW 26mVxWMJ4NACcFbMgPA2Y8haqwkPVQ07si8L8TL5DBSrDKN0fdhSHfag8xb1GS5WHm nk7sz8oeLaTwS1GnPiwjqgwKXKEG5qyxBONe/uKn+oE+hr3sMO1iYBoOJwqDr2q7r8 uBFPJhqbNq7Vg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Stuart Henderson , Mark Brown , Sasha Levin Subject: [PATCH 5.10 025/238] ASoC: wm8962: Enable oscillator if selecting WM8962_FLL_OSC Date: Sun, 24 Mar 2024 19:36:53 -0400 Message-ID: <20240324234027.1354210-26-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Stuart Henderson [ Upstream commit 03c7874106ca5032a312626b927b1c35f07b1f35 ] Signed-off-by: Stuart Henderson Link: https://msgid.link/r/20240306161439.1385643-1-stuarth@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/wm8962.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 57aeded978c28..d6efc85f966b0 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2898,8 +2898,12 @@ static int wm8962_set_fll(struct snd_soc_component *component, int fll_id, int s switch (fll_id) { case WM8962_FLL_MCLK: case WM8962_FLL_BCLK: + fll1 |= (fll_id - 1) << WM8962_FLL_REFCLK_SRC_SHIFT; + break; case WM8962_FLL_OSC: fll1 |= (fll_id - 1) << WM8962_FLL_REFCLK_SRC_SHIFT; + snd_soc_component_update_bits(component, WM8962_PLL2, + WM8962_OSC_ENA, WM8962_OSC_ENA); break; case WM8962_FLL_INT: snd_soc_component_update_bits(component, WM8962_FLL_CONTROL_1, -- 2.43.0