CN101442582A - Method and apparatus for scheduling audio resource concurrence of dynamic application - Google Patents

Method and apparatus for scheduling audio resource concurrence of dynamic application Download PDF

Info

Publication number
CN101442582A
CN101442582A CNA2007101778227A CN200710177822A CN101442582A CN 101442582 A CN101442582 A CN 101442582A CN A2007101778227 A CNA2007101778227 A CN A2007101778227A CN 200710177822 A CN200710177822 A CN 200710177822A CN 101442582 A CN101442582 A CN 101442582A
Authority
CN
China
Prior art keywords
application
priority
current
audio resource
dynamic application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2007101778227A
Other languages
Chinese (zh)
Inventor
刘雄文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lian core technology Co., Ltd.
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CNA2007101778227A priority Critical patent/CN101442582A/en
Publication of CN101442582A publication Critical patent/CN101442582A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention provides a concurrent dispatching method for dynamically applied audio resources, which comprises the following steps: dynamically applying for registration of using the audio resources; judging whether dynamically applied priority is higher than current applied priority of current used audio resources; if the dynamically applied priority is higher than the current applied priority of the current used audio resources, distributing the dynamically applied current audio resources, and adding the current application to a ready queue at the same time; otherwise, adding the dynamic application to the ready queue. The invention also provides a concurrent dispatching device for the dynamically applied audio resources. Through determining the current application of currently using the current audio resources according to degree of the priority of the application for using the audio resources, the method and the device can make a system have higher flexibility and expansibility in design, and improve dispatching treatment performance of the system in dynamically applied audio concurrence.

Description

A kind of dispatching method of audio resource concurrence of dynamic application and device
Technical field
The present invention relates to the mobile communication technology field, relate in particular to a kind of dispatching method and device of audio resource concurrence of dynamic application.
Background technology
Along with the fast development of mobile communication technology, also more and more higher to the requirement of portable terminal.Wherein, the application of use audio resource increases and will inevitably cause that audio resource uses assignment problem in portable terminal (mobile phone).
Input equipment type and output equipment type have been distinguished for the use of audio resource in traditional mobile phones design, use audio resource and cancellation situation out of service comprehensively not to consider for the application for registration of dynamic application, often use all be static compiled after, do as a whole the operation; Simultaneously, though some high-end mobile phones are supported the loading and the unloading of dynamic application, but the processing scheme of employing static priority, the priority of dynamic application in system is fixed, simultaneously the scheduling processing scheme that does not have improving and optimize when dynamic application loads and logs off; Therefore, the calling of audio resource of the prior art do not considered in the system dynamic application truly, also can't overall thinking in the system the whole disposition of dynamic application when concurrent use audio resource, the audio resource that does not also have simultaneously to propose when dynamic application is withdrawed from re-uses situation, the systematic function when having reduced the system call audio resource greatly.
Summary of the invention
In view of this, the problem that the present invention solves provides a kind of dispatching method and device of audio resource concurrence of dynamic application,
For addressing the above problem, technical scheme provided by the invention is as follows:
A kind of dispatching method of audio resource concurrence of dynamic application, this method comprises:
Dynamic application is applied for the registration of and is used audio resource;
Judge whether the priority of described dynamic application is higher than the priority of the current application of current use audio resource; If, then distribute described dynamic application to use current audio resource, simultaneously described current application is joined in the ready queue; Otherwise described dynamic application is joined in the ready queue.
Accordingly, described dynamic application comprises that input is used or output is used.
Accordingly, described dynamic application comprises that input is used or output is used.
Accordingly, the application for registration information of described use audio resource comprises application identities, audio frequency apparatus type and the priority level of dynamic application at least.
Accordingly, described method further comprises:
After current application is withdrawed from, discharge audio resource, select the new current application that is applied as in the highest ready queue of priority then.
Accordingly, described priority preestablishes for the user or system definition.
A kind of dispatching device of audio resource concurrence of dynamic application, this device comprises: judge module and distribution module;
Described judge module is used for judging whether the priority of described dynamic application is higher than the priority of the current application of current use audio resource, and the result being sent distribution module when dynamic application is applied for the registration of the use audio resource;
Described distribution module receives the judged result that judge module sends, and when the priority of described dynamic application is higher than the priority of current application, distributes described dynamic application to use current audio resource, simultaneously described current application is joined in the ready queue; Otherwise, described dynamic application is joined in the ready queue.
Accordingly, this device also comprises: select module;
Described selection module is used for after current application is withdrawed from, and discharges audio resource, selects the new current application that is applied as in the highest ready queue of priority then.
As can be seen, adopt method and apparatus of the present invention, the height of the priority level of the application by using audio resource according to application is determined the current application of the current audio resource of current use, system applies had than higher flexibility and autgmentability at design aspect, greatly improved system at the scheduling handling property of the audio frequency of dynamic application aspect concurrent.
Description of drawings
Fig. 1 is the schematic flow sheet of embodiment of the invention method;
Fig. 2 is the scheduling processing flow figure when audio resource is used in the dynamic application application in the embodiment of the invention 1;
Fig. 3 is a schematic diagram of selecting to continue to use audio resource in the embodiment of the invention 2.
Embodiment
Basic thought of the present invention is to determine according to the height of the priority level of the application of application use audio resource the current application of the current audio resource of current use.
In order to make those skilled in the art better understand the present invention, method of the present invention is elaborated below in conjunction with the drawings and specific embodiments.
Embodiment 1, the invention provides a kind of dispatching method of audio resource concurrence of dynamic application, and as shown in Figure 1, this method comprises:
Step 101: dynamic application is applied for the registration of and is used audio resource;
Step 102: judge whether the priority of described dynamic application is higher than the priority of the current application of current use audio resource;
Step 103: when the priority of described dynamic application is higher than the priority of described current application, distribute described dynamic application to use current audio resource, simultaneously described current application is joined in the ready queue;
Step 104: when the priority of described dynamic application is not higher than the priority of described current application, described dynamic application is joined in the ready queue.
Concrete, the equipment that the application in mobile phone terminal equipment at present uses audio resource to be used to import mainly contains microphone, has the earphone of microphone etc., and the equipment of output has receiver, loud speaker and earphone etc.And for a dynamic application, can select to use the audio frequency apparatus of input and output, the audio frequency apparatus that also can select to use the audio frequency apparatus of input or only select to use output, but can not in input equipment, select simultaneously to use two or more equipment, can not in output equipment, select equipment more than two kinds or three kinds simultaneously; Certainly, system can keep the state information of current available audio resource, selects employed audio resource according to the concrete characteristics of using during the dynamic application design.
For dynamic application, the use audio resource of can applying for the registration of of the dynamic application in the system.As shown in Figure 2, when new dynamic application A applies for the registration of the use audio resource, the priority level that at this time needs the current application B of the priority level of comparison dynamic application A and current use audio resource, when if the priority level of described dynamic application A is higher than the priority level of current application B, replace current application B and become new current application with described dynamic application A, simultaneously described current application B is joined in the ready queue; If the priority level of described dynamic application A is not higher than the priority level of current application B, then directly described dynamic application A is added ready queue; Use the new registration of A representative among the figure and use the application of audio resource, use the application that B represents current use audio resource;
Wherein, above-mentioned current application and ready queue are divided according to input class and output class: the current dynamic application of using audio resource as current application, etc. the dynamic application formation of audio resource to be used be ready queue; After audio resource was used in the dynamic application application, the audio resource situation of using according to application formed two classes, promptly imports class and output class, and input class and output class all include a lot of priority, and each priority all comprises a formation.Relevant data result is described as follows:
struct?app_audio_list_head
{
struct?app_audio_list_head*next,*prev;
};
struct?app_audio_queue
{
UINT32 app_id;
struct?app_audio_list_head?list;
};
typedef?struct_APP_AUDIO_READY_
{
UINT32?bitmap[BITMAP_SIZE];
struct?app_audio_queue?ready[MAX_PRIO];
}app_audio_in_queue,app_audio_out_queue;
Wherein app_audio_list_head is a doubly linked list; App_audio_queue is based on and uses the doubly linked list that ID (app_id) forms; App_audio_in_queue and app_audio_out_queue are according to the input class of priority formation and the structure of output class, and wherein priority attribute embodies by its member bitmap array and structure app_audio_queue; Ready queue is represented with app_audio_in_queue and app_audio_out_queue.
In addition, dynamic application need comprise that when audio resource is used in application the audio frequency apparatus type (app_audio_type) and the corresponding priorities of this dynamic application own of application identities (app_id), this dynamic application use are other at least to the log-on message that system provides; Wherein, the type of audio frequency apparatus mainly comprises three kinds: only use audio input device, only use audio output apparatus and both used audio input device and also used audio output apparatus, concrete data structure is as described below:
struct?app_audio_register
{
UINT32?app_id;
CHAR?app_audio_type;
UINT32?app_audio_in_prio;
UINT32?app_audio_out_prio;
};
After described dynamic application provided above-mentioned essential information, can finish applies for the registration of used audio resource.
In addition, in the audio resource of the foregoing description 1 uses,, need to discharge the right to use to audio resource when current application during by system's compulsory withdrawal or by user's compulsory withdrawal, like this, need in ready queue, select a high dynamic application of priority level to continue to use audio resource;
Specific embodiment 2 can select to continue to use the application of audio resource as shown in Figure 3 by the following method:
System has defined the priority number that system has in the definition MAX_PRIO of structure, default value is 80 usually; Each priority all has the structure of a struct app_audio_queue like this; BITMAP_SIZE is the size of priority bitmap array, type is UINT32 (unsigned long) long, long 32, if each represents a priority, 80 priority need 3 long numbers to represent so, so bitmap just just in time has 3 array items, 96 altogether.At the beginning, all positions all are changed to 0, when selecting one to go to carry out from ready queue, obviously select the highest formation of priority.Search priority the highest in the system and just become and search first that is set up in the bitmap, the corresponding ready queue of each priority.Like this system import the scheduling of the application of class and output class all can be very quick.
In addition, those skilled in the art are readily appreciated that each priority of using can be repeated no more inferior by user preset or predefined by system in the embodiment of the invention.
As can be seen, adopt method of the present invention, use the height of priority level of the application of audio resource to determine the current application of the current audio resource of current use according to application, using and withdraw from use owing to apply for the registration of all is dynamic change, so have than higher flexibility and autgmentability, greatly improved system at the scheduling handling property of the audio frequency of dynamic application aspect concurrent.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to finish by the relevant hardware of program command, and described procedure stores is in the particular memory medium.
Based on above-mentioned thought, the present invention also provides a kind of dispatching device of audio resource concurrence of dynamic application, and this device comprises: judge module and distribution module;
Described judge module is used for judging whether the priority of described dynamic application is higher than the priority of the current application of current use audio resource, and the result being sent distribution module when dynamic application is applied for the registration of the use audio resource;
Described distribution module receives the judged result that judge module sends, and when the priority of described dynamic application is higher than the priority of current application, distributes described dynamic application to use current audio resource, simultaneously described current application is joined in the ready queue; Otherwise, described dynamic application is joined in the ready queue.
In addition, this device also comprises: select module;
Described selection module is used for after current application is withdrawed from, and discharges audio resource, selects the new current application that is applied as in the highest ready queue of priority then.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1, a kind of dispatching method of audio resource concurrence of dynamic application is characterized in that, this method comprises:
Dynamic application is applied for the registration of and is used audio resource;
Judge whether the priority of described dynamic application is higher than the priority of the current application of current use audio resource; If, then distribute described dynamic application to use current audio resource, simultaneously described current application is joined in the ready queue; Otherwise described dynamic application is joined in the ready queue.
2, method according to claim 1 is characterized in that:
Described dynamic application comprises that input is used or output is used.
3, method according to claim 1 is characterized in that:
Described dynamic application comprises that input is used or output is used.
4, according to any described method of claim 1 to 3, it is characterized in that:
The application for registration information of described use audio resource comprises application identities, audio frequency apparatus type and the priority level of dynamic application at least.
5, method according to claim 4 is characterized in that, described method further comprises:
After current application is withdrawed from, discharge audio resource, select the new current application that is applied as in the highest ready queue of priority then.
6, method according to claim 5 is characterized in that:
Described priority preestablishes for the user or system definition.
7, a kind of dispatching device of audio resource concurrence of dynamic application is characterized in that, this device comprises: judge module and distribution module;
Described judge module is used for judging whether the priority of described dynamic application is higher than the priority of the current application of current use audio resource, and the result being sent distribution module when dynamic application is applied for the registration of the use audio resource;
Described distribution module receives the judged result that judge module sends, and when the priority of described dynamic application is higher than the priority of current application, distributes described dynamic application to use current audio resource, simultaneously described current application is joined in the ready queue; Otherwise, described dynamic application is joined in the ready queue.
8, device according to claim 7 is characterized in that, this device also comprises: select module;
Described selection module is used for after current application is withdrawed from, and discharges audio resource, selects the new current application that is applied as in the highest ready queue of priority then.
CNA2007101778227A 2007-11-21 2007-11-21 Method and apparatus for scheduling audio resource concurrence of dynamic application Pending CN101442582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101778227A CN101442582A (en) 2007-11-21 2007-11-21 Method and apparatus for scheduling audio resource concurrence of dynamic application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101778227A CN101442582A (en) 2007-11-21 2007-11-21 Method and apparatus for scheduling audio resource concurrence of dynamic application

Publications (1)

Publication Number Publication Date
CN101442582A true CN101442582A (en) 2009-05-27

Family

ID=40726815

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101778227A Pending CN101442582A (en) 2007-11-21 2007-11-21 Method and apparatus for scheduling audio resource concurrence of dynamic application

Country Status (1)

Country Link
CN (1) CN101442582A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944048A (en) * 2010-09-26 2011-01-12 中兴通讯股份有限公司 Management method of terminal in audio resource conflict and terminal
CN103257898A (en) * 2012-02-15 2013-08-21 北京邦天信息技术有限公司 Resource allocation method and system in embedded system
CN109525707A (en) * 2018-10-15 2019-03-26 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN109857530A (en) * 2019-01-21 2019-06-07 湖北亿咖通科技有限公司 A kind of application request dispatching method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944048A (en) * 2010-09-26 2011-01-12 中兴通讯股份有限公司 Management method of terminal in audio resource conflict and terminal
WO2012037792A1 (en) * 2010-09-26 2012-03-29 中兴通讯股份有限公司 Method for managing terminal during audio resource conflict and terminal thereof
CN101944048B (en) * 2010-09-26 2014-12-10 中兴通讯股份有限公司 Management method of terminal in audio resource conflict and terminal
CN103257898A (en) * 2012-02-15 2013-08-21 北京邦天信息技术有限公司 Resource allocation method and system in embedded system
CN109525707A (en) * 2018-10-15 2019-03-26 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN109857530A (en) * 2019-01-21 2019-06-07 湖北亿咖通科技有限公司 A kind of application request dispatching method and device
CN109857530B (en) * 2019-01-21 2021-09-03 湖北亿咖通科技有限公司 Application request scheduling method and device

Similar Documents

Publication Publication Date Title
CN105759937B (en) Method for reducing power consumption of terminal and terminal
US20080117991A1 (en) Partitioning Compression-Based Firmware Over the Air
EP2749988B1 (en) Method and device for application program operation, mobile terminal
US7747834B2 (en) Memory manager for an embedded system
CN105354093A (en) Memory management method and mobile terminal
US8542696B2 (en) Device, system and method of simultaneously communicating with a group of wireless communication units
US10334118B2 (en) Method and system for providing video multimedia ringtone
AU2019256257B2 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN104782211A (en) Dynamic carrier assignment of carrier aggregation in an lte-advanced system
JP6996056B2 (en) Antenna configuration method, terminal device and antenna circuit
CN100517221C (en) Efficient multiprocessor system and methods thereof
CN101478777A (en) Method and apparatus for performing buffer status reporting
CN101883436A (en) Concurrent processing method and system for resources and mobile terminal
CN100432957C (en) Method for management memory and memory
CN104604143A (en) Method and apparatus for reducing power consumption of simultaneous receivers in wireless communications device
CN106559579A (en) Mobile terminal and CPU/GPU scheduling parameter update methods
CN101442582A (en) Method and apparatus for scheduling audio resource concurrence of dynamic application
CN104679581A (en) Method and device for running program in background
KR20220100639A (en) Uplink resource determination method, instruction method, terminal and network device
CN102625453B (en) For the method and apparatus of the scheduling strategy in Dynamic Selection RF Resourse Distribute
CN102421122B (en) Service processing method and equipment
CN100366110C (en) Method for distributing baseband channel processing resource in mobile communication system base station
CN103108328B (en) Dynamic slot matching method, base station, terminal and system
CN112332999B (en) Bandwidth allocation method, device, equipment and computer readable storage medium
AU2008201243A1 (en) System and method for correlating messages within a wireless transaction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: LIANXIN SCIENCE CO., LTD.

Free format text: FORMER OWNER: DATANG MOBILE COMMUNICATION APPARATUS CO., LTD.

Effective date: 20090508

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20090508

Address after: 4 building, 41 building, 333 Qinjiang Road, Shanghai, zip code: 200233

Applicant after: Lian core technology Co., Ltd.

Co-applicant after: Datang Mobile Communication Equipment Co., Ltd.

Co-applicant after: Datang Mobile Communication Equipment Co., Ltd., Shanghai

Address before: No. 29, Xueyuan Road, Beijing, Haidian District

Applicant before: Datang Mobile Communications Equipment Co

Co-applicant before: Datang Mobile Communication Equipment Co., Ltd., Shanghai

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090527