From 3660b5ae8d6bcd134072aae742b5682f40a96573 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Wed, 31 Oct 2012 15:21:04 +0100 Subject: Use mutexes to make audio thread-proof Signed-off-by: Paul Kocialkowski --- audio_ril_interface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio_ril_interface.h') diff --git a/audio_ril_interface.h b/audio_ril_interface.h index c1befae..3d7e3f1 100644 --- a/audio_ril_interface.h +++ b/audio_ril_interface.h @@ -28,6 +28,8 @@ struct tinyalsa_audio_ril_interface { void *dl_handle; audio_devices_t device_current; + + pthread_mutex_t lock; }; int audio_ril_interface_set_mic_mute(struct tinyalsa_audio_ril_interface *ril_interface, bool state); -- cgit v1.1