FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiSounds.c @ 177:2cd1c1abdbb5
mmiSounds.c: basic white space fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 19 Jan 2021 03:44:17 +0000 |
parents | c0052fe355d3 |
children |
comparison
equal
deleted
inserted
replaced
176:6486d17f0f25 | 177:2cd1c1abdbb5 |
---|---|
9 | 9 |
10 ******************************************************************************** | 10 ******************************************************************************** |
11 | 11 |
12 $Project name: Basic MMI | 12 $Project name: Basic MMI |
13 $Project code: BMI (6349) | 13 $Project code: BMI (6349) |
14 $Module: Sounds | 14 $Module: Sounds |
15 $File: MmiSounds.c | 15 $File: MmiSounds.c |
16 $Revision: 1.0 | 16 $Revision: 1.0 |
17 | 17 |
18 $Author: Condat(UK) | 18 $Author: Condat(UK) |
19 $Date: 25/10/00 | 19 $Date: 25/10/00 |
20 | 20 |
21 ******************************************************************************** | 21 ******************************************************************************** |
22 | 22 |
23 Description: | 23 Description: |
24 | 24 |
46 $History: MmiSounds.c | 46 $History: MmiSounds.c |
47 | 47 |
48 Apr 09, 2008 DRT: OMAPS00163752 including changes from OMAPS00151417 x0086292 | 48 Apr 09, 2008 DRT: OMAPS00163752 including changes from OMAPS00151417 x0086292 |
49 Description: Rapid Scrolling of Ringer melodies will lockup phone | 49 Description: Rapid Scrolling of Ringer melodies will lockup phone |
50 Solution: Board froze when sending to many messages to AS task to stop audio, which froze | 50 Solution: Board froze when sending to many messages to AS task to stop audio, which froze |
51 the board whenever there were too many messages in queue. Instead we can check if | 51 the board whenever there were too many messages in queue. Instead we can check if |
52 audio is being played internally before sending stop message. | 52 audio is being played internally before sending stop message. |
53 | 53 |
54 Nov 06, 2007 DRT: OMAPS00151698 x0056422 | 54 Nov 06, 2007 DRT: OMAPS00151698 x0056422 |
55 Description: BMI requirments needed to support Bluetooth AVRCP in Locosto 5.x | 55 Description: BMI requirments needed to support Bluetooth AVRCP in Locosto 5.x |
56 Solution : In mfw_audResume, Pause, Stop functions, if BT is connected, send a callback. | 56 Solution : In mfw_audResume, Pause, Stop functions, if BT is connected, send a callback. |
57 In the case of audio play, handle the callback of START_IND from audio task and | 57 In the case of audio play, handle the callback of START_IND from audio task and |
58 post a callback to BT if expected. | 58 post a callback to BT if expected. |
59 | 59 |
60 August 01, 2007 DR: OMAPS00137399 x0080701 (Bharat) | 60 August 01, 2007 DR: OMAPS00137399 x0080701 (Bharat) |
61 Description: COMBO PLUS: Voice can not be heard in a call when MP3 tone was set | 61 Description: COMBO PLUS: Voice can not be heard in a call when MP3 tone was set |
62 Have an MP3 tone set as Ringer. Make a call to the target. | 62 Have an MP3 tone set as Ringer. Make a call to the target. |
63 Accept the same, no voice can be heard from the calling | 63 Accept the same, no voice can be heard from the calling |
64 device or from the board that received | 64 device or from the board that received |
65 Issue: Timing Synchronization Issue between BMI-ACI-L1. | 65 Issue: Timing Synchronization Issue between BMI-ACI-L1. |
66 BMI calls sAT_A to accept the call. ACI then sends the RING_OFF signal | 66 BMI calls sAT_A to accept the call. ACI then sends the RING_OFF signal |
67 to BMI, wherein BMI does a Ringer Stop. After this, ACI calls Vocoder | 67 to BMI, wherein BMI does a Ringer Stop. After this, ACI calls Vocoder |
68 Enable. However, the Ringer Stop goes to L1 much later after Vocoder | 68 Enable. However, the Ringer Stop goes to L1 much later after Vocoder |
69 Enable reaches L1 due to which the Vocoder eventually gets disabled. | 69 Enable reaches L1 due to which the Vocoder eventually gets disabled. |
70 Solution: The Vocoder Enable Implementation is removed from ACI and | 70 Solution: The Vocoder Enable Implementation is removed from ACI and |
71 shall be called by BMI on receipt of AS_STOP_IND | 71 shall be called by BMI on receipt of AS_STOP_IND |
72 (AS_STOP_IND is the message sent by AS to BMI when BMI invokes | 72 (AS_STOP_IND is the message sent by AS to BMI when BMI invokes |
73 as_stop for ringer_stop). This way, it is assured that the Vocoder | 73 as_stop for ringer_stop). This way, it is assured that the Vocoder |
74 Enable Request reaches L1 only after Ringer Stop is completely done | 74 Enable Request reaches L1 only after Ringer Stop is completely done |
75 | 75 |
76 April 25, 2007 DVT: OMAPS128828 x0061088(Prachi) | 76 April 25, 2007 DVT: OMAPS128828 x0061088(Prachi) |
77 Description: E1 Melody support | 77 Description: E1 Melody support |
78 Solution: Now E1 Melody will be supported through ringer. | 78 Solution: Now E1 Melody will be supported through ringer. |
79 | 79 |
90 Solution: .sms files are populated. | 90 Solution: .sms files are populated. |
91 | 91 |
92 Nov 07, 2006 ER: OMAPS00102732 x0pleela | 92 Nov 07, 2006 ER: OMAPS00102732 x0pleela |
93 Description: FFS Support for Intel Sibley Flash - Intel 256+64 non-ADMUX (PF38F4050M0Y0C0Q) | 93 Description: FFS Support for Intel Sibley Flash - Intel 256+64 non-ADMUX (PF38F4050M0Y0C0Q) |
94 Solution: Closing the opened directory if readdir is not successful and the new code | 94 Solution: Closing the opened directory if readdir is not successful and the new code |
95 is under the compilation flag FF_MMI_RELIANCE_FFS | 95 is under the compilation flag FF_MMI_RELIANCE_FFS |
96 | 96 |
97 25/10/00 Original Condat(UK) BMI version. | 97 25/10/00 Original Condat(UK) BMI version. |
98 | 98 |
99 Sep 26, 2006 DR: OMAPS00096365 x0pleela | 99 Sep 26, 2006 DR: OMAPS00096365 x0pleela |
100 Description: Play All Files option does not play all the midi files second time | 100 Description: Play All Files option does not play all the midi files second time |
157 Fix: Added volume level list linked to up/down keys. | 157 Fix: Added volume level list linked to up/down keys. |
158 User can select the speaker volume among those levels. | 158 User can select the speaker volume among those levels. |
159 Dec 23, 2005 REF: SR13873 x0020906 | 159 Dec 23, 2005 REF: SR13873 x0020906 |
160 Description: Selection configurable ring tones. Added for NEPTUNE | 160 Description: Selection configurable ring tones. Added for NEPTUNE |
161 Fix: When moving cursor in menu, stop old and play new ringtone. | 161 Fix: When moving cursor in menu, stop old and play new ringtone. |
162 When press of back / clear / hang up stop playing the ringtone. | 162 When press of back / clear / hang up stop playing the ringtone. |
163 Initially when the get into list, start playing first ringtone - As cursor is positioned. | 163 Initially when the get into list, start playing first ringtone - As cursor is positioned. |
164 | 164 |
165 $End | 165 $End |
166 | 166 |
167 *******************************************************************************/ | 167 *******************************************************************************/ |
223 #endif | 223 #endif |
224 | 224 |
225 #endif | 225 #endif |
226 | 226 |
227 #include "dspl.h" | 227 #include "dspl.h" |
228 | |
229 | 228 |
230 #include "p_mmi.h" | 229 #include "p_mmi.h" |
231 #include "message.h" | 230 #include "message.h" |
232 #include "prim.h" | 231 #include "prim.h" |
233 #include "aci_cmh.h" | 232 #include "aci_cmh.h" |
329 #define SILENT_SETTING 0 | 328 #define SILENT_SETTING 0 |
330 #define MAX_VOLUME_SETTING 4 | 329 #define MAX_VOLUME_SETTING 4 |
331 /* END - RAVI - 20-1-2005 */ | 330 /* END - RAVI - 20-1-2005 */ |
332 #endif | 331 #endif |
333 | 332 |
334 #define SILENT_VOLUME 0 | 333 #define SILENT_VOLUME 0 |
335 #define LOW_VOLUME 5 | 334 #define LOW_VOLUME 5 |
336 #define MEDIUM_VOLUME 25 | 335 #define MEDIUM_VOLUME 25 |
337 #define HIGH_VOLUME 175 | 336 #define HIGH_VOLUME 175 |
338 #define INCREASE_VOLUME 5 | 337 #define INCREASE_VOLUME 5 |
339 | 338 |
340 | 339 |
341 /* define an invalid tone marker | 340 /* define an invalid tone marker |
342 */ | 341 */ |
343 #define INVALID_TONE -1 | 342 #define INVALID_TONE -1 |
425 T_MFW_HND sounds_Init (T_MFW_HND parent_window); | 424 T_MFW_HND sounds_Init (T_MFW_HND parent_window); |
426 void MelodyList_cb(T_MFW_HND * Parent, ListMenuData * ListData); | 425 void MelodyList_cb(T_MFW_HND * Parent, ListMenuData * ListData); |
427 static void melody_destroy(MfwHnd own_window); | 426 static void melody_destroy(MfwHnd own_window); |
428 static MfwHnd sounds_show_info(T_MFW_HND parent, int str1, int str2, T_VOID_FUNC callback); | 427 static MfwHnd sounds_show_info(T_MFW_HND parent, int str1, int str2, T_VOID_FUNC callback); |
429 | 428 |
430 #define SHOW_CONFIRM 3 | 429 #define SHOW_CONFIRM 3 |
431 #define ACTIVATE_CONFIRM 4 | 430 #define ACTIVATE_CONFIRM 4 |
432 #define DEACTIVATE_CONFIRM 5 | 431 #define DEACTIVATE_CONFIRM 5 |
433 | 432 |
434 /******************************************************************************* | 433 /******************************************************************************* |
435 | 434 |
509 { | 508 { |
510 E_INIT = 0x0801, | 509 E_INIT = 0x0801, |
511 E_BACK, | 510 E_BACK, |
512 E_ABORT, | 511 E_ABORT, |
513 E_EXIT, | 512 E_EXIT, |
514 E_RETURN, | 513 E_RETURN, |
515 E_OK | 514 E_OK |
516 } e_M_events; | 515 } e_M_events; |
517 | 516 |
518 T_MELODY_INFO sounds_data; | 517 T_MELODY_INFO sounds_data; |
519 | |
520 | 518 |
521 | 519 |
522 /******************************************************************************* | 520 /******************************************************************************* |
523 | 521 |
524 Module local variables | 522 Module local variables |
576 &melody_menuArea, | 574 &melody_menuArea, |
577 MNU_LEFT | MNU_LIST | MNU_CUR_LINE, /* centered page menu */ | 575 MNU_LEFT | MNU_LIST | MNU_CUR_LINE, /* centered page menu */ |
578 (U8) -1, /* use default font */ | 576 (U8) -1, /* use default font */ |
579 NULL, /* with these items */ | 577 NULL, /* with these items */ |
580 0, /* number of items */ | 578 0, /* number of items */ |
581 COLOUR_LIST_XX, TxtNull, NULL, MNUATTRSPARE | 579 COLOUR_LIST_XX, TxtNull, NULL, MNUATTRSPARE |
582 | |
583 }; | 580 }; |
584 | 581 |
585 | 582 |
586 /******************************************************************************* | 583 /******************************************************************************* |
587 | 584 |
591 | 588 |
592 /****************************************************************************** | 589 /****************************************************************************** |
593 *$Function: setDefaultSound | 590 *$Function: setDefaultSound |
594 * | 591 * |
595 *$Description: This function will read from Flash during boot up and updated the | 592 *$Description: This function will read from Flash during boot up and updated the |
596 * current ringer structure. So after reset the stored tones will get | 593 * current ringer structure. So after reset the stored tones will get |
597 * played. | 594 * played. |
598 * | 595 * |
599 *$Returns: none | 596 *$Returns: none |
600 * | 597 * |
601 *$Arguments: none | 598 *$Arguments: none |
602 *$Author : RAVI - 23-12-2005 | 599 *$Author : RAVI - 23-12-2005 |
771 } | 768 } |
772 else | 769 else |
773 { | 770 { |
774 scrollSelectMenuItem = FALSE; | 771 scrollSelectMenuItem = FALSE; |
775 } | 772 } |
776 | 773 } |
777 } | |
778 | |
779 | 774 |
780 | 775 |
781 /******************************************************************************* | 776 /******************************************************************************* |
782 | 777 |
783 $Function: IdleScreenVolumeTimer | 778 $Function: IdleScreenVolumeTimer |
1182 { | 1177 { |
1183 //store setting into PCM | 1178 //store setting into PCM |
1184 volumeSetting2Pcm=FALSE; | 1179 volumeSetting2Pcm=FALSE; |
1185 | 1180 |
1186 } | 1181 } |
1187 | |
1188 | 1182 |
1189 } | 1183 } |
1190 | 1184 |
1191 #endif | 1185 #endif |
1192 /******************************************************************************* | 1186 /******************************************************************************* |