Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[hfp_hf_bluez5] Removed __ofono_handsfree_audio_manager_ calls
Those functions are called by ofono_handsfree_audio_ref/unref which
ensure that initialization is only done once.
  • Loading branch information
monich committed Nov 19, 2020
1 parent 4844fc6 commit 3eea7c8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ofono/plugins/hfp_hf_bluez5.c
Expand Up @@ -49,7 +49,6 @@
#include <ofono/handsfree.h>
#include <ofono/handsfree-audio.h>
#include <ofono/siri.h>
#include <ofono.h>

#include <drivers/atmodem/atutil.h>
#include <drivers/hfpmodem/slc.h>
Expand Down Expand Up @@ -833,8 +832,6 @@ static int hfp_init(void)
if (DBUS_TYPE_UNIX_FD < 0)
return -EBADF;

__ofono_handsfree_audio_manager_init();

/* Registers External Profile handler */
if (!g_dbus_register_interface(conn, HFP_EXT_PROFILE_PATH,
BLUEZ_PROFILE_INTERFACE,
Expand Down Expand Up @@ -890,8 +887,6 @@ static void hfp_exit(void)
g_dbus_client_unref(bluez);

ofono_handsfree_audio_unref();

__ofono_handsfree_audio_manager_cleanup();
}

OFONO_PLUGIN_DEFINE(hfp_bluez5, "External Hands-Free Profile Plugin", VERSION,
Expand Down

0 comments on commit 3eea7c8

Please sign in to comment.