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=1796382309; b=Bpy/rxFw4sy9V4jAULHxOe4R9kWSTRVxXP7NcusdP7lwU0/DvV+hEnzAByj1RNqxEoEG MF669MsDYd+vrVHMmrUVpJTYVWjWv5Lspu3vuSzhUqjRZiBxenUG17JVmP2HCCFPaLJR5 SBuVDo+OtA86i8rqAWQg37ETaQb980ym5WiNzOy7gtWdYJF7MY4is29Z32njMh7ZZBxxs Jb8vnfR4GPpfgoJl0bE0D3cKLRB56TcWgHnzYcHHPerfvkj93RQJjD2lDVIRkcKqstsbH UyngAR/W1ARo7xm1gg6RJIb1tIjuNcq4tL+F1/jVzQQmkZrzR23ODKsPD3QX0sI64GA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382309; 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=Dl135xAIjHZB2AlPMdjZcJ7Iz+v5OpYI06YS4CIJbJ4=; b=TqqihxRaG91cLnxkVHLCFwQ+T0kz3d0dJQxTRZWT8WMa2jHOo8KvTIfgl/nbzZUPCM0e yBdG9pIlo4lvHg7AAPi7xmQln8Hi4pkS9gzkS5AL0yZ1vO/Q0SRG4ube7ycVttG6WB5Ic /9a4k6eBzBPiZU+fIWZn38zmtIwBaqkIchIzjK+YLL5AfNCUCUVuX5TJjRBAgf2oogp1H 2iravCNUEAmVQdLXd9O5BROiKPrmUxKQPZLzCENqXilbOjOt1WAd5pGhyg+xu2Ah7d26Y LJ8Bv0KIMqcaQ472E+K5nkTCSsCRTjkIaksVD9PtxyrU4k4Kn08RnVtuQlR0qZkAYpw== 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=T+z3YBQP; 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 11C70606A33F; Fri, 4 Dec 2026 11:05:09 +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=T+z3YBQP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E01C1F00933; Fri, 4 Dec 2026 11:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796382308; bh=Dl135xAIjHZB2AlPMdjZcJ7Iz+v5OpYI06YS4CIJbJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=T+z3YBQPxyCdEe8z2l75TVMURQeOJQRsInpoeG70s9p9XYNTeOLbhkssAlKBKsjno MVIlAGkZ+HzK83kVxE7FcUtzYfsTwf3xvuRsMFrT2JFxDR+9sSER1OhFFqjp7QhWgn OpbXWm8eQyGmKw7yS7rsabQrXE4Egds/pHtnlF1w= 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.18 397/703] ASoC: qcom: audioreach: only disconnect the route a mixer control owns Date: Fri, 4 Dec 2026 19:04:56 +0900 Message-ID: <20261204100638.390392248@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-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 @@ -1137,7 +1137,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;