hal: Reduce debug logs
Remove or mute debug logs that are not necessary in debugging
usual audio HAL issues.
Change-Id: I832d9d95b6b24f64871524efbe65dd57850afd41
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 0be37a4..c8d355f 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -3047,11 +3047,8 @@
for (i = 0; i < SND_DEVICE_MAX; i++) {
valid_hw_interface = false;
- if (hw_interface_table[i] == NULL) {
- ALOGW("%s: sound device %s has no hw interface set\n",
- __func__, platform_get_snd_device_name(i));
+ if (hw_interface_table[i] == NULL)
continue;
- }
for (j = 0; j < max_be_dai_names; j++) {
if (strcmp(hw_interface_table[i], be_dai_name_table[j].be_name)
@@ -3060,9 +3057,6 @@
break;
}
}
- if (!valid_hw_interface)
- ALOGD("%s: sound device %s does not have a valid hw interface set (disregard for combo devices) %s\n",
- __func__, platform_get_snd_device_name(i), hw_interface_table[i]);
}
goto done;
@@ -3490,13 +3484,10 @@
#endif
/* CSRA devices support multiple sample rates via I2S at spkr out */
- if (!strncmp(snd_card_name, "qcs405-csra", strlen("qcs405-csra"))) {
- ALOGE("%s: soundcard: %s supports multiple sample rates", __func__, snd_card_name);
+ if (!strncmp(snd_card_name, "qcs405-csra", strlen("qcs405-csra")))
my_data->use_sprk_default_sample_rate = false;
- } else {
+ else
my_data->use_sprk_default_sample_rate = true;
- ALOGE("%s: soundcard: %s supports only default sample rate", __func__, snd_card_name);
- }
my_data->voice_feature_set = VOICE_FEATURE_SET_DEFAULT;
my_data->acdb_handle = dlopen(LIB_ACDB_LOADER, RTLD_NOW);
@@ -4039,7 +4030,7 @@
}
}
}
- ALOGI("%s: no matching param with id %d ip_ch %d op_ch %d uc_id %d snd_dev %d",
+ ALOGV("%s: no matching param with id %d ip_ch %d op_ch %d uc_id %d snd_dev %d",
__func__, info->id, info->ip_channels, info->op_channels,
info->usecase_id[0], info->snd_device);
return NULL;
@@ -4431,12 +4422,12 @@
platform_get_snd_device_name(snd_device2));
if ((snd_device1 < SND_DEVICE_MIN) || (snd_device1 >= SND_DEVICE_OUT_END)) {
- ALOGE("%s: Invalid snd_device = %s", __func__,
+ ALOGV("%s: Invalid snd_device1 = %s", __func__,
platform_get_snd_device_name(snd_device1));
return false;
}
if ((snd_device2 < SND_DEVICE_MIN) || (snd_device2 >= SND_DEVICE_OUT_END)) {
- ALOGE("%s: Invalid snd_device = %s", __func__,
+ ALOGV("%s: Invalid snd_device2 = %s", __func__,
platform_get_snd_device_name(snd_device2));
return false;
}
@@ -6118,7 +6109,7 @@
}
- ALOGD("%s: snd_device(%d) num devices(%d) new_snd_devices(%d)", __func__,
+ ALOGV("%s: snd_device(%d) num devices(%d) new_snd_devices(%d)", __func__,
snd_device, *num_devices, *new_snd_devices);
return ret;
@@ -8057,7 +8048,7 @@
}
}
cal.acdb_dev_id = platform_get_snd_device_acdb_id(cal.snd_dev_id);
- ALOGD("Setting audio calibration for snd_device(%d) acdb_id(%d)",
+ ALOGV("Setting audio calibration for snd_device(%d) acdb_id(%d)",
cal.snd_dev_id, cal.acdb_dev_id);
if(cal.acdb_dev_id == -EINVAL) {
ALOGE("[%s] Invalid acdb_device id %d for snd device id %d",
@@ -8812,7 +8803,8 @@
for (i = 0; i < sizeof(dsp_only_decoders_mime)/sizeof(dsp_only_decoders_mime[0]); i++) {
if (!strncmp(decoder_mime_type, dsp_only_decoders_mime[i],
strlen(dsp_only_decoders_mime[i]))) {
- ALOGD("Rejecting request for DSP only session from HAL during voice call/SSR state");
+ ALOGV("Rejecting request for DSP only session from HAL \
+ during voice call/SSR state");
isallowed = 0;
break;
}
@@ -10097,7 +10089,7 @@
*/
if (platform_spkr_use_default_sample_rate(adev->platform)) {
sample_rate = CODEC_BACKEND_DEFAULT_SAMPLE_RATE;
- ALOGD("%s:becf: afe: playback on codec device not supporting native playback set "
+ ALOGV("%s:becf: afe: playback on codec device not supporting native playback set "
"default Sample Rate(48k)", __func__);
}
}