From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/zaurusd/files/01-check-toggle-landscape | 9 + recipes/zaurusd/files/01-check-toggle-portait | 9 + recipes/zaurusd/files/add-poodle.patch | 34 + .../zaurusd/files/alsa-6000x-default.state.patch | 756 +++++++++++++++++++++ .../zaurusd/files/alsa-cxx00-default.state.patch | 301 ++++++++ recipes/zaurusd/files/disable-alsa-handling.patch | 16 + recipes/zaurusd/files/tslib-1.diff | 11 + recipes/zaurusd/files/zaurus-hinge.bl-off | 19 + recipes/zaurusd/files/zaurus-hinge.bl-on | 63 ++ recipes/zaurusd/files/zaurus-hinge.in | 66 ++ .../zaurusd/files/zaurus-hinge.matchbox-landscape | 25 + .../zaurusd/files/zaurus-hinge.matchbox-portrait | 29 + recipes/zaurusd/zaurusd_svn.bb | 53 ++ 13 files changed, 1391 insertions(+) create mode 100644 recipes/zaurusd/files/01-check-toggle-landscape create mode 100644 recipes/zaurusd/files/01-check-toggle-portait create mode 100644 recipes/zaurusd/files/add-poodle.patch create mode 100644 recipes/zaurusd/files/alsa-6000x-default.state.patch create mode 100644 recipes/zaurusd/files/alsa-cxx00-default.state.patch create mode 100644 recipes/zaurusd/files/disable-alsa-handling.patch create mode 100644 recipes/zaurusd/files/tslib-1.diff create mode 100644 recipes/zaurusd/files/zaurus-hinge.bl-off create mode 100644 recipes/zaurusd/files/zaurus-hinge.bl-on create mode 100644 recipes/zaurusd/files/zaurus-hinge.in create mode 100644 recipes/zaurusd/files/zaurus-hinge.matchbox-landscape create mode 100644 recipes/zaurusd/files/zaurus-hinge.matchbox-portrait create mode 100644 recipes/zaurusd/zaurusd_svn.bb (limited to 'recipes/zaurusd') diff --git a/recipes/zaurusd/files/01-check-toggle-landscape b/recipes/zaurusd/files/01-check-toggle-landscape new file mode 100644 index 0000000000..13ae9a4e68 --- /dev/null +++ b/recipes/zaurusd/files/01-check-toggle-landscape @@ -0,0 +1,9 @@ +#!/bin/sh + +# Try to determine and ignore false rotation signals caused by +# headphones removal or remote removal remembering the old state. +# OE#3390 +if test "`cat /var/run/last-screen-rotation`" = landscape ; then + exit +fi +echo landscape > /var/run/last-screen-rotation diff --git a/recipes/zaurusd/files/01-check-toggle-portait b/recipes/zaurusd/files/01-check-toggle-portait new file mode 100644 index 0000000000..4c3b7f1291 --- /dev/null +++ b/recipes/zaurusd/files/01-check-toggle-portait @@ -0,0 +1,9 @@ +#!/bin/sh + +# Try to determine and ignore false rotation signals caused by +# headphones removal or remote removal remembering the old state. +# OE#3390 +if test "`cat /var/run/last-screen-rotation`" = portait ; then + exit +fi +echo portait > /var/run/last-screen-rotation diff --git a/recipes/zaurusd/files/add-poodle.patch b/recipes/zaurusd/files/add-poodle.patch new file mode 100644 index 0000000000..4f91413668 --- /dev/null +++ b/recipes/zaurusd/files/add-poodle.patch @@ -0,0 +1,34 @@ +diff -Nur zaurusd.orig/config/mach-config/mach-poodle-functions zaurusd/config/mach-config/mach-poodle-functions +--- zaurusd.orig/config/mach-config/mach-poodle-functions 1970-01-01 01:00:00.000000000 +0100 ++++ zaurusd/config/mach-config/mach-poodle-functions 2006-05-14 12:43:01.000000000 +0200 +@@ -0,0 +1,3 @@ ++#HAVE_INPUT_SWITCHES=1 ++#HAVE_ALSA_MIXER=1 ++ +diff -Nur zaurusd.orig/config/mach-config/mach-poodle-vars zaurusd/config/mach-config/mach-poodle-vars +--- zaurusd.orig/config/mach-config/mach-poodle-vars 1970-01-01 01:00:00.000000000 +0100 ++++ zaurusd/config/mach-config/mach-poodle-vars 2006-05-14 12:42:42.000000000 +0200 +@@ -0,0 +1,9 @@ ++MACHINE=poodle ++ ++export SWITCH_EVENT_ZMIXER=1 ++SWITCH_EVENT_DEVICE=/dev/input/event0 ++ ++#TSKEYS_CONF=@appconfdir@/tskeys/zaurus-clamshell.conf ++#TSKEYS_DEVICE=/dev/input/event1 ++ ++ALSA_MIXER_INIT=@appconfdir@/alsa/poodle-default.state +\ Kein Zeilenumbruch am Dateiende. +diff -Nur zaurusd.orig/scripts/detect-machine zaurusd/scripts/detect-machine +--- zaurusd.orig/scripts/detect-machine 2006-05-07 13:39:11.000000000 +0200 ++++ zaurusd/scripts/detect-machine 2006-05-14 12:40:38.000000000 +0200 +@@ -27,6 +27,9 @@ + "SHARP Tosa") + MACHINE=tosa + ;; ++ "SHARP Poodle") ++ MACHINE=poodle ++ ;; + "Simpad") + ;; + "HP iPAQ H2200") diff --git a/recipes/zaurusd/files/alsa-6000x-default.state.patch b/recipes/zaurusd/files/alsa-6000x-default.state.patch new file mode 100644 index 0000000000..857b8c8b62 --- /dev/null +++ b/recipes/zaurusd/files/alsa-6000x-default.state.patch @@ -0,0 +1,756 @@ +--- zaurusd/config/alsa/6000x-default.state.old 2008-03-21 02:21:47.000000000 -0500 ++++ zaurusd/config/alsa/6000x-default.state 2008-03-30 07:48:06.000000000 -0500 +@@ -37,13 +37,23 @@ state.Tosa { + } + control.5 { + comment.access 'read write' ++ comment.type INTEGER ++ comment.count 2 ++ comment.range '0 - 31' ++ iface MIXER ++ name 'PCM Playback Volume' ++ value.0 23 ++ value.1 23 ++ } ++ control.6 { ++ comment.access 'read write' + comment.type BOOLEAN + comment.count 1 + iface MIXER + name 'Speaker Playback ZC Switch' + value true + } +- control.6 { ++ control.7 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -51,7 +61,7 @@ state.Tosa { + name 'Speaker Playback Invert Switch' + value true + } +- control.7 { ++ control.8 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -59,7 +69,7 @@ state.Tosa { + name 'Headphone Playback ZC Switch' + value true + } +- control.8 { ++ control.9 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -67,7 +77,7 @@ state.Tosa { + name 'Mono Playback ZC Switch' + value false + } +- control.9 { ++ control.10 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -76,7 +86,7 @@ state.Tosa { + name 'Mono Playback Volume' + value 0 + } +- control.10 { ++ control.11 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -85,16 +95,16 @@ state.Tosa { + name 'ALC Target Volume' + value 11 + } +- control.11 { ++ control.12 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 + comment.range '0 - 15' + iface MIXER + name 'ALC Hold Time' +- value 0 ++ value 2 + } +- control.12 { ++ control.13 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -103,7 +113,7 @@ state.Tosa { + name 'ALC Decay Time' + value 3 + } +- control.13 { ++ control.14 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -112,7 +122,7 @@ state.Tosa { + name 'ALC Attack Time' + value 2 + } +- control.14 { ++ control.15 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -124,7 +134,7 @@ state.Tosa { + name 'ALC Function' + value None + } +- control.15 { ++ control.16 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -133,7 +143,7 @@ state.Tosa { + name 'ALC Max Volume' + value 7 + } +- control.16 { ++ control.17 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -142,7 +152,7 @@ state.Tosa { + name 'ALC ZC Timeout' + value 0 + } +- control.17 { ++ control.18 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -150,7 +160,7 @@ state.Tosa { + name 'ALC ZC Switch' + value false + } +- control.18 { ++ control.19 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -158,7 +168,7 @@ state.Tosa { + name 'ALC NG Switch' + value false + } +- control.19 { ++ control.20 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -168,7 +178,7 @@ state.Tosa { + name 'ALC NG Type' + value 'Constant Gain' + } +- control.20 { ++ control.21 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -177,16 +187,16 @@ state.Tosa { + name 'ALC NG Threshold' + value 31 + } +- control.21 { ++ control.22 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 + comment.range '0 - 7' + iface MIXER + name 'Mic Headphone Volume' +- value 3 ++ value 7 + } +- control.22 { ++ control.23 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -195,7 +205,7 @@ state.Tosa { + name 'ALC Headphone Volume' + value 5 + } +- control.23 { ++ control.24 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -203,7 +213,7 @@ state.Tosa { + name 'Out3 Switch' + value false + } +- control.24 { ++ control.25 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -211,7 +221,7 @@ state.Tosa { + name 'Out3 ZC Switch' + value true + } +- control.25 { ++ control.26 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -220,7 +230,7 @@ state.Tosa { + name 'Out3 Volume' + value 0 + } +- control.26 { ++ control.27 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -229,7 +239,7 @@ state.Tosa { + name 'PCBeep Bypass Headphone Volume' + value 0 + } +- control.27 { ++ control.28 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -238,7 +248,7 @@ state.Tosa { + name 'PCBeep Bypass Speaker Volume' + value 0 + } +- control.28 { ++ control.29 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -247,16 +257,16 @@ state.Tosa { + name 'PCBeep Bypass Phone Volume' + value 0 + } +- control.29 { ++ control.30 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 + comment.range '0 - 7' + iface MIXER + name 'Aux Playback Headphone Volume' +- value 6 ++ value 5 + } +- control.30 { ++ control.31 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -265,7 +275,7 @@ state.Tosa { + name 'Aux Playback Speaker Volume' + value 0 + } +- control.31 { ++ control.32 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -274,7 +284,7 @@ state.Tosa { + name 'Aux Playback Phone Volume' + value 0 + } +- control.32 { ++ control.33 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -283,7 +293,7 @@ state.Tosa { + name 'Phone Volume' + value 0 + } +- control.33 { ++ control.34 { + comment.access 'read write' + comment.type INTEGER + comment.count 2 +@@ -293,7 +303,7 @@ state.Tosa { + value.0 23 + value.1 23 + } +- control.34 { ++ control.35 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -301,7 +311,7 @@ state.Tosa { + name 'Capture 20dB Boost Switch' + value true + } +- control.35 { ++ control.36 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -309,7 +319,7 @@ state.Tosa { + name 'Capture to Phone 20dB Boost Switch' + value true + } +- control.36 { ++ control.37 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -317,7 +327,7 @@ state.Tosa { + name '3D Upper Cut-off Switch' + value false + } +- control.37 { ++ control.38 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -325,7 +335,7 @@ state.Tosa { + name '3D Lower Cut-off Switch' + value false + } +- control.38 { ++ control.39 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -334,7 +344,7 @@ state.Tosa { + name '3D Playback Volume' + value 0 + } +- control.39 { ++ control.40 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -344,7 +354,7 @@ state.Tosa { + name 'Bass Control' + value 'Adaptive Boost' + } +- control.40 { ++ control.41 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -352,7 +362,7 @@ state.Tosa { + name 'Bass Cut-off Switch' + value true + } +- control.41 { ++ control.42 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -360,7 +370,7 @@ state.Tosa { + name 'Tone Cut-off Switch' + value false + } +- control.42 { ++ control.43 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -368,7 +378,7 @@ state.Tosa { + name 'Playback Attenuate (-6dB) Switch' + value false + } +- control.43 { ++ control.44 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -377,7 +387,7 @@ state.Tosa { + name 'Bass Volume' + value 8 + } +- control.44 { ++ control.45 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -386,7 +396,7 @@ state.Tosa { + name 'Treble Volume' + value 5 + } +- control.45 { ++ control.46 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -394,7 +404,7 @@ state.Tosa { + name 'Capture ADC Switch' + value false + } +- control.46 { ++ control.47 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 2 +@@ -405,17 +415,17 @@ state.Tosa { + value.0 '+0.75dB Steps' + value.1 '+0.75dB Steps' + } +- control.47 { ++ control.48 { + comment.access 'read write' + comment.type INTEGER + comment.count 2 + comment.range '0 - 63' + iface MIXER + name 'Capture Volume' +- value.0 63 +- value.1 63 ++ value.0 0 ++ value.1 0 + } +- control.48 { ++ control.49 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -423,7 +433,7 @@ state.Tosa { + name 'Capture ZC Switch' + value false + } +- control.49 { ++ control.50 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -432,7 +442,7 @@ state.Tosa { + name 'Mic 1 Volume' + value 23 + } +- control.50 { ++ control.51 { + comment.access 'read write' + comment.type INTEGER + comment.count 1 +@@ -441,7 +451,7 @@ state.Tosa { + name 'Mic 2 Volume' + value 23 + } +- control.51 { ++ control.52 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -449,7 +459,7 @@ state.Tosa { + name 'Mic 20dB Boost Switch' + value false + } +- control.52 { ++ control.53 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -457,7 +467,7 @@ state.Tosa { + name 'Speaker Mixer PCBeep Bypass Swi' + value false + } +- control.53 { ++ control.54 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -465,7 +475,7 @@ state.Tosa { + name 'Speaker Mixer Aux Playback Swit' + value false + } +- control.54 { ++ control.55 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -473,7 +483,7 @@ state.Tosa { + name 'Speaker Mixer Phone Bypass Swit' + value false + } +- control.55 { ++ control.56 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -481,7 +491,7 @@ state.Tosa { + name 'Speaker Mixer Line Bypass Switc' + value false + } +- control.56 { ++ control.57 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -489,7 +499,7 @@ state.Tosa { + name 'Speaker Mixer PCM Playback Swit' + value true + } +- control.57 { ++ control.58 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -497,7 +507,7 @@ state.Tosa { + name 'Phone Mixer PCBeep Bypass Switc' + value false + } +- control.58 { ++ control.59 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -505,7 +515,7 @@ state.Tosa { + name 'Phone Mixer Aux Playback Switch' + value false + } +- control.59 { ++ control.60 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -513,7 +523,7 @@ state.Tosa { + name 'Phone Mixer Line Bypass Switch' + value false + } +- control.60 { ++ control.61 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -521,7 +531,7 @@ state.Tosa { + name 'Phone Mixer PCM Playback Switch' + value false + } +- control.61 { ++ control.62 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -529,7 +539,7 @@ state.Tosa { + name 'Phone Mixer Mic 1 Sidetone Swit' + value false + } +- control.62 { ++ control.63 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 +@@ -537,55 +547,103 @@ state.Tosa { + name 'Phone Mixer Mic 2 Sidetone Swit' + value false + } +- control.63 { ++ control.64 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 + iface MIXER +- name 'HP Mixer PCBeep Bypass Switch' ++ name 'Right HP Mixer PCBeep Bypass Sw' + value false + } +- control.64 { ++ control.65 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 + iface MIXER +- name 'HP Mixer Aux Playback Switch' ++ name 'Right HP Mixer Aux Playback Swi' + value false + } +- control.65 { ++ control.66 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 + iface MIXER +- name 'HP Mixer Phone Bypass Switch' ++ name 'Right HP Mixer Phone Bypass Swi' + value false + } +- control.66 { ++ control.67 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 + iface MIXER +- name 'HP Mixer Line Bypass Switch' ++ name 'Right HP Mixer Line Bypass Swit' + value false + } +- control.67 { ++ control.68 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 + iface MIXER +- name 'HP Mixer PCM Playback Switch' ++ name 'Right HP Mixer PCM Playback Swi' + value true + } +- control.68 { ++ control.69 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 1 + iface MIXER +- name 'HP Mixer Mic Sidetone Switch' ++ name 'Right HP Mixer Mic Sidetone Swi' + value false + } +- control.69 { ++ control.70 { ++ comment.access 'read write' ++ comment.type BOOLEAN ++ comment.count 1 ++ iface MIXER ++ name 'Left HP Mixer PCBeep Bypass Swi' ++ value false ++ } ++ control.71 { ++ comment.access 'read write' ++ comment.type BOOLEAN ++ comment.count 1 ++ iface MIXER ++ name 'Left HP Mixer Aux Playback Swit' ++ value false ++ } ++ control.72 { ++ comment.access 'read write' ++ comment.type BOOLEAN ++ comment.count 1 ++ iface MIXER ++ name 'Left HP Mixer Phone Bypass Swit' ++ value false ++ } ++ control.73 { ++ comment.access 'read write' ++ comment.type BOOLEAN ++ comment.count 1 ++ iface MIXER ++ name 'Left HP Mixer Line Bypass Switc' ++ value false ++ } ++ control.74 { ++ comment.access 'read write' ++ comment.type BOOLEAN ++ comment.count 1 ++ iface MIXER ++ name 'Left HP Mixer PCM Playback Swit' ++ value true ++ } ++ control.75 { ++ comment.access 'read write' ++ comment.type BOOLEAN ++ comment.count 1 ++ iface MIXER ++ name 'Left HP Mixer Mic Sidetone Swit' ++ value false ++ } ++ control.76 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -595,7 +653,7 @@ state.Tosa { + name 'Differential Source' + value Mic + } +- control.70 { ++ control.77 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -607,7 +665,7 @@ state.Tosa { + name 'Mic Select Source' + value Differential + } +- control.71 { ++ control.78 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -623,7 +681,7 @@ state.Tosa { + name 'Right Capture Select' + value Mic + } +- control.72 { ++ control.79 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -639,7 +697,7 @@ state.Tosa { + name 'Left Capture Select' + value Mic + } +- control.73 { ++ control.80 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -651,7 +709,7 @@ state.Tosa { + name 'Capture Phone Mux' + value Mute + } +- control.74 { ++ control.81 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -659,9 +717,9 @@ state.Tosa { + comment.item.1 'Headphone Mix' + iface MIXER + name 'Speaker Mux' +- value 'Headphone Mix' ++ value 'Speaker Mix' + } +- control.75 { ++ control.82 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -673,7 +731,7 @@ state.Tosa { + name 'Out3 Mux' + value Left + } +- control.76 { ++ control.83 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -685,7 +743,7 @@ state.Tosa { + name 'ALC Sidetone Mux' + value Stereo + } +- control.77 { ++ control.84 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +@@ -696,17 +754,16 @@ state.Tosa { + comment.item.4 Off + iface MIXER + name 'Jack Function' +- value Headphone ++ value Off + } +- control.78 { ++ control.85 { + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +- comment.item.0 Auto +- comment.item.1 On +- comment.item.2 Off ++ comment.item.0 On ++ comment.item.1 Off + iface MIXER + name 'Speaker Function' +- value Auto ++ value On + } + } diff --git a/recipes/zaurusd/files/alsa-cxx00-default.state.patch b/recipes/zaurusd/files/alsa-cxx00-default.state.patch new file mode 100644 index 0000000000..b7a149be00 --- /dev/null +++ b/recipes/zaurusd/files/alsa-cxx00-default.state.patch @@ -0,0 +1,301 @@ +http://bugs.openembedded.net/show_bug.cgi?id=2617 +- Fixes default ALSA state for SL-Cxx00. + * Treble level reflects kernel fix alsa-wm8750-treble.patch (>2.6.24). + * Increased Mic Levels and Boost. + * Enabled Capture Switch. + * Improved Headphones / Speaker volume balance. + * 3D Mode changed to "Playback" (still Off by default). + * Disabled all bypasses. + * All Mono signals decreased to 0 (not connected). + * Line Mux changed to differential, keeping PGA unused. + * Using Digital mono for recording (jack supports ony mono). + * Enabled Automatic Level Control, optimized for voice recording. + * Enabled Zero Cross volume changes. +- Do not alter incorrect mixer levels by zaurus-mixer-callback. + +Index: zaurusd/config/alsa/cxx00-default.state +=================================================================== +--- zaurusd.orig/config/alsa/cxx00-default.state 2006-06-28 08:45:07.000000000 +0000 ++++ zaurusd/config/alsa/cxx00-default.state 2007-11-27 23:06:43.000000000 +0000 +@@ -6,8 +6,8 @@ + comment.range '0 - 63' + iface MIXER + name 'Capture Volume' +- value.0 23 +- value.1 23 ++ value.0 48 ++ value.1 48 + } + control.2 { + comment.access 'read write' +@@ -15,8 +15,8 @@ + comment.count 2 + iface MIXER + name 'Capture ZC Switch' +- value.0 false +- value.1 false ++ value.0 true ++ value.1 true + } + control.3 { + comment.access 'read write' +@@ -24,26 +24,26 @@ + comment.count 2 + iface MIXER + name 'Capture Switch' +- value.0 false +- value.1 false ++ value.0 true ++ value.1 true + } + control.4 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 2 + iface MIXER +- name 'Out1 Playback ZC Switch' +- value.0 false +- value.1 false ++ name 'Headphone Playback ZC Switch' ++ value.0 true ++ value.1 true + } + control.5 { + comment.access 'read write' + comment.type BOOLEAN + comment.count 2 + iface MIXER +- name 'Out2 Playback ZC Switch' +- value.0 false +- value.1 false ++ name 'Speaker Playback ZC Switch' ++ value.0 true ++ value.1 true + } + control.6 { + comment.access 'read write' +@@ -92,8 +92,8 @@ + comment.range '0 - 255' + iface MIXER + name 'PCM Volume' +- value.0 255 +- value.1 255 ++ value.0 220 ++ value.1 220 + } + control.11 { + comment.access 'read write' +@@ -131,7 +131,7 @@ + comment.range '0 - 15' + iface MIXER + name 'Treble Volume' +- value 15 ++ value 0 + } + control.15 { + comment.access 'read write' +@@ -188,7 +188,7 @@ + comment.item.1 Playback + iface MIXER + name '3D Mode' +- value Capture ++ value Playback + } + control.21 { + comment.access 'read write' +@@ -226,7 +226,7 @@ + comment.count 1 + iface MIXER + name 'ALC Capture ZC Switch' +- value false ++ value true + } + control.25 { + comment.access 'read write' +@@ -235,7 +235,7 @@ + comment.range '0 - 15' + iface MIXER + name 'ALC Capture Hold Time' +- value 0 ++ value 9 + } + control.26 { + comment.access 'read write' +@@ -244,7 +244,7 @@ + comment.range '0 - 15' + iface MIXER + name 'ALC Capture Decay Time' +- value 3 ++ value 9 + } + control.27 { + comment.access 'read write' +@@ -253,7 +253,7 @@ + comment.range '0 - 15' + iface MIXER + name 'ALC Capture Attack Time' +- value 2 ++ value 3 + } + control.28 { + comment.access 'read write' +@@ -306,7 +306,7 @@ + comment.count 1 + iface MIXER + name 'ZC Timeout Switch' +- value false ++ value true + } + control.34 { + comment.access 'read write' +@@ -321,7 +321,7 @@ + comment.type BOOLEAN + comment.count 1 + iface MIXER +- name 'Right Out2 Playback Invert Switch' ++ name 'Right Speaker Playback Invert Switch' + value true + } + control.36 { +@@ -331,8 +331,8 @@ + comment.range '0 - 3' + iface MIXER + name 'Mic Boost' +- value.0 2 +- value.1 2 ++ value.0 3 ++ value.1 3 + } + control.37 { + comment.access 'read write' +@@ -341,8 +341,8 @@ + comment.range '0 - 7' + iface MIXER + name 'Bypass Left Playback Volume' +- value.0 2 +- value.1 2 ++ value.0 0 ++ value.1 0 + } + control.38 { + comment.access 'read write' +@@ -361,8 +361,8 @@ + comment.range '0 - 7' + iface MIXER + name 'Bypass Mono Playback Volume' +- value.0 2 +- value.1 2 ++ value.0 0 ++ value.1 0 + } + control.40 { + comment.access 'read write' +@@ -378,9 +378,9 @@ + comment.count 2 + comment.range '0 - 127' + iface MIXER +- name 'Out1 Playback Volume' +- value.0 120 +- value.1 120 ++ name 'Headphone Playback Volume' ++ value.0 105 ++ value.1 105 + } + control.42 { + comment.access 'read write' +@@ -388,9 +388,9 @@ + comment.count 2 + comment.range '0 - 127' + iface MIXER +- name 'Out2 Playback Volume' +- value.0 119 +- value.1 119 ++ name 'Speaker Playback Volume' ++ value.0 127 ++ value.1 127 + } + control.43 { + comment.access 'read write' +@@ -399,7 +399,7 @@ + comment.range '0 - 127' + iface MIXER + name 'Mono Playback Volume' +- value 121 ++ value 0 + } + control.44 { + comment.access 'read write' +@@ -411,7 +411,7 @@ + comment.item.3 'Digital Mono' + iface MIXER + name 'Right ADC Mux' +- value 'Mono (Left)' ++ value 'Digital Mono' + } + control.45 { + comment.access 'read write' +@@ -423,7 +423,7 @@ + comment.item.3 'Digital Mono' + iface MIXER + name 'Left ADC Mux' +- value 'Mono (Left)' ++ value 'Digital Mono' + } + control.46 { + comment.access 'read write' +@@ -471,7 +471,7 @@ + comment.item.4 Differential + iface MIXER + name 'Left Line Mux' +- value PGA ++ value Differential + } + control.50 { + comment.access 'read write' +@@ -610,9 +610,8 @@ + comment.access 'read write' + comment.type ENUMERATED + comment.count 1 +- comment.item.0 Auto +- comment.item.1 On +- comment.item.2 Off ++ comment.item.0 On ++ comment.item.1 Off + iface MIXER + name 'Speaker Function' + value On +Index: zaurusd/scripts/zaurus-mixer-callback.in +=================================================================== +--- zaurusd.orig/scripts/zaurus-mixer-callback.in 2007-11-27 23:32:45.000000000 +0000 ++++ zaurusd/scripts/zaurus-mixer-callback.in 2007-11-27 23:36:54.000000000 +0000 +@@ -16,8 +16,6 @@ + JACK="$1" + SPK="$2" + LEFT="true" +-RLPLAYBACK="false" +-RLBYPASS="false" + + case $SPK in + "On") +@@ -37,8 +35,6 @@ + ;; + "Headset" | "Mic" | "Line") + LEFT="false" +- RLPLAYBACK="true" +- RLBYPASS="true" + SPK="Off" + ;; + *) +@@ -58,12 +54,6 @@ + }; /Speaker Function/ { + N + s:\(Speaker Function.*\n.*value \).*$:\1$SPK: +-}; /Right Mixer Left Playback/ { +-N +-s:\(Right Mixer Left Playback.*\n.*value \).*$:\1$RLPLAYBACK: +-}; /Right Mixer Left Bypass/ { +-N +-s:\(Right Mixer Left Bypass.*\n.*value \).*$:\1$RLBYPASS: + }; /Left Mixer Playback/ { + N + s:\(Left Mixer Playback.*\n.*value \).*$:\1$LEFT: diff --git a/recipes/zaurusd/files/disable-alsa-handling.patch b/recipes/zaurusd/files/disable-alsa-handling.patch new file mode 100644 index 0000000000..8f1879db60 --- /dev/null +++ b/recipes/zaurusd/files/disable-alsa-handling.patch @@ -0,0 +1,16 @@ +--- zaurusd/config/config.in.orig 2007-05-21 21:58:14.000000000 +0000 ++++ zaurusd/config/config.in 2007-05-21 22:10:26.000000000 +0000 +@@ -11,11 +11,5 @@ + . @appconfdir@/mach-config-vars + . @appconfdir@/mach-config-funcs + +-if [ "x$HAVE_ALSA_MIXER" != "x" -a "x$ALSA_MIXER_INIT" != "x" ]; then +- if [ ! -e /etc/asound.state ]; then +- cp $ALSA_MIXER_INIT /etc/asound.state +- @sbindir@/alsactl restore +- fi +-fi + +-export SWITCHEVD_EVENT_SCRIPT=@appconfdir@/scripts/switch-event +\ No newline at end of file ++export SWITCHEVD_EVENT_SCRIPT=@appconfdir@/scripts/switch-event diff --git a/recipes/zaurusd/files/tslib-1.diff b/recipes/zaurusd/files/tslib-1.diff new file mode 100644 index 0000000000..8df1b83b3a --- /dev/null +++ b/recipes/zaurusd/files/tslib-1.diff @@ -0,0 +1,11 @@ +--- /tmp/configure.ac 2007-08-04 10:09:46.000000000 +0200 ++++ zaurusd/configure.ac 2007-08-04 10:10:35.308400000 +0200 +@@ -45,7 +45,7 @@ + # + # Checks for tslib + # +- PKG_CHECK_MODULES(TSLIB, "tslib-0.0", :, AC_MSG_ERROR([TSKeys requires tslib.])) ++ PKG_CHECK_MODULES(TSLIB, "tslib-1.0", :, AC_MSG_ERROR([TSKeys requires tslib.])) + AC_SUBST(TSLIB_CFLAGS) + AC_SUBST(TSLIB_LIBS) + fi diff --git a/recipes/zaurusd/files/zaurus-hinge.bl-off b/recipes/zaurusd/files/zaurus-hinge.bl-off new file mode 100644 index 0000000000..ba6746ce1b --- /dev/null +++ b/recipes/zaurusd/files/zaurus-hinge.bl-off @@ -0,0 +1,19 @@ +#! /bin/sh +# +# Copyright Matthias Hentges (c) 2006 +# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license) +# +# Filename: zaurus-hinge.bl-off +# Date: 04-Jun-06 + +DRIVER="`ls /sys/class/backlight/|head -n 1`" +BRIGHTNESS_FILE="/sys/class/backlight/$DRIVER/brightness" + +if mkdir /var/run/display_brightness.lock +then + cat "$BRIGHTNESS_FILE" > /var/run/display_brightness.tmp + echo 0 > "$BRIGHTNESS_FILE" + rm -rf /var/run/display_brightness.lock +else + echo "BRIGHTNESS IS LOCKED" +fi diff --git a/recipes/zaurusd/files/zaurus-hinge.bl-on b/recipes/zaurusd/files/zaurus-hinge.bl-on new file mode 100644 index 0000000000..58227e8c5a --- /dev/null +++ b/recipes/zaurusd/files/zaurus-hinge.bl-on @@ -0,0 +1,63 @@ +#! /bin/sh +# +# Copyright Matthias Hentges (c) 2006 +# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license) +# +# Filename: zaurus-hinge.bl-on +# Date: 04-Jun-06 + +test -z "${ZD_BINDIR}" && ZD_BINDIR="/usr/bin" +test -x ${ZD_BINDIR}/bl && ${ZD_BINDIR}/bl on + + +BL="fakeBl" + +fakeBl() { + + + case "$1" in + on) test -n "$2" && echo "$2" > "$BL_DRIVER" ;; + "") echo "on `cat "$BL_DRIVER"`";; + *) echo "$1" > "$BL_DRIVER" ;; + esac + +} + +for dir in `ls -1 /sys/class/backlight/` +do + if test -e /sys/class/backlight/$dir/brightness + then + echo "Using [$dir] backlight driver" + BL_DRIVER="/sys/class/backlight/$dir/brightness" + break + fi +done + + +echo "### `$BL` ###" +( if test "`$BL | awk '{print $2}'`" = "0" +then + + $BL 20 + + if mkdir /var/run/display_brightness.lock + then + if test -e /var/run/display_brightness.tmp + then + OLD_VALUE="`cat /var/run/display_brightness.tmp`" + echo "OLD BRIGHTNESS SETTING FOUND: $OLD_VALUE" + + if test "$OLD_VALUE" -gt 1 + then + echo "SETTING $OLD_VALUE!" + $BL "$OLD_VALUE" + rm /var/run/display_brightness.tmp + echo "FINISH!" + fi + fi + rm -rf /var/run/display_brightness.lock + else + echo "BRIGHTNESS IS LOCKED" + fi +fi ) & + diff --git a/recipes/zaurusd/files/zaurus-hinge.in b/recipes/zaurusd/files/zaurus-hinge.in new file mode 100644 index 0000000000..0fcad38f98 --- /dev/null +++ b/recipes/zaurusd/files/zaurus-hinge.in @@ -0,0 +1,66 @@ +#!/bin/sh +# +# Quick handler for chkhinge26 and X. +# + +killproc() { # kill the named process(es) + pid=`/bin/ps -e x | + /bin/grep $1 | + /bin/grep -v grep | + /bin/sed -e 's/^ *//' -e 's/ .*//'` + [ "$pid" != "" ] && kill $pid +} + +ZD_BINDIR="@bindir@" +export DISPLAY=:0 + +if [ -z "$1" ]; then + echo "Usage: hinge-handler ( 3 = closed, 0 = landscape, 2 = portrait )" + exit 1 +fi + +panel_user="`ps aux|grep matchbox-panel|grep -v grep | awk '{print $1}'`" + +STATE=$1 + +# touch ~/.norot can disable rotation. +if test -f /home/$panel_user/.norot ; then + if [ $STATE = "3" ]; then + . /etc/zaurusd/hinge-close.d/00-backlight-off + else + . /etc/zaurusd/hinge-landscape.d/00-backlight-on + fi + exit +fi + +if [ $STATE = "3" ]; then + + for script in `ls -1 /etc/zaurusd/hinge-close.d` + do + . /etc/zaurusd/hinge-close.d/$script + done + + exit 0 +fi + +if [ $STATE = "0" ]; then + #echo "landscape" + + for script in `ls -1 /etc/zaurusd/hinge-landscape.d` + do + . /etc/zaurusd/hinge-landscape.d/$script + done + + exit 0 +fi + +if [ $STATE = "2" ]; then + #echo "portrait" + + for script in `ls -1 /etc/zaurusd/hinge-portrait.d` + do + . /etc/zaurusd/hinge-portrait.d/$script + done + + exit 0 +fi diff --git a/recipes/zaurusd/files/zaurus-hinge.matchbox-landscape b/recipes/zaurusd/files/zaurus-hinge.matchbox-landscape new file mode 100644 index 0000000000..a048769f7d --- /dev/null +++ b/recipes/zaurusd/files/zaurus-hinge.matchbox-landscape @@ -0,0 +1,25 @@ + #!/bin/sh + + # As matchbox-panel updates its written configuration right after an applet dies / is killed, we can not be sure + # whether the user had gpe-panel in his preferences after rotating to portrait. And since there is a slim chance + # that a user changes his preferences from time to time, we renew that dumped configuration every now and then ;) + + if ! test -e "/tmp/gpe-panel.session-$panel_user" + then + test -e /home/$panel_user/.matchbox/mbdock.session && cp /home/$panel_user/.matchbox/mbdock.session "/tmp/gpe-panel.session-$panel_user" + test -e "/tmp/gpe-panel.session-$panel_user" && cat "/tmp/gpe-panel.session-$panel_user" | grep -q panel || killproc ${ZD_BINDIR}/mbinputmgr + else + cat "/tmp/gpe-panel.session-$panel_user" | grep -q panel || killproc ${ZD_BINDIR}/mbinputmgr + rm "/tmp/gpe-panel.session-$panel_user" + fi + + # urg mbinputmgr should kill below + killproc ${ZD_BINDIR}/matchbox-keyboard + killproc ${ZD_BINDIR}/matchbox-stroke + + if [ -x ${ZD_BINDIR}/xrandr ]; then + if ! ( xrandr | awk '{print $4}' | grep -q normal ) + then + ${ZD_BINDIR}/xrandr -o normal + fi + fi diff --git a/recipes/zaurusd/files/zaurus-hinge.matchbox-portrait b/recipes/zaurusd/files/zaurus-hinge.matchbox-portrait new file mode 100644 index 0000000000..291617cd02 --- /dev/null +++ b/recipes/zaurusd/files/zaurus-hinge.matchbox-portrait @@ -0,0 +1,29 @@ +#!/bin/sh + + if [ -x ${ZD_BINDIR}/xrandr ]; then + if ! ( xrandr | awk '{print $4}' | grep -q left ) + then + ${ZD_BINDIR}/xrandr -o left + fi + fi + # just to be extra safe + sleep 1 + + echo "panel_user = [$panel_user]" + + if ! test -e "/tmp/gpe-panel.session-$panel_user" + then + cp /home/$panel_user/.matchbox/mbdock.session "/tmp/gpe-panel.session-$panel_user" + else + rm "/tmp/gpe-panel.session-$panel_user" + fi + + if test -n "$panel_user" + then + echo "Running panel as user [$panel_user]" + ps aux | grep "$panel_user" | grep -q "mbinputmgr " || su $panel_user -c ${ZD_BINDIR}/mbinputmgr & + else + # A failsafe can't hurt + echo "Warning: Running mbinputmgr as root!" + ps aux | grep -q "mbinputmgr " || ${ZD_BINDIR}/mbinputmgr & + fi diff --git a/recipes/zaurusd/zaurusd_svn.bb b/recipes/zaurusd/zaurusd_svn.bb new file mode 100644 index 0000000000..2ad405e419 --- /dev/null +++ b/recipes/zaurusd/zaurusd_svn.bb @@ -0,0 +1,53 @@ +DESCRIPTION = "Daemon to handle device specifc features." +SECTION = "base" +LICENSE = "GPL" +DEPENDS = "tslib" +RDEPENDS = "procps" +PV = "0.0+svn${SRCDATE}" +PR = "r18" + +SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=zaurusd;proto=http \ + file://zaurus-hinge.in \ + file://add-poodle.patch;patch=1 \ + file://alsa-cxx00-default.state.patch;patch=1 \ + file://alsa-6000x-default.state.patch;patch=1 \ + file://disable-alsa-handling.patch;patch=1 \ + file://zaurus-hinge.matchbox-portrait \ + file://zaurus-hinge.matchbox-landscape \ + file://tslib-1.diff;patch=1 \ + file://zaurus-hinge.bl-on \ + file://zaurus-hinge.bl-off \ + file://01-check-toggle-landscape \ + file://01-check-toggle-portait" + + +S = "${WORKDIR}/${PN}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +do_configure_prepend () { + cp ${WORKDIR}/zaurus-hinge.in ${S}/scripts +} + +do_install_append() { + install -d "${D}/etc/zaurusd/hinge-landscape.d" + install -d "${D}/etc/zaurusd/hinge-portrait.d" + install -d "${D}/etc/zaurusd/hinge-close.d" + install -d ${D}/etc/apm/resume.d + + install -m 0755 "${WORKDIR}/zaurus-hinge.bl-on" "${D}/etc/apm/resume.d/00-backlight-on" + install -m 0755 "${WORKDIR}/zaurus-hinge.bl-on" "${D}/etc/zaurusd/hinge-landscape.d/00-backlight-on" + install -m 0755 "${WORKDIR}/zaurus-hinge.bl-on" "${D}/etc/zaurusd/hinge-portrait.d/00-backlight-on" + install -m 0755 "${WORKDIR}/zaurus-hinge.bl-off" "${D}/etc/zaurusd/hinge-close.d/00-backlight-off" + + install -m 0755 "${WORKDIR}/01-check-toggle-landscape" "${D}/etc/zaurusd/hinge-landscape.d/01-check-toggle" + install -m 0755 "${WORKDIR}/01-check-toggle-portait" "${D}/etc/zaurusd/hinge-portrait.d/01-check-toggle" + + install -m 0755 "${WORKDIR}/zaurus-hinge.matchbox-landscape" "${D}/etc/zaurusd/hinge-landscape.d/20-matchbox-landscape" + install -m 0755 "${WORKDIR}/zaurus-hinge.matchbox-portrait" "${D}/etc/zaurusd/hinge-portrait.d/20-matchbox-portrait" +} + +inherit autotools pkgconfig update-rc.d + +INITSCRIPT_NAME = "zaurusd" +INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ." -- cgit v1.2.3