Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2158395pxb; Fri, 25 Mar 2022 12:07:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9CAZTPuShQFPLaXg43ihMELWJPxmWCbyJQoUaZOFrhoTsb+KAsTH3K+ZHlT7IJFiMzpvz X-Received: by 2002:a17:902:e54f:b0:154:1b5d:1ac7 with SMTP id n15-20020a170902e54f00b001541b5d1ac7mr13424769plf.60.1648235263358; Fri, 25 Mar 2022 12:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648235263; cv=none; d=google.com; s=arc-20160816; b=RwmM2y12AjrdhJXXUt5tDJSv9jA/7P1pbN+6sr9g2jbJ1zZ9uQWPmQaUazmF6Anpoz qfRqEc9E5OU8UMg0J5wnylLLooKKTAiPzQXD/VxY+9Y6Hg7NDYXJ9h6CVJSCv7rN00ko MWs0NdJDGA/2qG8CeM74NmP4tfCEAoqcUTGyWJVNgwIf8WcpAWVgJubEnaMQQX59K2l6 PGztoun+RjJlDFustV1hLoCtdzl//+147TUStfb6laM6yZ9sd90MsP71SW+kCdft382c 4BYHUziW/QrIMn8BOEZ5MCgAcl//QdQJOzAjPZrHBycizydwrzmoGPRPO/GSk/db4Vdq nVQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6jcIL48iPBvUkjpIoDmQm2eckXpB2MyJr1ZUwIVyWWI=; b=mRvuHk/MTFTFVuZWh4bBul2MNp0x49K97Mj0ltiFMAM7MFo5T6turxgfRED9Br5nHG DHi/iOwvSbvzwoS5YWo9dZ4N4cPQ7EPSF6eJDrL65A5CtJ1Zllaong81fC730zLNJme+ Fqo3LvnDAeL2csXkrYuOEx5yysN4p0L9G+o58WqgmUipPyrijibXQM42NY/HUDlqM88J pGy3byX6MKwnTb0T4ImDdiNDf/KeAXwTTXgk5jXEDC6BeyjTLnLED9SHtDe/INuPrLDH wHSUzKBnLlPNayHt75Hl3J19SrWk7Mlp7DJls2Ni686cEpVKVzouiOX8i1deOduYt3mn Rd7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="cfzFE1/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p14-20020a1709028a8e00b001541c9df632si3000146plo.400.2022.03.25.12.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:07:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="cfzFE1/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 33CA221C07D; Fri, 25 Mar 2022 11:18:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359858AbiCYPLf (ORCPT + 99 others); Fri, 25 Mar 2022 11:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359814AbiCYPIE (ORCPT ); Fri, 25 Mar 2022 11:08:04 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37B46D9E98; Fri, 25 Mar 2022 08:06:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 9C559CE2A52; Fri, 25 Mar 2022 15:06:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC994C340E9; Fri, 25 Mar 2022 15:06:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648220781; bh=akiRqBurFT5ZUVhYkdatTtHE8iL98ks0UPdwOlymuSU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cfzFE1/tlb3F2Ey7KkKH66QB0UmZClhT+C+WPmbXb2JI+Tgx7O8D0aFMb+aW/dsU0 pHHw8Vj7imce3d/ERm6GXoBYvN/Jgx8ff14KjAj47GuOTOcA+K0NHKGiu6L+g9pybU pqLooBk3M4vGkobr5zgA81xbh31XX5/DaTM2u91g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Teh , Takashi Iwai Subject: [PATCH 4.14 09/17] ALSA: cmipci: Restore aux vol on suspend/resume Date: Fri, 25 Mar 2022 16:04:43 +0100 Message-Id: <20220325150417.035251837@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220325150416.756136126@linuxfoundation.org> References: <20220325150416.756136126@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Teh commit c14231cc04337c2c2a937db084af342ce704dbde upstream. Save and restore CM_REG_AUX_VOL instead of register 0x24 twice on suspend/resume. Tested on CMI8738LX. Fixes: cb60e5f5b2b1 ("[ALSA] cmipci - Add PM support") Signed-off-by: Jonathan Teh Cc: Link: https://lore.kernel.org/r/DBAPR04MB7366CB3EA9C8521C35C56E8B920E9@DBAPR04MB7366.eurprd04.prod.outlook.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/cmipci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c @@ -315,7 +315,6 @@ MODULE_PARM_DESC(joystick_port, "Joystic #define CM_MICGAINZ 0x01 /* mic boost */ #define CM_MICGAINZ_SHIFT 0 -#define CM_REG_MIXER3 0x24 #define CM_REG_AUX_VOL 0x26 #define CM_VAUXL_MASK 0xf0 #define CM_VAUXR_MASK 0x0f @@ -3326,7 +3325,7 @@ static void snd_cmipci_remove(struct pci */ static unsigned char saved_regs[] = { CM_REG_FUNCTRL1, CM_REG_CHFORMAT, CM_REG_LEGACY_CTRL, CM_REG_MISC_CTRL, - CM_REG_MIXER0, CM_REG_MIXER1, CM_REG_MIXER2, CM_REG_MIXER3, CM_REG_PLL, + CM_REG_MIXER0, CM_REG_MIXER1, CM_REG_MIXER2, CM_REG_AUX_VOL, CM_REG_PLL, CM_REG_CH0_FRAME1, CM_REG_CH0_FRAME2, CM_REG_CH1_FRAME1, CM_REG_CH1_FRAME2, CM_REG_EXT_MISC, CM_REG_INT_STATUS, CM_REG_INT_HLDCLR, CM_REG_FUNCTRL0,