gstreamer_ti: Patch dm6467 config to remove multiple cs servers
authorRoger Monk <r-monk@ti.com>
Mon, 1 Mar 2010 11:27:58 +0000 (11:27 +0000)
committerKoen Kooi <koen@openembedded.org>
Mon, 12 Apr 2010 17:43:20 +0000 (19:43 +0200)
   * dm6467 uses single cs server in latest codecs drop
      * patch ticodecplugin to match

Signed-off-by: Roger Monk <r-monk@ti.com>
Signed-off-by: Koen Kooi <k-kooi@ti.com>
recipes/ti/gstreamer-ti/gstreamer-ti-dm6467-usesinglecsserver.patch [new file with mode: 0644]
recipes/ti/gstreamer-ti_svn.bb

diff --git a/recipes/ti/gstreamer-ti/gstreamer-ti-dm6467-usesinglecsserver.patch b/recipes/ti/gstreamer-ti/gstreamer-ti-dm6467-usesinglecsserver.patch
new file mode 100644 (file)
index 0000000..3fb34cf
--- /dev/null
@@ -0,0 +1,36 @@
+diff -uNr ticodecplugin/src/gstticodecplugin_dm6467.cfg ticodecplugin/src/gstticodecplugin_dm6467.cfg
+--- ticodecplugin/src/gstticodecplugin_dm6467.cfg      2010-03-01 10:31:05.000000000 +0000
++++ ticodecplugin/src/gstticodecplugin_dm6467.cfg      2010-03-01 11:12:14.000000000 +0000
+@@ -29,25 +29,15 @@
+  *  ======== Engine Configuration ========
+  */
+ var Engine = xdc.useModule('ti.sdo.ce.Engine');
+-var decodeEngine = Engine.createFromServer(
+-    "decode",
+-    "./decodeCombo.x64P",
+-    "ti.sdo.servers.decode"
++var demoEngine = Engine.createFromServer(
++    "codecServer",
++    "./bin/cs.x64P",
++    "ti.sdo.server.cs"
+     );
+-var encodeEngine = Engine.createFromServer(
+-    "encode",
+-    "./encodeCombo.x64P",
+-    "ti.sdo.servers.encode"
+-    );
+-
+-var encpath = "" + java.lang.System.getenv("ENCODE_COMBO");
+-if (encpath != "" && encpath != "null") {
+-      encodeEngine.server = java.lang.System.getenv("ENCODE_COMBO");
+-}
+-var decpath = "" + java.lang.System.getenv("DECODE_COMBO");
+-if (decpath != "" && decpath != "null") {
+-      decodeEngine.server = java.lang.System.getenv("DECODE_COMBO"); 
++var combopath = "" + java.lang.System.getenv("CODEC_SERVER");
++if (combopath != "" && combopath != "null") {
++        demoEngine.server = java.lang.System.getenv("CODEC_SERVER");
+ }
+ /* Load support for the 'Davinci Multimedia Application Interface' modules */
index 1ac3716..cdf1f06 100644 (file)
@@ -6,6 +6,7 @@ SECTION = "multimedia"
 # TODO :: Codec Server Environment Variables shouldn't be required
 # TODO :: Add (and check) rc scripts for all targets (just copied for now) (365,6467,omapl137)
 # TODO :: Check if CPPFLAGS_append is still required
+# TODO :: Remove ENCODE/DECODE combo exports - these are not used anymore (check?)
 
 inherit autotools
 inherit update-rc.d
@@ -48,6 +49,10 @@ SRC_URI_append_omapl138 = " \
            file://gstreamer-ti-omapl138.patch;patch=1 \
 "
 
+SRC_URI_append_dm6467 = " \
+           file://gstreamer-ti-dm6467-usesinglecsserver.patch;patch=1 \
+"
+
 DEPENDS = "ti-dmai gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly"
 
 # gstreamer_ti picks up some config variables from the environment
@@ -90,6 +95,8 @@ export LINUXKERNEL_INSTALL_DIR = ${STAGING_KERNEL_DIR}
 
 export HMJCP_COMBO     = "${installdir}/ti-codecs-server/hmjcp.accel"
 export CODEC_SERVER    = "${installdir}/ti-codecs-server/cs.x64P"
+
+# TODO :: These 2 can be removed now since dm6467 uses single CS server (like omap/omapl)
 export ENCODE_COMBO    = "${installdir}/ti-codecs-server/encodeCombo.x64P"
 export DECODE_COMBO    = "${installdir}/ti-codecs-server/decodeCombo.x64P"