FreeCalypso > hg > fc-tourmaline
annotate src/ui/mfw/mfw_mme.c @ 221:5bf097aeaad7
LLS: when turning off all LEDs on boot, skip LED-C
Having LLS turn off LED-A and LED-B on boot is normally unnecessary
(they should already be off in Iota), but it is harmless, hence this
logic is kept for robustness. However, having LLS read-modify-write
the BCICTL2 register (to turn off LED-C) creates a potential race
condition with FCHG writes to this register, especially in the case
when baseband switch-on is caused by VCHG and charging is expected
to start right away. Furthermore, control of the charging LED itself
(on those hw targets that have it) is the responsibility of the FCHG
SWE, hence LLS should leave it alone.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Apr 2021 21:55:13 +0000 |
parents | adfdbcd360fd |
children | 3edd1a600218 |
rev | line source |
---|---|
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_mme.c $| |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 | $Author:: Kk $ CONDAT GmbH $Revision:: 5 $| |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 | CREATED: 11.02.99 $Modtime:: 3.03.00 17:40 $| |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 | STATE : code | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 MODULE : MFW_MME |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 PURPOSE : Miscelleaneous Mobile Equipment functions |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 EXPORT : |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 TO DO : |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 $History:: mfw_mme.c $ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 ************************************************************************ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
20 Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
21 Description: Support from MMI to configure drives (NOR, NORMS, NAND, TFLASH) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
22 is added as part of SBuild 2.3.0 Migration |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 May 30, 2007 DR: OMAPS00132483 x0pleela |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 Description: MM: While playing an AAC, unplug USB freezes the audio |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 Solution: 1. Added the prototype to get the phone lock status |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
27 2. Replaced the function call mfw_get_phlock_status with mfw_get_Phlock_status |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
28 to get the phone lock status |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
29 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 Apr 03, 2007 ER: OMAPS00122561 x0pleela |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 Description: [ACI] Phone lock feature has to be supported by ACI |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 Solution: Phone Lock ER implementation |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 Mar 22, 2007 DVT: OMAPS00121916 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 Description: T-Flash hot swap. |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
37 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 Oct 30 2006, OMAPS00098881 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 Removal of power variant |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
40 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 Oct 05, 2006 ER: OMAPS00094496 x0061088(Prachi) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 Description:Enhance RSSI to 3 parameters: Strength, quality, min-access-level |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
43 Solution:To solve the ER OMAPS0094496,mmeInit() is not calling rx_Init(). |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
46 xashmic 27 Sep 2006, OMAPS00096389 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
47 ENH - a) Providing static menu for re-selection of enum options for enumeration |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
48 b) Popup menu displayed on connect event, can be enabled or disabled via menu option |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
50 xashmic 21 Sep 2006, OMAPS00095831 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
51 Description: USB enumeration does not happen in PIN/PUK/Insert SIM scenarios |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
52 Solution: When booting up without SIM card, or prompting for PIN/PUK/SIMP entry, |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
53 enumerate all the USB ports automatically |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
55 xashmic 9 Sep 2006, OMAPS00092732 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
56 USBMS ER |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
57 * |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
58 * Jun 02, 2006 DRT OMAPS00079213 x0039928(sumanth) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
59 * Description: Triton PG2.2 impacts on Locosto program |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
60 * Solution: Software workaround is done to register headset-hook dynamically |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
61 * during/before call is established and unregister it after the call is ended/disconnected. |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 * |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 * xdeepadh, nekkareb - OMAPS00076996: 05 May 2006 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
64 * Description: MO TTY call works only for the first time |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
65 * Solution: For the Loocsto-lite variant, when a TTY call is initiated, the |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
66 * current audio profile is identified and when the TTY call is ended, this |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 * profile is loaded. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 * |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
69 * nekkareb - OMAPS00057367: 8 Dec 2005 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
70 * Description: Fix build problems for fix of OMAPS00057367 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
71 * Solution: Included OMAPS00057367 changes under a flag ISAMPLE |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 * |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
73 * nekkareb - OMAPS00057367: 3 Dec 2005 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
74 * Description: Locosto: TTY MT call does not work |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
75 * Solution: Extra TTY command added so as to initiate the AUDIO entity to send the |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
76 * TTY_START request to L1 only after the Vocoder enable is sent. |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 * Current audio device is read from audio service entity functions. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 * |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
79 * xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
80 * Description: Support for various audio profiles |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
81 * Solution: The support for audio device's carkit/headset/loudspeaker/handheld. |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
82 * The audio device is enabled as per the user actions. |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 * |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 * ***************** Version 5 ******************************************** |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 * User: Kk Date: 3.03.00 Time: 17:52 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 * Updated in $/GSM/Condat/MS/SRC/MFW |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 * |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 * ***************** Version 4 ***************** |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 * User: Es Date: 2.03.00 Time: 16:48 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 * Updated in $/GSM/Condat/MS/SRC/MFW |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 * generate battery/signal primitives with more info from driver |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 * callbacks. Catch the primitives on reception and call MMI event |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 * handler. Don't use ACI any longer for this purpose. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 * |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 * ***************** Version 3 ***************** |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 * User: Es Date: 14.04.99 Time: 17:34 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 * Updated in $/GSM/DEV/MS/SRC/MFW |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 * moved to CST |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 | ***************** Version 2 ***************** |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 | User: Le Date: 14.04.99 Time: 9:51 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 | Updated in $/GSM/DEV/MS/SRC/MFW |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 * |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 * ***************** Version 1 ***************** |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 * User: Es Date: 20.02.99 Time: 11:54 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 * Created in $/GSM/DEV/MS/SRC/MFW |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 * mobile equipment |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 #define ENTITY_MFW |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 #include <stdio.h> |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114 #if defined (NEW_FRAME) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
115 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 #include "typedefs.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 #include "vsi.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118 #include "custom.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
119 #include "gsm.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
120 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
121 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
122 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 #include "STDDEFS.H" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
124 #include "custom.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
125 #include "gsm.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
126 #include "vsi.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 #include "mfw_mfw.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 #include "mfw_sys.h" |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
132 #include "mfw_tim.h" |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 #include "prim.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 #include "message.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 #include "prim.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 #include "aci_cmh.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 #include "gdi.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 #include "audio.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 #include "pwr.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 #include "rx.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 #include "light.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
142 #include "mfw_acie.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
143 #include "mfw_mme.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144 #include "mfw_win.h" |
199
b7421cdea22b
mfw_mme.c: rm code for non-Calypso platforms
Mychaela Falconia <falcon@freecalypso.org>
parents:
84
diff
changeset
|
145 #include "mfw_ffs.h" |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
146 #include "fchg/fchg_api.h" |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 #define hCommPL _ENTITY_PREFIXED(hCommPL) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 #define hCommACI _ENTITY_PREFIXED(hCommACI) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 #if defined (NEW_FRAME) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 EXTERN T_HANDLE hCommPL; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 EXTERN T_HANDLE hCommACI; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 EXTERN T_VSI_CHANDLE hCommPL; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 EXTERN T_VSI_CHANDLE hCommACI; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 EXTERN MfwHdr * current_mfw_elem; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 /* FLAG DRIVER CALLBACKS */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 #define MmeFlagRtcAlarm 1 /* rtc alarm */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 #define MmeFlagHdsDetect 2 /* headset detection */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 #define MmeFlagIrdaMsg 4 /* IRDA event */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 U16 mfwMmeDrvFlag = 0; /* hold driver CB flags */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 static U8 battLevel = 0; /* battery level */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 static U8 battState = 0; /* state of power supply */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
169 static U16 hdsPresence = 0; /* headset presence */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 |
200
f51fb87f4ae1
mfw_mme backlight layer: add notimer option
Mychaela Falconia <falcon@freecalypso.org>
parents:
199
diff
changeset
|
171 UBYTE mme_backlight_incall, mme_backlight_notimer; |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
172 static U8 current_backlight_level; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
173 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
174 static MfwHdr bltimIdleH; /* backlight timer for idle state */ |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
175 static MfwTim bltimIdle; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
176 static MfwHdr bltimCallH; /* backlight timer for in-call state */ |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
177 static MfwTim bltimCall; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
178 static int bl_timeout_idle (U32 t, void *h); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
179 static int bl_timeout_call (U32 t, void *h); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 static int mmeCommand (U32 cmd, void *h); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 /* driver callbacks */ |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
184 static void pwrCb (enum fchg_event); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 static void rxCb (drv_SignalID_Type *signal_params); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 static void rtcCb (drv_SignalID_Type *signal_params); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 /* Added to remove warning Aug - 11 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 EXTERN UBYTE dspl_Enable (UBYTE in_Enable); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
190 /* End - remove warning Aug - 11 */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 static BOOL mmePrimHandler (USHORT opc, void *data); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 static int pSlot; /* primitive handler slot */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 #ifndef FF_MMI_AUDIO_PROFILE /*a0393213 warnings removal*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 static void hdsCb (drv_SignalID_Type *signal_params); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
197 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 #ifdef FF_MMI_AUDIO_PROFILE |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
199 #define HANDHELD "handheld" //0 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
200 #define LOUDSPEAKER "handfree" // 1 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
201 #define HEADSET "headset" // 2 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
202 #define CARKIT "carkit" // 3 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203 static UBYTE currAudioDevice = MFW_AUD_HANDHELD; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
205 UBYTE headsetInserted = FALSE; //indicates if the headset is inserted or not |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
206 UBYTE carkitInserted = FALSE; //indicates if the carkit is inserted or not |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
207 UBYTE mfwAudPlay = FALSE; //indicates if any other audio media is being played or not |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 extern audio_set_device(char* mode); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 // Jun 02, 2006 DRT OMAPS00079213 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 // Fix: A callback function is added that is registered for hook. |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
211 void mfw_audio_hook_indication ( T_AUDIO_ACCESSORY_NOTIFICATION notify, |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 ACCESSORY_CALLBACK_PARAM callbackparam ); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
213 void mfw_audio_headSet_indication ( T_AUDIO_ACCESSORY_NOTIFICATION notify, |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 ACCESSORY_CALLBACK_PARAM callbackparam ); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
215 void mfw_audio_carKit_indication ( T_AUDIO_ACCESSORY_NOTIFICATION notify, |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 ACCESSORY_CALLBACK_PARAM callbackparam ); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 void mfw_audio_set_device(int type); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220 //xdeepadh, nekkareb - OMAPS00076996: 05 May 2006 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 //Array to retrieve the profile name |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 #ifdef MMI_LITE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 char aud_cg_file[5][15] = {"handheld","handheld","handfree","headset","carkit"}; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 | STATE : code ROUTINE : mmeInit | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
231 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
232 PURPOSE : initialize equipment handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
233 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
234 MfwRes mmeInit (void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
235 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
236 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
237 // the callback registeration variables are populated here and passed as |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
238 // argument to audio_init |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 #ifdef FF_MMI_AUDIO_PROFILE |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
240 T_ACCESSORY_CALLBACK audio_device_config[MAX_EXT_AUD_DEVICE]; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
241 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
242 audio_device_config[CALLBACK_HEADSET].callbackFunc = mfw_audio_headSet_indication; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
243 audio_device_config[CALLBACK_HEADSET].callbackVal = NULL; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
244 audio_device_config[CALLBACK_CARKIT].callbackFunc = mfw_audio_carKit_indication; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
245 audio_device_config[CALLBACK_CARKIT].callbackVal = NULL; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 mfwCommand[MfwTypMme] = (MfwCb) mmeCommand; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 mfwMmeDrvFlag = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 battLevel = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 battState = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 hdsPresence = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
255 |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
256 /* init FreeCalypso backlight control infrastructure */ |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
257 bltimIdle.handler = bl_timeout_idle; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
258 bltimIdle.time = 30000; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
259 bltimIdleH.data = &bltimIdle; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
260 bltimIdleH.type = MfwTypTim; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
261 bltimCall.handler = bl_timeout_call; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
262 bltimCall.time = 10000; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
263 bltimCallH.data = &bltimCall; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
264 bltimCallH.type = MfwTypTim; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
265 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
266 fchg_register_event_handler(pwrCb); /* battery driver */ |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
267 rx_Init(rxCb); //fieldstrength driver |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
268 light_Init(); //light emitting driver |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
269 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
270 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 audio_Init(audio_device_config); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
272 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 audio_Init(hdsCb); //audio driver |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
274 #endif |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
275 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 mmeRxInfo(5,0); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
277 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
278 /* install prim handler */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
279 pSlot = aci_create((T_PRIM_HANDLER)mmePrimHandler,NULL); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
280 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
281 return MfwResOk; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
284 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
285 // Jun 02, 2006 DRT OMAPS00079213 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
286 // Fix: Two new mfw hook register and unregister functions are added |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 // which call the hook register and unregister functions in audio.c file |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 void mfw_hook_unregister(void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
290 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
291 TRACE_FUNCTION("mfw hook unregister"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
292 hook_unregister(); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
293 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
294 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
295 void mfw_hook_register(void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
296 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
297 T_ACCESSORY_CALLBACK hook_device; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
298 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
299 TRACE_FUNCTION("mfw hook register"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
300 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
301 hook_device.callbackVal = NULL; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
302 hook_device.callbackFunc = mfw_audio_hook_indication; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
303 hook_register(hook_device); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
304 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
305 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
306 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
307 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
308 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
309 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
310 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
311 | STATE : code ROUTINE : mmeExit | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
312 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
313 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
314 PURPOSE : finalize equipment handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
315 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
316 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
317 MfwRes mmeExit (void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
318 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
319 aci_delete(pSlot); /* remove prim handler */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
320 mfwCommand[MfwTypMme] = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
321 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
322 return MfwResOk; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
323 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
324 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
325 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
326 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
327 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
328 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
329 | STATE : code ROUTINE : mmeCreate | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
330 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
331 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
332 PURPOSE : create equipment control |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
333 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
334 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
335 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
336 MfwHnd mmeCreate (MfwHnd w, MfwEvt e, MfwCb f) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
337 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
338 MfwHdr *hdr = (MfwHdr *) mfwAlloc(sizeof(MfwHdr)); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
339 MfwMme *mme = (MfwMme *) mfwAlloc(sizeof(MfwMme)); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
340 MfwHdr *insert_status =0; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
341 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
342 if (!hdr || !mme) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
343 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
344 TRACE_ERROR("ERROR: mmeCreate() Mem Alloc Failed."); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
345 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
346 if(hdr) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
347 mfwFree((U8*)hdr,sizeof(MfwHdr)); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
348 if(mme) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
349 mfwFree((U8*)mme,sizeof(MfwMme)); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
350 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
351 return 0; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
352 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
353 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
354 mme->map = e; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
355 mme->handler = f; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
356 mme->value = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
357 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
358 hdr->data = mme; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
359 hdr->type = MfwTypMme; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
360 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
361 insert_status = mfwInsert(w,hdr); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
362 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
363 if(!insert_status) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
364 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
365 TRACE_ERROR("ERROR: mmeCreate() Failed to Install Handler. "); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
366 mfwFree((U8*)hdr,sizeof(MfwHdr)); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
367 mfwFree((U8*)mme ,sizeof(MfwMme)); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
368 return 0; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
369 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
370 return insert_status; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
371 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
372 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
373 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
374 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
375 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
376 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
377 | STATE : code ROUTINE : mmeDelete | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
378 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
379 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
380 PURPOSE : delete equipment control |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
381 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
382 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
383 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
384 MfwRes mmeDelete (MfwHnd h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
385 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
386 MfwRes res; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
387 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
388 if (!h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
389 return MfwResIllHnd; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
390 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
391 res = (mfwRemove(h)) ? MfwResOk : MfwResIllHnd; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
392 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
393 mfwFree(((MfwHdr *) h)->data,sizeof(MfwMme)); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
394 mfwFree(h,sizeof(MfwHdr)); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
395 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
396 return res; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
397 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
398 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
399 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
400 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
401 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
402 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
403 | STATE : code ROUTINE : mmeHdsInit | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
404 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
405 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
406 PURPOSE : init the Headset detection and setup callback handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
407 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
408 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
409 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
410 MfwRes mmeHdsInit (void (*hds_init) ()) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
411 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
412 mfwMmeDrvFlag &= ~MmeFlagHdsDetect; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
413 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
414 return MfwResOk;/*a0393213 compiler warnings removal - 1 changed to MfwResOk*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
415 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
416 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
417 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
418 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
419 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
420 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
421 | STATE : code ROUTINE : mmeRtcInit | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
422 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
423 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
424 PURPOSE : init the RTC and setup the alarm callback handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
425 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
426 extern UBYTE clk_Init (USHORT, drv_SignalCB_Type, UBYTE*); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
427 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
428 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
429 MfwRes mmeRtcInit (USHORT drvHandle, UBYTE *info) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
430 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
431 mfwMmeDrvFlag &= ~MmeFlagRtcAlarm; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
432 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
433 return MfwResOk; // RAVI /*a0393213 compiler warnings removal - 0 changed to MfwResOk*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
434 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
435 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
436 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
437 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
438 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
439 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
440 | STATE : code ROUTINE : mmeBackLight | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
441 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
442 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
443 PURPOSE : set display backlight |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
444 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
445 */ |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
446 static void mmeBackLight (U8 level) |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
447 { |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
448 if (level != current_backlight_level) { |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
449 light_SetStatus(LIGHT_DEVICE_BACKLIGHT, level); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
450 current_backlight_level = level; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
451 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
452 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
453 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
454 /* new FreeCalypso backlight control functions */ |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
455 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
456 void mme_backlightOnEvent (void) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
457 { |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
458 timStop(&bltimIdleH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
459 timStop(&bltimCallH); |
214
adfdbcd360fd
backlight evolution: API between Condat driver and MFW
Mychaela Falconia <falcon@freecalypso.org>
parents:
203
diff
changeset
|
460 mmeBackLight(LIGHT_STATUS_ON); |
200
f51fb87f4ae1
mfw_mme backlight layer: add notimer option
Mychaela Falconia <falcon@freecalypso.org>
parents:
199
diff
changeset
|
461 if (mme_backlight_notimer) |
f51fb87f4ae1
mfw_mme backlight layer: add notimer option
Mychaela Falconia <falcon@freecalypso.org>
parents:
199
diff
changeset
|
462 return; |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
463 if (mme_backlight_incall) |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
464 timStart(&bltimCallH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
465 else |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
466 timStart(&bltimIdleH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
467 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
468 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
469 int mme_backlightKeyPress (void) |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
470 { |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
471 int ret; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
472 |
214
adfdbcd360fd
backlight evolution: API between Condat driver and MFW
Mychaela Falconia <falcon@freecalypso.org>
parents:
203
diff
changeset
|
473 ret = (current_backlight_level == LIGHT_STATUS_OFF); |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
474 timStop(&bltimIdleH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
475 timStop(&bltimCallH); |
214
adfdbcd360fd
backlight evolution: API between Condat driver and MFW
Mychaela Falconia <falcon@freecalypso.org>
parents:
203
diff
changeset
|
476 mmeBackLight(LIGHT_STATUS_ON); |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
477 return ret; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
478 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
479 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
480 static int bl_timeout_idle (U32 t, void *h) |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
481 { |
214
adfdbcd360fd
backlight evolution: API between Condat driver and MFW
Mychaela Falconia <falcon@freecalypso.org>
parents:
203
diff
changeset
|
482 mmeBackLight(LIGHT_STATUS_OFF); |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
483 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
484 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
485 static int bl_timeout_call (U32 t, void *h) |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
486 { |
214
adfdbcd360fd
backlight evolution: API between Condat driver and MFW
Mychaela Falconia <falcon@freecalypso.org>
parents:
203
diff
changeset
|
487 mmeBackLight(LIGHT_STATUS_INCALL); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
488 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
489 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
490 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
491 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
492 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
493 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
494 | STATE : code ROUTINE : mmeAudioTone | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
495 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
496 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
497 PURPOSE : configure the buzzer |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
498 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
499 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
500 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
501 void mmeAudioTone (U8 callTone, U8 volume, U8 toneStat) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
502 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
503 if (toneStat EQ TONE_SWT_OFF) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
504 #ifdef FF_MMI_RINGTONE /* Stop MSL Play */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
505 audio_StopSoundbyID(AUDIO_SPEAKER, CALLTONE_SELECT); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
506 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
507 audio_StopSoundbyID(AUDIO_SPEAKER,callTone); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
508 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
509 else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
510 #ifdef FF_MMI_RINGTONE /* Play MSL Ring tone */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
511 audio_PlaySoundID(AUDIO_SPEAKER,CALLTONE_SELECT,volume,toneStat); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
512 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
513 audio_PlaySoundID(AUDIO_SPEAKER,callTone,volume,toneStat); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
514 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
515 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
516 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
517 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
518 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
519 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
520 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
521 | STATE : code ROUTINE : mmeSetVolume | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
522 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
523 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
524 PURPOSE : configure mic and speaker volume |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
525 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
526 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
527 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
528 MfwRes mmeSetVolume (U16 audioIn, U16 audioOut) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
529 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
530 if (audioIn > 255) audioIn = 255; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
531 if (audioOut > 255) audioOut = 255; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
532 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
533 audio_SetAmplf(AUDIO_MICROPHONE,(U8) audioIn); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
534 audio_SetAmplf(AUDIO_SPEAKER,(U8) audioOut); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
535 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
536 return MfwResOk; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
537 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
538 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
539 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
540 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
541 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
542 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
543 | STATE : code ROUTINE : mmeRxInfo | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
544 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
545 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
546 PURPOSE : configure signal quality information: |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
547 request from the PS an indication on change of the |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
548 rx level with n intervalls. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
549 Parameters mode and level are not used in the moment. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
550 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
551 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
552 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
553 void mmeRxInfo (U8 intervalls, U16 level) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
554 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
555 rx_DCB_Type rx_DCB; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
556 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
557 rx_DCB.Steps = intervalls; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
558 rx_SetConfig(&rx_DCB); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
559 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
560 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
561 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
562 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
563 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
564 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
565 | STATE : code ROUTINE : mmeBattInfo | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
566 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
567 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
568 PURPOSE : configure battery level information |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
569 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
570 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
571 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
572 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
573 #if 0 /* removed in FreeCalypso */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
574 void mmeBattInfo ( U8 intervalls, U16 level) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
575 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
576 pwr_DCB_Type pwr_DCB; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
577 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
578 if (level > 255) level = 255; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
579 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
580 pwr_DCB.RangeMin = (U8) level; /* low level threshold */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
581 pwr_DCB.RangeMax = 100; /* 100 Percent */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
582 pwr_DCB.Steps = intervalls; /* n Steps */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
583 pwr_SetConfig(&pwr_DCB); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
584 } |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
585 #endif |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
586 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
587 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
588 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
589 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
590 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
591 | STATE : code ROUTINE : sigExec | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
592 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
593 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
594 PURPOSE : execute equipment signal |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
595 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
596 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
597 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
598 static int sigExec (MfwHdr *curElem, U32 evt, U32 val) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
599 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
600 MfwMme *ec; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
601 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
602 while (curElem) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
603 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
604 if (curElem->type == MfwTypMme) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
605 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
606 ec = curElem->data; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
607 if (ec->map & evt) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
608 { /* events match */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
609 ec->value = val; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
610 if (ec->handler) /* handler valid */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
611 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
612 // PATCH LE 06.06.00 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
613 // store current mfw elem |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
614 current_mfw_elem = curElem; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
615 // END PATCH LE 06.06.00 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
616 if ((*(ec->handler))(evt,ec)) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
617 return 1; /* event consumed */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
618 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
619 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
620 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
621 curElem = curElem->next; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
622 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
623 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
624 return 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
625 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
626 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
627 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
628 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
629 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
630 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
631 | STATE : code ROUTINE : mmeSignal | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
632 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
633 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
634 PURPOSE : equipment event (called by driver/PEI) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
635 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
636 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
637 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
638 void mmeSignal (U32 evt, U32 value) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
639 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
640 UBYTE temp=0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
641 #ifndef FF_POWER_MANAGEMENT |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
642 temp = dspl_Enable(0); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
643 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
644 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
645 display is enabled only when lcd refresh is needed*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
646 if(FFS_flashData.refresh == 1) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
647 temp = dspl_Enable(0); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
648 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
649 if (mfwSignallingMethod EQ 0) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
650 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
651 if (mfwFocus) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
652 if (sigExec(mfwFocus,evt,value)) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
653 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
654 #ifndef FF_POWER_MANAGEMENT |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
655 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
656 #else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
657 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
658 display is enabled only when lcd refresh is needed*/ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
659 if(FFS_flashData.refresh == 1) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
660 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
661 #endif |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
662 return; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
663 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
664 if (mfwRoot) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
665 sigExec(mfwRoot,evt,value); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
666 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
667 else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
668 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
669 MfwHdr * h = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
670 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
671 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
672 * Focus set, then start here |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
673 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
674 if (mfwFocus) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
675 h = mfwFocus; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
676 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
677 * Focus not set, then start root |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
678 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
679 if (!h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
680 h = mfwRoot; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
681 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
682 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
683 * No elements available, return |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
684 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
685 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
686 while (h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
687 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
688 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
689 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
690 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
691 * Signal consumed, then return |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
692 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
693 if (sigExec (h, evt, value)) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
694 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
695 #ifndef FF_POWER_MANAGEMENT |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
696 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
697 #else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
698 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
699 display is enabled only when lcd refresh is needed*/ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
700 if(FFS_flashData.refresh == 1) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
701 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
702 #endif |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
703 return; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
704 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
705 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
706 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
707 * All windows tried inclusive root |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
708 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
709 if (h == mfwRoot) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
710 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
711 #ifndef FF_POWER_MANAGEMENT |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
712 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
713 #else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
714 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
715 display is enabled only when lcd refresh is needed*/ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
716 if(FFS_flashData.refresh == 1) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
717 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
718 #endif |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
719 return; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
720 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
721 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
722 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
723 * get parent window |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
724 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
725 h = mfwParent(mfwParent(h)); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
726 if(h) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
727 h = ((MfwWin * )(h->data))->elems; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
728 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
729 sigExec (mfwRoot, evt, value); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
730 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
731 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
732 #ifndef FF_POWER_MANAGEMENT |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
733 dspl_Enable(temp); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
734 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
735 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
736 display is enabled only when lcd refresh is needed*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
737 if(FFS_flashData.refresh == 1) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
738 dspl_Enable(temp); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
739 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
740 return; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
741 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
742 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
743 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
744 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
745 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
746 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
747 | STATE : code ROUTINE : mmeCommand | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
748 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
749 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
750 PURPOSE : handle mfw windows command |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
751 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
752 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
753 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
754 static int mmeCommand (U32 cmd, void *h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
755 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
756 switch (cmd) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
757 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
758 case MfwCmdDelete: /* delete me */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
759 if (!h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
760 return 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
761 mmeDelete(h); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
762 return 1; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
763 default: |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
764 break; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
765 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
766 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
767 return 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
768 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
769 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
770 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
771 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
772 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
773 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
774 | STATE : code ROUTINE : rAT_PercentSQ | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
775 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
776 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
777 PURPOSE : called by ACI on change of signal quality |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
778 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
779 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
780 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
781 void rAT_PercentSQ (BYTE val) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
782 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
783 TRACE_FUNCTION("rAT_PercentSQ()"); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
784 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
785 //ES!! no longer needed mmeSignal(MfwMmeSignal,val); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
786 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
787 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
788 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
789 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
790 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
791 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
792 | STATE : code ROUTINE : rAT_PercentBC | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
793 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
794 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
795 PURPOSE : called by ACI on change of battery status |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
796 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
797 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
798 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
799 void rAT_PercentBC (BYTE val) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
800 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
801 TRACE_FUNCTION("rAT_PercentBC()"); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
802 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
803 //ES!! no longer needed mmeSignal(MfwMmeBattery,val); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
804 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
805 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
806 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
807 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
808 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
809 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
810 | STATE : code ROUTINE : mmePrimHandler | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
811 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
812 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
813 PURPOSE : MME primitive handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
814 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
815 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
816 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
817 static BOOL mmePrimHandler (USHORT opc, void *data) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
818 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
819 U8 level; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
820 U8 state; |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
821 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
822 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
823 U8 hdsData; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
824 U8 cktData; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
825 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
826 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
827 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
828 // TRACE_FUNCTION ("mmePrimHandler()"); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
829 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
830 switch (opc) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
831 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
832 case MMI_RXLEV_IND: |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
833 level = ((T_MMI_RXLEV_IND *) data)->rxlev; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
834 mmeSignal(MfwMmeSignal,level); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
835 return TRUE; /* processed by MME, delete */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
836 case MMI_BATTERY_IND: |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
837 level = ((T_MMI_BATTERY_IND *) data)->volt; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
838 state = ((T_MMI_BATTERY_IND *) data)->temp; |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
839 if (level != FCHG_BATT_BARS_CHARGING && battLevel != level) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
840 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
841 battLevel = level; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
842 mmeSignal(MfwMmeBattery,level); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
843 } |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
844 /* is it a new state or an event? */ |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
845 if (state >= BATT_EVENT_CHARGER_PLUG) |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
846 { |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
847 mmeSignal(MfwMmeBaState,state); |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
848 } |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
849 else if (battState != state) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
850 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
851 battState = state; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
852 mmeSignal(MfwMmeBaState,state); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
853 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
854 return TRUE; /* processed by MME, delete */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
855 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
856 // the corresponding callback function is called in MMI context |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
857 // this comment will be removed once the sap for this is available |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
858 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
859 case MMI_HEADSET_IND: |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
860 TRACE_EVENT("MMI_HEADSET_IND"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
861 hdsData = ((T_MMI_HEADSET_IND *) data)->headset_status; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
862 mmeSignal(MfwMmeHeadset,hdsData); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
863 return TRUE; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
864 case MMI_CARKIT_IND: |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
865 TRACE_EVENT("MMI_CARKIT_IND"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
866 cktData = ((T_MMI_CARKIT_IND *) data)->carkit_status; |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
867 mmeSignal(MfwMmeCarkit, cktData); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
868 return TRUE; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
869 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
870 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
871 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
872 return FALSE; /* not processed, forward */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
873 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
874 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
875 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
876 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
877 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
878 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
879 | STATE : code ROUTINE : mmeFlagHandler | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
880 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
881 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
882 PURPOSE : MME driver flag handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
883 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
884 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
885 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
886 void mmeFlagHandler (void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
887 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
888 TRACE_FUNCTION ("mmeFlagHandler()"); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
889 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
890 while (mfwMmeDrvFlag) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
891 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
892 if (mfwMmeDrvFlag & MmeFlagRtcAlarm) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
893 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
894 mfwMmeDrvFlag &= ~MmeFlagRtcAlarm; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
895 mmeSignal(MfwMmeRtcAlarm,0); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
896 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
897 else if (mfwMmeDrvFlag & MmeFlagHdsDetect) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
898 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
899 mfwMmeDrvFlag &= ~MmeFlagHdsDetect; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
900 mmeSignal(MfwMmeHdsDetect,hdsPresence); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
901 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
902 else if (mfwMmeDrvFlag & MmeFlagIrdaMsg) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
903 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
904 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
905 else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
906 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
907 mfwMmeDrvFlag = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
908 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
909 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
910 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
911 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
912 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
913 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
914 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
915 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
916 | STATE : code ROUTINE : pwr_callback | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
917 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
918 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
919 PURPOSE : Called by battery driver |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
920 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
921 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
922 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
923 static void pwrCb (enum fchg_event fchg_event) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
924 { |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
925 struct fchg_user_state fchg_data; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
926 PALLOC(battery_ind, MMI_BATTERY_IND); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
927 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
928 fchg_get_current_state(&fchg_data); |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
929 battery_ind->volt = fchg_data.batt_bars; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
930 if (fchg_event == FCHG_EVENT_CHARGER_PLUG) { |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
931 battery_ind->temp = BATT_EVENT_CHARGER_PLUG; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
932 } else { |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
933 switch (fchg_data.chg_state) { |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
934 case FCHG_STATE_CI_CHARGING: |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
935 case FCHG_STATE_CV_CHARGING: |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
936 battery_ind->temp = BATT_STATE_CHARGING; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
937 break; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
938 case FCHG_STATE_READY_TO_RECHARGE: |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
939 battery_ind->temp = BATT_STATE_CHARGING_COMPLETE; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
940 break; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
941 default: |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
942 battery_ind->temp = BATT_STATE_NO_CHARGING; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
943 } |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
944 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
945 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
946 PSENDX(ACI,battery_ind); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
947 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
948 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
949 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
950 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
951 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
952 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
953 | STATE : code ROUTINE : rx_callback | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
954 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
955 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
956 PURPOSE : Called by fieldstrength driver |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
957 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
958 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
959 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
960 static void rxCb (drv_SignalID_Type *signal_params) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
961 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
962 rx_Status_Type *para; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
963 PALLOC(rxlevel_ind,MMI_RXLEV_IND); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
964 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
965 para = (rx_Status_Type *) signal_params->UserData; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
966 rxlevel_ind->rxlev = para->actLevel; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
967 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
968 PSENDX(ACI,rxlevel_ind); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
969 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
970 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
971 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
972 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
973 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
974 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
975 | STATE : code ROUTINE : rtcCb | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
976 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
977 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
978 PURPOSE : alarm callback from RTC |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
979 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
980 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
981 /*a0393213(R.Prabakar) lint warnings removal |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
982 warning:symbol(rtcCb) not referenced |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
983 soln :this function was not at all called. so this function has been put under MMI_LINT_WARNING_REMOVAL, |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
984 which is not defined. If this function is needed this flag can be removed*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
985 #ifdef MMI_LINT_WARNING_REMOVAL |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
986 static void rtcCb (drv_SignalID_Type *signal_params) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
987 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
988 mfwMmeDrvFlag |= MmeFlagRtcAlarm; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
989 vsi_c_awake(VSI_CALLER_SINGLE); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
990 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
991 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
992 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
993 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
994 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
995 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
996 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
997 | STATE : code ROUTINE : hdsCb | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
998 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
999 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1000 PURPOSE : callback from headset detection |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1001 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1002 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1003 #ifndef FF_MMI_AUDIO_PROFILE /*a0393213 warnings removal*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1004 static void hdsCb (drv_SignalID_Type *signal_params) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1005 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1006 if (signal_params->SignalType == 1) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1007 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1008 hdsPresence = (U16)signal_params->UserData; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1009 mfwMmeDrvFlag |= MmeFlagHdsDetect; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1010 vsi_c_awake(VSI_CALLER_SINGLE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1011 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1012 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1013 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1014 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1015 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1016 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1017 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1018 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1019 | STATE : code ROUTINE : mfw_set_stereo_path | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1020 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1021 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1022 PURPOSE : This sets the stereo path for the current audio profile |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1023 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1024 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1025 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1026 void mfw_set_stereo_path(int device) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1027 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1028 TRACE_FUNCTION("mfw_set_stereo_path()"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1029 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1030 TRACE_EVENT_P1("Device === %d", device); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1031 switch(device) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1032 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1033 case MFW_AUD_HEADSET: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1034 audio_set_path(AUDIO_STEREO_SPEAKER_HEADPHONE, TRUE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1035 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1036 case MFW_AUD_HANDHELD: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1037 audio_set_path(AUDIO_STEREO_SPEAKER_HANDHELD, TRUE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1038 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1039 case MFW_AUD_CARKIT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1040 audio_set_path(AUDIO_STEREO_SPEAKER_CARKIT, TRUE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1041 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1042 case MFW_AUD_LOUDSPEAKER: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1043 audio_set_path(AUDIO_STEREO_SPEAKER_HANDFREE, TRUE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1044 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1045 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1046 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1047 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1048 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1049 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1050 | STATE : code ROUTINE : mfw_unset_stereo_path | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1051 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1052 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1053 PURPOSE : This resets the voice path for the current audio profile |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1054 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1055 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1056 void mfw_unset_stereo_path(int device) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1057 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1058 TRACE_FUNCTION("mfw_unset_stereo_path()"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1059 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1060 TRACE_EVENT_P1("Device === %d", device); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1061 switch(device) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1062 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1063 case MFW_AUD_HEADSET: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1064 audio_set_path(AUDIO_SPEAKER_HEADSET, FALSE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1065 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1066 case MFW_AUD_HANDHELD: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1067 audio_set_path(AUDIO_SPEAKER_HANDHELD, FALSE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1068 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1069 case MFW_AUD_CARKIT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1070 audio_set_path(AUDIO_SPEAKER_CARKIT, FALSE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1071 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1072 case MFW_AUD_LOUDSPEAKER: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1073 audio_set_path(AUDIO_SPEAKER_HANDFREE, FALSE); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1074 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1075 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1076 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1077 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1078 // Jun 02, 2006 DRT OMAPS00079213 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1079 // Fix: Callback function called when mfw receives hook detect event from BSP |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1080 void mfw_audio_hook_indication ( T_AUDIO_ACCESSORY_NOTIFICATION notify, |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1081 ACCESSORY_CALLBACK_PARAM callbackparam ) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1082 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1083 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1084 PALLOC(hdsData,MMI_HEADSET_IND); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1085 hdsData->headset_status = (U8)notify; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1086 PSENDX(ACI,hdsData); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1087 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1088 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1089 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1090 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1091 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1092 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1093 | STATE : code ROUTINE : mfw_audio_headSet_indication | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1094 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1095 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1096 PURPOSE :Callback function for the events related to headset and create and post a primitive |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1097 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1098 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1099 void mfw_audio_headSet_indication ( T_AUDIO_ACCESSORY_NOTIFICATION notify, |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1100 ACCESSORY_CALLBACK_PARAM callbackparam ) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1101 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1102 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1103 PALLOC(hdsData,MMI_HEADSET_IND); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1104 hdsData->headset_status = (U8)notify; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1105 PSENDX(ACI,hdsData); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1106 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1107 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1108 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1109 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1110 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1111 | STATE : code ROUTINE : mfw_audio_headSet_indication | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1112 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1113 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1114 PURPOSE :Callback function for the events related to carkit and create and post a primitive |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1115 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1116 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1117 void mfw_audio_carKit_indication ( T_AUDIO_ACCESSORY_NOTIFICATION notify, |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1118 ACCESSORY_CALLBACK_PARAM callback_param ) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1119 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1120 PALLOC(cktData,MMI_CARKIT_IND); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1121 cktData->carkit_status = (U8)notify; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1122 PSENDX(ACI,cktData); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1123 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1124 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1125 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1126 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1127 | STATE : code ROUTINE : mfw_audio_headSet_indication | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1128 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1129 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1130 PURPOSE :handles the request to switch to the respective device from the |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1131 Bmi when the indications of insert and removal are received |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1132 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1133 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1134 void mfw_audio_device_indication( U8 notify) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1135 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1136 TRACE_FUNCTION("mfw_audio_device_indication()"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1137 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1138 TRACE_EVENT_P1(" Indication Type == %d",notify); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1139 switch(notify) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1140 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1141 case AUDIO_HEADSET_PLUGGED: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1142 if(currAudioDevice != MFW_AUD_HEADSET) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1143 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1144 mfw_audio_set_device(MFW_AUD_HEADSET); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1145 headsetInserted = TRUE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1146 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1147 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1148 case AUDIO_HEADSET_UNPLUGGED: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1149 if( currAudioDevice == MFW_AUD_HEADSET) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1150 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1151 mfw_audio_set_device(MFW_AUD_HANDHELD ); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1152 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1153 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1154 headsetInserted = FALSE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1155 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1156 case AUDIO_HEADSET_HOOK_DETECT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1157 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1158 case AUDIO_CARKIT_PLUGGED: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1159 if(currAudioDevice != MFW_AUD_CARKIT) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1160 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1161 mfw_audio_set_device(MFW_AUD_CARKIT); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1162 carkitInserted = TRUE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1163 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1164 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1165 case AUDIO_CARKIT_UNPLUGGED: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1166 if( currAudioDevice == MFW_AUD_CARKIT) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1167 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1168 if(headsetInserted == TRUE) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1169 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1170 mfw_audio_set_device (MFW_AUD_HEADSET); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1171 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1172 else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1173 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1174 mfw_audio_set_device (MFW_AUD_HANDHELD); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1175 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1176 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1177 carkitInserted = FALSE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1178 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1179 default: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1180 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1181 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1182 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1183 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1184 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1185 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1186 | STATE : code ROUTINE : mfw_audio_headSet_indication | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1187 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1188 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1189 PURPOSE :This function handles the switch between the handheld and loudspeaker. |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1190 The type of device to be loaded will be posted from the menu selection |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1191 When the profile changes if there is any other media played then the |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1192 speaker should be set to stereo speaker |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1193 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1194 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1195 void mfw_audio_set_device(int type) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1196 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1197 /*Description: this array holds the file names on the ffs in which the audio profiles are stored. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1198 The file names are yet to be confirmed from the audio services group*/ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1199 //char aud_cg_file[4][15] = {"handheld","loudspeaker","headset","carkit"}; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1200 TRACE_FUNCTION("mfw_audio_set_device()"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1201 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1202 TRACE_EVENT_P1("type of device = %d",type); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1203 switch(type) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1204 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1205 case MFW_AUD_HANDHELD: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1206 audio_set_device((char*)HANDHELD);// (aud_cg_file[HANDHELD] ); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1207 currAudioDevice = MFW_AUD_HANDHELD; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1208 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1209 case MFW_AUD_LOUDSPEAKER: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1210 audio_set_device((char*) LOUDSPEAKER);//(aud_cg_file[LOUDSPEAKER]); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1211 currAudioDevice = MFW_AUD_LOUDSPEAKER; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1212 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1213 case MFW_AUD_HEADSET: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1214 audio_set_device((char*)HEADSET);//(aud_cg_file[HEADSET]); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1215 currAudioDevice = MFW_AUD_HEADSET; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1216 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1217 case MFW_AUD_CARKIT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1218 audio_set_device((char*)CARKIT);//(aud_cg_file[CARKIT]); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1219 currAudioDevice = MFW_AUD_CARKIT; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1220 default: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1221 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1222 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1223 if(TRUE == mfwAudPlay) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1224 mfw_set_stereo_path(currAudioDevice); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1225 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1226 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1227 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1228 #ifdef ISAMPLE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1229 /* OMAPS00057367, 3 Dec 2005, nekkareb : start */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1230 /* Function mfw_get_current_audioDevice modified to read the |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1231 current audio device using the audio service entity function |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1232 audio_full_access_read. This solves some synchronisation |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1233 problems b/n Audio & MMI for the DR OMAPS00057367 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1234 /*returns the current active audio device*/ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1235 int mfw_get_current_audioDevice() |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1236 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1237 T_AUDIO_FULL_ACCESS_READ read; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1238 INT8 speaker; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1239 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1240 read.variable_indentifier = AUDIO_SPEAKER_MODE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1241 read.data = &speaker; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1242 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1243 TRACE_FUNCTION("mfw_get_current_audioDevice()"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1244 audio_full_access_read(&read ); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1245 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1246 switch(speaker) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1247 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1248 case AUDIO_SPEAKER_NONE: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1249 TRACE_EVENT("mfw_get_current_audioDevice() - SPEAKER PATH NOT CONFIGURED"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1250 currAudioDevice = MFW_AUD_HANDHELD; //Need to check the mapping |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1251 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1252 case AUDIO_SPEAKER_HANDHELD: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1253 currAudioDevice = MFW_AUD_HANDHELD; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1254 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1255 case AUDIO_SPEAKER_HEADSET: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1256 currAudioDevice = MFW_AUD_HEADSET; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1257 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1258 case AUDIO_SPEAKER_AUX: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1259 currAudioDevice = MFW_AUD_LOUDSPEAKER; //Need to check the mapping |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1260 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1261 case AUDIO_SPEAKER_CARKIT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1262 currAudioDevice = MFW_AUD_CARKIT; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1263 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1264 case AUDIO_SPEAKER_HANDFREE: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1265 case AUDIO_SPEAKER_HANDFREE_CLASS_D: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1266 currAudioDevice = MFW_AUD_LOUDSPEAKER; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1267 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1268 case AUDIO_SPEAKER_INVERTED_VOICE: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1269 currAudioDevice = MFW_AUD_HEADSET; //Need to check the mapping |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1270 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1271 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1272 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1273 return currAudioDevice; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1274 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1275 /* OMAPS00057367, 3 Dec 2005, nekkareb : end */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1276 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1277 /*returns the current active audio device*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1278 int mfw_get_current_audioDevice() |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1279 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1280 TRACE_FUNCTION("mfw_get_current_audioDevice()"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1281 return currAudioDevice; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1282 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1283 #endif //ISAMPLE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1284 #endif |