From: Grazvydas Ignotas Date: Tue, 24 Aug 2010 20:48:35 +0000 (+0300) Subject: pandora-scripts: add scaler fir coef script and data X-Git-Tag: sz_beta3~235^2~12 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=88a19b9a6f624798759c155d0a89793cab16e988 pandora-scripts: add scaler fir coef script and data --- diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index 47222aa..38eb779 100644 --- a/recipes/pandora-system/pandora-scripts.bb +++ b/recipes/pandora-system/pandora-scripts.bb @@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" DEPENDS = "zenity dbus" RDEPENDS = "zenity dbus" -PR = "r40" +PR = "r41" SRC_URI = " \ file://op_bright.sh \ @@ -36,6 +36,7 @@ SRC_URI = " \ file://op_lcdsettings.sh \ file://op_lcdsettings.pnd \ file://op_lcdrate.sh \ + file://op_videofir.sh \ file://op_storage.sh \ file://op_storage.pnd \ file://op_nubmode.sh \ @@ -43,6 +44,12 @@ SRC_URI = " \ file://gui.conf \ file://gamma.conf \ file://service.conf \ + file://default_up_h \ + file://default_up_v3 \ + file://default_up_v5 \ + file://none_up_h \ + file://none_up_v3 \ + file://none_up_v5 \ file://op_env.sh \ # file://pandorascripts.pnd \ file://abiword.pnd \ @@ -73,6 +80,7 @@ do_install() { install -m 0755 ${WORKDIR}/op_usermanager.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_lcdsettings.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_lcdrate.sh ${D}${prefix}/pandora/scripts/ + install -m 0755 ${WORKDIR}/op_videofir.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_nubmode.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_storage.sh ${D}${prefix}/pandora/scripts/ @@ -124,6 +132,14 @@ do_install() { install -m 0644 ${WORKDIR}/gamma.conf ${D}${sysconfdir}/pandora/conf/gamma.conf install -m 0644 ${WORKDIR}/service.conf ${D}${sysconfdir}/pandora/conf/service.conf + install -d ${D}${sysconfdir}/pandora/conf/dss_fir/ + install -m 0644 ${WORKDIR}/default_up_h ${D}${sysconfdir}/pandora/conf/dss_fir/ + install -m 0644 ${WORKDIR}/default_up_v3 ${D}${sysconfdir}/pandora/conf/dss_fir/ + install -m 0644 ${WORKDIR}/default_up_v5 ${D}${sysconfdir}/pandora/conf/dss_fir/ + install -m 0644 ${WORKDIR}/none_up_h ${D}${sysconfdir}/pandora/conf/dss_fir/ + install -m 0644 ${WORKDIR}/none_up_v3 ${D}${sysconfdir}/pandora/conf/dss_fir/ + install -m 0644 ${WORKDIR}/none_up_v5 ${D}${sysconfdir}/pandora/conf/dss_fir/ + install -d ${D}${sysconfdir}/profile.d/ install -m 0755 ${WORKDIR}/op_env.sh ${D}${sysconfdir}/profile.d/ diff --git a/recipes/pandora-system/pandora-scripts/default_up_h b/recipes/pandora-system/pandora-scripts/default_up_h new file mode 100644 index 0000000..2a24a48 --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/default_up_h @@ -0,0 +1,8 @@ + 0 0 128 0 0 + -1 13 124 -8 0 + -2 30 112 -11 -1 + -5 51 95 -11 -2 + 0 -9 73 73 -9 + -2 -11 95 51 -5 + -1 -11 112 30 -2 + 0 -8 124 13 -1 diff --git a/recipes/pandora-system/pandora-scripts/default_up_v3 b/recipes/pandora-system/pandora-scripts/default_up_v3 new file mode 100644 index 0000000..404a42a --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/default_up_v3 @@ -0,0 +1,8 @@ + 0 0 128 0 0 + 0 3 123 2 0 + 0 12 111 5 0 + 0 32 89 7 0 + 0 0 64 64 0 + 0 7 89 32 0 + 0 5 111 12 0 + 0 2 123 3 0 diff --git a/recipes/pandora-system/pandora-scripts/default_up_v5 b/recipes/pandora-system/pandora-scripts/default_up_v5 new file mode 100644 index 0000000..2a24a48 --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/default_up_v5 @@ -0,0 +1,8 @@ + 0 0 128 0 0 + -1 13 124 -8 0 + -2 30 112 -11 -1 + -5 51 95 -11 -2 + 0 -9 73 73 -9 + -2 -11 95 51 -5 + -1 -11 112 30 -2 + 0 -8 124 13 -1 diff --git a/recipes/pandora-system/pandora-scripts/none_up_h b/recipes/pandora-system/pandora-scripts/none_up_h new file mode 100644 index 0000000..3731355 --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/none_up_h @@ -0,0 +1,8 @@ + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 diff --git a/recipes/pandora-system/pandora-scripts/none_up_v3 b/recipes/pandora-system/pandora-scripts/none_up_v3 new file mode 100644 index 0000000..3731355 --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/none_up_v3 @@ -0,0 +1,8 @@ + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 diff --git a/recipes/pandora-system/pandora-scripts/none_up_v5 b/recipes/pandora-system/pandora-scripts/none_up_v5 new file mode 100644 index 0000000..3731355 --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/none_up_v5 @@ -0,0 +1,8 @@ + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 + 0 0 128 0 0 diff --git a/recipes/pandora-system/pandora-scripts/op_videofir.sh b/recipes/pandora-system/pandora-scripts/op_videofir.sh new file mode 100755 index 0000000..7b3396c --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/op_videofir.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +if [ $# -ne 1 ]; then + echo "usage: $0 " + exit 1 +fi + +if [ "$1" = `basename "$1"` ]; then + base_path="/etc/pandora/conf/dss_fir/$1" +else + base_path="$1" +fi + +apply_filter() +{ + file="${1}_${2}" + if [ -f "$file" ]; then + # hardcode overlay for now.. We'll update this as needed + echo "writing fir: $2" + cat "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_$2" + fi +} + +apply_filter "${base_path}" up_h +apply_filter "${base_path}" up_v3 +apply_filter "${base_path}" up_v5 diff --git a/recipes/pandora-system/pandora-sudoers.bb b/recipes/pandora-system/pandora-sudoers.bb index f19f9f4..b007352 100644 --- a/recipes/pandora-system/pandora-sudoers.bb +++ b/recipes/pandora-system/pandora-sudoers.bb @@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" RDEPENDS = "sudo" -PR = "r7" +PR = "r8" SRC_URI = " \ file://50_openpandora \ diff --git a/recipes/pandora-system/pandora-sudoers/50_openpandora b/recipes/pandora-system/pandora-sudoers/50_openpandora index 8d4dfd9..c66b0af 100755 --- a/recipes/pandora-system/pandora-sudoers/50_openpandora +++ b/recipes/pandora-system/pandora-sudoers/50_openpandora @@ -21,5 +21,6 @@ %wheel ALL=(ALL) NOPASSWD: /usr/pandora/scripts/op_wifi.sh %wheel ALL=(ALL) NOPASSWD: /usr/pandora/scripts/op_lcdsettings.sh %wheel ALL=(ALL) NOPASSWD: /usr/pandora/scripts/op_lcdrate.sh +%wheel ALL=(ALL) NOPASSWD: /usr/pandora/scripts/op_videofir.sh %wheel ALL=(ALL) NOPASSWD: /usr/pandora/scripts/op_nubmode.sh %wheel ALL=(ALL) NOPASSWD: /usr/pandora/scripts/op_storage.sh