Audio power amplifier device, mobile phone and control method
Technical field
The present invention relates to a kind of audio power amplifier device, mobile phone and control method.
Background technology
Electronic product in the market with audio-frequency function is a lot, comprises mobile terminal, household electrical appliance, musical instruments and vehicle etc.The kind of audio frequency power amplifier is divided into Class A, Class B, class AB and class D, and wherein audio frequency power amplifier efficiency in Class A is low, but not easily distortion, belong to high-fidelity power amplifier, be mainly used in the occasion high to the requirement of sound fidelity, such as the musical instruments of specialty.The efficiency of Class B audio frequency power amplifier is higher, but loses the generation of genuine situation, does not belong to HD Audio power amplifier truly.Class AB and class D audio frequency efficiency higher, but distortion rate is also very high, and what use in general automobile audio and hand-held kind equipment is many.
The development platform system of above-mentioned electronic product can a built-in audio frequency power amplifier, then needs additional audio frequency power amplifier when built-in audio power amplifier can not meet product requirement, what such as development platform was built-in is class AB audio frequency power amplifier, and when utilizing the product needed class D audio frequency power amplifier of this development platform could meet the requirement of product, then on described product, a class D audio frequency power amplifier is installed.But supplemental audio power amplifier can make the power consumption of electronic product increase, and likely occur that loud speaker produces the phenomenon of trickle noise, and the usual more complicated of application scenarios of supplemental audio power amplifier is controlled by software, omit a scene and user will be made to can't hear sound when using this scene.
Summary of the invention
The technical problem to be solved in the present invention is that the electronic equipment power consumption in order to overcome with supplemental audio power amplifier in prior art is larger, easy generation noise and the defect of makeing mistakes, provide a kind of energy-conservation, simple and that reliability is good audio power amplifier device, mobile phone and control method are set.
The present invention solves above-mentioned technical problem by following technical proposals: a kind of audio power amplifier device, it comprises a circuit main board, one first audio frequency power amplifier and one second audio frequency power amplifier, its feature is, described audio power amplifier device also comprises a detection module, described second audio frequency power amplifier and described detection module are all arranged on described circuit main board, whether described detection module sends audio signal to described first audio frequency power amplifier for detecting described second audio frequency power amplifier, if then send a triggering signal to described first audio frequency power amplifier, then described first audio frequency power amplifier is in running order.
Existing with in the electronic product of audio-frequency function, the development platform system of electronic product can a built-in audio frequency power amplifier, when built-in audio power amplifier can not meet product requirement, one external audio frequency power amplifier can be set outside development platform, the occupation mode of built-in audio power amplifier and external audio frequency power amplifier is generally two kinds, one is that external audio frequency power amplifier is always in running order, receive the audio signal that built-in audio power amplifier sends at any time, this mode opens external audio frequency power amplifier always makes system power dissipation increase, affect the stand-by time of electronic product, and because external audio frequency power amplifier is connected with loud speaker, the in running order loud speaker that makes of external audio frequency power amplifier often produces noise, affect user, another kind of mode is the scene that each needs to use the loud speaker be connected with described external audio frequency power amplifier by software editing, when electronic product detects the scene needing to use described loud speaker, make external audio frequency power amplifier in running order and accept the audio signal of built-in audio power amplifier, such as mobile phone is when playing the music of music software with loud speaker, when entering into this scene of music software, the external audio frequency power amplifier of mobile phone is in running order by driving, this mode needs the combination (calling when such as playing music) considering several scenes and scene, arrange more complicated easy appearance to omit, the unfailing performance of electronic product is poor.
In audio power amplifier device of the present invention, the second audio frequency power amplifier is for being arranged on the built-in audio power amplifier in development platform system (i.e. circuit main board), and the first audio frequency power amplifier is the external audio frequency power amplifier of peripheral hardware.In use, first audio frequency power amplifier is in non operating state, when the electronic product at audio power amplifier device place needs sounding, second audio frequency power amplifier in running order and to first audio frequency power amplifier send audio signal, detection module sends triggering signal and makes described first audio frequency power amplifier in running order after this audio signal being detected, described triggering signal can be the enable signal that the chip of electronic product sends.When audio power amplifier device can't detect audio signal, the first audio frequency power amplifier can be quit work.Described first audio frequency power amplifier is only just in running order under the scene needing work, can not only reduce system power dissipation and user can not experience noise.Audio power amplifier device does not need design first audio frequency power amplifier to need the scene of work simultaneously, avoids occurring mistake in design, and the reliability of audio power amplifier device is higher.
Preferably, described detection module comprises a D/A converter module, and the audio signal that described D/A converter module is used for described second audio frequency power amplifier sends is converted into digital signal.
Described detection module comprises D/A converter module, and the audio signal that the second audio frequency power amplifier sends is converted to digital signal by D/A converter module, by judging whether the detection of digital signal to need to make the first audio frequency power amplifier in running order.Implementation can be, described second audio frequency power amplifier is when sending audio signal to described first audio frequency power amplifier, also change these audio signals into digital signal by D/A converter module, detection module only need detect digital signal and just can judge whether easily to need to make the first audio frequency power amplifier in running order.
Preferably, described audio power amplifier device comprises a time block, for calling described checkout gear by a predetermined period.
Described time block can ensure that the first audio frequency power amplifier normally works, cycle can preset, when audio signal having been detected, the first audio frequency power amplifier is in running order, and the first audio frequency power amplifier can be allowed when detecting that audio signal transmission stops to be in non operating state.Described time block can start when the second audio frequency power amplifier work, then starts cycle detection, enables detection module more accurate, more energy-conservation detection audio signal.
Preferably, described first audio frequency power amplifier and described second audio frequency power amplifier are any two kinds in class a audio power amplifier, Class B power amplifier, class AB power amplifier or class D power amplifier.By different types of setting of the first audio frequency power amplifier and the second audio frequency power amplifier, make described audio power amplifier device can meet multiple demand.
The present invention provides again a kind of mobile phone, and described mobile phone comprises audio power amplifier device as above and for receiving the loud speaker of the audio signal that described first audio frequency power amplifier sends.
Described mobile phone can the use loud speaker of low-power consumption, and does not need to arrange by the sight of complexity the control realizing loud speaker, improves the reliability that handset audio is play.
The present invention also provides a kind of control method controlling audio power amplifier device as above, and described control method comprises:
S
1, detect described second audio frequency power amplifier and whether send audio signal to described first audio frequency power amplifier, if then perform step S
2, then flow process terminates if not;
S
2, send one for the triggering signal that makes described first audio frequency power amplifier in running order to described first audio frequency power amplifier;
S
3, described first audio frequency power amplifier is in running order.
Described triggering signal makes the first audio frequency power amplifier in running order, refers to when the first audio frequency power amplifier is in non operating state, makes it in running order by triggering signal; When the first audio frequency power amplifier is in running order, it is made to remain in running order by triggering signal.When can't detect audio signal, flow process terminates, and at this moment the first audio frequency power amplifier can quit work, and saves the energy.
Preferably, step S
1for:
S
1, detect described D/A converter module and whether the audio signal that described second audio frequency power amplifier sends be converted into digital signal, if then perform step S
2, then flow process terminates if not.
The mode detecting digital signal can conveniently judge whether to need to make the first audio frequency power amplifier in running order.
Preferably, step S
3for:
S
3, described first audio frequency power amplifier is in running order, performs step S after the time interval of described time block time delay one preset duration
1.
Step S
3described method cycle detection can be made whether to have audio signal, more accurate to the detection of audio signal between described first audio frequency power amplifier and described second audio frequency power amplifier.
Positive progressive effect of the present invention is: audio power amplifier device energy-saving effect of the present invention is good, and can not produce noise in a non-operative state, the reliability using the electronic product sound of audio power amplifier device of the present invention to play is high.
Accompanying drawing explanation
Fig. 1 is the structural representation of the embodiment 1 of audio power amplifier device of the present invention.
Fig. 2 is the flow chart of the embodiment 2 of the control method of audio power amplifier device of the present invention.
Fig. 3 is the flow chart of the embodiment 3 of the control method of audio power amplifier device of the present invention.
Embodiment
Present pre-ferred embodiments is provided, to describe technical scheme of the present invention in detail below in conjunction with accompanying drawing.
Embodiment 1
In the present embodiment, see Fig. 1, a kind of mobile phone, described mobile phone comprises an audio power amplifier device and a loud speaker 17, and described audio power amplifier device comprises circuit main board 11,1 first audio frequency power amplifier 12,1 second audio frequency power amplifier 13, detection module 14 and a time block 15.Wherein said first audio frequency power amplifier 12 is Class A audio frequency power amplifier, described second audio frequency power amplifier 13 is class D audio frequency power amplifier, and described first audio frequency power amplifier 12 and described second audio frequency power amplifier 13 can also be any two kinds in class a audio power amplifier, Class B power amplifier, class AB power amplifier or class D power amplifier.
Described second audio frequency power amplifier 13 is all arranged on described circuit main board 11 with described detection module 14, and described time block 15 calls described checkout gear by a predetermined period.Detect described second audio frequency power amplifier 13 after described detection module 14 is called and whether send audio signal through audio signal transmission wire to described first audio frequency power amplifier 12, if then send a triggering signal to described first audio frequency power amplifier 12 by holding wire, then described first audio frequency power amplifier 12 is in running order, and will to described loud speaker 17 transmission of audio signal.Described detection module 14 comprises a D/A converter module 16, and the audio signal that described second audio frequency power amplifier 13 sends is converted into digital signal by described D/A converter module 16.Detection module 14 detects to have during audio signal and just can judge whether described second audio frequency power amplifier 13 sends audio signal to described first audio frequency power amplifier 12.
Described mobile phone is not only energy-conservation, and does not need to arrange by the sight of complexity the control realizing external audio frequency power amplifier, improves the reliability that handset audio is play.
Embodiment 2
In the present embodiment, see Fig. 2, a kind of control method of audio power amplifier device of mobile phone, the mobile phone in the non-embodiment 1 of described mobile phone, described control method comprises:
Step 100, detect described D/A converter module and whether the audio signal that described second audio frequency power amplifier sends is converted into digital signal, if then perform step 101, then flow process terminates if not.
Detection module detects described second audio frequency power amplifier and whether sends audio signal to described first audio frequency power amplifier in step 100, described second audio frequency power amplifier is when sending audio signal to described first audio frequency power amplifier, also these audio signals are changed into digital signal by D/A converter module, detection module only need detect the digital signal whether having D/A converter module to change, and this mode can judge whether to need to make the first audio frequency power amplifier in running order easily.
Step 101, triggering signal extremely described first audio frequency power amplifier of transmission one for making described first audio frequency power amplifier in running order.
Described triggering signal both can make described first audio frequency power amplifier be converted to operating state from non operating state, and described first audio frequency power amplifier also can be made to maintain operating state.
Step 102, described first audio frequency power amplifier are in running order.
Step 103, time delay 10 milliseconds perform step 100 afterwards.
Time delay 10 milliseconds is completed by time block, in step 103 10 milliseconds is a kind of optimal way of preset duration, this preset duration can not only detect the second audio frequency power amplifier accurately whether in work, thus judge whether the work of needs first audio frequency power amplifier, ensure that sound can not be lost, and noise can not be produced because preset duration is too short.
By this control method, the audio power amplifier device of mobile phone has good energy-saving effect, and mobile phone can not produce noise in a non-operative state and reliability is high.
Embodiment 3
See Fig. 3, the present embodiment is substantially the same manner as Example 2, and difference is only:
Step 100 be:
Step 1001, detect described D/A converter module and whether the audio signal that described second audio frequency power amplifier sends is converted into digital signal, if then perform step 101, then perform step 1002 if not.
Step 1002, transmission one are in the triggering signal of non operating state to described first audio frequency power amplifier for making described first audio frequency power amplifier.
Step 1003, described first audio frequency power amplifier are in non operating state, then process ends.
Step 103 be:
Step 103, time delay 10 milliseconds perform step 1001 afterwards.
After described control method starts, control method can make described method cycle detection whether have audio signal, if there is new product signal, described first audio frequency power amplifier both can be opened for making the in running order triggering signal of described first audio frequency power amplifier, the first audio frequency power amplifier can be maintained again in running order, after cycle detection detects that audio signal stops, the first audio frequency power amplifier quits work.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these execution modes, but these change and amendment all falls into protection scope of the present invention.