FreeCalypso > hg > fc-tourmaline
annotate src/ui/mfw/mfw_mme.c @ 188:92abb46dc1ba
src/ui/mfw/*.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 19 Jan 2021 06:10:27 +0000 |
parents | 7160f0d005d2 |
children | b7421cdea22b |
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" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 #include "mfw_ffs.h" /*OMAPS00098881 x0039928(sumanth)*/ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
146 //xashmic 9 Sep 2006, OMAPS00092732 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 #ifdef FF_MMI_USBMS |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 #include "usb/usb_api.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 #endif |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
150 #include "fchg/fchg_api.h" |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 //x0pleela 01 Apr, 2007 ER: OMAPS00122561 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 #ifdef FF_PHONE_LOCK |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 #include "mfw_sim.h" |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 #endif //FF_PHONE_LOCK |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 /* OMAPS00057367, 8 Dec 2005, nekkare, build fix */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 #if (BOARD == 71) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 #define ISAMPLE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 #define hCommPL _ENTITY_PREFIXED(hCommPL) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 #define hCommACI _ENTITY_PREFIXED(hCommACI) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 #if defined (NEW_FRAME) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 EXTERN T_HANDLE hCommPL; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 EXTERN T_HANDLE hCommACI; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 EXTERN T_VSI_CHANDLE hCommPL; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 EXTERN T_VSI_CHANDLE hCommACI; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 EXTERN MfwHdr * current_mfw_elem; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 /* FLAG DRIVER CALLBACKS */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176 #define MmeFlagRtcAlarm 1 /* rtc alarm */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 #define MmeFlagHdsDetect 2 /* headset detection */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 #define MmeFlagIrdaMsg 4 /* IRDA event */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 U16 mfwMmeDrvFlag = 0; /* hold driver CB flags */ |
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 U8 battLevel = 0; /* battery level */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 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
|
183 static U16 hdsPresence = 0; /* headset presence */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
185 /* backlight control internals */ |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
186 #define LIGHT_LEVEL_OFF 0 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
187 #define LIGHT_LEVEL_LOW 50 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
188 #define LIGHT_LEVEL_MAX 255 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
189 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
190 UBYTE mme_backlight_incall; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
191 static U8 current_backlight_level; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
192 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
193 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
|
194 static MfwTim bltimIdle; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
195 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
|
196 static MfwTim bltimCall; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
197 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
|
198 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
|
199 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 static int mmeCommand (U32 cmd, void *h); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 /* driver callbacks */ |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
203 static void pwrCb (enum fchg_event); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 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
|
205 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
|
206 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 /* Added to remove warning Aug - 11 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 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
|
209 /* End - remove warning Aug - 11 */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 static BOOL mmePrimHandler (USHORT opc, void *data); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 static int pSlot; /* primitive handler slot */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 #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
|
214 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
|
215 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
216 // 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
|
217 #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
|
218 #define HANDHELD "handheld" //0 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
219 #define LOUDSPEAKER "handfree" // 1 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
220 #define HEADSET "headset" // 2 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
221 #define CARKIT "carkit" // 3 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 static UBYTE currAudioDevice = MFW_AUD_HANDHELD; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
224 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
|
225 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
|
226 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
|
227 extern audio_set_device(char* mode); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 // Jun 02, 2006 DRT OMAPS00079213 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 // 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
|
230 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
|
231 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
|
232 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
|
233 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
|
234 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
|
235 ACCESSORY_CALLBACK_PARAM callbackparam ); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
236 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
237 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
238 /* Mar 22, 2007 DVT: OMAPS00121916 x0039928 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
239 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- Start */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 #ifdef FF_MMI_TFLASH |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 void tflash_notify_register(void); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 typedef void (*T_MC_EVENT_CALLBACK)(T_MC_EVENT mcEvent, void *ctx); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
244 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- End */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
245 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 void mfw_audio_set_device(int type); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 //xdeepadh, nekkareb - OMAPS00076996: 05 May 2006 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 //Array to retrieve the profile name |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 #ifdef MMI_LITE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 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
|
251 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 //x0pleela 29 May, 2007 DR: OMAPS00132483 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 #ifdef FF_PHONE_LOCK |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
255 EXTERN int mfw_get_Phlock_status(void); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
256 #endif // FF_PHONE_LOCK |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
257 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
258 /* Mar 22, 2007 DVT: OMAPS00121916 x0039928 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
259 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- Start */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
260 #ifdef FF_MMI_TFLASH |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
261 void tflash_cb(T_MC_EVENT mcEvent, void *ctx) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
262 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
263 PALLOC(tflash_mmi_ind, TFLASH_MMI_IND); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
264 tflash_mmi_ind->mc_status = mcEvent; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
265 PSENDX(ACI,tflash_mmi_ind); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
266 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
267 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
268 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- End */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
269 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
270 //xashmic 9 Sep 2006, OMAPS00092732 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 #ifdef FF_MMI_USBMS |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
272 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
274 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
275 | STATE : code ROUTINE : usbms_cb | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
277 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
278 PURPOSE : Posts the USB events to the MMI task |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
279 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 void usbms_cb (T_USB_EVENT usbEvent, void *ctx) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
284 PALLOC(usbms_mmi_ind,USBMS_MMI_IND); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
285 usbms_mmi_ind->usb_status = (U8)usbEvent; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
286 PSENDX(ACI,usbms_mmi_ind); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
290 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
291 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
292 /* |
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 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
295 | STATE : code ROUTINE : mfw_usbms_init | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
296 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
297 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
298 PURPOSE : Registers a callback for USB connect/disconnect events |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
299 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
300 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
301 void mfw_usbms_init(void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
302 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
303 T_USB_RETURN ret; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
304 TRACE_FUNCTION("mfw_usbms_init"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
305 ret = usb_register_notifcation( (T_USB_EVENT_CALLBACK)usbms_cb,NULL); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
306 switch(ret) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
307 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
308 case USB_NOT_SUPPORTED : |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
309 TRACE_ERROR("USB registeration unsuccessful- Not supported"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
310 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
311 case USB_MEMORY_ERR: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
312 TRACE_ERROR("USB registeration unsuccessful - Memeory error"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
313 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
314 case USB_INTERNAL_ERR: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
315 TRACE_ERROR("USB registeration unsuccessful - Internal error"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
316 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
317 case USB_OK: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
318 TRACE_EVENT("USB registeration successful"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
319 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
320 } |
3
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 |
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 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
326 | STATE : code ROUTINE : mfw_usbms_enum_control | |
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 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
329 PURPOSE : Continues or abandons the enumeration based on user selection |
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 void mfw_usbms_enum_control(T_MFW_USB_ENUM_CONTROL usbms_enum_status, T_MFW_USB_ENUM_TYPE usb_enum_type) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
333 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
334 T_USB_ENUM_INFO enumInfo; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
335 T_USB_RETURN ret; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
336 TRACE_FUNCTION("mfw_usbms_enum_control"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
337 switch(usb_enum_type) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
338 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
339 case MFW_USB_TYPE_MS: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
340 enumInfo.info=USB_MS; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
341 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
342 case MFW_USB_TYPE_AT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
343 enumInfo.info=USB_AT; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
344 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
345 case MFW_USB_TYPE_TRACE: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
346 enumInfo.info=USB_TRACE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
347 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
348 case MFW_USB_TYPE_AT_MS://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
|
349 enumInfo.info=USB_AT|USB_MS; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
350 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
351 case MFW_USB_TYPE_AT_TRACE://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
|
352 enumInfo.info=USB_AT|USB_TRACE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
353 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
354 case MFW_USB_TYPE_MS_TRACE://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
|
355 enumInfo.info=USB_MS|USB_TRACE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
356 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
357 case MFW_USB_TYPE_ALL: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
358 enumInfo.info=USB_MS| USB_AT|USB_TRACE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
359 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
360 default: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
361 TRACE_ERROR("mfw_usbms_enum_control():Invalid type"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
362 return; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
363 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
364 TRACE_EVENT_P1("Ports %x",enumInfo.info); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
365 switch(usbms_enum_status) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
366 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
367 case MFW_USB_ENUM: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
368 ret=usb_enum_control(USB_ENUM,&enumInfo); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
369 TRACE_EVENT_P1("mfw_usbms_enum_control:ret:%d", ret); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
370 switch(ret) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
371 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
372 case USB_NOT_SUPPORTED : |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
373 TRACE_ERROR("USB enumeration unsuccessful- Not supported"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
374 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
375 case USB_MEMORY_ERR: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
376 TRACE_ERROR("USB enumeration unsuccessful - Memeory error"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
377 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
378 case USB_INTERNAL_ERR: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
379 TRACE_ERROR("USB enumeration unsuccessful - Internal error"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
380 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
381 case USB_OK: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
382 TRACE_EVENT("USB enumeration successful"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
383 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
384 default: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
385 TRACE_ERROR("USB enumeration unsuccessful - Invalid return"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
386 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
387 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
388 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
389 case MFW_USB_NO_ENUM: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
390 ret=usb_enum_control(USB_NO_ENUM,&enumInfo); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
391 switch(ret) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
392 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
393 case USB_NOT_SUPPORTED : |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
394 TRACE_ERROR("USB no enumeration unsuccessful- Not supported"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
395 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
396 case USB_MEMORY_ERR: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
397 TRACE_ERROR("USB no enumeration unsuccessful - Memeory error"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
398 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
399 case USB_INTERNAL_ERR: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
400 TRACE_ERROR("USB no enumeration unsuccessful - Internal error"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
401 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
402 case USB_OK: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
403 TRACE_EVENT("USB no enumeration successful"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
404 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
405 default: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
406 TRACE_ERROR("USB enumeration successful - Invalid return"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
407 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
408 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
409 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
410 } |
3
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 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
413 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
414 |
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 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
418 | STATE : code ROUTINE : mmeInit | |
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 PURPOSE : initialize equipment handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
421 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
422 MfwRes mmeInit (void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
423 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
424 // 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
|
425 // 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
|
426 // argument to audio_init |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
427 #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
|
428 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
|
429 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
430 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
|
431 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
|
432 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
|
433 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
|
434 #endif |
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 mfwCommand[MfwTypMme] = (MfwCb) mmeCommand; |
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 mfwMmeDrvFlag = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
439 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
440 battLevel = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
441 battState = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
442 hdsPresence = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
443 |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
444 /* init FreeCalypso backlight control infrastructure */ |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
445 bltimIdle.handler = bl_timeout_idle; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
446 bltimIdle.time = 30000; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
447 bltimIdleH.data = &bltimIdle; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
448 bltimIdleH.type = MfwTypTim; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
449 bltimCall.handler = bl_timeout_call; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
450 bltimCall.time = 10000; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
451 bltimCallH.data = &bltimCall; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
452 bltimCallH.type = MfwTypTim; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
453 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
454 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
|
455 rx_Init(rxCb); //fieldstrength driver |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
456 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
|
457 // 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
|
458 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
459 audio_Init(audio_device_config); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
460 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
461 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
|
462 #endif |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
463 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
464 mmeRxInfo(5,0); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
465 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
466 /* install prim handler */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
467 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
|
468 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
469 //xashmic 9 Sep 2006, OMAPS00092732 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
470 //Registers a callback for event handling |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
471 #ifdef FF_MMI_USBMS |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
472 mfw_usbms_init(); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
473 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
474 /* Mar 22, 2007 DVT: OMAPS00121916 x0039928 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
475 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- Start */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
476 #ifdef FF_MMI_TFLASH |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
477 tflash_notify_register(); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
478 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
479 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- End */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
480 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
481 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
482 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
483 return MfwResOk; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
484 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
485 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
486 /* Mar 22, 2007 DVT: OMAPS00121916 x0039928 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
487 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- Start */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
488 #ifdef FF_MMI_TFLASH |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
489 void tflash_notify_register(void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
490 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
491 T_RV_RET result; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
492 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
493 result = (T_RV_RET)mc_register_notifcation((T_MC_EVENT_CALLBACK)tflash_cb, NULL); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
494 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
495 if(result == RV_OK) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
496 TRACE_EVENT("TFLASH callback registration successful"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
497 else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
498 TRACE_ERROR("TFLASH callback registration failed"); |
3
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 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
501 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- End */ |
3
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 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
504 // Jun 02, 2006 DRT OMAPS00079213 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
505 // 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
|
506 // 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
|
507 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
508 void mfw_hook_unregister(void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
509 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
510 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
|
511 hook_unregister(); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
512 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
513 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
514 void mfw_hook_register(void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
515 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
516 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
|
517 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
518 TRACE_FUNCTION("mfw hook register"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
519 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
520 hook_device.callbackVal = NULL; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
521 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
|
522 hook_register(hook_device); |
3
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 #endif |
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 /* |
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 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
531 | STATE : code ROUTINE : mmeExit | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
532 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
533 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
534 PURPOSE : finalize equipment handler |
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 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
537 MfwRes mmeExit (void) |
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 aci_delete(pSlot); /* remove prim handler */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
540 mfwCommand[MfwTypMme] = 0; |
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 return MfwResOk; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
543 } |
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 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
547 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
548 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
549 | STATE : code ROUTINE : mmeCreate | |
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 PURPOSE : create equipment control |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
553 |
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 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
556 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
|
557 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
558 MfwHdr *hdr = (MfwHdr *) mfwAlloc(sizeof(MfwHdr)); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
559 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
|
560 MfwHdr *insert_status =0; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
561 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
562 if (!hdr || !mme) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
563 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
564 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
|
565 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
566 if(hdr) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
567 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
|
568 if(mme) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
569 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
|
570 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
571 return 0; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
572 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
573 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
574 mme->map = e; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
575 mme->handler = f; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
576 mme->value = 0; |
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 hdr->data = mme; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
579 hdr->type = MfwTypMme; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
580 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
581 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
|
582 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
583 if(!insert_status) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
584 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
585 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
|
586 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
|
587 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
|
588 return 0; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
589 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
590 return insert_status; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
591 } |
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 /* |
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 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
597 | STATE : code ROUTINE : mmeDelete | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
598 +--------------------------------------------------------------------+ |
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 PURPOSE : delete equipment control |
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 */ |
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 MfwRes mmeDelete (MfwHnd h) |
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 MfwRes res; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
607 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
608 if (!h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
609 return MfwResIllHnd; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
610 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
611 res = (mfwRemove(h)) ? MfwResOk : MfwResIllHnd; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
612 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
613 mfwFree(((MfwHdr *) h)->data,sizeof(MfwMme)); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
614 mfwFree(h,sizeof(MfwHdr)); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
615 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
616 return res; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
617 } |
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 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
622 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
623 | STATE : code ROUTINE : mmeHdsInit | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
624 +--------------------------------------------------------------------+ |
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 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
|
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 MfwRes mmeHdsInit (void (*hds_init) ()) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
631 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
632 mfwMmeDrvFlag &= ~MmeFlagHdsDetect; |
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 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
|
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 /* |
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 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
641 | STATE : code ROUTINE : mmeRtcInit | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
642 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
643 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
644 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
|
645 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
646 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
|
647 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
648 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
649 MfwRes mmeRtcInit (USHORT drvHandle, UBYTE *info) |
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 mfwMmeDrvFlag &= ~MmeFlagRtcAlarm; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
652 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
653 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
|
654 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
655 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
656 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
657 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
658 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
659 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
660 | STATE : code ROUTINE : mmeBackLight | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
661 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
662 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
663 PURPOSE : set display backlight |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
664 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
665 */ |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
666 static void mmeBackLight (U8 level) |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
667 { |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
668 if (level != current_backlight_level) { |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
669 light_SetStatus(LIGHT_DEVICE_BACKLIGHT, level); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
670 current_backlight_level = level; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
671 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
672 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
673 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
674 /* new FreeCalypso backlight control functions */ |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
675 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
676 void mme_backlightOnEvent (void) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
677 { |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
678 timStop(&bltimIdleH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
679 timStop(&bltimCallH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
680 mmeBackLight(LIGHT_LEVEL_MAX); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
681 if (mme_backlight_incall) |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
682 timStart(&bltimCallH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
683 else |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
684 timStart(&bltimIdleH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
685 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
686 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
687 int mme_backlightKeyPress (void) |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
688 { |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
689 int ret; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
690 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
691 ret = (current_backlight_level == LIGHT_LEVEL_OFF); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
692 timStop(&bltimIdleH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
693 timStop(&bltimCallH); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
694 mmeBackLight(LIGHT_LEVEL_MAX); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
695 return ret; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
696 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
697 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
698 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
|
699 { |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
700 mmeBackLight(LIGHT_LEVEL_OFF); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
701 } |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
702 |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
703 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
|
704 { |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
705 mmeBackLight(LIGHT_LEVEL_LOW); |
3
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 |
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 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
710 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
711 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
712 | STATE : code ROUTINE : mmeAudioTone | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
713 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
714 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
715 PURPOSE : configure the buzzer |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
716 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
717 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
718 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
719 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
|
720 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
721 if (toneStat EQ TONE_SWT_OFF) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
722 #ifdef FF_MMI_RINGTONE /* Stop MSL Play */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
723 audio_StopSoundbyID(AUDIO_SPEAKER, CALLTONE_SELECT); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
724 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
725 audio_StopSoundbyID(AUDIO_SPEAKER,callTone); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
726 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
727 else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
728 #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
|
729 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
|
730 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
731 audio_PlaySoundID(AUDIO_SPEAKER,callTone,volume,toneStat); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
732 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
733 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
734 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
735 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
736 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
737 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
738 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
739 | STATE : code ROUTINE : mmeSetVolume | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
740 +--------------------------------------------------------------------+ |
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 PURPOSE : configure mic and speaker volume |
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 MfwRes mmeSetVolume (U16 audioIn, U16 audioOut) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
747 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
748 if (audioIn > 255) audioIn = 255; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
749 if (audioOut > 255) audioOut = 255; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
750 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
751 audio_SetAmplf(AUDIO_MICROPHONE,(U8) audioIn); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
752 audio_SetAmplf(AUDIO_SPEAKER,(U8) audioOut); |
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 return MfwResOk; |
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 |
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 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
759 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
760 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
761 | STATE : code ROUTINE : mmeRxInfo | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
762 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
763 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
764 PURPOSE : configure signal quality information: |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
765 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
|
766 rx level with n intervalls. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
767 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
|
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 void mmeRxInfo (U8 intervalls, U16 level) |
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 rx_DCB_Type rx_DCB; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
774 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
775 rx_DCB.Steps = intervalls; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
776 rx_SetConfig(&rx_DCB); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
777 } |
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 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
782 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
783 | STATE : code ROUTINE : mmeBattInfo | |
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 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
786 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
|
787 |
3
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 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
791 #if 0 /* removed in FreeCalypso */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
792 void mmeBattInfo ( U8 intervalls, U16 level) |
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 pwr_DCB_Type pwr_DCB; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
795 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
796 if (level > 255) level = 255; |
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 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
|
799 pwr_DCB.RangeMax = 100; /* 100 Percent */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
800 pwr_DCB.Steps = intervalls; /* n Steps */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
801 pwr_SetConfig(&pwr_DCB); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
802 } |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
803 #endif |
3
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 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
809 | STATE : code ROUTINE : sigExec | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
810 +--------------------------------------------------------------------+ |
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 PURPOSE : execute equipment signal |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
813 |
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 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
|
817 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
818 MfwMme *ec; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
819 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
820 while (curElem) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
821 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
822 if (curElem->type == MfwTypMme) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
823 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
824 ec = curElem->data; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
825 if (ec->map & evt) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
826 { /* events match */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
827 ec->value = val; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
828 if (ec->handler) /* handler valid */ |
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 // PATCH LE 06.06.00 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
831 // store current mfw elem |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
832 current_mfw_elem = curElem; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
833 // END PATCH LE 06.06.00 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
834 if ((*(ec->handler))(evt,ec)) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
835 return 1; /* event consumed */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
836 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
837 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
838 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
839 curElem = curElem->next; |
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 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
842 return 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
843 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
844 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
845 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
846 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
847 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
848 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
849 | STATE : code ROUTINE : mmeSignal | |
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 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
852 PURPOSE : equipment event (called by driver/PEI) |
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 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
855 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
856 void mmeSignal (U32 evt, U32 value) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
857 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
858 UBYTE temp=0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
859 #ifndef FF_POWER_MANAGEMENT |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
860 temp = dspl_Enable(0); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
861 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
862 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
863 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
|
864 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
|
865 temp = dspl_Enable(0); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
866 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
867 if (mfwSignallingMethod EQ 0) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
868 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
869 if (mfwFocus) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
870 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
|
871 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
872 #ifndef FF_POWER_MANAGEMENT |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
873 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
874 #else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
875 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
876 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
|
877 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
|
878 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
879 #endif |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
880 return; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
881 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
882 if (mfwRoot) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
883 sigExec(mfwRoot,evt,value); |
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 else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
886 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
887 MfwHdr * h = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
888 |
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 * Focus set, then start here |
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 (mfwFocus) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
893 h = mfwFocus; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
894 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
895 * Focus not set, then start root |
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 if (!h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
898 h = mfwRoot; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
899 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
900 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
901 * No elements available, return |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
902 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
903 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
904 while (h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
905 |
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 { |
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 * Signal consumed, then return |
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 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
|
912 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
913 #ifndef FF_POWER_MANAGEMENT |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
914 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
915 #else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
916 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
917 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
|
918 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
|
919 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
920 #endif |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
921 return; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
922 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
923 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
924 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
925 * All windows tried inclusive root |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
926 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
927 if (h == mfwRoot) |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
928 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
929 #ifndef FF_POWER_MANAGEMENT |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
930 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
931 #else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
932 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
933 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
|
934 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
|
935 dspl_Enable(temp); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
936 #endif |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
937 return; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
938 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
939 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
940 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
941 * get parent window |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
942 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
943 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
|
944 if(h) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
945 h = ((MfwWin * )(h->data))->elems; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
946 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
947 sigExec (mfwRoot, evt, value); |
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 #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
|
951 dspl_Enable(temp); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
952 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
953 /*OMAPS00098881 (removing power variant) a0393213(Prabakar) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
954 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
|
955 if(FFS_flashData.refresh == 1) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
956 dspl_Enable(temp); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
957 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
958 return; |
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 |
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 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
963 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
964 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
965 | STATE : code ROUTINE : mmeCommand | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
966 +--------------------------------------------------------------------+ |
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 PURPOSE : handle mfw windows command |
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 static int mmeCommand (U32 cmd, void *h) |
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 switch (cmd) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
975 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
976 case MfwCmdDelete: /* delete me */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
977 if (!h) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
978 return 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
979 mmeDelete(h); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
980 return 1; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
981 default: |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
982 break; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
983 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
984 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
985 return 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
986 } |
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 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
989 /* |
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 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
992 | STATE : code ROUTINE : rAT_PercentSQ | |
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 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
|
996 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
997 */ |
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 void rAT_PercentSQ (BYTE val) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1000 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1001 TRACE_FUNCTION("rAT_PercentSQ()"); |
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 //ES!! no longer needed mmeSignal(MfwMmeSignal,val); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1004 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1005 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1006 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1007 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1008 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1009 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1010 | STATE : code ROUTINE : rAT_PercentBC | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1011 +--------------------------------------------------------------------+ |
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 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
|
1014 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1015 */ |
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 void rAT_PercentBC (BYTE val) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1018 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1019 TRACE_FUNCTION("rAT_PercentBC()"); |
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 //ES!! no longer needed mmeSignal(MfwMmeBattery,val); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1022 } |
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 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1027 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1028 | STATE : code ROUTINE : mmePrimHandler | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1029 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1030 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1031 PURPOSE : MME primitive handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1032 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1033 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1034 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1035 static BOOL mmePrimHandler (USHORT opc, void *data) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1036 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1037 U8 level; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1038 U8 state; |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1039 // 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
|
1040 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1041 U8 hdsData; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1042 U8 cktData; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1043 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1044 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1045 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1046 // TRACE_FUNCTION ("mmePrimHandler()"); |
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 switch (opc) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1049 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1050 case MMI_RXLEV_IND: |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1051 level = ((T_MMI_RXLEV_IND *) data)->rxlev; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1052 mmeSignal(MfwMmeSignal,level); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1053 return TRUE; /* processed by MME, delete */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1054 case MMI_BATTERY_IND: |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1055 level = ((T_MMI_BATTERY_IND *) data)->volt; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1056 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
|
1057 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
|
1058 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1059 battLevel = level; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1060 mmeSignal(MfwMmeBattery,level); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1061 } |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1062 /* 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
|
1063 if (state >= BATT_EVENT_CHARGER_PLUG) |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1064 { |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1065 mmeSignal(MfwMmeBaState,state); |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1066 } |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1067 else if (battState != state) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1068 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1069 battState = state; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1070 mmeSignal(MfwMmeBaState,state); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1071 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1072 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
|
1073 // 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
|
1074 // 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
|
1075 // 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
|
1076 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1077 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
|
1078 TRACE_EVENT("MMI_HEADSET_IND"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1079 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
|
1080 mmeSignal(MfwMmeHeadset,hdsData); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1081 return TRUE; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1082 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
|
1083 TRACE_EVENT("MMI_CARKIT_IND"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1084 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
|
1085 mmeSignal(MfwMmeCarkit, cktData); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1086 return TRUE; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1087 #endif |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1088 //xashmic 9 Sep 2006, OMAPS00092732 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1089 //Handler for USB connect or disconnect events |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1090 #ifdef FF_MMI_USBMS |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1091 case USBMS_MMI_IND: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1092 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1093 T_USBMS_MMI_IND *usbms_mmi_ind=(T_USBMS_MMI_IND *) data; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1094 switch(usbms_mmi_ind->usb_status) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1095 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1096 case USB_CABLE_CONNECT_EVENT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1097 TRACE_EVENT("USB_CABLE_CONNECT_EVENT"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1098 //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
|
1099 //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
|
1100 //To enumerate based on user selection |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1101 if( ( getBootUpState() > 0 ) && ( getUSBMSFlags() & MFW_USBMS_POPUP_ENABLE)) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1102 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1103 mmeSignal(MfwMmeUSBMS , MFW_USB_CABLE_CONNECT_EVENT); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1104 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1105 //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
|
1106 //To Enumerate automatically |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1107 else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1108 { |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1109 //x0pleela 01 Apr, 2007 ER: OMAPS00122561 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1110 #ifdef FF_PHONE_LOCK |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1111 //x0pleela 29 May, 2007 DR: OMAPS00132483 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1112 //Check the phone lock status |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1113 if( mfw_get_Phlock_status() ) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1114 mmeSignal(MfwMmeUSBMS , MFW_USB_CABLE_CONNECT_EVENT); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1115 else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1116 #endif //FF_PHONE_LOCK |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1117 mfw_usbms_enum_control(MFW_USB_ENUM , MFW_USB_TYPE_ALL); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1118 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1119 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1120 case USB_CABLE_DISCONNECT_EVENT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1121 TRACE_EVENT("USB_CABLE_DISCONNECT_EVENT"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1122 mmeSignal(MfwMmeUSBMS , MFW_USB_CABLE_DISCONNECT_EVENT); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1123 mfw_usbms_enum_control(MFW_USB_NO_ENUM , MFW_USB_TYPE_ALL); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1124 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1125 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1126 PFREE(usbms_mmi_ind); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1127 return TRUE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1128 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1129 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1130 /* Mar 22, 2007 DVT: OMAPS00121916 x0039928 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1131 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- Start */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1132 #ifdef FF_MMI_TFLASH |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1133 case TFLASH_MMI_IND: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1134 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1135 T_TFLASH_MMI_IND *tflash_mmi_ind=(T_TFLASH_MMI_IND *) data; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1136 switch(tflash_mmi_ind->mc_status) |
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 case MC_INSERT_EVENT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1139 TRACE_EVENT("TFLASH card inserted"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1140 mmeSignal(MfwMmeUSBMS , MFW_TFLASH_INSERTED_EVENT); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1141 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1142 case MC_REMOVE_EVENT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1143 TRACE_EVENT("TFLASH card removed"); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1144 mmeSignal(MfwMmeUSBMS , MFW_TFLASH_REMOVED_EVENT); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1145 break; |
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 PFREE(tflash_mmi_ind); |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1148 return TRUE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1149 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1150 #endif |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1151 /* Sep 26, 2007 Configuration of Drives for SBuild 2.3.0 Migration x0080701 (Bharat) -- End */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1152 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1153 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1154 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1155 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1156 return FALSE; /* not processed, forward */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1157 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1158 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1159 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1160 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1161 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1162 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1163 | STATE : code ROUTINE : mmeFlagHandler | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1164 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1165 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1166 PURPOSE : MME driver flag handler |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1167 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1168 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1169 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1170 void mmeFlagHandler (void) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1171 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1172 TRACE_FUNCTION ("mmeFlagHandler()"); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1173 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1174 while (mfwMmeDrvFlag) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1175 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1176 if (mfwMmeDrvFlag & MmeFlagRtcAlarm) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1177 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1178 mfwMmeDrvFlag &= ~MmeFlagRtcAlarm; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1179 mmeSignal(MfwMmeRtcAlarm,0); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1180 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1181 else if (mfwMmeDrvFlag & MmeFlagHdsDetect) |
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 mfwMmeDrvFlag &= ~MmeFlagHdsDetect; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1184 mmeSignal(MfwMmeHdsDetect,hdsPresence); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1185 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1186 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
|
1187 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1188 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1189 else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1190 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1191 mfwMmeDrvFlag = 0; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1192 } |
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 |
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 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1198 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1199 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1200 | STATE : code ROUTINE : pwr_callback | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1201 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1202 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1203 PURPOSE : Called by battery driver |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1204 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1205 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1206 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1207 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
|
1208 { |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1209 struct fchg_user_state fchg_data; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1210 PALLOC(battery_ind, MMI_BATTERY_IND); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1211 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1212 fchg_get_current_state(&fchg_data); |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1213 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
|
1214 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
|
1215 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
|
1216 } else { |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1217 switch (fchg_data.chg_state) { |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1218 case FCHG_STATE_CI_CHARGING: |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1219 case FCHG_STATE_CV_CHARGING: |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1220 battery_ind->temp = BATT_STATE_CHARGING; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1221 break; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1222 case FCHG_STATE_READY_TO_RECHARGE: |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1223 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
|
1224 break; |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1225 default: |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1226 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
|
1227 } |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
1228 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1229 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1230 PSENDX(ACI,battery_ind); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1231 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1232 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1233 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1234 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1235 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1236 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1237 | STATE : code ROUTINE : rx_callback | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1238 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1239 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1240 PURPOSE : Called by fieldstrength driver |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1241 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1242 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1243 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1244 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
|
1245 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1246 rx_Status_Type *para; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1247 PALLOC(rxlevel_ind,MMI_RXLEV_IND); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1248 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1249 para = (rx_Status_Type *) signal_params->UserData; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1250 rxlevel_ind->rxlev = para->actLevel; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1251 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1252 PSENDX(ACI,rxlevel_ind); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1253 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1254 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1255 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1256 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1257 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1258 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1259 | STATE : code ROUTINE : rtcCb | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1260 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1261 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1262 PURPOSE : alarm callback from RTC |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1263 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1264 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1265 /*a0393213(R.Prabakar) lint warnings removal |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1266 warning:symbol(rtcCb) not referenced |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1267 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
|
1268 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
|
1269 #ifdef MMI_LINT_WARNING_REMOVAL |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1270 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
|
1271 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1272 mfwMmeDrvFlag |= MmeFlagRtcAlarm; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1273 vsi_c_awake(VSI_CALLER_SINGLE); |
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 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1276 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1277 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1278 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1279 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1280 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1281 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1282 | STATE : code ROUTINE : hdsCb | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1283 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1284 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1285 PURPOSE : callback from headset detection |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1286 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1287 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1288 #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
|
1289 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
|
1290 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1291 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
|
1292 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1293 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
|
1294 mfwMmeDrvFlag |= MmeFlagHdsDetect; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1295 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
|
1296 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1297 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1298 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1299 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1300 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1301 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1302 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1303 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1304 | STATE : code ROUTINE : mfw_set_stereo_path | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1305 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1306 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1307 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
|
1308 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1309 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1310 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1311 void mfw_set_stereo_path(int device) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1312 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1313 TRACE_FUNCTION("mfw_set_stereo_path()"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1314 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1315 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
|
1316 switch(device) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1317 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1318 case MFW_AUD_HEADSET: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1319 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
|
1320 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1321 case MFW_AUD_HANDHELD: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1322 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
|
1323 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1324 case MFW_AUD_CARKIT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1325 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
|
1326 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1327 case MFW_AUD_LOUDSPEAKER: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1328 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
|
1329 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1330 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1331 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1332 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1333 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1334 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1335 | STATE : code ROUTINE : mfw_unset_stereo_path | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1336 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1337 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1338 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
|
1339 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1340 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1341 void mfw_unset_stereo_path(int device) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1342 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1343 TRACE_FUNCTION("mfw_unset_stereo_path()"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1344 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1345 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
|
1346 switch(device) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1347 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1348 case MFW_AUD_HEADSET: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1349 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
|
1350 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1351 case MFW_AUD_HANDHELD: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1352 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
|
1353 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1354 case MFW_AUD_CARKIT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1355 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
|
1356 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1357 case MFW_AUD_LOUDSPEAKER: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1358 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
|
1359 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1360 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1361 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1362 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1363 // Jun 02, 2006 DRT OMAPS00079213 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1364 // 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
|
1365 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
|
1366 ACCESSORY_CALLBACK_PARAM callbackparam ) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1367 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1368 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1369 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
|
1370 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
|
1371 PSENDX(ACI,hdsData); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1372 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1373 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1374 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1375 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1376 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1377 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1378 | STATE : code ROUTINE : mfw_audio_headSet_indication | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1379 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1380 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1381 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
|
1382 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1383 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1384 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
|
1385 ACCESSORY_CALLBACK_PARAM callbackparam ) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1386 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1387 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1388 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
|
1389 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
|
1390 PSENDX(ACI,hdsData); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1391 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1392 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1393 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1394 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1395 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1396 | STATE : code ROUTINE : mfw_audio_headSet_indication | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1397 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1398 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1399 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
|
1400 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1401 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1402 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
|
1403 ACCESSORY_CALLBACK_PARAM callback_param ) |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1404 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1405 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
|
1406 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
|
1407 PSENDX(ACI,cktData); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1408 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1409 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1410 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1411 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1412 | STATE : code ROUTINE : mfw_audio_headSet_indication | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1413 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1414 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1415 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
|
1416 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
|
1417 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1418 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1419 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
|
1420 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1421 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
|
1422 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1423 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
|
1424 switch(notify) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1425 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1426 case AUDIO_HEADSET_PLUGGED: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1427 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
|
1428 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1429 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
|
1430 headsetInserted = TRUE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1431 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1432 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1433 case AUDIO_HEADSET_UNPLUGGED: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1434 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
|
1435 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1436 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
|
1437 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1438 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1439 headsetInserted = FALSE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1440 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1441 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
|
1442 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1443 case AUDIO_CARKIT_PLUGGED: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1444 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
|
1445 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1446 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
|
1447 carkitInserted = TRUE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1448 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1449 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1450 case AUDIO_CARKIT_UNPLUGGED: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1451 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
|
1452 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1453 if(headsetInserted == TRUE) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1454 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1455 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
|
1456 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1457 else |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1458 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1459 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
|
1460 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1461 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1462 carkitInserted = FALSE; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1463 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1464 default: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1465 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1466 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1467 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1468 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1469 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1470 | PROJECT : MMI-Framework (8417) MODULE : MFW_MME | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1471 | STATE : code ROUTINE : mfw_audio_headSet_indication | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1472 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1473 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1474 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
|
1475 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
|
1476 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
|
1477 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
|
1478 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1479 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1480 void mfw_audio_set_device(int type) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1481 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1482 /*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
|
1483 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
|
1484 //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
|
1485 TRACE_FUNCTION("mfw_audio_set_device()"); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1486 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1487 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
|
1488 switch(type) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1489 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1490 case MFW_AUD_HANDHELD: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1491 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
|
1492 currAudioDevice = MFW_AUD_HANDHELD; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1493 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1494 case MFW_AUD_LOUDSPEAKER: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1495 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
|
1496 currAudioDevice = MFW_AUD_LOUDSPEAKER; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1497 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1498 case MFW_AUD_HEADSET: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1499 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
|
1500 currAudioDevice = MFW_AUD_HEADSET; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1501 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1502 case MFW_AUD_CARKIT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1503 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
|
1504 currAudioDevice = MFW_AUD_CARKIT; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1505 default: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1506 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1507 } |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1508 if(TRUE == mfwAudPlay) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1509 mfw_set_stereo_path(currAudioDevice); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1510 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1511 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1512 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1513 #ifdef ISAMPLE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1514 /* OMAPS00057367, 3 Dec 2005, nekkareb : start */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1515 /* 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
|
1516 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
|
1517 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
|
1518 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
|
1519 /*returns the current active audio device*/ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1520 int mfw_get_current_audioDevice() |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1521 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1522 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
|
1523 INT8 speaker; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1524 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1525 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
|
1526 read.data = &speaker; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1527 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1528 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
|
1529 audio_full_access_read(&read ); |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1530 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1531 switch(speaker) |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1532 { |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1533 case AUDIO_SPEAKER_NONE: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1534 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
|
1535 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
|
1536 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1537 case AUDIO_SPEAKER_HANDHELD: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1538 currAudioDevice = MFW_AUD_HANDHELD; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1539 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1540 case AUDIO_SPEAKER_HEADSET: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1541 currAudioDevice = MFW_AUD_HEADSET; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1542 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1543 case AUDIO_SPEAKER_AUX: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1544 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
|
1545 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1546 case AUDIO_SPEAKER_CARKIT: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1547 currAudioDevice = MFW_AUD_CARKIT; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1548 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1549 case AUDIO_SPEAKER_HANDFREE: |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1550 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
|
1551 currAudioDevice = MFW_AUD_LOUDSPEAKER; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1552 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1553 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
|
1554 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
|
1555 break; |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1556 } |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1557 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1558 return currAudioDevice; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1559 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1560 /* OMAPS00057367, 3 Dec 2005, nekkareb : end */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1561 #else |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1562 /*returns the current active audio device*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1563 int mfw_get_current_audioDevice() |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1564 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
1565 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
|
1566 return currAudioDevice; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1567 } |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1568 #endif //ISAMPLE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1569 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1570 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1571 |