summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/app_mobile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/layer23/src/mobile/app_mobile.c')
-rw-r--r--src/host/layer23/src/mobile/app_mobile.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index 1e0e0157..2c36beb3 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -37,6 +37,7 @@
#include <osmocom/bb/mobile/app_mobile.h>
#include <osmocom/bb/mobile/mncc.h>
#include <osmocom/bb/mobile/voice.h>
+#include <osmocom/bb/mobile/gapk_io.h>
#include <osmocom/bb/mobile/primitives.h>
#include <osmocom/bb/common/sap_interface.h>
#include <osmocom/vty/logging.h>
@@ -74,6 +75,7 @@ int mobile_work(struct osmocom_ms *ms)
w |= gsm322_cs_dequeue(ms);
w |= gsm_sim_job_dequeue(ms);
w |= mncc_dequeue(ms);
+ w |= gapk_io_dequeue(ms);
if (w)
work = 1;
} while (w);
@@ -158,6 +160,10 @@ int mobile_exit(struct osmocom_ms *ms, int force)
return -EBUSY;
}
+ /* Clean up GAPK state, if preset */
+ if (ms->gapk_io != NULL)
+ gapk_io_clean_up_ms(ms);
+
gsm322_exit(ms);
gsm48_mm_exit(ms);
gsm48_rr_exit(ms);
@@ -457,6 +463,9 @@ int l23_app_init(const char *config_file,
osmo_gps_init();
+ /* Init GAPK audio I/O */
+ gapk_io_init();
+
vty_info.tall_ctx = l23_ctx;
vty_init(&vty_info);
logging_vty_add_cmds(NULL);