Summary of the invention
The technical matters that the present invention will solve is; Above-mentioned defective to prior art; A kind of audio frequency parameter automatic update method based on portable terminal is provided, and the process that it has simplified the audio frequency parameter adjustment has shortened the R&D cycle; Improved production efficiency, it makes portable terminal increase new function can upgrade audio frequency parameter automatically.
The technical scheme that technical solution problem of the present invention is adopted is following:
A kind of audio frequency parameter automatic update method based on portable terminal wherein, comprises step:
The audio frequency parameter item of A, adjustment is as required set up corresponding audio parameter information group, and the audio frequency parameter message block of setting up is generated the audio parameter files of predetermined data-structure form automatically;
B, the audio parameter files of said generation is added that corresponding version number stores in the portable terminal;
C, when said mobile terminal-opening, according to the version number of said audio parameter files, judge automatically whether said audio parameter files has renewal;
D, when judging that said audio parameter files has renewal; Then from said audio parameter files, all audio frequency parameters are read out and store among the flash of mobile terminal device; Before audio frequency parameter was launched, the most recent parameters that reads among the flash also was updated in the corresponding software automatically then.
Said audio frequency parameter automatic update method based on portable terminal, wherein, said steps A specifically comprises:
A1, the audio frequency parameter item of adjusting as required, the parameter that each pattern of mobile device terminal is exclusive is organized respectively, each mode common parameter is then organized together, to set up corresponding audio parameter information group;
A2 also generates the audio frequency parameter message block of setting up the audio parameter files of predetermined data-structure form automatically.
Said audio frequency parameter automatic update method based on portable terminal, wherein, said step B also comprises: on the beginning data bit of the audio parameter files that generates, add corresponding said version number.
Said audio frequency parameter automatic update method based on portable terminal; Wherein, The version number according to said audio parameter files among the said step C, judge automatically whether said audio parameter files has to upgrade to comprise: the version number according to the beginning data bit of said audio parameter files judges whether said audio frequency parameter has renewal.
Said audio frequency parameter automatic update method based on portable terminal, wherein, said predetermined data-structure is the data structure at qualcomm platform adjustment audio frequency parameter.
Said audio frequency parameter automatic update method based on portable terminal, wherein, said mode for mobile terminal comprises handset mode, speaker mode, headset mode, bluetooth mode and hands-free mode.
Said audio frequency parameter automatic update method based on portable terminal, wherein, said version number upgrades when changing audio frequency parameter at every turn accordingly.
Based on above-mentioned audio frequency parameter automatic update method, the present invention also provides a kind of audio frequency parameter automatic update system based on portable terminal, wherein, comprising:
The audio parameter files generation module, the audio frequency that is used for adjusting as required ginseng item is set up corresponding audio parameter information group, and the audio frequency parameter message block of setting up is generated the audio parameter files of predetermined data-structure form automatically;
The scheduled store module is used for regular audio parameter files with said generation and adds that corresponding version number stores portable terminal into;
Upgrade judge module, be used for when said mobile terminal-opening,, judge automatically whether said audio parameter files has renewal according to the version number of said audio parameter files;
The parameter update unit; Be used for when judging that said audio parameter files has renewal; Then from said audio parameter files, all audio frequency parameters are read out and store among the flash of mobile terminal device; Before audio frequency parameter was launched, the most recent parameters that reads among the flash also was updated in the corresponding software automatically then.
Said audio frequency parameter automatic update system based on portable terminal, wherein, said audio parameter files generation module comprises:
The audio frequency parameter assembled unit, the audio frequency parameter item that is used for adjusting as required, the parameter that each pattern of mobile device terminal is exclusive is organized respectively, each mode common parameter is then organized together, to set up corresponding audio parameter information group;
Automatically generation unit is used for the audio frequency parameter message block of setting up is generated automatically the audio parameter files of predetermined data-structure form.
Said audio frequency parameter automatic update system based on portable terminal wherein, adds corresponding said version number on the beginning data bit of the audio parameter files that generates;
Said predetermined data-structure is the data structure at qualcomm platform adjustment audio frequency parameter.
Audio frequency parameter automatic update method and system based on portable terminal provided by the present invention; Organize audio frequency parameter according to predetermined data-structure, the form of the data structure of organizing with file is saved in the file system of portable terminal, and adds version number in the beginning data bit of file; The version number that begins data bit according to file judges whether audio frequency parameter upgrades; Before audio frequency parameter is launched, read the audio frequency parameter among the flash of mobile terminal device and be updated in the software, so automatically; Audio engineer can be independently and the software engineer adjust audio frequency parameter voluntarily; Simplified the process of audio frequency parameter adjustment, shortened the R&D cycle, it makes portable terminal increase new function can upgrade audio frequency parameter automatically.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, clear and definite, below develop simultaneously embodiment to further explain of the present invention with reference to accompanying drawing.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Audio frequency parameter automatic update method based on portable terminal provided by the invention, as shown in Figure 1, comprise step:
The audio frequency parameter item of step S100, adjustment is as required set up corresponding audio parameter information group, and the audio frequency parameter message block of setting up is generated the audio parameter files of predetermined data-structure form automatically.
Step S200, the audio parameter files of said generation is added that corresponding version number stores in the portable terminal.
Step S300, when said mobile terminal-opening, according to the version number of said audio parameter files, judge automatically whether said audio parameter files has renewal.
Step S400, when judging that said audio parameter files has renewal; Then from said audio parameter files, all audio frequency parameters are read out and store among the flash of mobile terminal device; Before audio frequency parameter was launched, the most recent parameters that reads among the flash also was updated in the corresponding software automatically then.
Further, step S100 also comprises:
A1, the audio frequency parameter item of adjusting as required, the parameter that each pattern of mobile device terminal is exclusive is organized respectively, each mode common parameter is then organized together, to set up corresponding audio parameter information group;
A2 also generates the audio frequency parameter message block of setting up the audio parameter files of predetermined data-structure form automatically.
In the present embodiment; Through computer or other equipment; The audio frequency parameter tissue of needs adjustment is set up corresponding audio parameter information group, through the qualcomm platform this audio frequency parameter message block is organized, concrete organizational form is: each pattern of at first confirming portable terminal; Confirm each audio frequency parameter of each pattern then; The exclusive parameter of each pattern is set up a parameter information group, the audio frequency parameter of each mode common is set up a parameter information group, on the qualcomm platform, each parameter information group is generated corresponding audio parameter files more at last according to predetermined data structure format.Mode for mobile terminal of the present invention mainly contains: handset-handset mode, speaker-speaker mode, headset-headset mode, bt-bluetooth mode, handsfree-hands-free mode or the like.
Wherein, the predetermined data-structure of above-mentioned adjustment audio frequency parameter realizes that on the qualcomm platform concrete data structure is following:
typedef?struct?{
/ *--broadband or arrowband zone bit, indicate the audio frequency parameter that is applicable to broadband or arrowband--*/
short?wb_flag;
/ *--the parameter that each pattern is exclusive separately, wherein pattern is divided handset single Mike, handset diamylose gram, headset conversation; The headset multimedia, handsfree (hands-free mode), speaker, totally 7 kinds of bt (bluetooth mode); The exclusive parameter of each pattern comprises TxVolume, TxDtmfGain, CodecTxGain, CodecRxGain; CodecSTGain, txPcmFiltCoeff, rxPcmFiltCoeff, TxPcmIirFilter; RxPcmIirFilter, RxDbmOffset, Agc (exclusive part) parameters, AFE parameters.--*/
voc_pcm_path_cal_cust_common_type?common[7];
/ *--the parameter that single Mike is exclusive is divided handset single Mike, the headset conversation, and the headset multimedia, handsfree, speaker, bt be totally 6 kinds of patterns--*/
CAL_MEMORY?voc_cal_adv_ec_config_type?ec_params[6];?/*?EC?parameters?*/
/ *--the exclusive parameter of handset diamylose gram pattern--*/
Voc_cal_pcm_iir_filter_type tx_primary_mic_iir_filter; / * master Mike's Iir filter parameters */
Voc_cal_pcm_iir_filter_type tx_secondary_mic_iir_filter; / * Mike's Iir filter parameters */
CAL_MEMORY?voc_cal_cs_config_type?cs_params;?/*?CrystalSpeech?parameters?*/
/ *--volume parameters under each pattern--*/
snd_gen_level_voc_type?volume[35];
/ *--parameters of all mode commons--*/
Voc_cal_adv_agc_param_type voc_cal_adv_agc_param; / * AGC (common sparing)Parameters*/
voc_cal_avc_param_type?voc_cal_avc_param;?/*?AVC?parameters*/
}?nvi_audio_parameters_type。
When audio frequency parameter is put in order, only need revise the variable of each audio frequency parameter according to above-mentioned data structure, can simplify the arrangement process of audio frequency parameter so greatly, reduce workload.
When audio parameter files is upgraded; At first be on the beginning data bit of the audio parameter files that generates, to add corresponding version number; Then behind mobile terminal-opening; According to the version number of audio parameter files, judge automatically whether said audio parameter files has renewal, so the version number of audio parameter files to upgrade accordingly all when changing audio frequency parameter at every turn.
Concrete software flow to the version updating inspection is as shown in Figure 2, comprises step:
Whether step S201, mobile terminal device start back inspection audio frequency parameter version have renewal;
If step S202 detects version renewal is arranged then nearest audio frequency parameter is updated among the flash, otherwise get into step S203;
Step S203, read the audio frequency parameter among the flash and be updated in the software;
Step S204, the up-to-date audio frequency parameter of use.
Because it is non-volatile that the data among the flash are power down, so if there is not the Parameter File of redaction, this need not be updated to audio frequency parameter among the flash of mobile terminal device, so can not influence starting up speed basically.
This shows; When audio frequency parameter being adjusted based on the data structure of qualcomm platform; Only need the parameter of revising is saved in the file and be stored in the file system of mobile terminal device, whether system can automatic detected parameters have and upgrade and accomplish voluntarily and upgrade in each mobile terminal device start, like this; Just can save software engineer's participation, simplify the audio frequency parameter adjustment process greatly.
Based on the foregoing description, the present invention also provides a kind of audio frequency parameter automatic update system, and as shown in Figure 3, it mainly comprises:
Audio parameter filesgeneration module 310, the audio frequency that is used for adjusting as required ginseng item is set up corresponding audio parameter information group, and the audio frequency parameter message block of setting up is generated the audio parameter files of predetermined data-structure form automatically; Specifically as stated.
Scheduled store module 320 is used for regular audio parameter files with said generation and adds that corresponding version number stores portable terminal into; Specifically as stated.
Upgrade judge module 330, be used for when said mobile terminal-opening,, judge automatically whether said audio parameter files has renewal according to the version number of said audio parameter files; Specifically as stated.
Parameter update unit 340; Be used for when judging that said audio parameter files has renewal; Then from said audio parameter files, all audio frequency parameters are read out and store among the flash of mobile terminal device; Before audio frequency parameter was launched, the most recent parameters that reads among the flash also was updated in the corresponding software automatically then; Specifically as stated.
Wherein, audio parameterfiles generation module 310 also comprises:
Audio frequency parameter assembledunit 311, the audio frequency parameter item that is used for adjusting as required, the parameter that each pattern of mobile device terminal is exclusive is organized respectively, each mode common parameter is then organized together, to set up corresponding audio parameter information group; Specifically as stated.
Automaticallygeneration unit 312 is used for the audio frequency parameter message block of setting up is generated automatically the audio parameter files of predetermined data-structure form; Specifically as stated.
In sum; Audio frequency parameter automatic update method and system based on portable terminal of the present invention through the audio frequency parameter of each pattern of portable terminal is organized accordingly, set up different audio frequency parameter message block; And according to predetermined data structure format generation audio parameter files; Add that through start data bit at file version number realizes the renewal inspection to the audio parameter files version, and automatically audio frequency parameter is updated in the corresponding software, like this; Audio engineer can be independently and the software engineer adjust audio frequency parameter voluntarily; Simplified the process of audio frequency parameter adjustment, shortened the R&D cycle, it makes portable terminal increase new function can upgrade audio frequency parameter automatically.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, concerning those of ordinary skills, can improve or conversion that all these improvement and conversion all should belong to the protection domain of accompanying claims of the present invention according to above-mentioned explanation.