Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2524542lqp; Mon, 25 Mar 2024 01:05:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2469cUA5LnduafPXn/4+PzuGSVzOesK3Bg2uF5hMIkNVW+IL+4Tkfq8vR/yp2xuUEmsNVyGBdd5Zve/QDiTr266o6uT7ouwho71+USA== X-Google-Smtp-Source: AGHT+IEw2HQ8PPxIqTBCLapy1U5e3NYmn7QTk4F2JcDs9Px/t3W+Pa38ANahUXNh92kPd3Kn9t3n X-Received: by 2002:a05:6359:5f9e:b0:17e:b887:5558 with SMTP id lh30-20020a0563595f9e00b0017eb8875558mr8551239rwc.7.1711353958696; Mon, 25 Mar 2024 01:05:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711353958; cv=pass; d=google.com; s=arc-20160816; b=YEPDIgLvDtWSQtiIigqX7BtJfzJ9cynsmApt69T9ZcpHyvR/QOhW4l+8ayPP5v4EHd Cdfp9OZRX/yxOW/XinBMo+VLMoR8BQcoYgEJevE19V+qLWkpYsQ92ihS9PrvIh019p4v aJPT9lmpmex/zOMgB42cKdx9IgAE13U3/zpB6/ADYhyiroCPlPxzPfrIDd0TY8SCH1M1 nwAz+tHSX/57E2DmD3voBe1V/JhBcOUP2QGwSS1Q0RRV1uMi7hxNWlie0JlG4yd0oU3E H/LiOrg6OlvwmogsPZvlLteQlWjSrWVmB30vHkVl7peIW+WICp+SOJwQLgzhH9nHkf7s 9mkw== 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=HChgOQN+obEQseQZWo0MLZq/fyZvzW/JXmAPhBSjqws=; fh=W5da1yWB/5mQ2DeIYnwpNDtzBoHnT4KtOAqBjpQNWVQ=; b=bGylvlJnKMWJ9cEqQciIhpRZe2PHH7n+VpOMBxNPBRzELRVQ/CHWnFqbhRDiaSxo4Z Tjl+yxq23LMD4nB8yT+fio2/fsUOmooXmeoaWDvM/xbsRQNR1uRUjjF0WVleG+iZjKXp 4QxFr110pHFt4Hf2hD42O+p9Tvc4znzFJbhgI4gEFwkw0QYxsL3NL886RcapMoZXkNBV OlZszNN1V5fCy/bJD7q6dbMx3CvWMTDU63YB+b16sOY9NsjzKYbYfr7tHvAFVUMGyPGh ppjsEfNpayS9spyQEEyqdfpFEzrjtmnI5g6XzaQ62IgCN7VRoFvhyjmrw+IDLMcS0BHC J8lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BpUynXYc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115792-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115792-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 x4-20020a656aa4000000b005e846cc29d0si4195435pgu.226.2024.03.25.01.05.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 01:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115792-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=BpUynXYc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115792-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115792-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 5584F295FF1 for ; Mon, 25 Mar 2024 08:05:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3282D3702DC; Mon, 25 Mar 2024 03:00:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BpUynXYc" 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 A4AE314533A; Sun, 24 Mar 2024 23:13:02 +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=1711321982; cv=none; b=jqzWp6JBPYncZQjsV+0/M4ug82EuAPTdy/Hcuq9kPhV3V0Di1J/wNG9A+JmD7Xcwfox4oKSx931jOpsfc2n0Hu3uTBA2L5fBmrsdXbi3Ks9HnEuX0aIqo+ZPpUs9iNrB0hvv3BRe2w4NFUrMRW6D4KENVdOpZ0zFlwj7jLpk8Mc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321982; c=relaxed/simple; bh=6Y0sxHPmF359JPj2GjZUJqNCtsxnGlEXTdvPBG3aWy8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tiiLx1YjXcH3St9UzBbYMcYM+b7KDs2UvMmEujBzWEaNx6WMUc4KO/44uShrCA97UtVQDo/WBI9LzSmitb+nf/F9PdNtUs6WD4DqLnVCidE3vu7cz0bktwpvpTcr/naV39QIANETAR6aCp9O0xcCVtr1DIrD7W72HeFuwJ0qMVQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BpUynXYc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0240C433F1; Sun, 24 Mar 2024 23:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321982; bh=6Y0sxHPmF359JPj2GjZUJqNCtsxnGlEXTdvPBG3aWy8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BpUynXYcvVpGk41MtRMok34tPJv3Vqfq/TGuW0Oe7a+NmY7AuavCCsUyhkonf9qr+ eyusOQRQtlj3F+wGzw6K0aNr8F8IKw+zHoVLfJnobfcrWOkqqokq4C9c5UyoNqJ0DR Syct1v8M4jGmyFyFo5T38ysOGyKMHK/0DSe2vtZvJP5vHp/ZtZNDYAt70MpFlxgryu 7d3e1eALFXLkCN1MM7BS9E7yIjBPjb2a32aaZijvTaqqUqLl6xnEKVDT5+Q5NSO5B3 jqgW+TSdLMtmmlwYwTLi22zXJHRceSMW4e+XXA/cr3ye8kMDAEh8qKAwZzc3WD02GB f/1uHAdG6Py1Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Stuart Henderson , Mark Brown , Sasha Levin Subject: [PATCH 6.1 055/451] ASoC: wm8962: Enable oscillator if selecting WM8962_FLL_OSC Date: Sun, 24 Mar 2024 19:05:31 -0400 Message-ID: <20240324231207.1351418-56-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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 b901e4c65e8a5..35d8cd4fc71a7 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2914,8 +2914,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