diff options
Diffstat (limited to 'audio_ril_interface.c')
-rw-r--r-- | audio_ril_interface.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/audio_ril_interface.c b/audio_ril_interface.c index 0b4383d..b4c7111 100644 --- a/audio_ril_interface.c +++ b/audio_ril_interface.c @@ -40,7 +40,7 @@ int audio_ril_interface_set_mic_mute(struct tinyalsa_audio_ril_interface *ril_in if(ril_interface == NULL) return -1; - LOGD("%s(%d)", __func__, state); + ALOGD("%s(%d)", __func__, state); pthread_mutex_lock(&ril_interface->lock); @@ -49,7 +49,7 @@ int audio_ril_interface_set_mic_mute(struct tinyalsa_audio_ril_interface *ril_in rc = ril_interface->interface->mic_mute(ril_interface->interface->pdata, (int) state); if(rc < 0) { - LOGE("Failed to set RIL interface mic mute"); + ALOGE("Failed to set RIL interface mic mute"); goto error; } @@ -71,7 +71,7 @@ int audio_ril_interface_set_voice_volume(struct tinyalsa_audio_ril_interface *ri if(ril_interface == NULL) return -1; - LOGD("%s(%d, %f)", __func__, device, volume); + ALOGD("%s(%d, %f)", __func__, device, volume); pthread_mutex_lock(&ril_interface->lock); @@ -80,7 +80,7 @@ int audio_ril_interface_set_voice_volume(struct tinyalsa_audio_ril_interface *ri rc = ril_interface->interface->voice_volume(ril_interface->interface->pdata, device, volume); if(rc < 0) { - LOGE("Failed to set RIL interface voice volume"); + ALOGE("Failed to set RIL interface voice volume"); goto error; } @@ -98,7 +98,7 @@ int audio_ril_interface_set_route(struct tinyalsa_audio_ril_interface *ril_inter { int rc; - LOGD("%s(%d)", __func__, device); + ALOGD("%s(%d)", __func__, device); if(ril_interface == NULL) return -1; @@ -112,7 +112,7 @@ int audio_ril_interface_set_route(struct tinyalsa_audio_ril_interface *ril_inter rc = ril_interface->interface->route(ril_interface->interface->pdata, device); if(rc < 0) { - LOGE("Failed to set RIL interface route"); + ALOGE("Failed to set RIL interface route"); goto error; } @@ -137,14 +137,14 @@ void audio_ril_interface_close(struct audio_hw_device *dev, struct tinyalsa_audio_device *tinyalsa_audio_device; - LOGD("%s(%p)", __func__, ril_interface); + ALOGD("%s(%p)", __func__, ril_interface); if(ril_interface->dl_handle != NULL) { audio_ril_interface_close = (void (*)(struct audio_ril_interface *interface)) dlsym(ril_interface->dl_handle, "audio_ril_interface_close"); if(audio_ril_interface_close == NULL) { - LOGE("Unable to get close function from: %s", AUDIO_RIL_INTERFACE_LIB); + ALOGE("Unable to get close function from: %s", AUDIO_RIL_INTERFACE_LIB); } else { audio_ril_interface_close(ril_interface->interface); } @@ -175,7 +175,7 @@ int audio_ril_interface_open(struct audio_hw_device *dev, audio_devices_t device void *dl_handle; int rc; - LOGD("%s(%p, %d, %p)", __func__, dev, device, ril_interface); + ALOGD("%s(%p, %d, %p)", __func__, dev, device, ril_interface); if(dev == NULL || ril_interface == NULL) return -EINVAL; @@ -191,20 +191,20 @@ int audio_ril_interface_open(struct audio_hw_device *dev, audio_devices_t device dl_handle = dlopen(AUDIO_RIL_INTERFACE_LIB, RTLD_NOW); if(dl_handle == NULL) { - LOGE("Unable to dlopen lib: %s", AUDIO_RIL_INTERFACE_LIB); + ALOGE("Unable to dlopen lib: %s", AUDIO_RIL_INTERFACE_LIB); goto error_interface; } audio_ril_interface_open = (struct audio_ril_interface *(*)(void)) dlsym(dl_handle, "audio_ril_interface_open"); if(audio_ril_interface_open == NULL) { - LOGE("Unable to get open function from: %s", AUDIO_RIL_INTERFACE_LIB); + ALOGE("Unable to get open function from: %s", AUDIO_RIL_INTERFACE_LIB); goto error_interface; } interface = audio_ril_interface_open(); if(interface == NULL) { - LOGE("Unable to open audio ril interface"); + ALOGE("Unable to open audio ril interface"); goto error_interface; } |