From mboxrd@z Thu Jan 1 00:00:00 1970 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 4ECB71386DD; Tue, 14 May 2024 11:01:02 +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=1715684462; cv=none; b=JNep78aGzsppI1kMueChnm2rYkHbPIVJJgxEZbmC29YB0wMaNv2P8ZPXxzs+lCzBCaGIIrAX+E3M7UOVQve5nrBjH7P5WanI4IW2Sm5oPfDDPR985gtRadu3RUtGbIJwfZIDazpO5Z6+hjl9H5wdBOdMC2A0LDMtAPCJga+g2B0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715684462; c=relaxed/simple; bh=sKb6tflGbRz2F2tPnG//koHusfParXdAIxI5oD6gPtg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WRchj/LVP9Ub28w+fF8JSW0CMpZH0QApZOwORSCGQ6GKumt92VZDQMK+Aqe8Wct92W5i/fZEiX2dJz0YaLztWikS2wtQcJ/EiOM5/YvDRoPEiQyH2laJAh0C0uSM8/MGYsBpUzoQblPWUPgbFof0mJn72dlPkpB8+kcE2B4tmtc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kaNv9krT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kaNv9krT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACEA3C2BD10; Tue, 14 May 2024 11:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715684462; bh=sKb6tflGbRz2F2tPnG//koHusfParXdAIxI5oD6gPtg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kaNv9krTOih8Hij6kXAUOl4LQqTaZD0Tt945WmLgq2V/nenmWWdlod6civ6LIibpo DleZtwc3mH7y6EcqR0wmsAsRzUctXDiJF3HaOJRb7XCPYS7eU6ahKODadbsQ9bvvi0 v6kjEgcLH+ajXPelQDEMJKsk9H5sw8NmgUXYMqH0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Mark Brown , Sasha Levin Subject: [PATCH 6.6 044/301] ASoC: Intel: avs: Set name of control as in topology Date: Tue, 14 May 2024 12:15:15 +0200 Message-ID: <20240514101033.909750312@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101032.219857983@linuxfoundation.org> References: <20240514101032.219857983@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Amadeusz Sławiński [ Upstream commit 4cbb5050bffc49c716381ea2ecb07306dd46f83a ] When creating controls attached to widgets, there are a lot of rules if they get their name prefixed with widget name or not. Due to that controls ended up with weirdly looking names like "ssp0_fe DSP Volume", while topology set it to "DSP Volume". Fix this by setting no_wname_in_kcontrol_name to true in avs topology widgets which disables unwanted behaviour. Fixes: be2b81b519d7 ("ASoC: Intel: avs: Parse control tuples") Signed-off-by: Amadeusz Sławiński Link: https://lore.kernel.org/r/20240418142621.2487478-1-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/avs/topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/intel/avs/topology.c b/sound/soc/intel/avs/topology.c index 45d0eb2a8e710..141255420c12b 100644 --- a/sound/soc/intel/avs/topology.c +++ b/sound/soc/intel/avs/topology.c @@ -1412,6 +1412,8 @@ static int avs_widget_load(struct snd_soc_component *comp, int index, if (!le32_to_cpu(dw->priv.size)) return 0; + w->no_wname_in_kcontrol_name = true; + if (w->ignore_suspend && !AVS_S0IX_SUPPORTED) { dev_info_once(comp->dev, "Device does not support S0IX, check BIOS settings\n"); w->ignore_suspend = false; -- 2.43.0