summaryrefslogtreecommitdiff
path: root/src/include/mm_radio_utils.h
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2016-11-08 21:24:33 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2016-11-11 14:35:19 +0900
commit567c90e4a2d567e48902f4fffdd59c4d4cda6a73 (patch)
tree35ba3273b358ce1e4592684b6143824908d46f70 /src/include/mm_radio_utils.h
parent2b76fcbb48230f9352a0bd3f8b17dc3c04bfca42 (diff)
downloadlibmm-radio-567c90e4a2d567e48902f4fffdd59c4d4cda6a73.tar.gz
libmm-radio-567c90e4a2d567e48902f4fffdd59c4d4cda6a73.tar.bz2
libmm-radio-567c90e4a2d567e48902f4fffdd59c4d4cda6a73.zip
Add volume APIs
[Version] 0.2.9 [Profile] Common [Issue Type] Add features Change-Id: I0db82a4ab5c2fcef3cb738b4f9c3dfe76a9720be
Diffstat (limited to 'src/include/mm_radio_utils.h')
-rw-r--r--src/include/mm_radio_utils.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/mm_radio_utils.h b/src/include/mm_radio_utils.h
index d498b59..35e8dc7 100644
--- a/src/include/mm_radio_utils.h
+++ b/src/include/mm_radio_utils.h
@@ -84,8 +84,11 @@ if ( x_radio->radio_fd < 0 ) \
}
/* command locking for multithreading */
-#define MMRADIO_CMD_LOCK(x_radio) pthread_mutex_lock( &((mm_radio_t*)x_radio)->cmd_lock )
-#define MMRADIO_CMD_UNLOCK(x_radio) pthread_mutex_unlock( &((mm_radio_t*)x_radio)->cmd_lock )
+#define MMRADIO_CMD_LOCK(x_radio) pthread_mutex_lock(&((mm_radio_t *)x_radio)->cmd_lock)
+#define MMRADIO_CMD_UNLOCK(x_radio) pthread_mutex_unlock(&((mm_radio_t *)x_radio)->cmd_lock)
+
+#define MMRADIO_VOLUME_LOCK(x_radio) pthread_mutex_lock(&((mm_radio_t *)x_radio)->volume_lock)
+#define MMRADIO_VOLUME_UNLOCK(x_radio) pthread_mutex_unlock(&((mm_radio_t *)x_radio)->volume_lock)
/* message posting */
#define MMRADIO_POST_MSG( x_radio, x_msgtype, x_msg_param ) \