summaryrefslogtreecommitdiff
path: root/src/mm_radio_priv_hal.c
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2016-11-11 16:55:30 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2016-11-11 16:55:30 +0900
commita5dbc4ce0c5a80a2fb694b83af2376daf54da0d9 (patch)
tree8072eab027999f8078016b435a4db72919e0abce /src/mm_radio_priv_hal.c
parent567c90e4a2d567e48902f4fffdd59c4d4cda6a73 (diff)
downloadlibmm-radio-a5dbc4ce0c5a80a2fb694b83af2376daf54da0d9.tar.gz
libmm-radio-a5dbc4ce0c5a80a2fb694b83af2376daf54da0d9.tar.bz2
libmm-radio-a5dbc4ce0c5a80a2fb694b83af2376daf54da0d9.zip
Fix typo error and log
[Version] 0.2.10 [Profile] Mobile, Wearable [Issue Type] Fix typo error Change-Id: Ie336224355c8c068756533b01d531c4c373c6a68
Diffstat (limited to 'src/mm_radio_priv_hal.c')
-rw-r--r--src/mm_radio_priv_hal.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mm_radio_priv_hal.c b/src/mm_radio_priv_hal.c
index 8880da4..09c5229 100644
--- a/src/mm_radio_priv_hal.c
+++ b/src/mm_radio_priv_hal.c
@@ -135,7 +135,7 @@ static void __mmradio_sound_focus_watch_cb(int id, mm_sound_focus_type_e focus_t
#endif
static void __mmradio_volume_changed_cb(volume_type_t type, unsigned int volume, void *user_data);
-int __mmradio_set_total_volume(mm_radio_t *radio);
+static int __mmradio_set_total_volume(mm_radio_t *radio);
int _mmradio_apply_region(mm_radio_t *radio, MMRadioRegionType region, bool update)
{
@@ -545,7 +545,6 @@ int _mmradio_start(mm_radio_t *radio)
}
ret = mm_sound_volume_get_value(VOLUME_TYPE_MEDIA, &volume);
-
if (ret != MM_ERROR_NONE)
MMRADIO_LOG_WARNING("failed to get MEDIA_VOLUME");
@@ -555,9 +554,9 @@ int _mmradio_start(mm_radio_t *radio)
ret = __mmradio_set_total_volume(radio);
if (ret == MM_ERROR_NOT_SUPPORT_API) {
- MMRADIO_LOG_WARNING("radio_hal_start is not supported");
+ MMRADIO_LOG_WARNING("radio_hal_set_volume is not supported");
} else if (ret) {
- MMRADIO_LOG_ERROR("failed to radio_hal_start\n");
+ MMRADIO_LOG_ERROR("failed to radio_hal_set_volume\n");
goto error1;
}
@@ -617,7 +616,7 @@ int _mmradio_stop(mm_radio_t *radio)
#ifdef TIZEN_FEATURE_SOUND_VSTREAM
ret = sound_manager_stop_virtual_stream(radio->vstream);
if (ret != MM_ERROR_NONE) {
- MMRADIO_LOG_ERROR("failed to set sound focus");
+ MMRADIO_LOG_ERROR("failed to stop virtual_stream");
return ret;
}
#endif
@@ -638,6 +637,7 @@ int _mmradio_stop(mm_radio_t *radio)
MMRADIO_LOG_ERROR("radio_hal_close_device error");
return ret;
}
+
ret = radio_hal_unprepare(radio->hal_inf);
if (ret == MM_ERROR_NOT_SUPPORT_API) {
MMRADIO_LOG_WARNING("radio_hal_unprepare is not supported");
@@ -1443,7 +1443,7 @@ static void __mmradio_sound_focus_watch_cb(int id, mm_sound_focus_type_e focus_t
}
#endif
-int __mmradio_set_total_volume(mm_radio_t *radio)
+static int __mmradio_set_total_volume(mm_radio_t *radio)
{
int ret = MM_ERROR_NONE;
float total_volume = 0.0f;