bluetooth: add more call indicators
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Tue, 23 Feb 2021 21:58:43 +0000 (00:58 +0300)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 5 Apr 2021 15:43:32 +0000 (15:43 +0000)
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/507>

src/modules/bluetooth/backend-native.c

index c698344..519ff61 100644 (file)
@@ -597,13 +597,15 @@ static bool hfp_rfcomm_handle(int fd, pa_bluetooth_transport *t, const char *buf
         rfcomm_write_response(fd, "+CIND: "
                      /* many indicators can be supported, only call and
                       * callheld are mandatory, so that's all we repy */
+                     "(\"service\",(0-1)),"
                      "(\"call\",(0-1)),"
+                     "(\"callsetup\",(0-3)),"
                      "(\"callheld\",(0-2))");
         c->state = 2;
 
         return true;
     } else if (c->state == 2 && pa_startswith(buf, "AT+CIND?")) {
-        rfcomm_write_response(fd, "+CIND: 0,0");
+        rfcomm_write_response(fd, "+CIND: 0,0,0,0");
         c->state = 3;
 
         return true;