summaryrefslogtreecommitdiff
path: root/test/asm_testsuite.c
diff options
context:
space:
mode:
authorinhyeok <i_bc.kim@samsung.com>2015-06-25 07:49:28 (GMT)
committerinhyeok <i_bc.kim@samsung.com>2015-06-26 02:07:41 (GMT)
commit7e72265b2a4deca07195129f428769811ea3873d (patch)
treea22a64344848526120270a6e9fed00f89fe4adcc /test/asm_testsuite.c
parentcba5a315ca8abb87ec935048647feaa129f5c277 (diff)
downloadaudio-session-manager-7e72265b2a4deca07195129f428769811ea3873d.zip
audio-session-manager-7e72265b2a4deca07195129f428769811ea3873d.tar.gz
audio-session-manager-7e72265b2a4deca07195129f428769811ea3873d.tar.bz2
[Version] Release 0.3.0 [Profile] Common [Issue Type] Migration Merged main changes - Update vconftool for SoundStatus initialize - Apply ASLR - Replace msgqueue to gdbus - Revise return value of asm callback in asm_testsuite - Support container Change-Id: If8fc14a03f1f00a45c7163d9f21a8df8de04f559 Signed-off-by: inhyeok <i_bc.kim@samsung.com>
Diffstat (limited to 'test/asm_testsuite.c')
-rw-r--r--test/asm_testsuite.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/asm_testsuite.c b/test/asm_testsuite.c
index 88b8f32..c5b963f 100644
--- a/test/asm_testsuite.c
+++ b/test/asm_testsuite.c
@@ -20,7 +20,17 @@ asm_callback (int handle, ASM_event_sources_t event_src, ASM_sound_commands_t co
{
g_print ("\n[%s] handle = %d, event src = %d, command = %d, sound_state = %d, cb_data = %p\n\n",
__func__, handle, event_src, command, sound_status, cb_data);
- return ASM_CB_RES_NONE;
+ switch (command) {
+ case ASM_COMMAND_PLAY:
+ case ASM_COMMAND_RESUME:
+ return ASM_CB_RES_PLAYING;
+ case ASM_COMMAND_STOP:
+ return ASM_CB_RES_STOP;
+ case ASM_COMMAND_PAUSE:
+ return ASM_CB_RES_PAUSE;
+ default:
+ return ASM_CB_RES_NONE;
+ }
}
ASM_cb_result_t