From d9fa69c9e7900a5767bd68f2c360113a46b8a0f5 Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Tue, 23 Jan 2018 12:42:52 +0800 Subject: [PATCH] ASoC: dsp: correct return value check When the return value of adm_populate_channel_weight is 0, it should keep running, not return error. Change-Id: I447b81d6edfc89db6cb3742c1719e745c6071c12 Signed-off-by: Meng Wang --- dsp/q6adm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsp/q6adm.c b/dsp/q6adm.c index b9c11ac6b4c3..c6dc1784faf1 100644 --- a/dsp/q6adm.c +++ b/dsp/q6adm.c @@ -644,7 +644,7 @@ int adm_programable_channel_mixer(int port_id, int copp_idx, int session_id, index = index + ch_mixer->input_channels[channel_index]; ret = adm_populate_channel_weight(&adm_pspd_params[index], ch_mixer, channel_index); - if (!ret) { + if (ret) { pr_err("%s: fail to get channel weight with error %d\n", __func__, ret); goto fail_cmd;