DEPENDS = "zenity dbus"
RDEPENDS = "zenity dbus"
-PR = "r43"
+PR = "r44"
SRC_URI = " \
file://op_bright.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://default_up \
+ file://none_up \
file://op_env.sh \
# file://pandorascripts.pnd \
file://abiword.pnd \
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 -m 0644 ${WORKDIR}/default_up ${D}${sysconfdir}/pandora/conf/dss_fir/
+ install -m 0644 ${WORKDIR}/none_up ${D}${sysconfdir}/pandora/conf/dss_fir/
install -d ${D}${sysconfdir}/profile.d/
install -m 0755 ${WORKDIR}/op_env.sh ${D}${sysconfdir}/profile.d/
apply_filter()
{
- file="${1}_${2}"
+ file="${1}"
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"
+ echo "writing fir:"
+ head -n1 "$file"
+ sed -n 3,10p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_h"
+ sed -n 12,19p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_v3"
+ sed -n 21,28p "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_up_v5"
fi
}
-apply_filter "${base_path}" up_h
-apply_filter "${base_path}" up_v3
-apply_filter "${base_path}" up_v5
+apply_filter "${base_path}"
\ No newline at end of file