Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2553785lqp; Mon, 25 Mar 2024 02:21:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmuFHXgOrqLZCQkBDFZ8qqMMgn/7HUX014e6Ssyd6UGVF/tjy0WhtjEwQfoCRaJElEBBWM7suzk/1uP8YAjK9jCo2jf6ZIkYZ4FT19aQ== X-Google-Smtp-Source: AGHT+IHffzNUm8fVIvxaA741Dywpv5sv8RGADlesrZ9Lg8T5GDyIHBjetAWcnITiVyyb+PEzb5KF X-Received: by 2002:a05:6a20:6b96:b0:1a3:ae4a:92f with SMTP id bu22-20020a056a206b9600b001a3ae4a092fmr6070328pzb.32.1711358506968; Mon, 25 Mar 2024 02:21:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711358506; cv=pass; d=google.com; s=arc-20160816; b=Jvne/QzFuVw51ZQWshOBwPuzrlq6W7Z9FthJsj3dtf5YVL3cvt8onb6Tz88MJjALFr ebTmaucJ+zDrBuptnMThTiEPAOefnYEl1O7tRifI0nTH28RmS+2l75130V8W4zWdF6UZ DvW7oi9dBtqePLHH00gWqFaGFejIITSD4pvdbQbhnbogZUEHJrlD31aggvjW37cfdYuC +tDA9tXihdYMjjsmDfPTLyU0FiVhDH+A7iUlXksxGefWG5obOL64lN584cDMvhMS3TEE 6YHkYXvu1jIW0ekb14BfyWGc8KmLoQvLhMWGAlpemo4NNr0tl15KgJW6g2CZRHtIg2Dj 7gZw== 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=HgX9DKtrNlEfXcJhwa2JkuZ6JT1bM2bn5+lEJPKwIVE=; fh=W5da1yWB/5mQ2DeIYnwpNDtzBoHnT4KtOAqBjpQNWVQ=; b=xBuqPdrbUWppBkRSYgy+Riz9ggGlUlDD1LMUfdMjee1YTLyi1XgKz3G+ROwCjeu+qI LviS/wipgGv2D7FM40BkJiMt+JpJ2v1KNcj7+tiyrvm5GLX4jm1FubRR4jrdTa7k7Qgx ERHEXDaREbwiXGh7PP/MsRqwGx5DgxldSbA/lEwC/sKDFs6B8AGaW6wMhDgpUTVI+xkI RrD7lu3kI83Y0etxeLQBTDoepCxS+u6sCmFGi7qiGTC6d4FWzaDlyMBSK+Rp++XDdsdD 2VNbyN9Bru+hGE21r8qN4XW+xxX5vBzVsJ8cYbvSh7Rrb0pua+Bcmn5b1pwfgSYDv1mA lZRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VCEcsvXv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115790-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b15-20020a170902d50f00b001e0b8625490si2357747plg.576.2024.03.25.02.21.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:21:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VCEcsvXv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115790-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 A2B1129D4E9 for ; Mon, 25 Mar 2024 09:21:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DDDB261CC5; Mon, 25 Mar 2024 03:00:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VCEcsvXv" 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 8A043145338; Sun, 24 Mar 2024 23:13:03 +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=1711321983; cv=none; b=Bq8CHwCCwVe/NmSc5QR8GCptSTZMRhuQgJFkChDrQBtb9DGYhhoWEmDyFTDqSVedYIV6q3YaqYVjUVfu9BiFpt+mBDXf3AV+UyoCZIBYkjFWhpaR9FzybaLUGyVa9cl55Xt5+XnT8vf4ilz5JJOEYqJledibI5CpPHdjluybr/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321983; c=relaxed/simple; bh=EkiW/xBoFPH9AMXJdE9+NbGQAItDzmU2qSMfZ3TDNe4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CMgDMDjjA4dSMn0rS0zGTKPVGvKf1keXBK+iW1mtsOqnpPy0VINqjy+Hx0yn7WbQqgWwo4oCVWSpDarS5jXIPHj7QjZyu1JeDZJtPV2LVz3wgpztGOo9vnWteR1ulzZ49LB04iHRH5B2KgFhpTKw98/0HbrpxTNdxUYci3PsMys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VCEcsvXv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7C3BC43390; Sun, 24 Mar 2024 23:13:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321983; bh=EkiW/xBoFPH9AMXJdE9+NbGQAItDzmU2qSMfZ3TDNe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VCEcsvXvG9pOVkf6CpD5xS+hb2HDb5SEaK7h/0Q9ySn/WL6NLDRuWq3xuEfJYhZP3 GTYTyecHpwGg2g0Nn9tQS01pUMNmiRwwEsZqQDMIoZWny7I7Wvz7wMncqn3UkD6yr6 pAOQbBz8+AXHTFtMtQZNvzx5U2g2CWzUGzDFw3f6tiUi2XwnExGhqeCkJuDOSJSYcO JRsuFplsHDYJly8b1Ejry/ER7gw8jCKwZvWRjh+e3kwLei1/bIVklHNTcz/XR/g1/1 IaC8empaozavGJYOg5rslUIwrwzeW6GaFC58LQUc6mB65vI1yZVNTQ4UnDh36a7Dj6 37FFzGp1gxrFw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Stuart Henderson , Mark Brown , Sasha Levin Subject: [PATCH 6.1 056/451] ASoC: wm8962: Enable both SPKOUTR_ENA and SPKOUTL_ENA in mono mode Date: Sun, 24 Mar 2024 19:05:32 -0400 Message-ID: <20240324231207.1351418-57-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 6fa849e4d78b880e878138bf238e4fd2bac3c4fa ] Signed-off-by: Stuart Henderson Link: https://msgid.link/r/20240306161439.1385643-2-stuarth@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/wm8962.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 35d8cd4fc71a7..806b69c9b2e36 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2229,6 +2229,9 @@ SND_SOC_DAPM_PGA_E("HPOUT", SND_SOC_NOPM, 0, 0, NULL, 0, hp_event, SND_SOC_DAPM_OUTPUT("HPOUTL"), SND_SOC_DAPM_OUTPUT("HPOUTR"), + +SND_SOC_DAPM_PGA("SPKOUTL Output", WM8962_CLASS_D_CONTROL_1, 6, 0, NULL, 0), +SND_SOC_DAPM_PGA("SPKOUTR Output", WM8962_CLASS_D_CONTROL_1, 7, 0, NULL, 0), }; static const struct snd_soc_dapm_widget wm8962_dapm_spk_mono_widgets[] = { @@ -2236,7 +2239,6 @@ SND_SOC_DAPM_MIXER("Speaker Mixer", WM8962_MIXER_ENABLES, 1, 0, spkmixl, ARRAY_SIZE(spkmixl)), SND_SOC_DAPM_MUX_E("Speaker PGA", WM8962_PWR_MGMT_2, 4, 0, &spkoutl_mux, out_pga_event, SND_SOC_DAPM_POST_PMU), -SND_SOC_DAPM_PGA("Speaker Output", WM8962_CLASS_D_CONTROL_1, 7, 0, NULL, 0), SND_SOC_DAPM_OUTPUT("SPKOUT"), }; @@ -2251,9 +2253,6 @@ SND_SOC_DAPM_MUX_E("SPKOUTL PGA", WM8962_PWR_MGMT_2, 4, 0, &spkoutl_mux, SND_SOC_DAPM_MUX_E("SPKOUTR PGA", WM8962_PWR_MGMT_2, 3, 0, &spkoutr_mux, out_pga_event, SND_SOC_DAPM_POST_PMU), -SND_SOC_DAPM_PGA("SPKOUTR Output", WM8962_CLASS_D_CONTROL_1, 7, 0, NULL, 0), -SND_SOC_DAPM_PGA("SPKOUTL Output", WM8962_CLASS_D_CONTROL_1, 6, 0, NULL, 0), - SND_SOC_DAPM_OUTPUT("SPKOUTL"), SND_SOC_DAPM_OUTPUT("SPKOUTR"), }; @@ -2366,12 +2365,18 @@ static const struct snd_soc_dapm_route wm8962_spk_mono_intercon[] = { { "Speaker PGA", "Mixer", "Speaker Mixer" }, { "Speaker PGA", "DAC", "DACL" }, - { "Speaker Output", NULL, "Speaker PGA" }, - { "Speaker Output", NULL, "SYSCLK" }, - { "Speaker Output", NULL, "TOCLK" }, - { "Speaker Output", NULL, "TEMP_SPK" }, + { "SPKOUTL Output", NULL, "Speaker PGA" }, + { "SPKOUTL Output", NULL, "SYSCLK" }, + { "SPKOUTL Output", NULL, "TOCLK" }, + { "SPKOUTL Output", NULL, "TEMP_SPK" }, + + { "SPKOUTR Output", NULL, "Speaker PGA" }, + { "SPKOUTR Output", NULL, "SYSCLK" }, + { "SPKOUTR Output", NULL, "TOCLK" }, + { "SPKOUTR Output", NULL, "TEMP_SPK" }, - { "SPKOUT", NULL, "Speaker Output" }, + { "SPKOUT", NULL, "SPKOUTL Output" }, + { "SPKOUT", NULL, "SPKOUTR Output" }, }; static const struct snd_soc_dapm_route wm8962_spk_stereo_intercon[] = { -- 2.43.0