rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of MediaTek Inc. (C) 2005 |
| 8 | * |
| 9 | * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 10 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 11 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 12 | * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 13 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 14 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 15 | * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 16 | * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 17 | * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 18 | * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 19 | * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 20 | * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 21 | * |
| 22 | * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 23 | * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 24 | * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 25 | * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 26 | * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 27 | * |
| 28 | * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 29 | * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 30 | * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 31 | * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 32 | * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 33 | * |
| 34 | *****************************************************************************/ |
| 35 | |
| 36 | /***************************************************************************** |
| 37 | * |
| 38 | * Filename: |
| 39 | * --------- |
| 40 | * RESOURCE_AUDIO.C |
| 41 | * |
| 42 | * Project: |
| 43 | * -------- |
| 44 | * MAUI |
| 45 | * |
| 46 | * Description: |
| 47 | * ------------ |
| 48 | * This file is intends for audio resource database. |
| 49 | * |
| 50 | * Author: |
| 51 | * ------- |
| 52 | * ------- |
| 53 | * |
| 54 | *============================================================================ |
| 55 | * HISTORY |
| 56 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 57 | *------------------------------------------------------------------------------ |
| 58 | *------------------------------------------------------------------------------ |
| 59 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 60 | *============================================================================ |
| 61 | ****************************************************************************/ |
| 62 | /* |
| 63 | ** Includes |
| 64 | */ |
| 65 | //#include "kal_release.h" |
| 66 | |
| 67 | #ifndef __L1_STANDALONE__ |
| 68 | |
| 69 | #ifdef WIN32 |
| 70 | #define __align(X) |
| 71 | #endif |
| 72 | |
| 73 | //#include "device.h" |
| 74 | #include "resource_audio.h" |
| 75 | //#include "MMI_features.h" |
| 76 | |
| 77 | static const device_tones_struct dtmf0[] = { { 941, 1336, 0, 0, 0 } }; |
| 78 | static const device_tones_struct dtmf1[] = { { 697, 1209, 0, 0, 0 } }; |
| 79 | static const device_tones_struct dtmf2[] = { { 697, 1336, 0, 0, 0 } }; |
| 80 | static const device_tones_struct dtmf3[] = { { 697, 1477, 0, 0, 0 } }; |
| 81 | static const device_tones_struct dtmf4[] = { { 770, 1209, 0, 0, 0 } }; |
| 82 | static const device_tones_struct dtmf5[] = { { 770, 1336, 0, 0, 0 } }; |
| 83 | static const device_tones_struct dtmf6[] = { { 770, 1477, 0, 0, 0 } }; |
| 84 | static const device_tones_struct dtmf7[] = { { 852, 1209, 0, 0, 0 } }; |
| 85 | static const device_tones_struct dtmf8[] = { { 852, 1336, 0, 0, 0 } }; |
| 86 | static const device_tones_struct dtmf9[] = { { 852, 1477, 0, 0, 0 } }; |
| 87 | static const device_tones_struct dtmfstar[] = { { 941, 1209, 0, 0, 0 } }; |
| 88 | static const device_tones_struct dtmfhash[] = { { 941, 1477, 0, 0, 0 } }; |
| 89 | static const device_tones_struct dtmfnormal[] = { { 1200, 0, 100, 0, 0 } }; |
| 90 | /* ref ETSI: 02.40 */ |
| 91 | static const device_tones_struct tone_dial_call_gsm[] = { { 425, 0, 0, 0, 0 } }; |
| 92 | static const device_tones_struct tone_dial_call_pcs[] = { { 350, 440, 0, 0, 0 } }; |
| 93 | static const device_tones_struct tone_busy_call_gsm[] = { { 425, 0, 500, 500, 0 } }; |
| 94 | static const device_tones_struct tone_busy_call_pcs[] = { { 480, 620, 500, 500, 0 } }; |
| 95 | static const device_tones_struct tone_congestion_gsm[] = { { 425, 0, 200, 200, 0 } }; |
| 96 | static const device_tones_struct tone_congestion_pcs[] = { { 480, 620, 200, 200, 0 } }; |
| 97 | static const device_tones_struct tone_radio_path[] = { { 425, 0, 200, 0, 0 } }; |
| 98 | static const device_tones_struct tone_radio_na[] = { { 425, 0, 200, 200, 1 }, |
| 99 | { 425, 0, 200, 200, 2 }, |
| 100 | { 425, 0, 200, 0, 0 } }; |
| 101 | static const device_tones_struct tone_error_info[] = { { 950, 0, 330,1000, 0 } }; |
| 102 | static const device_tones_struct tone_num_unobtain[] = { {1400, 0, 330, 0, 0 } }; |
| 103 | static const device_tones_struct tone_auth_error[] = { { 950, 0, 330,1000, 0 } }; |
| 104 | |
| 105 | #ifndef __REPEAT_CALL_WAITING_TONE__ /* GSM */ |
| 106 | static const device_tones_struct tone_call_waiting[] = { { 425, 0, 200, 600, 1 }, |
| 107 | { 425, 0, 200,3000, 2 }, |
| 108 | { 425, 0, 200, 600, 3 }, |
| 109 | { 425, 0, 200, 0, 0 } }; |
| 110 | #else /* __REPEAT_CALL_WAITING_TONE__ */ |
| 111 | static const device_tones_struct tone_call_waiting[] = { { 440, 0, 200, 100, 1 }, |
| 112 | { 440, 0, 200,3500, 0 } }; |
| 113 | #endif /* __REPEAT_CALL_WAITING_TONE__ */ |
| 114 | |
| 115 | static const device_tones_struct tone_ring_tone_gsm[] = { { 425, 0, 2000, 1000, 0 } }; |
| 116 | static const device_tones_struct tone_ring_tone_pcs[] = { { 425, 0, 2000, 4000, 0 } }; |
| 117 | |
| 118 | /* for SAT by brian */ |
| 119 | static const device_tones_struct tone_positive_ack[] = { { 600, 0, 200, 100, 1 }, |
| 120 | { 800, 0, 200, 100, 2 }, |
| 121 | { 1000, 0, 200, 0, 0 } }; |
| 122 | static const device_tones_struct tone_negative_ack[] = { { 600, 0, 300, 100, 1 }, |
| 123 | { 300, 0, 700, 0, 0 } }; |
| 124 | |
| 125 | static const device_tones_struct tone_mt_sms_in_call[] = { { 852, 1209, 200, 0, 0 } }; |
| 126 | |
| 127 | static const device_tones_struct tone_warning1[] = { { 852, 0, 200, 0, 0 } }; |
| 128 | static const device_tones_struct tone_warning2[] = { { 852, 0, 200, 0, 0 } }; |
| 129 | static const device_tones_struct tone_error1[] = { { 1209, 0, 200, 0, 0 } }; |
| 130 | static const device_tones_struct tone_error2[] = { { 1209, 0, 200, 0, 0 } }; |
| 131 | static const device_tones_struct tone_general_beep[] = { { 700, 0, 200, 0, 0 } }; |
| 132 | |
| 133 | static const device_tones_struct tone_key_click[] = { { 1500, 0, 200, 0, 0 } }; |
| 134 | static const device_tones_struct tone_call_connect[] = { { 700, 0, 200, 0, 0 } }; |
| 135 | static const device_tones_struct tone_battery_low[] = { { 1100, 0, 300, 100, 1 }, |
| 136 | { 900, 0, 300, 0, 0 } }; |
| 137 | static const device_tones_struct tone_battery_warning[] = { { 1400, 0, 300, 100, 1 }, |
| 138 | { 1400, 0, 300, 100, 2 }, |
| 139 | { 1400, 0, 300, 0, 0 } }; |
| 140 | static const device_tones_struct tone_aux_ind[] = { { 700, 0, 200, 0, 0 } }; |
| 141 | static const device_tones_struct tone_data_call[] = { { 425, 0, 2000, 1000, 0 } }; |
| 142 | static const device_tones_struct tone_call_time_reminder[] = { { 852, 0, 200, 0, 0 } }; |
| 143 | #ifdef __OP01_FWPBW__ |
| 144 | static const device_tones_struct tone_continue_sound[] = { { 400, 0, 0, 0, 0 } }; |
| 145 | #endif |
| 146 | |
| 147 | const device_tones_struct *mtk_resource_tones[]= |
| 148 | { |
| 149 | dtmf0, /* TONE_DTMF_0 */ /* 0 */ |
| 150 | dtmf1, /* 1 */ |
| 151 | dtmf2, /* 2 */ |
| 152 | dtmf3, /* 3 */ |
| 153 | dtmf4, /* 4 */ |
| 154 | dtmf5, /* 5 */ |
| 155 | dtmf6, /* 6 */ |
| 156 | dtmf7, /* 7 */ |
| 157 | dtmf8, /* 8 */ |
| 158 | dtmf9, /* TONE_DTMF_9 */ /* 9 */ |
| 159 | dtmfstar, /* TONE_KEY_STAR */ /* 10 */ |
| 160 | dtmfhash, /* TONE_KEY_HASH */ /* 11 */ |
| 161 | dtmfnormal, /* TONE_KEY_NORMAL */ /* 12 */ |
| 162 | tone_key_click, /* 13 */ |
| 163 | |
| 164 | tone_call_connect, /* 14 */ |
| 165 | tone_mt_sms_in_call, /* 15 */ |
| 166 | tone_call_time_reminder, /* 16 */ |
| 167 | |
| 168 | tone_dial_call_gsm, /* 17 */ |
| 169 | tone_dial_call_pcs, /* 18 */ |
| 170 | tone_busy_call_gsm, /* 19 */ |
| 171 | tone_busy_call_pcs, /* 20 */ |
| 172 | tone_congestion_gsm, /* 21 */ |
| 173 | tone_congestion_pcs, /* 22 */ |
| 174 | tone_radio_path, /* 23 */ |
| 175 | tone_radio_na, /* 24 */ |
| 176 | tone_error_info, /* 25 */ |
| 177 | tone_num_unobtain, /* 26 */ |
| 178 | tone_auth_error, /* 27 */ |
| 179 | tone_call_waiting, /* 28 */ |
| 180 | tone_ring_tone_gsm, /* 29 */ |
| 181 | tone_ring_tone_pcs, /* 30 */ |
| 182 | tone_positive_ack, /* 31 */ |
| 183 | tone_negative_ack, /* 32 */ |
| 184 | |
| 185 | tone_dial_call_gsm, /* 33 */ |
| 186 | tone_dial_call_pcs, /* 34 */ |
| 187 | tone_busy_call_gsm, /* 35 */ |
| 188 | tone_busy_call_pcs, /* 36 */ |
| 189 | tone_congestion_gsm, /* 37 */ |
| 190 | tone_congestion_pcs, /* 38 */ |
| 191 | tone_radio_path, /* 39 */ |
| 192 | tone_radio_na, /* 40 */ |
| 193 | tone_error_info, /* 41 */ |
| 194 | tone_num_unobtain, /* 42 */ |
| 195 | tone_auth_error, /* 43 */ |
| 196 | tone_call_waiting, /* 44 */ |
| 197 | tone_ring_tone_gsm, /* 45 */ |
| 198 | tone_ring_tone_pcs, /* 46 */ |
| 199 | tone_positive_ack, /* 47 */ |
| 200 | tone_negative_ack, /* 48 */ |
| 201 | |
| 202 | tone_warning1, /* 49 */ |
| 203 | tone_warning2, /* 50 */ |
| 204 | tone_error1, /* 51 */ |
| 205 | tone_error2, /* 52 */ |
| 206 | tone_general_beep, /* 53 */ |
| 207 | tone_battery_low, /* 54 */ |
| 208 | tone_battery_warning, /* 55 */ |
| 209 | tone_aux_ind, /* 56 */ |
| 210 | tone_data_call /* 57 */ |
| 211 | #ifdef __OP01_FWPBW__ |
| 212 | ,tone_continue_sound /* 58 */ |
| 213 | #endif |
| 214 | }; |
| 215 | #endif /* !__L1_STANDALONE__ */ |