From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380820; b=0Ut1I+rYlnfaK3s6djoQJzwofJdiRIRvt/bds68HodBub85P21eFeOkumFb0GJkEak3y mHWd9BIpBDjVCGYOuILHnQXw3lj5UYb8iyPV/p3UTwY+f7FyeViTz8lAAgiyiWDPTZjW4 5yc7viKAouXUk3XcOPUTiHyvnXHKTOG5WSdS87XbXygSLZN/Ia8y3qyzvBie0T3lTU0At 1zzMwuK/ipcrBLCqEDSdNmoBtI4+kPaQqTH1XAJ6DNP+Ywn6RBUJyEDr8lCZNS+EymK+n emACUgDurbcp/ThGiFCOYEKRKU6W1MXZmVTRqkpzWs4J5Y4r6VBr8GIF1dC9BIkb0vA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380820; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=aQLzy8hjcrOt81EOV/xN6vipAz2bSdyLpvIoT45eoV4=; b=owDpTS0mckEE86+TMLE9HwrkvBaD10P8xcgzlewXBHO3aOJjfxp1tMWg6AfNX3PjSXQr PMOkgSbp5O+FkrWfOLSyK/okAwj/55Iimilmh2pJfO0VO8fgcsx/tZkZIQH3zGGxOlSSH HCrNc5uDZFQs2ilp5Z1WaTz8y5jG3bCBfhFlyhORzmi3UKpsXTwqfbp0D+SC2I7pb9GpL hMwYoJ8r5c+ZKBUgKXVyxmyr2ELSVPdiKg4wfbkcuZZV5QDlpzoocfE9BHuy+ryhcUE19 1/tIJ13lNuZpf5fP5bzeVpzlOVx8mGEElfCPF7YiFNAM4sTry3QySGlwgN7OwqoZ1cw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=gndkSbzg; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 504F5606A335; Fri, 4 Dec 2026 10:40:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=gndkSbzg Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF72B1F000CE; Fri, 4 Dec 2026 10:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380820; bh=aQLzy8hjcrOt81EOV/xN6vipAz2bSdyLpvIoT45eoV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=gndkSbzgnzjbAAa+rSPSB6hRGepldhI4LaeI+SXJltBA8y7NqJ5NhxtAWiZ13LIsJ 87urOKiN1EpgkgpXa2QPyvPrbmX7ORkdOKxn54MTtCO3o5+LZMQ6ErCDhzcGYG44Fo Fb/f7Vy8bFWymXXrXsGyT46y8ayhrvhbXqTgrzhs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marc Herrero , Srinivas Kandagatla , Mark Brown Subject: [PATCH 7.3 436/742] ASoC: qcom: audioreach: only disconnect the route a mixer control owns Date: Fri, 4 Dec 2026 19:05:00 +0900 Message-ID: <20261204100646.692392290@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marc Herrero commit 562b2cc2aa88e039790248b5f1014c4850a7e528 upstream. Each AudioReach virtual mixer route control (" Audio Mixer ") connects a front-end stream graph to a back-end device graph by storing the source module in the device graph's audioreach_graph_info. Writing 0 to any of these controls clears that link unconditionally, even when the device graph is connected to a different front end. When two front ends can feed the same back end the result therefore depends on write order. On QCS6490 (Radxa Dragon Q6A): - alsactl restore writes 'DISPLAY_PORT_RX_0 Audio Mixer MultiMedia2' = 1 and then 'DISPLAY_PORT_RX_0 Audio Mixer MultiMedia1' = 0, which leaves DisplayPort disconnected although the saved state has it connected; - the UCM HDMI enable sequence writes 'RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' = 0, which disconnects MultiMedia1 from the headphones. A PCM started on MultiMedia1 after that never advances (hw_ptr stays at 0). Make audioreach_connect_sub_graphs() only clear the link when it belongs to the control being cleared, using the same test as audioreach_is_vmixer_connected() does for get(). The DAPM mixer state is still updated for every write, so DAPM keeps tracking each route control as before. Fixes: e4977b91cff8 ("ASoC: qdsp6: audioreach: Simplify handing FE and BE graph connections") Cc: stable@vger.kernel.org Signed-off-by: Marc Herrero Reviewed-by: Srinivas Kandagatla Link: https://patch.msgid.link/20261116-q6apm-fixes-v2-2-ea89fb43316a@proton.me Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/qcom/qdsp6/topology.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/sound/soc/qcom/qdsp6/topology.c +++ b/sound/soc/qcom/qdsp6/topology.c @@ -1240,7 +1240,9 @@ static void audioreach_connect_sub_graph info->dst_mod_inst_id = m2->module_instance_id; info->dst_mod_ip_port_id = 2; - } else { + } else if (info->src_mod_inst_id == m1->module_instance_id && + info->dst_mod_inst_id == m2->module_instance_id) { + /* only drop the link this control made, not another FE's */ info->src_mod_inst_id = 0; info->src_mod_op_port_id = 0; info->dst_mod_inst_id = 0;