From d8005c664b1c66785adc8bd7b65df00a3ec4b661 Mon Sep 17 00:00:00 2001 From: Zhou Song Date: Mon, 15 Jun 2020 20:46:17 +0800 Subject: [PATCH] dsp: don't reset rx ec ref channel after adm open Remove reset of rx ec ref channel for adm after using, if the channel value is not changed, user space won't set it to driver again, then causing adm opening failed. --- dsp/q6adm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dsp/q6adm.c b/dsp/q6adm.c index c49e0d08bfbb..44f739428b92 100644 --- a/dsp/q6adm.c +++ b/dsp/q6adm.c @@ -3278,7 +3278,6 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology, if ((this_adm.num_ec_ref_rx_chans != 0) && (path != ADM_PATH_PLAYBACK) && (open_v8.endpoint_id_2 != 0xFFFF)) { - this_adm.num_ec_ref_rx_chans = 0; memcpy(adm_params + sizeof(open_v8) + ep1_payload_size, (void *)&ep2_payload,