Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp328928yba; Mon, 20 May 2019 09:23:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4QY+Etqxff0vAYGhLAeOgSettaS0KtAoDC7Dd25qvhIoh1C5SxxtSCDlCWlH+iBGgQXiW X-Received: by 2002:a62:582:: with SMTP id 124mr81802157pff.209.1558369433988; Mon, 20 May 2019 09:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558369433; cv=none; d=google.com; s=arc-20160816; b=CaWuK1u7B67VjIZ+QzpEvCWOP0k3ftF8ha4G+/GpoTFUIWo5fm7idEgXg0sQZyKo+R aU9aa9b0pY2Wn5bJxsxmbbfyLZOC4fbv907MQfyoIGbSpJ098XzLAaXcDTQLmRHFX9CS 5wFDlsreMAqM1S32k845OLYIazDtuL5cd3GErKAcDTHIoDN+knIC1R5R/shk2anmE4VH 49BohkCHkxBBgkOi5j22XtQmvDO2yZ8X+vlut/H/Axs6PfhOPjBkppXvV894ENKCrbQ7 dz4J+UUtOz8wGreVjh4JrqCeeXPBqMUGdtVjf3QU1DFGpYPf9y2SoRhkJuicTCFJm2dz z9/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SxHpb5MPqZKC+eIjYyfIciblm8la4k81Ugftnylm6ac=; b=lkcLrBHEHA5JiSBMdKY8U1o7VpFNc/MHsvfsxYEvQwpf8zO27bYpeoy+sRGDubXu30 Y5FSsQOaFUrRuWULt8h3TuG+ksMN1yT5M+36XyVPq6YBQ0Q515dFopHx0B49tLtOIxSi wodlDE2uWHThJ0kV6EkhI3bV3LuEJtwdSnl0dDbAFGPpR49GfVYdioLeqDyRbNOFfym2 Xva+WO1PlKnn5knuUoToiI5rVMMoz65lZWy3JoJrTnf58nqxToSSEkWTrgxtnGyoEHDW L+xIrxyTF9WfnK2N2naJL6ppwuW+L81lwjWM1NELOxoaNzG45RqlGPL4rnCTri2FRWd2 mhHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GIHEuOVv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14si18662583plm.192.2019.05.20.09.23.39; Mon, 20 May 2019 09:23:53 -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=pass header.i=@kernel.org header.s=default header.b=GIHEuOVv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389567AbfETM1w (ORCPT + 99 others); Mon, 20 May 2019 08:27:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:43400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389527AbfETM1t (ORCPT ); Mon, 20 May 2019 08:27:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2B2BB20645; Mon, 20 May 2019 12:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558355268; bh=SLAe6/IoBPDUbYUdq+rzQEmI9w4plC6PgcfwdwJjL3Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GIHEuOVv2DIlE/lumVp+HegUClhm4puWTAsEs5BrcqWfm85L2YkZ5pmiFw0ehSCP3 F9l3jz9YqzslQ0dyxHe5IiMhE9fXlqipoTmNhxc8/sNvvL0hUUAdDkU+RHU5Oo0WAk xy3Bw/uUOZtywAh7AZ36v/tHOJKfb0QyEAvLJ5U0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jon Hunter , Mark Brown Subject: [PATCH 5.0 053/123] ASoC: max98090: Fix restore of DAPM Muxes Date: Mon, 20 May 2019 14:13:53 +0200 Message-Id: <20190520115248.268952638@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115245.439864225@linuxfoundation.org> References: <20190520115245.439864225@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Hunter commit ecb2795c08bc825ebd604997e5be440b060c5b18 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- sound/soc/codecs/max98090.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -1209,14 +1209,14 @@ static const struct snd_soc_dapm_widget &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),