Turn off excess logging
Change-Id: Ia3e45d2ab6471f312218167fd7988d44d1ed02e6
diff --git a/hal/audio_extn/soundtrigger.c b/hal/audio_extn/soundtrigger.c
index b5475a1..2079596 100644
--- a/hal/audio_extn/soundtrigger.c
+++ b/hal/audio_extn/soundtrigger.c
@@ -193,7 +193,7 @@
in->channel_mask = audio_channel_in_mask_from_count(in->config.channels);
in->is_st_session = true;
in->is_st_session_active = true;
- ALOGD("%s: capture_handle %d is sound trigger", __func__, in->capture_handle);
+ ALOGV("%s: capture_handle %d is sound trigger", __func__, in->capture_handle);
break;
}
}
@@ -222,7 +222,7 @@
return;
}
- ALOGI("%s: device 0x%x of type %d for Event %d",
+ ALOGV("%s: device 0x%x of type %d for Event %d",
__func__, snd_device, device_type, event);
if (device_type == PCM_CAPTURE) {
switch(event) {
@@ -293,7 +293,7 @@
char sound_trigger_lib[100];
void *lib_handle;
- ALOGI("%s: Enter", __func__);
+ ALOGV("%s: Enter", __func__);
st_dev = (struct sound_trigger_audio_device*)
calloc(1, sizeof(struct sound_trigger_audio_device));
@@ -314,7 +314,7 @@
status = -EINVAL;
goto cleanup;
}
- ALOGI("%s: DLOPEN successful for %s", __func__, sound_trigger_lib);
+ ALOGV("%s: DLOPEN successful for %s", __func__, sound_trigger_lib);
st_dev->st_callback = (sound_trigger_hw_call_back_t)
dlsym(st_dev->lib_handle, "sound_trigger_hw_call_back");
@@ -341,7 +341,7 @@
void audio_extn_sound_trigger_deinit(struct audio_device *adev)
{
- ALOGI("%s: Enter", __func__);
+ ALOGV("%s: Enter", __func__);
if (st_dev && (st_dev->adev == adev) && st_dev->lib_handle) {
dlclose(st_dev->lib_handle);
free(st_dev);
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index cabe7a1..296aaab 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -272,7 +272,7 @@
strcpy(mixer_path, use_case_table[usecase->id]);
platform_add_backend_name(adev->platform, mixer_path, snd_device);
- ALOGD("%s: apply and update mixer path: %s", __func__, mixer_path);
+ ALOGV("%s: apply and update mixer path: %s", __func__, mixer_path);
audio_route_apply_and_update_path(adev->audio_route, mixer_path);
ALOGV("%s: exit", __func__);
@@ -295,7 +295,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);
- ALOGD("%s: reset and update mixer path: %s", __func__, mixer_path);
+ ALOGV("%s: reset and update mixer path: %s", __func__, mixer_path);
audio_route_reset_and_update_path(adev->audio_route, mixer_path);
ALOGV("%s: exit", __func__);
@@ -351,7 +351,7 @@
platform_set_speaker_gain_in_combo(adev, snd_device, true);
} else {
const char * dev_path = platform_get_snd_device_name(snd_device);
- ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, dev_path);
+ ALOGV("%s: snd_device(%d: %s)", __func__, snd_device, dev_path);
audio_route_apply_and_update_path(adev->audio_route, dev_path);
}
@@ -376,7 +376,7 @@
adev->snd_dev_ref_cnt[snd_device]--;
if (adev->snd_dev_ref_cnt[snd_device] == 0) {
const char * dev_path = platform_get_snd_device_name(snd_device);
- ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, dev_path);
+ ALOGV("%s: snd_device(%d: %s)", __func__, snd_device, dev_path);
audio_extn_dsm_feedback_enable(adev, snd_device, false);
if ((snd_device == SND_DEVICE_OUT_SPEAKER ||
@@ -676,7 +676,7 @@
return 0;
}
- ALOGD("%s: out_snd_device(%d: %s) in_snd_device(%d: %s)", __func__,
+ ALOGV("%s: out_snd_device(%d: %s) in_snd_device(%d: %s)", __func__,
out_snd_device, platform_get_snd_device_name(out_snd_device),
in_snd_device, platform_get_snd_device_name(in_snd_device));
@@ -867,7 +867,7 @@
error_config:
adev->active_input = NULL;
- ALOGD("%s: exit: status(%d)", __func__, ret);
+ ALOGV("%s: exit: status(%d)", __func__, ret);
return ret;
}
@@ -1044,12 +1044,12 @@
* max channels of remaining use cases.
*/
if (usecase->id == USECASE_VOICE_CALL) {
- ALOGD("%s: voice call is active, no change in HDMI channels",
+ ALOGV("%s: voice call is active, no change in HDMI channels",
__func__);
ret = false;
break;
} else if (usecase->id == USECASE_AUDIO_PLAYBACK_MULTI_CH) {
- ALOGD("%s: multi channel playback is active, "
+ ALOGV("%s: multi channel playback is active, "
"no change in HDMI channels", __func__);
ret = false;
break;
@@ -1070,7 +1070,7 @@
return 0;
if (channels == adev->cur_hdmi_channels) {
- ALOGD("%s: Requested channels are same as current", __func__);
+ ALOGV("%s: Requested channels are same as current", __func__);
return 0;
}
@@ -1445,7 +1445,7 @@
bool select_new_device = false;
int status = 0;
- ALOGD("%s: enter: usecase(%d: %s) kvpairs: %s",
+ ALOGV("%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));
@@ -1921,7 +1921,7 @@
lock_input_stream(in);
if (!in->standby && in->is_st_session) {
- ALOGD("%s: sound trigger pcm stop lab", __func__);
+ ALOGV("%s: sound trigger pcm stop lab", __func__);
audio_extn_sound_trigger_stop_lab(in);
in->standby = true;
}
@@ -2382,7 +2382,7 @@
error_open:
free(out);
*stream_out = NULL;
- ALOGD("%s: exit: ret %d", __func__, ret);
+ ALOGV("%s: exit: ret %d", __func__, ret);
return ret;
}
@@ -2420,7 +2420,7 @@
int ret;
int status = 0;
- ALOGD("%s: enter: %s", __func__, kvpairs);
+ ALOGV("%s: enter: %s", __func__, kvpairs);
pthread_mutex_lock(&adev->lock);
@@ -2549,7 +2549,7 @@
pthread_mutex_lock(&adev->lock);
if (adev->mode != mode) {
- ALOGD("%s: mode %d\n", __func__, mode);
+ ALOGV("%s: mode %d\n", __func__, mode);
adev->mode = mode;
if ((mode == AUDIO_MODE_NORMAL || mode == AUDIO_MODE_IN_COMMUNICATION) &&
voice_is_in_call(adev)) {
@@ -2569,7 +2569,7 @@
int ret;
struct audio_device *adev = (struct audio_device *)dev;
- ALOGD("%s: state %d\n", __func__, state);
+ ALOGV("%s: state %d\n", __func__, state);
pthread_mutex_lock(&adev->lock);
ret = voice_set_mic_mute(adev, state);
adev->mic_muted = state;
@@ -2903,7 +2903,7 @@
{
int i, ret;
- ALOGD("%s: enter", __func__);
+ ALOGV("%s: enter", __func__);
if (strcmp(name, AUDIO_HARDWARE_INTERFACE) != 0) return -EINVAL;
pthread_mutex_lock(&adev_init_lock);
if (audio_device_ref_count != 0) {
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 3f18b50..49e6801 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -489,7 +489,7 @@
int mccmnc;
property_get("gsm.sim.operator.numeric",value,"0");
mccmnc = atoi(value);
- ALOGD("%s: tmus mccmnc %d", __func__, mccmnc);
+ ALOGV("%s: tmus mccmnc %d", __func__, mccmnc);
switch(mccmnc) {
/* TMUS MCC(310), MNC(490, 260, 026) */
case 310490:
@@ -655,7 +655,7 @@
platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device);
}
- ALOGD("%s: enabling %s", __func__, my_data->ec_ref_mixer_path);
+ ALOGV("%s: enabling %s", __func__, my_data->ec_ref_mixer_path);
audio_route_apply_and_update_path(adev->audio_route, my_data->ec_ref_mixer_path);
}
}
@@ -832,7 +832,7 @@
goto done;
}
- ALOGD("%s: num_modems %d\n", __func__, modems);
+ ALOGV("%s: num_modems %d\n", __func__, modems);
if (modems > 0)
my_data->csd = open_csd_client(false /*is_i2s_ext_modem*/);
@@ -1017,7 +1017,7 @@
goto init_failed;
}
adev->snd_card = snd_card_num;
- ALOGD("%s: Opened sound card:%d", __func__, snd_card_num);
+ ALOGV("%s: Opened sound card:%d", __func__, snd_card_num);
break;
}
@@ -1359,7 +1359,7 @@
list_add_tail(operator_specific_device_table[snd_device], &device->list);
- ALOGD("%s : deivce[%s] -> operator[%s] mixer_path[%s] acdb_id [%d]", __func__,
+ ALOGV("%s : deivce[%s] -> operator[%s] mixer_path[%s] acdb_id [%d]", __func__,
platform_get_snd_device_name(snd_device), operator, mixer_path, acdb_id);
}
@@ -1407,7 +1407,7 @@
return -EINVAL;
}
if (my_data->acdb_send_audio_cal) {
- ALOGD("%s: sending audio calibration for snd_device(%d) acdb_id(%d)",
+ ALOGV("%s: sending audio calibration for snd_device(%d) acdb_id(%d)",
__func__, snd_device, acdb_dev_id);
if (snd_device >= SND_DEVICE_OUT_BEGIN &&
snd_device < SND_DEVICE_OUT_END)
@@ -2410,7 +2410,7 @@
info->mccmnc = strdup(str + strlen(name) + 1);
list_add_tail(&operator_info_list, &info->list);
- ALOGD("%s: add operator[%s] mccmnc[%s]", __func__, info->name, info->mccmnc);
+ ALOGV("%s: add operator[%s] mccmnc[%s]", __func__, info->name, info->mccmnc);
}
memset(value, 0, sizeof(value));