Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2567659yba; Mon, 6 May 2019 08:07:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYbFldLsvTqBAcItLcAJ4bk9DP1xzP8GWj7CSny4+0yTBYFLDGFHSCiXV6Gmpij4KXMRqe X-Received: by 2002:a63:246:: with SMTP id 67mr1507244pgc.145.1557155229801; Mon, 06 May 2019 08:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155229; cv=none; d=google.com; s=arc-20160816; b=OUl+UKgssPIEcnWxaUmJSbhrQjKpZAj3m3Xb7/fwPBu5IvDbliiW3B3XL0dxPZbMGp WPlKbOQyzVt7vWSqDUoNczrvaEEUO2oYfhnPAjhcPgou2IuXIv3fXGgqQZ8IsLSgvnpx rKEEgZ9RL7vkkWZDTNbPmSh/jAeQen//uKuxrTArwwvR6/ROLva8mTEy73TmAl2xzqQf 0bwkEIsI9kZO0s0NUgnYR+geDWu3SpjLmDbkLHLl/MZmn73lX/gk56V2iQL8jYY0w8VH j9/nlx9uJo9hn43LXpM1nfSAq3d8G9MyjX0yJf6naOC9xyvT6/sBuLFwteejdlfEdGYl rwUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=eQqQpulK7oQXoujzji5SLgl6P22pxVQXz4sPEzVqvSw=; b=pkw2Sks2b/P15NoZaRT/MGlmLJDC5+sUW93+6GxCCIJtl7UEYdZk6aew+FDb10kAEp sI7AoFQqnvLAqmWyzOQAUPFtJs2mO4GX6iaLHNHDxRWvN0xu/Ch/orPwYe0c3WJ7qCAT AE9xLqMiXN2T592XgqoW05srwmqhonxshuWPbhjyaGKiBB04F22NNFTnxpSCBbmsx7Ek JbTCLnK+Zi0jOAgCKvkUB2A4BIXvZ2VDtbNchmH7kUoDtKz8W7kiMIw8Ta4NHriOuQ1c hSEG7CKy9TlDh+cTSBuScxlHN8LAaTfeSz+Ru+rh4pkmMcL4AkiS6pQc6k0eQQBTp4m4 sNrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=NoYAzT45; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be1si14310077plb.286.2019.05.06.08.06.53; Mon, 06 May 2019 08:07:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=NoYAzT45; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727893AbfEFPD5 (ORCPT + 99 others); Mon, 6 May 2019 11:03:57 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:53776 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726921AbfEFPDz (ORCPT ); Mon, 6 May 2019 11:03:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=eQqQpulK7oQXoujzji5SLgl6P22pxVQXz4sPEzVqvSw=; b=NoYAzT453inX 7iDiCGQOfIC5yI/lfeRPv/ZtcVczJkdnth7CVCzomqXyqT+IGaeieIqlocdZQZ8evKAXI/u8jvr2o PSgFl+jEkLbq72adnoYQV21VDTE4dy1sqxBiLhNSGH/FxPwHgFhgS3qGmqQJSpahIzRJuOH55aymN x5ouY=; Received: from kd111239184067.au-net.ne.jp ([111.239.184.67] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hNf9i-0001ua-B7; Mon, 06 May 2019 15:03:50 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 663AD440036; Mon, 6 May 2019 16:03:45 +0100 (BST) From: Mark Brown To: Jon Hunter Cc: alsa-devel@alsa-project.org, Liam Girdwood , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Mark Brown , stable@vger.kernel.org Subject: Applied "ASoC: max98090: Fix restore of DAPM Muxes" to the asoc tree In-Reply-To: <1556720978-13233-1-git-send-email-jonathanh@nvidia.com> X-Patchwork-Hint: ignore Message-Id: <20190506150345.663AD440036@finisterre.ee.mobilebroadband> Date: Mon, 6 May 2019 16:03:45 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: max98090: Fix restore of DAPM Muxes has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From ecb2795c08bc825ebd604997e5be440b060c5b18 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Wed, 1 May 2019 15:29:38 +0100 Subject: [PATCH] ASoC: max98090: Fix restore of DAPM Muxes The max98090 driver defines 3 DAPM muxes; one for the right line output (LINMOD Mux), one for the left headphone mixer source (MIXHPLSEL Mux) and one for the right headphone mixer source (MIXHPRSEL Mux). The same bit is used for the mux as well as the DAPM enable, and although the mux can be correctly configured, after playback has completed, the mux will be reset during the disable phase. This is preventing the state of these muxes from being saved and restored correctly on system reboot. Fix this by marking these muxes as SND_SOC_NOPM. Note this has been verified this on the Tegra124 Nyan Big which features the MAX98090 codec. Signed-off-by: Jon Hunter Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- sound/soc/codecs/max98090.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 30c242c38d99..7619ea31ab50 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -1194,14 +1194,14 @@ static const struct snd_soc_dapm_widget max98090_dapm_widgets[] = { &max98090_right_rcv_mixer_controls[0], ARRAY_SIZE(max98090_right_rcv_mixer_controls)), - SND_SOC_DAPM_MUX("LINMOD Mux", M98090_REG_LOUTR_MIXER, - M98090_LINMOD_SHIFT, 0, &max98090_linmod_mux), + SND_SOC_DAPM_MUX("LINMOD Mux", SND_SOC_NOPM, 0, 0, + &max98090_linmod_mux), - SND_SOC_DAPM_MUX("MIXHPLSEL Mux", M98090_REG_HP_CONTROL, - M98090_MIXHPLSEL_SHIFT, 0, &max98090_mixhplsel_mux), + SND_SOC_DAPM_MUX("MIXHPLSEL Mux", SND_SOC_NOPM, 0, 0, + &max98090_mixhplsel_mux), - SND_SOC_DAPM_MUX("MIXHPRSEL Mux", M98090_REG_HP_CONTROL, - M98090_MIXHPRSEL_SHIFT, 0, &max98090_mixhprsel_mux), + SND_SOC_DAPM_MUX("MIXHPRSEL Mux", SND_SOC_NOPM, 0, 0, + &max98090_mixhprsel_mux), SND_SOC_DAPM_PGA("HP Left Out", M98090_REG_OUTPUT_ENABLE, M98090_HPLEN_SHIFT, 0, NULL, 0), -- 2.20.1