simtech: setup USB audio channel when in-call

We'll use +CPCMREG=1/0 to start/stop USB audio function, and we will
also report the specific ttyUSB port to be used for audio in the Call
interface.
This commit is contained in:
Aleksander Morgado
2019-10-16 17:50:16 +02:00
parent e3a1364ddc
commit eb66e8ae68
5 changed files with 146 additions and 3 deletions
+15
View File
@@ -111,4 +111,19 @@ gboolean mm_shared_simtech_voice_disable_unsolicited_events_finish (MMIfaceModem
GAsyncResult *res,
GError **error);
void mm_shared_simtech_voice_setup_in_call_audio_channel (MMIfaceModemVoice *self,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean mm_shared_simtech_voice_setup_in_call_audio_channel_finish (MMIfaceModemVoice *self,
GAsyncResult *res,
MMPort **audio_port, /* optional */
MMCallAudioFormat **audio_format, /* optional */
GError **error);
void mm_shared_simtech_voice_cleanup_in_call_audio_channel (MMIfaceModemVoice *self,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean mm_shared_simtech_voice_cleanup_in_call_audio_channel_finish (MMIfaceModemVoice *self,
GAsyncResult *res,
GError **error);
#endif /* MM_SHARED_SIMTECH_H */