DEPENDS = "zenity dbus"
RDEPENDS = "zenity dbus"
-PR = "r40"
+PR = "r41"
SRC_URI = " \
file://op_bright.sh \
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 \
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 \
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/
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/
--- /dev/null
+#!/bin/sh
+
+set -e
+
+if [ $# -ne 1 ]; then
+ echo "usage: $0 <fir_file_basename>"
+ 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
%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