Fix TZSP-5456 Media player is unable to handle music playback control
authorWu Zheng <wu.zheng@intel.com>
Tue, 21 May 2013 01:58:57 +0000 (09:58 +0800)
committerWu Zheng <wu.zheng@intel.com>
Tue, 21 May 2013 01:58:57 +0000 (09:58 +0800)
The key values are used on X86 too.
If remove the key values, media player can't be controlled by BT HS

am_daemon/amd_main.c
packaging/aul.spec

index 54de3d2..0966638 100755 (executable)
@@ -260,7 +260,7 @@ static int __init()
        _launch_init(&amd);
        _status_init(&amd);
 
-#ifndef __i386__
+#ifndef __emul__
        _key_init();
 #endif
 
index 29a8da6..b9a53a8 100644 (file)
@@ -53,6 +53,10 @@ Application utility library (devel)
 %setup -q
 
 %build
+%if 0%{?simulator}
+CFLAGS="%{optflags} -D__emul__"; export CFLAGS
+%endif
+
 %cmake .
 
 make %{?jobs:-j%jobs}