Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2395138lqp; Sun, 24 Mar 2024 17:35:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKUBhdupZpHUPP6MYMfWlscTFiaewjKTVGZciHivTxwXSRVFO1TnM9jqUPVxWNyHflheyEBnJhy5yLZh5eJHWQplFTZvrgHcX7zSv8TA== X-Google-Smtp-Source: AGHT+IFURcwUMpwygtJJwZ0VVvl92W1GepnKdEDB1AUT83+aK+H0YeqLEEqKMQ7cT87BwMuAbyUl X-Received: by 2002:a17:90a:d311:b0:29b:ed0d:60fa with SMTP id p17-20020a17090ad31100b0029bed0d60famr4421524pju.19.1711326957396; Sun, 24 Mar 2024 17:35:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326957; cv=pass; d=google.com; s=arc-20160816; b=ysnxarILy0xVc6SpV2GFeK2LxmSZQZxCdJef4bBHSiaA5MhpL/aspjAWQBp7mbk7r8 n9Ixohf450oIS/EGFTXT2561cxpq460MzyXuvnmidkHoHEeIfUDUIH/fmLKV0bJ1gvQ4 0tyuT/rS6FpRH7DpsHF/MnviWitHmrPDIdm82uGW/ArFBHJj/L5OwpOGDHwSn7Pu4R2f fKKYMSNx61DThUNwqbUTUCFrjSbtm5Ob+AJ9V9zp1Xjkis16yEVZVux1O+HUa55zJdlv 28bq1SRb/vspCi3RcCdfcHAVm9K5XWQWLaQBN20v1w9MBxI2VU0evIQgQusDG1YSWMFg LxyA== 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=ZNj48Z0fwLYGl6AGKYgUOfVmY6j2D/QwN1f63nofDHA=; fh=k0YGrrLibE4Ez6fKBTWZNvBxelP2UNQexSeTLOSofmw=; b=lJ17NV/MF3a5IauKC4nU2pIhaMAhK/wJikh6AuK6WpINYmvepqQxjI4ORoSJKOi/O0 tHDWTqqojoft7ISCivCY7Que1jV06LqwHPnTkkRkrxIziZqz19u+VNcX8q2fL7N7iCAz 6q7//Kxk35UsvDVdt20q/QTf/mUXFETv1yqv0cbjkurE+MQBLSiN1ivmbXX1vSSTU9R0 5ROiHUJfVDAhuZn5elW9l07FH59obij233w+aortN9aqKzQobjTwLAMW2BgmC450QqkI PVfCJas4KTJyT8yRC4SsakcxXM/kPKhISPzRUnwQexyAi+WewwhptKMpSzt6W/jTuJeg mTCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aVcV6r17; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113432-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 g10-20020a17090a128a00b0029c0bbdad5csi10578423pja.144.2024.03.24.17.35.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113432-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=aVcV6r17; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113432-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 C0241281F14 for ; Mon, 25 Mar 2024 00:35:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA8E51AA93C; Sun, 24 Mar 2024 22:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aVcV6r17" 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 D57D51AA91A; Sun, 24 Mar 2024 22:43:54 +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=1711320234; cv=none; b=kSfknYux/WV/pb4xGsMRpXNFcKIRf/iQg1m6Nknjcn6jmQGTw8G6P96lBpGflBy1yQHxSNHnhtn/fKjT6BJh1Txg+pqfZKJoy7qMfBtWdNwAV7Ot1DDy5qAn0nTtvq6zGEVRjOFsNi3z1dT2EqhpuC4iYLOdxGrDafZMxJ/MwmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320234; c=relaxed/simple; bh=uqW+vHnpi3hn7/6lZ3eu8/qtdKpo23FfOc7EbGWzq+I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EnxC43rLgXCP0v5kmbNCRTELwCdaeapo8aR9Cxe/sgv6YnmSu7SAfk5gpBwliIXbrUEt5qFYN8a2g6mvw5Iatc1Bk71ABaEY/GIITrUyxDyOrqMjOXRCCeMF+9IxIT1dRkuo9uMd5uUIyQwKw+qXBRA56N7mDBMKm+IQ9GL74Kk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aVcV6r17; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15704C43399; Sun, 24 Mar 2024 22:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320234; bh=uqW+vHnpi3hn7/6lZ3eu8/qtdKpo23FfOc7EbGWzq+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aVcV6r17B6zp2wcYCF01gUkiAcexe5EP0RXSzVz04PCpYkNwnratrjAuekhYWzYBD 9haCI65jcIYwYc5uRLFdJnawl6Sy6G84wIJyFV/Amu9ExtgV8hcp4rW9+iTgDaJGv6 USa7NynWKPe9mwQz3xSfPocZfIht7M5KQ5Ms/J9CGBOCOASvIImo14vSvX9Cr4ajtz 8c1jfHPv8aWUTMCHToFPBw5rH7jfJRmsvoWVkEq+I805IxfD7Rek74zg8dlfGXaXo/ VXTMzuVfzMLwQWuYkE6Zsv0AkdgcC2NWl3eCo9hWmaDWAuta887FN6aGVtEBzhAxhV wwHV1SOPFT28A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Gergo Koteles , Takashi Iwai , Sasha Levin Subject: [PATCH 6.8 541/715] ALSA: hda/tas2781: do not reset cur_* values in runtime_suspend Date: Sun, 24 Mar 2024 18:32:00 -0400 Message-ID: <20240324223455.1342824-542-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-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: Gergo Koteles [ Upstream commit bec7760a6c5fa59593dac264fa0c628e46815986 ] The amplifier doesn't loose register state in software shutdown mode, so there is no need to reset the cur_* values. Without these resets, the amplifier can be turned on after runtime_suspend without waiting for the program and profile to be restored. Fixes: 5be27f1e3ec9 ("ALSA: hda/tas2781: Add tas2781 HDA driver") Signed-off-by: Gergo Koteles Signed-off-by: Takashi Iwai Message-ID: Signed-off-by: Sasha Levin --- sound/pci/hda/tas2781_hda_i2c.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index 750e49fbb91e5..0e61e872bb716 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -832,7 +832,6 @@ static void tas2781_hda_i2c_remove(struct i2c_client *clt) static int tas2781_runtime_suspend(struct device *dev) { struct tas2781_hda *tas_hda = dev_get_drvdata(dev); - int i; dev_dbg(tas_hda->dev, "Runtime Suspend\n"); @@ -843,12 +842,6 @@ static int tas2781_runtime_suspend(struct device *dev) tas_hda->priv->playback_started = false; } - for (i = 0; i < tas_hda->priv->ndev; i++) { - tas_hda->priv->tasdevice[i].cur_book = -1; - tas_hda->priv->tasdevice[i].cur_prog = -1; - tas_hda->priv->tasdevice[i].cur_conf = -1; - } - mutex_unlock(&tas_hda->priv->codec_lock); return 0; -- 2.43.0