From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6A67B381E98; Sat, 12 Sep 2026 09:33:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789205586; cv=none; b=JqR64f4ZxlFfLmqh67E9CN66YkfJia60E83BCehpKjIUTEmgFSi5+1F4BckZK7xUGDVud9TFQfMW1RXOwhoj7zCRiLtXrHXjPTxF59L0rMVfPLkAiYqqHUkXKQYMCpeIc0DLq/ne8q3+5cA8W/ASA75gbov4hmXQ1f1STTpv6Z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789205586; c=relaxed/simple; bh=1ZSl5KfvFnzF7G7g1VNwn0L0YrIBdIaeW/wTbYsb3J8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UFdSq5JXP5Mdcd8a0tJAGDHzF05suB0vkKsOcejR/aAINe/P2GOusXGJKNjwtTrHN7jeinZQEg8QBEkc7Z++ZJCgOf4GJQLMtmua8r8X4vKwFryX9yPuaX2pWOWXHNbzWfsYreRoZpfZ6p7TTA5dAcGnmhjxBddeJioC0+J1u+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DugvuIHQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DugvuIHQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFF7B1F000FF; Sat, 12 Sep 2026 09:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789205585; bh=BWjAVRU1cgSUOjPyOQEZmJ0Qa/24wqLVaUdzOU0PRDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DugvuIHQlFf6S8lywpeCMmcOxBPXR02Ysc0UxSXlTS/wOsnTJ0YFbafPoCrA+2M5e 8tMNO+2RoXQHKypBybFkuwvfPrUxzjHZ1OEniTUqlX+xdKuAY7pIgoTMiFfD4MbqmZ bZNr3XFMfXPTcBz9soY5Wne9KZDPcxU7DfBFxaHw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jon Hunter , Mark Brown , Sasha Levin Subject: [PATCH 6.18 0031/1518] ASoC: tegra: Fix the MIXER enable default value Date: Sat, 12 Sep 2026 08:36:40 +0200 Message-ID: <20260912065624.127334348@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065623.398859879@linuxfoundation.org> References: <20260912065623.398859879@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jon Hunter [ Upstream commit 5442b8093a2f94ecd4696b3875194be09e2676c5 ] Commit 4b05ccb17f92 ("regcache: Sort the local copy of an unsorted reg_defaults array") exposed an issue in the Tegra MIXER driver where the register default for the TEGRA210_MIXER_ENABLE is specified as 1, but the hardware default is actually 0. After this commit was added the MIXER driver is no longer working and so fix this by correcting the default value for this register and explicitly configuring the MIXER_ENABLE register when runtime resuming the MIXER device. Fixes: 05bb3d5ec64a ("ASoC: tegra: Add Tegra210 based Mixer driver") Cc: stable@vger.kernel.org Signed-off-by: Jon Hunter Link: https://patch.msgid.link/20260821153734.158426-3-jonathanh@nvidia.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/soc/tegra/tegra210_mixer.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) --- a/sound/soc/tegra/tegra210_mixer.c +++ b/sound/soc/tegra/tegra210_mixer.c @@ -57,7 +57,7 @@ static const struct reg_default tegra210 MIXER_TX_REG_DEFAULTS(3), MIXER_TX_REG_DEFAULTS(4), - { TEGRA210_MIXER_ENABLE, 0x1 }, + { TEGRA210_MIXER_ENABLE, 0x0 }, { TEGRA210_MIXER_CG, 0x00000001}, { TEGRA210_MIXER_GAIN_CFG_RAM_CTRL, 0x00004000}, { TEGRA210_MIXER_PEAKM_RAM_CTRL, 0x00004000}, @@ -86,11 +86,15 @@ static int tegra210_mixer_runtime_suspen static int tegra210_mixer_runtime_resume(struct device *dev) { struct tegra210_mixer *mixer = dev_get_drvdata(dev); + int err; regcache_cache_only(mixer->regmap, false); - regcache_sync(mixer->regmap); + err = regcache_sync(mixer->regmap); + if (err) + return err; - return 0; + return regmap_write(mixer->regmap, TEGRA210_MIXER_ENABLE, + TEGRA210_MIXER_EN); } static int tegra210_mixer_write_ram(struct tegra210_mixer *mixer,