am fb21e4e5: am 888dc3d2: hal: fix hotword detection failure during music playback
* commit 'fb21e4e53923416672ebbf33910d3c4bea5d15f5':
hal: fix hotword detection failure during music playback
diff --git a/hal/audio_extn/soundtrigger.c b/hal/audio_extn/soundtrigger.c
index 4d09387..b5475a1 100644
--- a/hal/audio_extn/soundtrigger.c
+++ b/hal/audio_extn/soundtrigger.c
@@ -209,12 +209,14 @@
return;
if (snd_device >= SND_DEVICE_OUT_BEGIN &&
- snd_device < SND_DEVICE_OUT_END)
+ snd_device < SND_DEVICE_OUT_END) {
device_type = PCM_PLAYBACK;
- else if (snd_device >= SND_DEVICE_IN_BEGIN &&
- snd_device < SND_DEVICE_IN_END)
+ } else if (snd_device >= SND_DEVICE_IN_BEGIN &&
+ snd_device < SND_DEVICE_IN_END) {
+ if (snd_device == SND_DEVICE_IN_CAPTURE_VI_FEEDBACK)
+ return;
device_type = PCM_CAPTURE;
- else {
+ } else {
ALOGE("%s: invalid device 0x%x, for event %d",
__func__, snd_device, event);
return;