Enable more logging in audio HAL
Temporary enable more logging on device selection for issue
29578630
Bug: 29578630
Change-Id: I7ff5113f1c8f88b277cd175379080134dbc86deb
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 2a95ab8..527e9c5 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -446,7 +446,7 @@
strcpy(mixer_path, use_case_table[usecase->id]);
platform_add_backend_name(adev->platform, mixer_path, snd_device);
- ALOGV("%s: apply and update mixer path: %s", __func__, mixer_path);
+ ALOGD("%s: usecase(%d) apply and update mixer path: %s", __func__, usecase->id, mixer_path);
audio_route_apply_and_update_path(adev->audio_route, mixer_path);
ALOGV("%s: exit", __func__);
@@ -469,7 +469,7 @@
snd_device = usecase->out_snd_device;
strcpy(mixer_path, use_case_table[usecase->id]);
platform_add_backend_name(adev->platform, mixer_path, snd_device);
- ALOGV("%s: reset and update mixer path: %s", __func__, mixer_path);
+ ALOGD("%s: usecase(%d) reset and update mixer path: %s", __func__, usecase->id, mixer_path);
audio_route_reset_and_update_path(adev->audio_route, mixer_path);
ALOGV("%s: exit", __func__);
@@ -528,7 +528,7 @@
goto on_error;
}
- ALOGV("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
+ ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
audio_route_apply_and_update_path(adev->audio_route, device_name);
}
on_success:
@@ -572,7 +572,7 @@
return -EINVAL;
}
- ALOGV("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
+ ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
audio_route_reset_and_update_path(adev->audio_route, device_name);
}
audio_extn_sound_trigger_update_device_status(snd_device,
@@ -1671,7 +1671,7 @@
bool select_new_device = false;
int status = 0;
- ALOGV("%s: enter: usecase(%d: %s) kvpairs: %s",
+ ALOGD("%s: enter: usecase(%d: %s) kvpairs: %s",
__func__, out->usecase, use_case_table[out->usecase], kvpairs);
parms = str_parms_create_str(kvpairs);
ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_ROUTING, value, sizeof(value));