Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2182861pxb; Fri, 25 Mar 2022 12:34:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjstFZCdewZ7OkvIXNqMw4evL9J2NjKD7h5UhX4OlZALpxw6bEqPWdYSNJPZl+XNxUJjIB X-Received: by 2002:a17:902:f544:b0:153:bb8a:9374 with SMTP id h4-20020a170902f54400b00153bb8a9374mr13659990plf.154.1648236850934; Fri, 25 Mar 2022 12:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648236850; cv=none; d=google.com; s=arc-20160816; b=HgDfhFag7IqNu8m+GENp37CAMgDc0e6GHvALYpYiCMxHYiHeydCjxSHEnMREk6cFkX tEreWv8+onKyJ/QlU4VIl5pPnANOuQ6ZBhZ8NHQ/MUtaPVNrfkcOE/7XWgxTxQCrVsBx /VAdakGb9kZlbbUU8J8ZozAK8ZzhlBOdwsipuTS2f4jBiKI+3Utenz/uGcm8sKuMc63E N0RHXcrxAiUKG/nfi9NQYuWSBupef8saT0JC4t6scKO4XathWwKkTFcKkhACOACIHpd9 e6Dgh7jYW0SCyhE6iZPmiTTr//ysFruc4mHj/rd+EiAWHYjcfdjob6ECL1vKRvvv7yez c4mg== 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=G97gLhHD/sSMZNhgXEmwXK9xdlgZHVG4pQgGhbyLYgw=; b=Ajiya5e7uE7rBSLyLnG56j2gu9aGiJyUVyWXDIguWjJSAKH2XP6MGIY0J+2Olh/WCm Cpnr+DfLpgGIeB+EdpxP9rmGs9fgbfIqPj98MIVvh+LR4vqZqhKqA3czOntJi1ZdwtZd kHLELX1dncXk9ye2PdritdeLpSzTESfjuhYYskXVezVXoksU4EergS2OK6ledzcVvrD+ lJEwRxb38ktgSEeMTcwRMyS4eoqhq1C8SRaZ4PcoEkoQWpsHwn5XVZOJgME1FMqagQ7T sDUOTEcsXHJ77nyv5tHhpp1ck09v46xCd1NzfLBkc4qLL5LYPSTSQ7UdfCK37ZJ+dvN7 UJgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RbnQ3gWU; 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 hk10-20020a17090b224a00b001bd5225cf99si7294313pjb.85.2022.03.25.12.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:34:10 -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=RbnQ3gWU; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0EE36256649; Fri, 25 Mar 2022 11:24:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241217AbiCYPH3 (ORCPT + 99 others); Fri, 25 Mar 2022 11:07:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359499AbiCYPHC (ORCPT ); Fri, 25 Mar 2022 11:07:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5748CDA08E; Fri, 25 Mar 2022 08:05: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 dfw.source.kernel.org (Postfix) with ESMTPS id 9EBAD61BEA; Fri, 25 Mar 2022 15:05:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7608C340E9; Fri, 25 Mar 2022 15:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648220723; bh=eeDPAwcoY8N0TfcJ04RFJhyGvp6+YCtxjdYvhmHECKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RbnQ3gWUQIuNN+NZBbK8zX2GGE8DpZagOpHkHAMM19QS6wRIyWlSMCptHcKpKkieb B/+cpgZOmc6ppRxE+IJrIbqg/RpR/ITBUD96+nj1Md5uqgMG3x5jeRcpLg66JjteOu vVEIL6XdDMY8LDTGrndmrtysd5Kfi7W+6j4D9JSA= 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.9 07/14] ALSA: cmipci: Restore aux vol on suspend/resume Date: Fri, 25 Mar 2022 16:04:35 +0100 Message-Id: <20220325150415.916396628@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220325150415.694544076@linuxfoundation.org> References: <20220325150415.694544076@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 @@ -3323,7 +3322,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,