int bt_vol = 0;
ret = bt_ag_get_speaker_gain(&bt_vol);
- if (ret != BT_ERROR_NONE)
- {
+
+ if (ret != BT_ERROR_NONE) {
_E("bt_ag_get_speaker_gain Failed");
return -1;
}
_E("volume bt register changed cb failed");
}
-void bt_deinit_sco(void)
+void bt_fini_sco(void)
{
_D("SCO volume Deinitialize");
if (_bt_unregister_changed_cb() != BT_ERROR_NONE)
_E("bt_ag_is_sco_opened return [%d]", error);
_D("BT state %d", bt_opened);
- if (bt_opened == true && sound_type == SOUND_TYPE_CALL)
- {
+ if (bt_opened == true && sound_type == SOUND_TYPE_CALL) {
_bt_display_bt_volume_view(sound_type, sound, vibration, bt_opened);
_D("BT SCO volume level is : %d", volume);
if (VOLUME_ERROR_OK != volume_view_slider_value_set(volume))
int ret = 0;
ret = bt_audio_initialize();
- if (ret != BT_ERROR_NONE)
- {
+ if (ret != BT_ERROR_NONE) {
_E("bt audio initialize failed");
return -1;
}
ret = bt_ag_set_speaker_gain_changed_cb(_bt_volume_changed_cb, NULL);
- if (ret != BT_ERROR_NONE)
- {
+ if (ret != BT_ERROR_NONE) {
_E("register bt volume changed callback failed");
return -1;
}