File 0004-bluetooth-use-HFP-profiles-in-ofono-not-HSP.patch of Package pulseaudio-modules-bt

From 3d434ac226fc46af30d3f94489365557a7a6ea54 Mon Sep 17 00:00:00 2001
From: Faidon Liambotis <paravoid@debian.org>
Date: Mon, 5 Aug 2019 17:34:52 +0200
Subject: [PATCH 4/9] bluetooth: use HFP profiles in ofono, not HSP

oFono implements HFP, so use PA_BLUETOOTH_PROFILE_HFP_HF and
PA_BLUETOOTH_PROFILE_HFP_AG, given they are now separate profiles.

Suggested by Georg Chini.

Signed-off-by: Faidon Liambotis <paravoid@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 src/modules/bluetooth/backend-ofono.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/bluetooth/backend-ofono.c
index 3dfda7593d7d..0ff54a5e718f 100644
--- a/src/modules/bluetooth/backend-ofono.c
+++ b/src/modules/bluetooth/backend-ofono.c
@@ -287,7 +287,7 @@ static void hf_audio_agent_card_found(pa_bluetooth_backend *backend, const char
     const char *key, *value;
     struct hf_audio_card *card;
     pa_bluetooth_device *d;
-    pa_bluetooth_profile_t p = PA_BLUETOOTH_PROFILE_HSP_AG;
+    pa_bluetooth_profile_t p = PA_BLUETOOTH_PROFILE_HFP_AG;
 
     pa_assert(backend);
     pa_assert(path);
@@ -321,7 +321,7 @@ static void hf_audio_agent_card_found(pa_bluetooth_backend *backend, const char
             card->local_address = pa_xstrdup(value);
         } else if (pa_streq(key, "Type")) {
             if (pa_streq(value, "gateway"))
-                p = PA_BLUETOOTH_PROFILE_HSP_HS;
+                p = PA_BLUETOOTH_PROFILE_HFP_HF;
         }
 
         pa_log_debug("%s: %s", key, value);
-- 
2.26.2

openSUSE Build Service is sponsored by