op_tvout.sh: Added proper NTSC values
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_videofir.sh
1 #!/bin/sh
2
3 set -e
4
5 if [ $# -ne 1 ]; then
6         echo "usage: $0 <fir_file_basename>"
7         exit 1
8 fi
9
10 if [ "$1" = `basename "$1"` ]; then
11         base_path="/etc/pandora/conf/dss_fir/$1"
12 else
13         base_path="$1"
14 fi
15
16 apply_filter()
17 {
18         file="${1}_${2}"
19         if [ -f "$file" ]; then
20                 # hardcode overlay for now.. We'll update this as needed
21                 echo "writing fir: $2"
22                 cat "$file" > "/sys/devices/platform/omapdss/overlay1/filter_coef_$2"
23         fi
24 }
25
26 apply_filter "${base_path}" up_h
27 apply_filter "${base_path}" up_v3
28 apply_filter "${base_path}" up_v5