hal: fix the reference count for devices during speaker protection
In speaker protection voice call usecase AHAL has two
usecases (VI-RECORD and regular capture) but the
function (check_and_route_capture_usecases) enables and
disables the voice-speaker-mic wrongly as it doesn't see
that the record device is not speaker mic record but
rather vi-record. So it wrongly enables the speaker mic device
which causes mismatch in device reference count.
Change-Id: I981b2e446b4efe4679e21ed5113217dff9ec2a0f
1 file changed