From 5c5420c8a491265cc970e07155d5442415b8ce2f Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Wed, 29 Aug 2018 09:57:23 +0800 Subject: [PATCH] MLK-19328-1: hdp: fix no sound output in second time Fixes commit 6b97462b6407 ("MLK-18690-3: hdp api: Remove info frame API function") The info frame API is removed, so the maximum of state->tmp is 8. Signed-off-by: Shengjiu Wang --- drivers/mxc/hdp/API_Audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mxc/hdp/API_Audio.c b/drivers/mxc/hdp/API_Audio.c index b49b0765ae07..f70da60b9861 100644 --- a/drivers/mxc/hdp/API_Audio.c +++ b/drivers/mxc/hdp/API_Audio.c @@ -333,7 +333,7 @@ CDN_API_STATUS CDN_API_AudioAutoConfig(state_struct *state, default: return ret; } - if (state->tmp == 9) { + if (state->tmp == 8) { state->tmp = 0; return CDN_OK; } -- 2.17.1