diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-12-10 11:08:51 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-12-10 11:08:51 +0100 |
commit | a79d5a546392cad57bb8855f88d4617caa852d27 (patch) | |
tree | 28a5b26bf27ff1e594e13e6eb5aa76891f8f8aab /recipes/ti/gstreamer-ti/gstreamer-ti-dm6446-rc.sh | |
parent | 09a85ada712374f567b276067805c19b091a518a (diff) | |
parent | 6e0172f360053c39bfad106592fbb55509167103 (diff) |
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/ti/gstreamer-ti/gstreamer-ti-dm6446-rc.sh')
-rw-r--r-- | recipes/ti/gstreamer-ti/gstreamer-ti-dm6446-rc.sh | 71 |
1 files changed, 71 insertions, 0 deletions
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 + |