summaryrefslogtreecommitdiffstats
path: root/binding/radio_impl_kingfisher.c
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-06-10 11:29:33 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-06-10 11:38:13 +0300
commitdfc4fc4ffdabdc6a75b1a62e869bc16c297b8d89 (patch)
treed419bd6e8389834f7419466568277c96e883dc92 /binding/radio_impl_kingfisher.c
parent4fcdc4500e425badc1af4a5645e0c060161ddfaf (diff)
Remove support for 4A and pulseaudio completely
Bug-AGL: SPEC-2473 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com> Change-Id: I320be57ce48a63c7e85b8daebf7b094423f580f9
Diffstat (limited to 'binding/radio_impl_kingfisher.c')
-rw-r--r--binding/radio_impl_kingfisher.c39
1 files changed, 4 insertions, 35 deletions
diff --git a/binding/radio_impl_kingfisher.c b/binding/radio_impl_kingfisher.c
index 9388762..dcd3077 100644
--- a/binding/radio_impl_kingfisher.c
+++ b/binding/radio_impl_kingfisher.c
@@ -76,11 +76,6 @@ static int kf_init(void)
char cmd[SI_CTL_CMDLINE_MAXLEN];
int rc;
-#ifndef HAVE_4A_FRAMEWORK
- /* this code will only work with 4A */
- return -1;
-#endif
-
if(present)
return 0;
@@ -308,21 +303,8 @@ static void kf_start(void)
if (running)
return;
-#ifdef HAVE_4A_FRAMEWORK
- int rc;
- json_object *response;
-
- json_object *jsonData = json_object_new_object();
- json_object_object_add(jsonData, "action", json_object_new_string("unmute"));
- rc = afb_service_call_sync("ahl-4a", "radio", jsonData, &response);
- if (rc == 0) {
- AFB_INFO("Muted\n");
- json_object_put(response);
- }
- else {
- AFB_ERROR("afb_service_call_sync failed\n");
- }
-#endif /* HAVE_4A_FRAMEWORK */
+ /* TODO: start the stream in pipewire */
+
running = true;
}
@@ -334,21 +316,8 @@ static void kf_stop(void)
if (!running)
return;
-#ifdef HAVE_4A_FRAMEWORK
- int rc;
- json_object *response;
-
- json_object *jsonData = json_object_new_object();
- json_object_object_add(jsonData, "action", json_object_new_string("mute"));
- rc = afb_service_call_sync("ahl-4a", "radio", jsonData, &response);
- if (rc == 0) {
- AFB_INFO("UnMuted\n");
- json_object_put(response);
- }
- else {
- AFB_ERROR("afb_service_call_sync failed\n");
- }
-#endif /* HAVE_4A_FRAMEWORK */
+ /* TODO: stop the stream in pipewire */
+
running = false;
}