X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-scripts%2Fop_videofir.sh;h=2461b0dd165ee538ed65d68095f0c1079de01151;hp=7b3396c01e360adda5460cc04fad99a6068b77e4;hb=b1eb35c860da3f8e69f7de32670c41ad3aff3201;hpb=88a19b9a6f624798759c155d0a89793cab16e988 diff --git a/recipes/pandora-system/pandora-scripts/op_videofir.sh b/recipes/pandora-system/pandora-scripts/op_videofir.sh index 7b3396c..2461b0d 100755 --- a/recipes/pandora-system/pandora-scripts/op_videofir.sh +++ b/recipes/pandora-system/pandora-scripts/op_videofir.sh @@ -15,14 +15,15 @@ fi 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