hal: avoid echo reference is disabled when closing input stream

When voip runs in background, there is a recording wants to start,
due to APM forbid two input stream are active at same time, the
recording starts failure. And echo reference is disabled when
closing the input stream even if voip is still active in background.

Fix it by avoiding disable echo reference when there are no active
input and hfp call.

CRs-Fixed: 2357317
Change-Id: Ib36ec449fac41f3ed4147660dafbb60c3eb82f67
1 file changed