path: root/src/host/layer23/src/mobile/voice.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-03host/mobile: integrate GAPK based audio I/O back-endfixeria/audioVadim Yanitskiy1-17/+52
This change introduces a new feature of the mobile application - audio I/O support, which allows one to speak right from PC running mobile through its ordinary mic and speakers. The audio I/O is based on GAPK library, which relays on ALSA sound framework. The API of GAPK implies to use the processing queues (chains), which basically consist of a source block, several processing blocks, and a sink block. So, there are two voice processing chains: - 'pq_audio_source' (voice capture -> frame encoding), - 'pq_audio_sink' (frame decoding -> voice playback). Both of them exchange frames from two dedicated buffers: - 'tch_fb_ul' - a buffer for to be played DL TCH frames, - 'tch_fb_dl' - a buffer for encoded UL TCH frames. In its turn, both buffers are served by a new gapk_io_dequeue() function, which is being called within the mobile_work() loop. Change-Id: Ib86b0746606c191573cc773f01172afbb52f33a9
2018-10-03mobile/voice.c: abstract gsm_send_voice() from MNCCVadim Yanitskiy1-3/+14
Change-Id: I37241555cd648a8e2b57fa072c708f93cd1ba5a9
2011-07-28layer23: Add mobile support for sending / receiving voice frame through MNCCAndreas.Eversberg1-0/+78
Support GSM FR codec only so far. Written-by: Andreas Eversberg <> Signed-off-by: Sylvain Munaut <>