summaryrefslogtreecommitdiff
path: root/recipes/ti/gstreamer-ti
diff options
context:
space:
mode:
authorKoen Kooi <k-kooi@ti.com>2009-11-16 10:17:24 +0100
committerKoen Kooi <koen@openembedded.org>2009-12-04 19:46:02 +0100
commitb788499815bfc1974d4277c0a261b9a7c24aa816 (patch)
tree6c0546c0891d884f835355d851ec07147165ddd2 /recipes/ti/gstreamer-ti
parent08dcecdc77ceb6a3673605216493905859f11982 (diff)
recipes/ti: merge in updates
* New codec recipes from Arago team in Germantown * Updated dm6446 and dm355 from Brijesh Singh * cmem, gst-ti and dmai fixes from Brijesh Singh angstrom: introduce SOC_FAMILY and start using it TI recipes as a testing ground * SOC_FAMILY tells you which system on chip is used in the MACHINE, e.g. omap3, dm355, pxa25x, s3c24xx. This avoids having to duplicate lots of overrides in machine specific recipes. This is *NOT* intended to be used as a package arch.
Diffstat (limited to 'recipes/ti/gstreamer-ti')
-rw-r--r--recipes/ti/gstreamer-ti/gstreamer-ti-dm355-rc.sh61
-rw-r--r--recipes/ti/gstreamer-ti/gstreamer-ti-dm6446-rc.sh71
-rw-r--r--recipes/ti/gstreamer-ti/gstreamer-ti-omap3530-rc.sh10
3 files changed, 137 insertions, 5 deletions
diff --git a/recipes/ti/gstreamer-ti/gstreamer-ti-dm355-rc.sh b/recipes/ti/gstreamer-ti/gstreamer-ti-dm355-rc.sh
new file mode 100644
index 0000000000..d95658e44b
--- /dev/null
+++ b/recipes/ti/gstreamer-ti/gstreamer-ti-dm355-rc.sh
@@ -0,0 +1,61 @@
+#!/bin/sh
+#
+# configure kernel modules for TI DSP based gstreamer plugin
+#
+
+# Disable XDM 0.9 elements
+export GST_TI_TIViddec_DISABLE=1
+export GST_TI_TIAuddec_DISABLE=1
+export GST_TI_TIVidenc_DISABLE=1
+export GST_TI_TIImgdec_DISABLE=1
+export GST_TI_TIImgenc_DISABLE=1
+
+load_module() {
+ # CMEM Allocation
+ # 1x3628800 Circular buffer
+ # 4x829440 Video buffers (max D1 PAL)
+ # 1x829440 Underlying software components (codecs, etc.)
+ # 1x518400 Underlying software components (codecs, etc.)
+ # 1x4948 Underlying software components (codecs, etc.)
+ # 1x1505280 Underlying software components (codecs, etc.)
+ # 1x5760 Underlying software components (codecs, etc.)
+ # 1x8192 Underlying software components (codecs, etc.)
+ # 1x1 Dummy buffer used during final flush
+ modprobe cmemk phys_start=0x87400000 phys_end=0x88000000 \
+ pools=1x3628800,5x829440,1x518400,1x4948,1x1505280,1x5760,1x8192,1x1
+
+ modprobe dm350mmap
+ rm -f /dev/dm350mmap
+ mknod /dev/dm350mmap c `awk "\\$2==\"dm350mmap\" {print \\$1}" /proc/devices` 0
+
+}
+
+unload_module() {
+ rmmod cmemk
+ rmmod dm350mmap
+}
+
+case "$1" in
+ start)
+ echo -n "Loading kernel modules for gstreamer-ti... "
+ load_module
+ echo " done"
+ ;;
+ stop)
+ echo -n "Unloading kernel module ..."
+ unload_module
+ echo " done"
+ ;;
+ restart)
+ echo -n "Unloading kernel module ..."
+ unload_module
+ echo " done"
+ echo -n "Loading kernel modules for gstreamer-ti... "
+ load_module
+ echo " done"
+ ;;
+ *)
+ echo "$0 <start/stop/restart>"
+ ;;
+esac
+
diff --git a/recipes/ti/gstreamer-ti/gstreamer-ti-dm6446-rc.sh b/recipes/ti/gstreamer-ti/gstreamer-ti-dm6446-rc.sh
new file mode 100644
index 0000000000..69468977bd
--- /dev/null
+++ b/recipes/ti/gstreamer-ti/gstreamer-ti-dm6446-rc.sh
@@ -0,0 +1,71 @@
+#!/bin/sh
+#
+# configure kernel modules for TI DSP based gstreamer plugin
+#
+
+# Disable XDM 0.9 elements
+export GST_TI_TIViddec_DISABLE=1
+export GST_TI_TIAuddec_DISABLE=1
+export GST_TI_TIVidenc_DISABLE=1
+export GST_TI_TIImgdec_DISABLE=1
+export GST_TI_TIImgenc_DISABLE=1
+
+load_module() {
+ # insert cmemk, tell it to occupy physical 118MB-128MB.
+ #
+ # CMEM Allocation
+ # 1x5250000 Circular buffer
+ # 2x829440 Video buffers (max D1 PAL)
+ # 3x1036800 Video buffers (larger size needed for MPEG4 encoder)
+ # 1x8192 Underlying software components (codecs, etc.)
+ # 1x1 Dummy buffer used during final flush
+ modprobe cmemk phys_start=0x87600000 phys_end=0x88000000 \
+ pools=1x5250000,2x829440,3x1036800,1x8192,1x1
+
+ # Notes on using the "playbin" element:
+ # -------------------------------------
+ # Playbin requires one 6 video buffers, and we have only allocated five.
+ # If you replace the "2x829440,3x1036800" with "6x829440" it should work, but
+ # you will not be able to use the MPEG4 encoder.
+ #
+ #insmod cmemk.ko phys_start=0x87600000 phys_end=0x88000000 \
+ # pools=1x5250000,6x829440,1x8192,1x1
+
+ # insert dsplinkk
+ modprobe dsplinkk
+
+ # make /dev/dsplink
+ rm -f /dev/dsplink
+ mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
+}
+
+unload_module() {
+ rmmod cmemk
+ rmmod dsplinkk
+ rm -f /dev/dsplink
+}
+
+case "$1" in
+ start)
+ echo -n "Loading kernel modules for gstreamer-ti... "
+ load_module
+ echo " done"
+ ;;
+ stop)
+ echo -n "Unloading kernel module ..."
+ unload_module
+ echo " done"
+ ;;
+ restart)
+ echo -n "Unloading kernel module ..."
+ unload_module
+ echo " done"
+ echo -n "Loading kernel modules for gstreamer-ti... "
+ load_module
+ echo " done"
+ ;;
+ *)
+ echo "$0 <start/stop/restart>"
+ ;;
+esac
+
diff --git a/recipes/ti/gstreamer-ti/gstreamer-ti-omap3530-rc.sh b/recipes/ti/gstreamer-ti/gstreamer-ti-omap3530-rc.sh
index 9a19cf926b..b61b40c176 100644
--- a/recipes/ti/gstreamer-ti/gstreamer-ti-omap3530-rc.sh
+++ b/recipes/ti/gstreamer-ti/gstreamer-ti-omap3530-rc.sh
@@ -12,11 +12,11 @@
#
# Disable XDM 0.9 elements
-export GST_TI_TIViddec_DISABLED=1
-export GST_TI_TIAuddec_DISABLED=1
-export GST_TI_TIVidenc_DISABLED=1
-export GST_TI_TIImgdec_DISABLED=1
-export GST_TI_TIImgenc_DISABLED=1
+export GST_TI_TIViddec_DISABLE=1
+export GST_TI_TIAuddec_DISABLE=1
+export GST_TI_TIVidenc_DISABLE=1
+export GST_TI_TIImgdec_DISABLE=1
+export GST_TI_TIImgenc_DISABLE=1
load_module() {
#