diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2009-12-17 13:47:50 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2009-12-17 13:47:50 +0100 |
commit | f45580a1527dccdda100eee7f25f9f2c41af4db8 (patch) | |
tree | 2218d4955f368e1804d86f212cc78317b4327f77 /recipes/ti/gstreamer-ti/gstreamer-ti-dm355-rc.sh | |
parent | 887b437869709625f5323438808ded9990cf590a (diff) | |
parent | e3df24d64a48aff19aa9960dd9308a071b243b09 (diff) | |
download | openembedded-f45580a1527dccdda100eee7f25f9f2c41af4db8.tar.gz |
Merge commit 'origin/shr/merge' into shr/testing2009
Conflicts:
conf/distro/include/sane-srcrevs.inc
recipes/enotes/enotes_svn.bb
recipes/intone-video/intone-video_svn.bb
recipes/intone/intone_svn.bb
recipes/shr/shr-wizard_git.bb
recipes/tasks/task-shr-minimal.bb
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'recipes/ti/gstreamer-ti/gstreamer-ti-dm355-rc.sh')
-rw-r--r-- | recipes/ti/gstreamer-ti/gstreamer-ti-dm355-rc.sh | 61 |
1 files changed, 61 insertions, 0 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 + |