CN101854705A - Audio switching method, audio switching device, audio codec and terminal device - Google Patents

Audio switching method, audio switching device, audio codec and terminal device Download PDF

Info

Publication number
CN101854705A
CN101854705A CN200910080963A CN200910080963A CN101854705A CN 101854705 A CN101854705 A CN 101854705A CN 200910080963 A CN200910080963 A CN 200910080963A CN 200910080963 A CN200910080963 A CN 200910080963A CN 101854705 A CN101854705 A CN 101854705A
Authority
CN
China
Prior art keywords
audio
processor
interface
switching controls
audio input
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.)
Granted
Application number
CN200910080963A
Other languages
Chinese (zh)
Other versions
CN101854705B (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN2009100809636A priority Critical patent/CN101854705B/en
Publication of CN101854705A publication Critical patent/CN101854705A/en
Application granted granted Critical
Publication of CN101854705B publication Critical patent/CN101854705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention relates to an audio switching method, an audio switching device, an audio codec and a terminal device. The audio switching method comprises the following steps of: receiving a switching control message transmitted by a first processor; and switching an audio input channel or an audio input channel and a control channel to a channel connected with the first processor or a second processor according to the switching control message. The audio codec comprises a first audio input interface, a second audio input interface and the audio switching device, wherein the first audio input interface is used for supporting an audio interface on a non-embedded system; the second audio input interface is used for supporting the audio interface on an embedded system; and the audio switching device is used for receiving the switching control message transmitted by the first processor through the first audio input interface and switching the audio input channel or the audio input channel and the control channel to the channel connected with the first processor or the second processor according to the switching control message. By using the switching method, the switching device and the codec, the cost is saved and the power consumption of the terminal device is reduced.

Description

Audio switching method, audio frequency switching device, audio codec and terminal equipment
Technical field
The present invention relates to mobile communication technology, particularly a kind of audio switching method, audio frequency switching device, audio codec and terminal equipment.
Background technology
The mixed architecture of intelligent terminal (Smart Portable Device) adopts application processor (AP usually, Application Processor) and communication processor (CP, Communications Processor) framework, communication processor is as the ancillary equipment of application processor, and the interface that passes through to fix links to each other with application processor.Described communication processor mainly is responsible for communication, and application processor mainly is responsible for calculating relevant function.
At present, at calculus communication system under the mixed architecture and audio frequency processing system, two kinds of implementations are arranged usually:
First kind of scheme is, the shared cover audio frequency processing system of application processor and communication processor under this mixed architecture, audio frequency processing system mainly comprises shared audio codec, microphone (MIC, microphone), loud speaker and receiver etc., audio frequency processing system is controlled by AP, and CP needs to receive the related content notice AP of audio frequency, by AP control audio codec, realize functions such as voice-frequency telephony.But the shortcoming of this scheme is: AP can not shut down, can only standby, can often be changed during standby by CP awake, relatively power consumption, and CP is when the AP standby, control audio treatment system that can not be freely.
Second kind of scheme is: AP and CP have separately and overlap independently audio frequency processing system, and AP and CP be according to user's request, can independent control audio treatment system, realize functions such as voice-frequency telephony.But this scheme takes up room greatly, and cost is relatively also high.
In research and practice process to prior art, the present inventor finds that in the existing implementation, at first kind of scheme, because audio frequency processing system is controlled by AP, as long as there is phone to come in just must wake AP up, power consumption is bigger; And for second kind of scheme, because AP and CP have separately and overlap independently audio frequency processing system, cost height not only, occupation space is big, and power consumption is also big.
Summary of the invention
The embodiment of the invention provides a kind of audio switching method, audio frequency switching device, audio codec and terminal equipment, to save cost, to reduce the power consumption of terminal equipment problem.
For solving the problems of the technologies described above, the present invention is that embodiment provides a kind of audio switching method, comprising:
Receive the switching controls message that first processor sends;
According to described switching controls message,, perhaps audio input channel and control channel are switched on the passage that links to each other with the first processor or second processor audio input channel.
The present invention is that embodiment also provides a kind of audio frequency switching device, comprising:
Receiving element is used to receive the switching controls message that first processor sends;
Switch unit is used for the switching controls message that receives according to described receiving element, and with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel.
The present invention is that embodiment provides a kind of audio codec again, comprising:
First audio input interface is used to support the audio interface in the non-embedded system;
Second audio input interface is used to support the audio interface on the embedded system;
The audio frequency switching device be used to receive the switching controls message that first processor sends, and according to described switching controls message, with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel; And when receiving audio signal that described first processor sends and control signal, carry out the corresponding audio control operation according to described audio signal and control signal by first audio input interface; When perhaps receiving transmission audio signal that described second processor sends and control signal, carry out the corresponding audio control operation according to described audio signal and control signal by second audio input interface.
The present invention is another terminal equipment of embodiment, comprising: first processor, second processor and audio codec, wherein,
Described first processor is used for according to user's request or before entering resting state, sends switching controls message to audio codec;
Described second processor, be used for receive first processor send enter the notice of resting state after, send the audio frequency control operation to audio codec;
Described audio codec, be used to receive the switching controls message that first processor sends, and according to described switching controls message, with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel; When audio signal that receives described first processor transmission and control signal, carry out the corresponding audio control operation according to described audio signal and control signal.
As shown from the above technical solution, the embodiment of the invention sends the control messages of switching according to first processor, and with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel.Audio Processing that is to say that when the normal standby of first processor, Audio Processing can be controlled by first processor, if after first processor entered resting state or first processor shutdown, can be controlled by second processor.Therefore, in the implementation process of this technical scheme, under first processor shutdown situation, second processor can be freely the control of carrying out Audio Processing, compared with prior art, not only reduced the cost of terminal equipment, also save the electric weight of terminal equipment, reduce power consumption of terminal equipment.
Description of drawings
The flow chart of the audio switching method that provides in the embodiment of the invention is provided Fig. 1;
A kind of flow chart of the audio switching method that provides in the embodiment of the invention is provided Fig. 2;
The particular flow sheet of the audio switching method that provides in the embodiment of the invention is provided Fig. 3;
The structural representation of the audio frequency switching device that provides in the embodiment of the invention is provided Fig. 4;
The structural representation of the terminal equipment that provides in the embodiment of the invention is provided Fig. 5;
The structural representation of the concrete application example 1 of the terminal equipment that provides in the embodiment of the invention is provided Fig. 6;
The structural representation of the concrete application example 2 of the terminal equipment that provides in the embodiment of the invention is provided Fig. 7;
The structural representation of the concrete application example 3 of the terminal equipment that provides in the embodiment of the invention is provided Fig. 8.
Embodiment
Below we will be in conjunction with the accompanying drawings, optimum implementation of the present invention is described in detail.
See also Fig. 1, the flow chart of the audio switching method that provides in the embodiment of the invention is provided, present embodiment is example with the audio codec, and described method comprises:
Step 101: receive the switching controls message that first processor sends;
Step 102:,, perhaps audio input channel and control channel are switched on the passage that links to each other with the first processor or second processor with audio input channel according to described switching controls message.
Wherein, the switching controls message of described reception first processor transmission comprises: receive the switching controls message that described first processor sends by the switching controls interface; Specifically comprise:
Directly receive the switching controls message that described first processor sends by the switching controls interface; Perhaps, receive the switching controls message that first processor sends by switchgear control switching controls interface, described switchgear is controlled by Power Management Unit; Perhaps, the connected mode control switching controls interface by resistance receives the switching controls message that described first processor sends.
Wherein, described first processor can comprise: application processor, and second processor can comprise: communication processor; Perhaps described first processor can comprise: communication processor, and second processor can comprise: application processor; But be not limited to this.
The specific implementation process of this embodiment sees for details following.
See also Fig. 2, a kind of flow chart of the audio switching method that provides in the embodiment of the invention is provided, present embodiment is example with the audio codec, in this embodiment, first processor is with application processor AP, and second processor is that example illustrates with communication processor CP, when being not limited to this.
Described method specifically comprises:
Step 201: audio codec receives application processor AP and sends the control messages of switching;
That is to say, after the AP start, can send the control messages of switching to audio codec according to user's request, certainly, AP also can send the control messages of switching to audio codec when receiving the notice of CP transmission communication; Perhaps AP sends the control messages of switching to audio codec before entering resting state; But be not limited to described situation, audio codec can receive AP by the switching controls interface and send the control command of switching.Need to prove, audio codec except the switching controls interface,, the interface that can also comprise other, such as HD Audio interface (HD Audio interfaceprocessor), I2S or pulse code modulation (PCM, Pulse Code Modulation) interface etc., wherein, the HD Audio interface claims data audio frequency and control interface again, together, present embodiment does not limit down.
Step 202: audio codec is according to described control messages, and with audio input channel, perhaps audio input channel switches on the passage that links to each other with AP or CP with control channel.
That is to say, after the audio codec described control messages that AP sends in receiving step 101, according to the content of described control messages, with audio input channel, perhaps audio input channel switches on the passage that links to each other with AP or communication processor CP with control channel.Such as, in the control messages that receives, comprise describedly according to user's request or when carrying out on the AP audio frequency associative operation, then audio codec is with on the passage that audio input channel switches to AP links to each other; Comprise in the control messages that receives that perhaps then audio codec switched to audio input channel and control channel on the passage that links to each other with communication processor CP when described AP entered resting state or receives CP transmission communication notifications.But be not limited to this, can carry out respective audio and handle according to actual conditions.
After step 202, described method also comprises:
After on the passage that described audio input channel switches to AP links to each other, AP can send audio signal and control signal to the HD Audio interface of audio codec; When described audio codec receives audio signal that AP sends and control signal, then carry out the corresponding audio control operation, such as the size of voice playing, recording, adjustment volume etc. according to described audio signal and control signal; Perhaps
After on the passage that described audio input channel and control channel switch to CP links to each other; CP can be to pcm interface or I2S interface or the AC97 interface transmission audio signal and the control signal of audio codec, when described audio codec receives audio signal that CP sends and control signal, then carry out the corresponding audio control operation, such as size of voice playing, recording, adjustment volume etc. according to described audio signal and control signal.
Preferably, when the shutdown of terminal equipment primary processor (being the AP shutdown), perhaps after terminal equipment moves a period of time, when shutting down, audio frequency processing system (can comprise audio codec, loud speaker, receiver and microphone etc.) all can be defaulted as audio input channel and control channel and be connected on the CP, that is to say, under this pattern, by the Audio Processing of CP control terminal.
Hence one can see that, in the embodiment of the invention, if the normal standby of AP, then by the Audio Processing of AP control terminal; Under the situation of AP shutdown, can be by the Audio Processing of CP control terminal, to reach purpose of power saving; Be in resting state and when incoming call was arranged, CP need not to wake up AP at AP, directly it carried out audio frequency control.In addition, though because the shared cover audio frequency processing system (comprising audio codec, loud speaker, receiver and microphone etc.) of AP and CP, area occupied is little, and cost is lower, and audio codec can switch accordingly according to the switching controls message that receives, compared with prior art, not only reduce the cost of terminal equipment, also reduced power consumption of terminal equipment.
Also see also Fig. 3, the particular flow sheet of the audio switching method that provides in the embodiment of the invention is provided, in this embodiment, first processor is still with AP, and second processor still is example with CP, and AP is as the primary processor of terminal equipment, otherwise also can realize.In the present embodiment, when AP shut down, audio frequency processing system is defaulted as audio input channel and control channel is connected on the CP, was promptly handled by the CP control audio.Described method comprises:
Step 301: terminal equipment judges whether AP starts shooting, if start, execution in step 302; Otherwise execution in step 322;
Step 302:AP is according to user's request, and the audio codec in audio frequency processing system sends switching controls message;
In this step, AP can send switching controls message by the switching controls interface in audio codec, certainly, also can send switching controls message by other interfaces of audio codec.The embodiment of the invention does not limit.
Certainly, after the AP start, communicate, do not show in the figure by the particular interface between AP and the CP.
Step 303: audio codec is according to the switching controls message that receives, on the passage that audio input channel switches to AP links to each other;
Step 304:AP adjusts the required audio status parameter of user by audio input channel;
Such as receiving audio signal and the control signal that AP sends, carry out corresponding audio control operation etc. according to described audio signal and control signal by the HD Audio interface.
Step 305: when the user called, AP directly carried out and dials operation, and execution in step 309 afterwards;
Step 306: when phone inserted, promptly CP received phone;
Step 307:CP sends the notice of communication to AP;
Step 308:AP carries out and answers operation;
Step 309:AP sends switching controls message to the switching controls interface of audio codec;
Step 310: audio codec is according to the switching controls message that receives, on the passage that audio input channel switches to CP links to each other;
Step 311:CP adjusts the required audio status parameter of user by audio input channel;
Such as, receive audio signal and the control signal that CP sends by pcm interface, I2S interface or AC97 interface, carry out corresponding audio control operation etc. according to described audio signal and control signal.
Step 312:CP judges whether described voice communication is finished, if then execution in step 313; Otherwise return step 311 (not shown);
Step 313:CP judges whether AP is in resting state, if not, and execution in step 314; If return step 311 (not shown)
Step 314:CP sends the notice that communication is finished to AP;
Step 315:AP sends switching controls message to audio codec;
Step 316: audio codec is with on the passage that audio input channel switches to AP links to each other;
Step 317:AP adjusts the required audio status parameter of user by audio input channel;
Step 318: terminal equipment judges when whether AP will enter park mode, if, execution in step 319 and 320 then, otherwise, execution in step 317 (not shown), wherein, step 319 and step 320 do not have sequencing in time;
Step 319:AP sends the notice that it enters resting state to CP before inserting park mode;
Step 320:AP sends switching controls message to audio codec;
Step 321:AP to audio codec with the passage that audio input channel and control channel switch to AP links to each other on;
Step 322:CP adjusts the required audio status parameter of user by audio input channel, such as voice playing, recording etc., and the operations such as size of controlling volume by control channel.
That is to say that audio codec in embodiments of the present invention is an audio codec with multiple audio interface, the audio codec in the embodiment of the invention is supported two audio input interfaces at least.One of them supports audio interface commonly used in the non-embedded system, such as the HD Audio interface; And another supports audio interface commonly used on embedded system, such as I2S/PCM interfaceprocessor/AC97 interface etc.The characteristics of described two audio interface satisfy this audio codec and can be connected with AP and/or these two systems of CP simultaneously; Utilize and have the double-tone audio codec of interface frequently described in the embodiment of the invention, AP can link to each other with audio codec according to the interface characteristic of oneself with CP, simultaneously, AP to audio codec except having standard interface (such as the HD Audio interface), be used for transmitting outside the control signal of switching, also have the special interface of intercommunication mutually between AP and the CP.Terminal equipment is when start, and audio frequency processing system is defaulted as the operation of CP control audio, and promptly the audio input channel of audio frequency processing system links to each other with CP.Certainly, when AP was off-mode, CP also can finish audio operation, such as simple voice playing, and functions such as recording.When the user needs more strong calculation function, need to start AP, after AP starts, then send switch-over control signal to audio codec, the audio input channel of control audio treatment system switches to the passage that AP is attached thereto.After finishing this operation, the user can arbitrarily use the relevant function of audio frequency of AP end, such as, user can playing back music etc. operation; When phone inserted, CP notified AP, and after AP had notice, audio frequency input and the control channel of sending switch-over control signal control audio treatment system switched to the passage that links to each other with CP, when phone is finished, if AP is not in park mode, switch again.Before AP entered park mode, audio frequency input and the control channel of sending control signal control audio treatment system switched to the passage that links to each other with CP; When the user initiatively calls, AP also will send and switch message, and the audio frequency input and the control channel of control audio treatment system switch to the passage that links to each other with CP, when phone is finished, if AP is not in park mode, switch again.
Certainly, described first processor is CP, and when second processor was AP, the specific implementation process of described method and described first processor were AP, and the process when second processor is CP is similar, specifically sees for details above-mentionedly, does not repeat them here.
Accordingly, the embodiment of the invention also provides a kind of audio frequency switching device, and its structural representation sees Fig. 4 for details, described audio frequency switching device comprises: receiving element 41 and switch unit 42, wherein, described receiving element 41 is used to receive the switching controls message that first processor sends; Described switch unit 42 is used for the switching controls message that receives according to described receiving element 41, and with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel.Described switch unit 42 can be realized by the three-phase diverter switch, also begins to realize that by other element present embodiment does not limit.
Preferably, described receiving element 41 can receive the switching controls message that first processor sends by the switching controls interface, also can send switching controls message by other interface, and the embodiment of the invention does not limit.
Wherein, described receiving element 41 specifically comprises: first receiving element 411, second receiving element 412 or the 3rd receiving element 413; Wherein, described first receiving element 411 is used for directly receiving the switching controls message that described first processor sends by the switching controls interface; Described second receiving element 412 is used for receiving the switching controls message that first processor sends by switchgear control switching controls interface, and described switchgear is controlled by Power Management Unit; Described the 3rd receiving element 413 is used for receiving the switching controls message that described first processor sends by the connected mode control switching controls interface of resistance.Wherein, second receiving element and the 3rd receiving element dot respectively among this Fig. 5.
Wherein, described switch unit 42 comprises: first switch unit 421 and second switch unit 422, wherein, described first switch unit 421, be used for first receive unit 411, second receive switching controls message that unit 412 or the 3rd receiving element 413 receive comprise described according to user's request, on the passage that audio input channel switches to first processor links to each other; Described second switch unit 422 is used for receiving element 41 and receives first processor when entering the switching controls message that sends before the resting state, then audio input channel and control channel is switched on the passage that links to each other with second processor.
Preferably, described audio frequency switching device also comprises: the audio frequency control unit, be used for first switch unit with the passage that described audio input channel switches to first processor links to each other on after, when receiving transmission audio signal that first processor sends and corresponding control signal by the HD Audio interface, carry out the corresponding audio control operation; Perhaps be used for after second switch unit switches to described audio input channel and control channel on the passage that links to each other with second processor, when control signal, carry out the corresponding audio control operation in transmission audio signal that receives the transmission of second processor by pcm interface, I2S interface or AC97 interface and correspondence.
Preferably, described audio frequency switching device also comprises: the default setting unit is used for when the first processor shutdown of terminal equipment audio input channel and control channel being switched on the passage that links to each other with second processor.
Preferably, described audio frequency switching device can be integrated on the audio codec.
In the present embodiment, when described first processor was AP, second was treated to CP; Otherwise when first processor was CP, second processor was AP, but is not limited to this.
The implementation procedure of the function of each unit and effect sees implementation procedure corresponding in the said method for details in the described audio frequency switching device, does not repeat them here.
The embodiment of the invention also provides a kind of audio codec, comprises at least: first audio input interface, second audio input interface and audio frequency switching device, and wherein, described first audio input interface is used to support the audio interface in the non-embedded system; Described second audio input interface is used to support the audio interface on the embedded system; Described audio frequency switching device, be used for receiving the switching controls message of supporting that non-embedded system first processor sends by first audio input interface, and according to described switching controls message, with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel; And when receiving audio signal that described first processor sends and control signal, carry out the corresponding audio control operation according to described audio signal and control signal by first audio input interface; When perhaps receiving transmission audio signal that described second processor sends and control signal, carry out the corresponding audio control operation according to described audio signal and control signal by second audio input interface.
Wherein, described first kind of audio input interface is the HD Audio interface; Second kind of audio input interface is pulse code modulation pcm interface or I2S interface or AC97 interface etc.
In the present embodiment, when described first processor was AP, second was treated to CP; Otherwise when first processor was CP, second processor was AP, but is not limited to this.
The implementation procedure of the function of each unit and effect sees implementation procedure corresponding in the said method for details in the audio frequency switching device of described audio codec, does not repeat them here.
In addition, the embodiment of the invention also provides a kind of terminal equipment, and its structural representation sees Fig. 5 for details, and described terminal equipment comprises: first processor 51, second processor 52 and audio codec 53, described audio codec 53 comprises audio frequency switching device 531.Wherein, described first processor 51 is used for according to user's request or before entering resting state, sends switching controls message to audio codec; Described second processor 52, be used for receive first processor 51 send enter the notice of resting state after, send audio frequency control operation (among the figure shown in the dotted line) to audio codec; Described audio frequency switching device 531, be used for receiving the switching controls message that non-embedded system first processor sends, and according to described switching controls message, with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel; When audio signal that receives described first processor transmission and control signal, carry out the corresponding audio control operation according to described audio signal and control signal; Perhaps when transmission audio signal that receives described second processor transmission and control signal, carry out the corresponding audio control operation according to described audio signal and control signal; Described audio frequency switching device 531 specifically comprises: first audio input interface, second audio input interface and audio frequency switching device, its concrete function and effect see for details above-mentioned, do not repeat them here.
Preferably, described first kind of audio input interface is the HD Audio interface; Second kind of audio input interface is pulse code modulation pcm interface or I2S interface or AC97 interface etc.
In the present embodiment, when described first processor was AP, second was treated to CP; Otherwise when first processor was CP, second processor was AP, but is not limited to this.
The implementation procedure of the function of each unit and effect sees implementation procedure corresponding in the said method for details in the audio frequency switching device of described audio codec, does not repeat them here.
For the ease of those skilled in the art's understanding, illustrate with concrete Application Example below.
See also Fig. 6, the structural representation of the application example 1 of the terminal equipment that provides in the embodiment of the invention is provided; In this embodiment, terminal equipment comprises: application processing system 61, communication processing system 62, communication wireless processing unit 621, audio frequency processing system 63 can comprise also in the terminal equipment that bluetooth 64 is as audio frequency or data transfer mode.Wherein, application processing system 61 comprises AP; Comprise CP in the communication processing system 62, comprise audio codec in the audio frequency processing system 63, described audio codec can comprise the audio frequency switching device, the switch unit of this audio frequency switching device is realized switching with a three-phase diverter switch, but be not limited to this, its concrete implementation procedure comprises:
When terminal equipment was only opened CP, the audio input channel of audio codec was given tacit consent on CP; When the user opens AP, and during the operation that the execution audio frequency that AP controlled is correlated with, the AP then switching controls interface of the audio codec in audio frequency processing system 63 (can realize by the three-phase diverter switch, but be not limited to this, being about to the three-phase diverter switch is communicated with AP) the transmission switch-over control signal, audio codec is after receiving switch-over control signal, on the passage that audio input channel switches with AP links to each other, can finish user's the relevant operation of audio frequency by the control audio input channel, promptly receive audio signal and the control signal that CP sends by the HD Audio interface, according to the loud speaker 631 in described audio signal and the control signal control audio treatment system 63, receiver 632 and microphone 633 are finished the audio frequency input and output, and the audio status parameter is as the operations such as size of control volume; At this moment, if have telephone access in the time of maybe will calling, then CP sends communication notifications to AP, AP is after receiving this communication notifications, suspend the audio file operation of AP end, switching controls interface to audio codec sends switch-over control signal, after audio coder receives switching controls number, to (promptly realize on the passage that audio input channel switches with CP links to each other by the three-phase diverter switch, the three-phase diverter switch is communicated with CP), CP adjusts the required audio status parameter of user by audio input channel; Be that pcm interface, I2S interface or AC97 interface receive audio signal and the control signal that CP sends, then finish the audio frequency input and output, and the audio status parameter is as the operations such as size of control volume according to loud speaker 631, receiver 632 and microphone 633 in described audio signal and the control signal control audio treatment system 63.When sign off, CP then sends the notice that communication is finished to AP if judge that AP is not in resting state, and AP notification audio codec is with on the passage that audio input channel switches to AP links to each other, if the user has the relevant operation of audio frequency then to recover before the conversation.Before AP is entering resting state, send switch-over control signal to audio codec, after audio codec is received this switch-over control signal with audio frequency, on the passage that audio input channel and control channel switch to CP links to each other, AP adjusts the required audio status parameter of user by audio input channel, finishes audio operation such as the loud speaker in the control audio treatment system 63 631, receiver 632 and microphone 633.
Also see also Fig. 7, the structural representation of the application example 2 of the terminal equipment that provides in the embodiment of the invention is provided; This embodiment is on the basis of Fig. 6, can also comprise resistance 81 (being R1), resistance 82 (being R2), in terminal equipment and the above-mentioned application example 1 in the terminal equipment difference of the implementation procedure of each unit comprise: the three-phase diverter switch switching controls in the present embodiment, can control by application processing system or communication processing system, during specific implementation, can be AP, also can be CP.That is to say that if AP sends switching controls message to the switching controls interface by R1, then the control of three-phase diverter switch is at AP; If CP sends switching controls message to the switching controls interface by R2, then the control of three-phase diverter switch is at CP; Other implementation procedure sees above-mentioned Application Example 1 for details, does not repeat them here.
Also see also Fig. 8, the structural representation of the application example 3 of the terminal equipment that provides in the embodiment of the invention is provided; This embodiment can also comprise switchgear 81 on the basis of Fig. 6, this switchgear present embodiment is an example with the three-phase diverter switch, but be not limited to this, the implementation procedure of the implementation procedure of this terminal equipment and above-mentioned application example 1 is similar, and its difference is, comprising:
Three-phase diverter switch in the audio codec can dynamically be controlled by switchgear by Power Management Unit PMU, and promptly by PMU output control signal, the control of the three-phase diverter switch in the control switch equipment is responsible for still by CP by AP.The implementation procedure of other implementation procedure and Application Example 1 is similar not to be repeated them here.
This shows, in embodiments of the present invention, if the normal standby of first processor, then by the Audio Processing of first processor control terminal; In first processor shutdown or be under the situation of resting state, can be by the Audio Processing of the second processor control terminal, to reach purpose of power saving; Be in resting state and when incoming call was arranged, second processor need not to wake up first processor at first processor, directly it carried out audio frequency control.In addition, in embodiments of the present invention, owing to will integrate for the audio frequency processing system of the first processor and the second processor service, audio codec receives the switching controls message that first processor sends by the audio frequency control interface, and according to described switching controls message, audio input channel and control channel are switched on the passage that links to each other with the first processor or second processor, thereby make the first processor or second processor adjust the required audio status parameter of user by audio input channel, and finish corresponding audio operation, perhaps under the situation of first processor shutdown, can adjust the required audio status parameter of user by audio input channel by second processor, and finish corresponding audio operation.This shows, the embodiment of the invention compared with prior art, not only reduced area occupied, reduced cost, particularly when first processor is in resting state, when second processor receives incoming call, need not to wake up first processor, can control user's Audio Processing voluntarily, thereby save the electric weight of terminal equipment, thereby reduce power consumption of terminal equipment.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (18)

1. an audio switching method is characterized in that, comprising:
Receive the switching controls message that first processor sends;
According to described switching controls message,, perhaps audio input channel and control channel are switched on the passage that links to each other with the first processor or second processor audio input channel.
2. method according to claim 1 is characterized in that, the switching controls message that described reception first processor sends comprises:
Receive the switching controls message that described first processor sends by the switching controls interface.
3. method according to claim 2 is characterized in that, the switching controls message that receives described first processor transmission by the switching controls interface specifically comprises one of the following:
Directly receive the switching controls message that described first processor sends by the switching controls interface;
Receive the switching controls message that first processor sends by switchgear control switching controls interface, described switchgear is controlled by Power Management Unit;
Connected mode control switching controls interface by resistance receives the switching controls message that described first processor sends.
4. method according to claim 3 is characterized in that, also comprises:
First processor according to user's request, receive communication notifications that second processor sends or send described switching controls message entering resting state forward direction audio codec.
5. method according to claim 4 is characterized in that, and is described according to switching controls message, and with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel and specifically comprises:
If audio codec receives first processor according to the switching controls message that user's request sends, then audio input channel is switched to passage that first processor links to each other on;
If audio codec receives first processor and enters the switching controls message that sends before the resting state, then audio input channel and control channel are switched on the passage that links to each other with second processor.
6. method according to claim 5 is characterized in that, described method also comprises:
After on the passage that described audio input channel switches to first processor links to each other, if described audio codec receives audio signal and the control signal that first processor sends by the HD Audio interface, then carry out the corresponding audio control operation according to described audio signal and control signal; Perhaps, after described audio input channel and control channel switch on the passage that links to each other with second processor; If described audio codec receives audio signal and the control signal that second processor sends by pulse code modulation pcm interface, I2S interface or AC97 interface, then carry out the corresponding audio control operation according to described audio signal and control signal.
7. according to each described method of claim 1 to 6, it is characterized in that, also comprise:
When the first processor in terminal equipment shuts down, described audio input channel and control channel are switched on the passage that links to each other with second processor.
8. according to each described method of claim 1 to 6, it is characterized in that,
Described first processor comprises: application processor, and second processor comprises: communication processor; Perhaps described first processor comprises: communication processor, second processor comprises: application processor.
9. an audio frequency switching device is characterized in that, comprising:
Receiving element is used to receive the switching controls message that first processor sends;
Switch unit is used for the switching controls message that receives according to described receiving element, and with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel.
10. equipment according to claim 9 is characterized in that, described receiving element receives the switching controls message that first processor sends by the switching controls interface.
11. equipment according to claim 10 is characterized in that, described receiving element specifically comprises one of the following:
First receiving element is used for directly receiving the switching controls message that described first processor sends by the switching controls interface;
Second receiving element is used for receiving the switching controls message that first processor sends by switchgear control switching controls interface, and described switchgear is controlled by Power Management Unit;
The 3rd receiving element is used for receiving the switching controls message that described first processor sends by the connected mode control switching controls interface of resistance.
12. equipment according to claim 11 is characterized in that, described switch unit comprises:
First switch unit is used for when first, second or the 3rd receiving element receive the switching controls message that sends according to user's request audio input channel being switched on the passage that links to each other with second processor;
Second switch unit is used for then audio input channel and control channel being switched on the passage that links to each other with second processor when receiving element receives the switching controls message that sends before first processor enters resting state.
13. equipment according to claim 12 is characterized in that, also comprises:
The audio frequency control unit, be used for first switch unit with the passage that described audio input channel switches to first processor links to each other on after, when receiving transmission audio signal that first processor sends and corresponding control signal by the HD Audio interface, carry out the corresponding audio control operation; Perhaps be used for after second switch unit switches to described audio input channel and control channel on the passage that links to each other with second processor, when the control signal of transmission audio signal that receives the transmission of second processor by pcm interface, I2S interface or AC97 interface and correspondence, carry out the corresponding audio control operation.
14. according to each described equipment of claim 9 to 13, it is characterized in that, also comprise:
The default setting unit is used for when the first processor shutdown of terminal equipment audio input channel and control channel being switched on the passage that links to each other with second processor.
15., it is characterized in that described audio frequency switching device is integrated on the audio codec according to each described equipment of claim 9 to 13.
16. an audio codec is characterized in that, comprising:
First audio input interface is used to support the audio interface in the non-embedded system;
Second audio input interface is used to support the audio interface on the embedded system;
The audio frequency switching device be used to receive the switching controls message that first processor sends, and according to described switching controls message, with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel; And when receiving audio signal that described first processor sends and control signal, carry out the corresponding audio control operation according to described audio signal and control signal by first audio input interface; When perhaps receiving transmission audio signal that described second processor sends and control signal, carry out the corresponding audio control operation according to described audio signal and control signal by second audio input interface.
17. audio codec according to claim 16 is characterized in that,
Described first kind of audio input interface is the HD Audio interface; Second kind of audio input interface is pcm interface, I2S interface or AC97 interface.
18. a terminal equipment is characterized in that, comprising: first processor, second processor and audio codec, wherein
Described first processor is used for according to user's request or before entering resting state, sends switching controls message to audio codec;
Described second processor, be used for receive first processor send enter the notice of resting state after, send the audio frequency control operation to audio codec;
Described audio codec, be used to receive the switching controls message that first processor sends, and according to described switching controls message, with audio input channel, perhaps audio input channel switches on the passage that links to each other with the first processor or second processor with control channel; When audio signal that receives described first processor transmission and control signal, carry out the corresponding audio control operation according to described audio signal and control signal.
CN2009100809636A 2009-03-30 2009-03-30 Audio switching method, audio switching device, audio codec and terminal device Active CN101854705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100809636A CN101854705B (en) 2009-03-30 2009-03-30 Audio switching method, audio switching device, audio codec and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100809636A CN101854705B (en) 2009-03-30 2009-03-30 Audio switching method, audio switching device, audio codec and terminal device

Publications (2)

Publication Number Publication Date
CN101854705A true CN101854705A (en) 2010-10-06
CN101854705B CN101854705B (en) 2013-02-13

Family

ID=42805905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100809636A Active CN101854705B (en) 2009-03-30 2009-03-30 Audio switching method, audio switching device, audio codec and terminal device

Country Status (1)

Country Link
CN (1) CN101854705B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883641A (en) * 2014-02-28 2015-09-02 维沃移动通信有限公司 Mobile terminal of realizing high fidelity music play
CN104936268A (en) * 2014-03-17 2015-09-23 联想(北京)有限公司 Switching method and device
CN107979484A (en) * 2016-10-25 2018-05-01 北京佳讯飞鸿电气股份有限公司 A kind of scheduling system and method with a variety of communication functions
CN108829324A (en) * 2018-06-14 2018-11-16 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100699267B1 (en) * 2005-08-12 2007-03-27 삼성전자주식회사 Monitor
GB2432759B (en) * 2005-11-26 2008-07-02 Wolfson Ltd Audio device
CN2882131Y (en) * 2006-01-11 2007-03-21 上饶市美多电子信息技术有限公司 Community interlligent management system based on local network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883641A (en) * 2014-02-28 2015-09-02 维沃移动通信有限公司 Mobile terminal of realizing high fidelity music play
CN104936268A (en) * 2014-03-17 2015-09-23 联想(北京)有限公司 Switching method and device
CN107979484A (en) * 2016-10-25 2018-05-01 北京佳讯飞鸿电气股份有限公司 A kind of scheduling system and method with a variety of communication functions
CN107979484B (en) * 2016-10-25 2021-12-24 北京佳讯飞鸿电气股份有限公司 Scheduling system and method with multiple communication functions
CN108829324A (en) * 2018-06-14 2018-11-16 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN101854705B (en) 2013-02-13

Similar Documents

Publication Publication Date Title
EP1889453B1 (en) Method and apparatus for establishing an audio link to a wireless earpiece in reduced time
CN101361379B (en) Implementing method for double-standby call of double-mode mobile terminal
CN101138261A (en) Mobile communication terminal and method for notifying handover operation
CN101252377B (en) Earphone equipment and method for communication terminal to realize voice intercommunication traffic using the same
JPH0771335B2 (en) Cellular data telephone and data communication method thereof
KR20090081310A (en) Apparatus and method for providing host function in a multi-standby portable terminal
CN101340670A (en) Method and multi-mode mobile terminal for processing voice and data concurrence
CN101854705B (en) Audio switching method, audio switching device, audio codec and terminal device
CN101711021B (en) Mobile terminal
CN101340727A (en) Mobile terminal, multipath call control method and system
CN102970426B (en) Communication control method and device of mobile terminals
CN101123807B (en) A multi-mode terminal and its calling and called party processing method
CN102316487A (en) Communication monitoring method, device and system thereof
CN101600266A (en) The method of a kind of gateway and support Multi-Subscriber Number
CN1984399B (en) Terminal for switching to HRPD network according to CDMA 2000 calling message
CN101316294A (en) Mobile terminal conversation state management method and device based on code division multiple access network
KR100690749B1 (en) Device for performing conference call in wireless terminal
CN1980421B (en) Double-mode terminal personal wireless local telephone system communication control method
CN101247587A (en) Method and mobile phone for remote monitoring
KR100713338B1 (en) Method for displaying information of real caller in handheld terminal serving mutipoint communication
CN107040673A (en) Integrated access equipment and its control method
CN101179783A (en) Communication processing method of dual-mode terminal
CN101340211A (en) Multi-way call control method and system
CN100536501C (en) Method and system for radio connecting by receiving end device control
KR20010018355A (en) Method for transforming automatic answering mode by manualkey in mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant