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 methods.
Background technology
Currently on the market carry audio-frequency function electronic product it is very much, including mobile terminal, household electrical appliance, musical instruments and
Vehicle etc..The type of audio frequency power amplifier is divided into Class A, Class B, class AB and class D, and wherein Class A audio frequency power amplifier efficiency is low, but not
Easily distortion, belongs to high-fidelity power amplifier, is mainly used in the occasion high to sound fidelity requirement, such as the music device of profession
Material.The efficiency of Class B audio frequency power amplifier is higher, but loses and really happen, and is not belonging to HD Audio work(truly
It puts.Class AB and class D audio are more efficient, but distortion rate is also very high, are used in general automobile audio and hand-held class equipment
Compare more.
The built-in audio frequency power amplifier of development platform system meeting of above-mentioned electronic product, and built-in audio power amplifier cannot meet production
Product then need additional audio frequency power amplifier when requiring, such as built in development platform are class AB audio frequency power amplifiers, and utilize this exploitation
When the product of platform needs class D audio frequency power amplifier that could meet the requirement of product, then a class D audio is installed on the product
Power amplifier.But supplemental audio power amplifier can be such that the power consumption of electronic product increases, and it is possible to the subtle noise of loud speaker generation occur
The phenomenon that, and be usually relatively complex by software to control the application scenarios of supplemental audio power amplifier, omitting a scene will make
User can't hear sound when using this scene.
Invention content
The technical problem to be solved by the present invention is in order to overcome in the prior art carry supplemental audio power amplifier electronic equipment
Power consumption is larger, easy tos produce the defect of noise and error, provides that a kind of energy saving, setting is simple and the good audio of reliability
Power amplification device, mobile phone and control method.
The present invention is to solve above-mentioned technical problem by following technical proposals:A kind of audio power amplifier device comprising one
Circuit main board, one first audio frequency power amplifier and one second audio frequency power amplifier, feature are that the audio power amplifier device further includes one
Detection module, second audio frequency power amplifier are arranged at the detection module on the circuit main board, and the detection module is used
In detection second audio frequency power amplifier whether to first audio frequency power amplifier transmission audio signal, if then sending a trigger signal
To first audio frequency power amplifier, then first audio frequency power amplifier is in running order.
In the existing electronic product with audio-frequency function, the development platform system of electronic product can a built-in audio work(
It puts, an external audio frequency power amplifier, built-in audio can be set when built-in audio frequency power amplifier cannot meet product requirement outside development platform
The occupation mode of power amplifier and external audio frequency power amplifier is usually two kinds, and one is external audio frequency power amplifiers to be constantly in working condition, with
When receive the audio signal that built-in audio power amplifier sends, this always on external audio frequency power amplifier of mode makes system power dissipation increase,
The stand-by time of electronic product is influenced, and because external audio frequency power amplifier is connect with loud speaker, external audio frequency power amplifier is in work
State makes loud speaker often generate noise, influences user;Another way is used and institute by each needs of software editing
The scene for stating the loud speaker of external audio frequency power amplifier connection, when electronic product detects to need the scene using the loud speaker,
Keep external audio frequency power amplifier in running order and receive the audio signal of built-in audio power amplifier, such as mobile phone is played with loud speaker
When the music of music software, the external audio frequency power amplifier in this scene for entering music software in mobile phone is in by driving
Working condition, this mode need to consider the combination (such as calling when playing music) of several scenes and scene, setting compared with
Complexity is susceptible to omission, and the unfailing performance of electronic product is poor.
In the audio power amplifier device of the present invention, the second audio frequency power amplifier is to be arranged at development platform system (i.e. circuit main board)
On built-in audio power amplifier, the first audio frequency power amplifier be peripheral hardware external audio frequency power amplifier.When in use, the first audio frequency power amplifier is in non-
Working condition, when the electronic product where audio power amplifier device needs sounding, the second audio frequency power amplifier it is in running order and to
First audio frequency power amplifier sends audio signal, and transmission trigger signal makes described first after detection module detects this audio signal
Audio frequency power amplifier is in running order, and the trigger signal can be the enable signal that the chip of electronic product is sent.When audio work(
When putting device and can't detect audio signal, the first audio frequency power amplifier can be stopped.First audio frequency power amplifier is only needing
It is just in running order under the scene to be worked, system power dissipation can not only be reduced and user will not experience noise.Simultaneously
Audio power amplifier device need not design the scene that the first audio frequency power amplifier needs work, avoid mistake, audio frequency power amplifier occur in design
The reliability higher of device.
Preferably, the detection module includes a D/A converter module, the D/A converter module is used for described second
The audio signal that audio frequency power amplifier is sent is converted into digital signal.
The detection module includes D/A converter module, the audio signal that D/A converter module sends the second audio frequency power amplifier
Digital signal is converted to, by the detection to digital signal to determine whether needing to keep the first audio frequency power amplifier in running order.
Realization method can be that second audio frequency power amplifier is when sending audio signal to first audio frequency power amplifier, also by digital-to-analogue
Conversion module converts these audio signals as digital signal, and detection module, which need to only detect digital signal and can easily judge, is
It is no to need to keep the first audio frequency power amplifier in running order.
Preferably, the audio power amplifier device includes a timing module, for calling the detection mould by a predetermined period
Block.
The timing module can ensure that the first audio frequency power amplifier works normally, and the period can preset, when having detected audio
When signal, 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
In off working state.The timing module can start when the second audio frequency power amplifier works, and then start the cycle over detection, make inspection
Surveying module can be more accurate, more energy-efficient detection audio signal.
Preferably, first audio frequency power amplifier and second audio frequency power amplifier are class a audio power amplifier, Class B power amplifier, class AB work(
Put or class D power amplifier in arbitrary two kinds.Pass through different types of setting of the first audio frequency power amplifier and the second audio frequency power amplifier so that
The audio power amplifier device can meet a variety of demands.
The present invention provides a kind of mobile phone again, and the mobile phone includes audio power amplifier device as described above and one for receiving
The loud speaker for the audio signal that first audio frequency power amplifier is sent.
The mobile phone can be with the loud speaker that uses of low-power consumption, and need not be arranged by complicated scene and be raised one's voice to realize
The control of device improves the reliability of handset audio broadcasting.
The present invention also provides a kind of control method of control audio power amplifier device as described above, the control method packets
It includes:
S1, detection second audio frequency power amplifier whether to first audio frequency power amplifier send audio signal, if so then execute
Step S2If otherwise flow terminates;
S2, send one for the trigger signal that keeps first audio frequency power amplifier in running order to the first audio work(
It puts;
S3, first audio frequency power amplifier it is in running order.
The trigger signal keeps the first audio frequency power amplifier in running order, refers to when the first audio frequency power amplifier is in inoperative shape
When state, working condition is at by trigger signal;When the first audio frequency power amplifier is in running order, made by trigger signal
It is maintained in working condition.When can't detect audio signal, flow terminates, and at this moment the first audio frequency power amplifier can be stopped,
Save the energy.
Preferably, step S1For:
S1, the detection D/A converter module whether convert the audio signal that second audio frequency power amplifier is sent to number
Signal, if so then execute step S2If otherwise flow terminates.
The mode of detection digital signal can conveniently judge whether to need to make the first audio frequency power amplifier in running order.
Preferably, step S3For:
S3, first audio frequency power amplifier it is in running order, the timing module is delayed the time interval of a preset duration
Step S is executed afterwards1。
Step S3It can make whether the method cycle detection has audio signal, to first audio frequency power amplifier and described the
The detection of audio signal is more accurate between two audio frequency power amplifiers.
The positive effect of the present invention is that:The audio power amplifier device energy-saving effect of the present invention is good, in inoperative shape
It not will produce noise under state, the reliability played using the electronic product sound of audio power amplifier device of the present invention is high.
Description of the drawings
Fig. 1 is the structural schematic diagram 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.
Specific implementation mode
Present pre-ferred embodiments are provided below in conjunction with the accompanying drawings, with the technical solution that the present invention will be described in detail.
Embodiment 1
In the present embodiment, referring to Fig. 1, a kind of mobile phone, the mobile phone includes an audio power amplifier device and a loud speaker 17,
The audio power amplifier device includes a circuit main board 11, one first audio frequency power amplifier 12, one second audio frequency power amplifier 13, a detection module
14 and a timing module 15.Wherein described first audio frequency power amplifier 12 is Class A audio frequency power amplifier, and second audio frequency power amplifier 13 is
Class D audio frequency power amplifier, first audio frequency power amplifier 12 and second audio frequency power amplifier 13 can also be class a audio power amplifier, Class B power amplifier,
Arbitrary two kinds in class AB power amplifier or class D power amplifier.
Second audio frequency power amplifier 13 is arranged at the detection module 14 on the circuit main board 11, the timing mould
Block 15 calls the detection module by a predetermined period.Second audio frequency power amplifier 13 is detected after the detection module 14 is called
Whether penetrate audio signal transmission wire and send audio signal to first audio frequency power amplifier 12, if then passing through signal wire sends one
Trigger signal is to first audio frequency power amplifier 12, and then first audio frequency power amplifier 12 is in running order, and will be raised to described
Sound device 17 transmits audio signal.The detection module 14 includes a D/A converter module 16, and the D/A converter module 16 is by institute
The audio signal for stating the transmission of the second audio frequency power amplifier 13 is converted into digital signal.The detection of detection module 14 just can when having audio signal
Judge second audio frequency power amplifier 13 whether to first audio frequency power amplifier 12 send audio signal.
The mobile phone is not only energy saving, but also need not be arranged by complicated scene to realize the control of external audio frequency power amplifier
System improves the reliability of handset audio broadcasting.
Embodiment 2
In the present embodiment, referring to Fig. 2, example 1 is not carried out in a kind of control method of the audio power amplifier device of mobile phone, the mobile phone
In mobile phone, the control method includes:
Whether the audio signal for sending second audio frequency power amplifier converts for step 100, the detection D/A converter module
For digital signal, if so then execute step 101, if otherwise flow terminates.
Detection module detects whether second audio frequency power amplifier to first audio frequency power amplifier sends audio in step 100
Signal, second audio frequency power amplifier turn when sending audio signal to first audio frequency power amplifier also by D/A converter module
It is digital signal to change these audio signals, and detection module need to only detect whether the digital signal of D/A converter module conversion, this
Kind mode can easily judge whether to need to make the first audio frequency power amplifier in running order.
Step 101 sends a trigger signal for keeping first audio frequency power amplifier in running order to described first
Audio frequency power amplifier.
The trigger signal can both make first audio frequency power amplifier be converted to working condition from off working state, can also
First audio frequency power amplifier is set to maintain working condition.
Step 102, first audio frequency power amplifier are in running order.
Step 100 is executed after step 103,10 milliseconds of delay.
10 milliseconds of delay is completed by timing module, and 10 milliseconds in step 103 are a kind of preferred of preset duration
Mode, this preset duration can not only accurately detect whether the second audio frequency power amplifier is working, to judge whether needs
One audio frequency power amplifier works, and ensures that sound will not be lost, and will not generate noise 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 is in off working state
Under not will produce noise and reliability high.
Embodiment 3
Referring to Fig. 3, the present embodiment is substantially the same manner as Example 2, the difference is that only:
Step 100 is:
Whether the audio signal for sending second audio frequency power amplifier converts for step 1001, the detection D/A converter module
1002 are thened follow the steps if not if so then execute step 101 for digital signal.
Step 1002 sends one for making first audio frequency power amplifier be in the trigger signal of off working state to described the
One audio frequency power amplifier.
Step 1003, first audio frequency power amplifier are in off working state, then terminate flow.
Step 103 is:
Step 1001 is executed after step 103,10 milliseconds of delay.
After the control method starts, control method can make whether the method cycle detection has audio signal, such as
The trigger signal that fruit has new product signal then to be used to keep first audio frequency power amplifier in running order can both open described first
Audio frequency power amplifier, and the first audio frequency power amplifier can be maintained in running order, after cycle detection detects that audio signal stops, the
One audio frequency power amplifier is stopped.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that these
It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back
Under the premise of from the principle and substance of the present invention, many changes and modifications may be made, but these are changed
Protection scope of the present invention is each fallen with modification.