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=1796383766; b=PdeifUgRSJaXLH6SvS3AHp0LGy84cGCJ44k/Lgq6ev/TUIypPT/yJgv9i51sYdws4zva uiS8HycL+1wZObwzfnMeILP4VvuT/HqLUlYcz2SOrd6AKYqtozXU3UrL4zGwkZ0l9XdFJ u0NBt8yawaO29/ZYSaaOYBHQFlC6b+AKdoW3NqOOIVxBGwFQiDTsNV4Wba/6eQed/d/Qh BA24WGKrX0Rgtqw4Tk3eQbg+KtgpYa1xR1jCpcY9LnNft1jrvg6ugBxaf80zP4pff7th9 /ax2ynVviNWnm8iB2P/ghPRFaxPezTfOgt4NtjirM2rTmrExeq+JAcLg0Z7yaDxh/xQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383766; 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=CzXrhtrTUcHN/+mdhqzwmeuYre+/u2Q+rtH9yVDLsds=; b=MYzUpFHWIuuHXUfhOJ+6B/BeZilbOECAULk2gz4tvyY6x6KYK8oeRSrI6PcsXMZjAaEU +5Z5mDIIVsibMyvVk2wTVq/TBehJyxaec+b5xgJBUZmgdTUxVEeMXO5RDZR50Zns0K054 U8QRYjlb3i48ZPoDEsM5pgoujW4eF7Fhzbn4eGarye3Tbt0/fzP207dnjl2+nUk/CgYZ5 67JLEJwhnWsXRxf5g2GvZddjR2tzkSlvfOni92LXTPGeylmtnRoC8k4nfLtP/Bb5tZyRO h5RgZcY9F5vvhSmfQ+iytCwmI95imIpKKOUMlSMs2AC7oQZE+ixic7BdYALBBVOSG7w== 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=i9AhwyBv; 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 77238606A322; Fri, 4 Dec 2026 11:29:26 +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=i9AhwyBv Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DD9C1F00897; Fri, 4 Dec 2026 11:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383766; bh=CzXrhtrTUcHN/+mdhqzwmeuYre+/u2Q+rtH9yVDLsds=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=i9AhwyBvqm7pUJ/ruNxV/gplReq8U2kKDLSJqaYAkGLwL08CzLefqq5YdcjO9K74T 0WJ0Ju1Lb5EJsWmbMUwqsW6QSlYUWr50aFyBbUiNnC7VhTTR9s/x3Mgr9rlS1wHmGf aTGstBV9xyT5qFtHuCwT5fx0DJLL6eFzIp/sPQuk= 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 6.12 358/555] ASoC: qcom: audioreach: only disconnect the route a mixer control owns Date: Fri, 4 Dec 2026 19:06:41 +0900 Message-ID: <20261204100623.524888559@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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 6.12-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 @@ -1093,7 +1093,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;