CN104683917A - Audio control method for mobilephone - Google Patents

Audio control method for mobilephone Download PDF

Info

Publication number
CN104683917A
CN104683917A CN201510039821.0A CN201510039821A CN104683917A CN 104683917 A CN104683917 A CN 104683917A CN 201510039821 A CN201510039821 A CN 201510039821A CN 104683917 A CN104683917 A CN 104683917A
Authority
CN
China
Prior art keywords
earphone
audio
analog switch
sound
audio frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510039821.0A
Other languages
Chinese (zh)
Inventor
乔连伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN201510039821.0A priority Critical patent/CN104683917A/en
Publication of CN104683917A publication Critical patent/CN104683917A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses an audio control method for a mobilephone. The audio control method comprises the following steps: detecting an audio playing mode of the mobilephone in real time and detecting whether audio is output through earphones; recording change of the audio playing of the mobilephone; adjusting the audio playing mode of the mobilephone according to the change of the audio playing; ensuring that no sound is available at the earphone sides when the mobilephone is switched to a hands-free or loudspeaker mode; ensuring sound is available for the earphones and the loudspeaker under dual modes, and maintaining an analog switch at a correct state; plugging the earphones for conversation under a normal mode, and after the mobilephone is switched to a hands-free mode, controlling no sound available at the earphone sides through the audio control unit; plugging the earphones to play the audio under the normal mode, and after the mobilephone is switched to the loudspeaker mode, controlling no sound available at the earphone sides through the audio control unit. According to the audio control method for the mobilephone, disclosed by the invention, the single-pole double-throw analog switch needs to be additionally arranged on hardware, and meanwhile, the analog switch needs to be turned on or turned off by software at an appropriate position, so that normal switching of sound can be realized, and meanwhile, the problem that the volume increases suddenly is avoided and the user experience is enhanced.

Description

A kind of audio control method of mobile phone
Technical field
The invention belongs to audio frequency control technical field, relate to a kind of audio control method, particularly relate to a kind of audio control method of mobile phone.
Background technology
Along with the development of multimedia technology, the development of mobile terminal is also with rapid changepl. never-ending changes and improvements, for improving tonequality and the audio of smart mobile phone, when BBIC can not meet user's requirement, need to increase external audio frequency PA, this scheme, while lifting mobile phone tonequality, brings series of problems:
1, during plugged earphone hand-free call, earphone end also has sound, and sound can be larger, if still with earphone, easily makes people's ear receive injury;
2, plugged earphone listens to FM, and after being switched to speaker mode, earphone end also has sound, if still with earphone, easily makes people's ear receive injury;
3, when Mp3 play by loud speaker, the moment sound of plugged earphone can become very large, easily makes people's ear receive injury.
In view of this, nowadays in the urgent need to designing a kind of new audio control method, to overcome the above-mentioned defect of existing mode.
Summary of the invention
Technical problem to be solved by this invention is: the audio control method providing a kind of mobile phone, can realize the normal switching of sound, avoid the problem that sound becomes suddenly large simultaneously, strengthens Consumer's Experience.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
An audio control method for mobile phone, mobile phone uses external audio frequency PA, and external audio frequency PA is arranged between earphone R channel and loud speaker, and external audio frequency PA also connects PA control GPIO mouth; When needing to be played sound by loud speaker, the level of PA control GPIO mouth is drawn high, so just enables external audio frequency PA; Otherwise, when not needing to be played sound by loud speaker, the level of PA control GPIO mouth is dragged down, so just closes external audio frequency PA; Between earphone left and right acoustic channels and earphone export, increase the analog switch of a single-pole double throw, the analog switch also connecting analog switch control rule GPIO mouth of single-pole double throw simultaneously; Described control method comprises the steps:
The audio-frequency play mode of step S1, in real time detection of handset, whether to be exported by earphone; The change that record handset audio is play;
Step S2, the change of playing according to audio frequency, the audio frequency broadcast mode of adjustment mobile phone; Ensure when being switched to hands-free or loud speaker, earphone end voiceless sound; Specifically comprise:
Under dual DualMode pattern, ensure that earphone and loud speaker all have sound, analog switch is in correct state: the level by analog switch control GPIO mouth is drawn high;
Plugged earphone call in the normal mode, be switched to hands-free after, control earphone end voiceless sound by Audio control unit;
Plugged earphone audio plays in the normal mode, after being switched to loud speaker, controls earphone end voiceless sound by Audio control unit.
An audio control method for mobile phone, described control method comprises the steps:
The audio-frequency play mode of step S1, in real time detection of handset, whether to be exported by earphone; The change that record handset audio is play;
Step S2, the change of playing according to audio frequency, the audio frequency broadcast mode of adjustment mobile phone; Ensure when being switched to hands-free or loud speaker, earphone end voiceless sound.
As a preferred embodiment of the present invention, in step S2, the audio frequency broadcast mode of adjustment mobile phone specifically comprises:
Under dual DualMode pattern, ensure that earphone and loud speaker all have sound, analog switch is in correct state: the level by analog switch control GPIO mouth is drawn high;
Plugged earphone call in the normal mode, be switched to hands-free after, control earphone end voiceless sound by Audio control unit;
Plugged earphone audio plays in the normal mode, after being switched to loud speaker, controls earphone end voiceless sound by Audio control unit.
As a preferred embodiment of the present invention, mobile phone uses external audio frequency PA, external audio frequency PA is arranged between earphone R channel and loud speaker, and external audio frequency PA also connects PA control GPIO mouth; When needing to be played sound by loud speaker, the level of PA control GPIO mouth is drawn high, so just enables external audio frequency PA; Otherwise, when not needing to be played sound by loud speaker, the level of PA control GPIO mouth is dragged down, so just closes external audio frequency PA; Between earphone left and right acoustic channels and earphone export, increase the analog switch of a single-pole double throw, the analog switch also connecting analog switch control rule GPIO mouth of single-pole double throw simultaneously.
As a preferred embodiment of the present invention, external PA adopts Chinese mugwort for the AW8155A cake core of electronics AWINIC; The analog switch of single-pole double throw adopts the SGM5223 cake core of SGMC SGMC.
Beneficial effect of the present invention is: the audio control method of the mobile phone that the present invention proposes, hardware needs the analog switch of an increase single-pole double throw, software will at appropriate this analog switch of local opening/closing simultaneously, the normal switching of sound can be realized, avoid the problem that sound becomes suddenly large simultaneously, strengthen Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that analog switch is connected with external audio frequency PA.
Fig. 2 is the flow chart of the audio control method of mobile phone of the present invention.
Embodiment
The preferred embodiments of the present invention are described in detail below in conjunction with accompanying drawing.
Embodiment one
Refer to Fig. 1, Fig. 2, present invention is disclosed a kind of audio control method of mobile phone, as shown in Figure 1, mobile phone uses external audio frequency PA, external audio frequency PA is arranged between earphone R channel and loud speaker, and external audio frequency PA also connects PA control GPIO mouth.When needing to be played sound by loud speaker, the level of PA control GPIO mouth is drawn high, so just enables external audio frequency PA; Otherwise, when not needing to be played sound by loud speaker, the level of PA control GPIO mouth is dragged down, so just closes external audio frequency PA.Between earphone left and right acoustic channels and earphone export, increase the analog switch of a single-pole double throw, the analog switch also connecting analog switch control rule GPIO mouth of single-pole double throw simultaneously.
In the present embodiment, external PA adopts Chinese mugwort for the AW8155A cake core of electronics AWINIC; The analog switch of single-pole double throw adopts the SGM5223 cake core of SGMC SGMC.
As shown in Figure 2, described control method comprises the steps:
[step S1] in real time detection of handset audio-frequency play mode, whether exported by earphone; The change that record handset audio is play.
The change that [step S2] plays according to audio frequency, the audio frequency broadcast mode of adjustment mobile phone; Ensure when being switched to hands-free or loud speaker, earphone end voiceless sound.Specifically comprise:
Under dual DualMode pattern, ensure that earphone and loud speaker all have sound, analog switch is in correct state: the level by analog switch control GPIO mouth is drawn high;
Plugged earphone call in the normal mode, be switched to hands-free after, control earphone end voiceless sound by Audio control unit;
Plugged earphone audio plays in the normal mode, after being switched to loud speaker, controls earphone end voiceless sound by Audio control unit.
Embodiment two
Present invention is disclosed a kind of audio control method of mobile phone, specifically comprise the steps:
Steps A: earphone right-channel signals R, exports from BBIC (Base Band Integrated circuit, baseband chip), is connected to the external audio frequency PA of the AW8155A of AWINIC (Chinese mugwort is electronics).PA control GPIO mouth, be also export from BBIC, be used for the external audio frequency PA of opening/closing, the control method on software is as follows:
Gpio_direction_output (EXT_SPK_AMP_GPIO, TRUE); // open PA
Gpio_direction_output (EXT_SPK_AMP_GPIO, FALSE); // close PA
EXT_SPK_AMP_GPIO is PA control GPIO mouth, and the difference according to hardware designs can self-defining.
Step B: headset left channel signal L, earphone right-channel signals R export from BBIC, is connected to the SGM5223 type single pole double throw analog switch of SGMC (SGMC).Analog switch control GPIO mouth, be also export from BBIC, be used for opening/closing analog switch, the control method on software is as follows:
Schedule_delayed_work (& analog_switch_enable, msecs_to_jiffies (500)); Analog switch is opened after // time delay 500ms
After opening analog switch, headset left channel signal L and earphone right-channel signals R will export conducting with earphone, and user will hear sound from earphone.This place should be noted that: after needing the time delay regular hour (as 500 milliseconds), then open analog switch, and effectively can solve plugged earphone moment like this, sound becomes suddenly large problem, avoids user's ear to come to harm.
Gpio_direction_output (EXT_SPK_HEADSET_GPIO, FALSE); // close analog switch.
EXT_SPK_HEADSET_GPIO is analog switch control GPIO mouth, and the difference according to hardware designs can self-defining.
Step C:DualMode is a kind of very important audio mode, in such a mode, earphone and loud speaker meeting sounding sound simultaneously, simultaneously in order to avoid damaging earphone, max volume under DualMode, should not exceed the maximum load of earphone, application scenarios is as follows: play incoming ring tone, short message the tinkle of bells, ring of alarm clock etc. under plugged earphone state, the enable DualMode pattern in capital, analog switch control GPIO is at this time needed to open, simultaneously external audio frequency PA control GPIO mouth also will be opened, and so just achieves the demand that loud speaker and earphone work simultaneously;
Step D: in the process of plugged earphone call, if need to be switched to hands-free mode, should open external audio frequency PA control GPIO mouth, needs to close analog switch control GPIO mouth simultaneously, and such Consumer's Experience will be very perfect.If do not have analog switch, so earphone right-channel signals R can directly output to earphone end, when user also with earphone when, the situation that sound is very large will be there is, cause ear and suffer damage.
Step e: listen in the process of FM at plugged earphone, if need the friend with periphery to share music, just needs to be switched to speaker mode.Now external audio frequency PA control GPIO mouth should be opened, need to close analog switch control GPIO mouth, such Consumer's Experience will be very perfect simultaneously.If do not have analog switch, so earphone right-channel signals R can directly output to earphone end, when user also with earphone when, the situation that sound is very large will be there is, cause ear and suffer damage.
In sum, the audio control method of the mobile phone that the present invention proposes, hardware needs the analog switch of an increase single-pole double throw, and software will at appropriate this analog switch of local opening/closing simultaneously, the normal switching of sound can be realized, avoid the problem that sound becomes suddenly large simultaneously.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Distortion and the change of embodiment disclosed are here possible, are known for the replacement of embodiment those those of ordinary skill in the art and the various parts of equivalence.Those skilled in the art are noted that when not departing from spirit of the present invention or substantive characteristics, the present invention can in other forms, structure, layout, ratio, and to realize with other assembly, material and parts.When not departing from the scope of the invention and spirit, can other distortion be carried out here to disclosed embodiment and change.

Claims (5)

1. an audio control method for mobile phone, is characterized in that, mobile phone uses external audio frequency PA, and external audio frequency PA is arranged between earphone R channel and loud speaker, and external audio frequency PA also connects PA control GPIO mouth; When needing to be played sound by loud speaker, the level of PA control GPIO mouth is drawn high, so just enables external audio frequency PA; Otherwise, when not needing to be played sound by loud speaker, the level of PA control GPIO mouth is dragged down, so just closes external audio frequency PA; Between earphone left and right acoustic channels and earphone export, increase the analog switch of a single-pole double throw, the analog switch also connecting analog switch control rule GPIO mouth of single-pole double throw simultaneously; Described control method comprises the steps:
The audio-frequency play mode of step S1, in real time detection of handset, whether to be exported by earphone; The change that record handset audio is play;
Step S2, the change of playing according to audio frequency, the audio frequency broadcast mode of adjustment mobile phone; Ensure when being switched to hands-free or loud speaker, earphone end voiceless sound; Specifically comprise:
Under dual DualMode pattern, ensure that earphone and loud speaker all have sound, analog switch is in correct state: the level by analog switch control GPIO mouth is drawn high;
Plugged earphone call in the normal mode, be switched to hands-free after, control earphone end voiceless sound by Audio control unit;
Plugged earphone audio plays in the normal mode, after being switched to loud speaker, controls earphone end voiceless sound by Audio control unit.
2. an audio control method for mobile phone, is characterized in that, described control method comprises the steps:
The audio-frequency play mode of step S1, in real time detection of handset, whether to be exported by earphone; The change that record handset audio is play;
Step S2, the change of playing according to audio frequency, the audio frequency broadcast mode of adjustment mobile phone; Ensure when being switched to hands-free or loud speaker, earphone end voiceless sound.
3. the audio control method of mobile phone according to claim 2, is characterized in that:
In step S2, the audio frequency broadcast mode of adjustment mobile phone specifically comprises:
Under dual DualMode pattern, ensure that earphone and loud speaker all have sound, analog switch is in correct state: the level by analog switch control GPIO mouth is drawn high;
Plugged earphone call in the normal mode, be switched to hands-free after, control earphone end voiceless sound by Audio control unit;
Plugged earphone audio plays in the normal mode, after being switched to loud speaker, controls earphone end voiceless sound by Audio control unit.
4. the audio control method of mobile phone according to claim 2, is characterized in that:
Mobile phone uses external audio frequency PA, external audio frequency PA is arranged between earphone R channel and loud speaker, and external audio frequency PA also connects PA control GPIO mouth; When needing to be played sound by loud speaker, the level of PA control GPIO mouth is drawn high, so just enables external audio frequency PA; Otherwise, when not needing to be played sound by loud speaker, the level of PA control GPIO mouth is dragged down, so just closes external audio frequency PA; Between earphone left and right acoustic channels and earphone export, increase the analog switch of a single-pole double throw, the analog switch also connecting analog switch control rule GPIO mouth of single-pole double throw simultaneously.
5. the audio control method of mobile phone according to claim 4, is characterized in that:
External PA adopts Chinese mugwort for the AW8155A cake core of electronics AWINIC; The analog switch of single-pole double throw adopts the SGM5223 cake core of SGMC SGMC.
CN201510039821.0A 2015-01-27 2015-01-27 Audio control method for mobilephone Pending CN104683917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510039821.0A CN104683917A (en) 2015-01-27 2015-01-27 Audio control method for mobilephone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510039821.0A CN104683917A (en) 2015-01-27 2015-01-27 Audio control method for mobilephone

Publications (1)

Publication Number Publication Date
CN104683917A true CN104683917A (en) 2015-06-03

Family

ID=53318386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510039821.0A Pending CN104683917A (en) 2015-01-27 2015-01-27 Audio control method for mobilephone

Country Status (1)

Country Link
CN (1) CN104683917A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454644A (en) * 2016-09-30 2017-02-22 北京小米移动软件有限公司 Audio playing method and device
CN106534497A (en) * 2016-10-31 2017-03-22 努比亚技术有限公司 Method of adaptively switching sound effect output channels and terminal
CN106792358A (en) * 2017-01-06 2017-05-31 上海艾为电子技术股份有限公司 Audio control system and audio system
CN106851488A (en) * 2017-03-30 2017-06-13 上海与德科技有限公司 The control method of audio output, device and circuit
CN112235441A (en) * 2020-10-10 2021-01-15 维沃移动通信有限公司 Speaker driving circuit, driving method, device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1239369A (en) * 1998-06-12 1999-12-22 三星电子株式会社 Device and method for radio terminal with handsfree function
CN1325250A (en) * 2000-05-18 2001-12-05 日本电气株式会社 Portable terminal
EP1450556A1 (en) * 2003-02-14 2004-08-25 Earth Television Network AG Method and system for recording image and sound data
CN101610307A (en) * 2008-06-17 2009-12-23 深圳富泰宏精密工业有限公司 Answering modes of mobile phone switched system and method
CN201594904U (en) * 2009-11-13 2010-09-29 联想移动通信科技有限公司 Terminal
CN101959098A (en) * 2009-07-14 2011-01-26 星电株式会社 Earphone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1239369A (en) * 1998-06-12 1999-12-22 三星电子株式会社 Device and method for radio terminal with handsfree function
CN1325250A (en) * 2000-05-18 2001-12-05 日本电气株式会社 Portable terminal
EP1450556A1 (en) * 2003-02-14 2004-08-25 Earth Television Network AG Method and system for recording image and sound data
CN101610307A (en) * 2008-06-17 2009-12-23 深圳富泰宏精密工业有限公司 Answering modes of mobile phone switched system and method
CN101959098A (en) * 2009-07-14 2011-01-26 星电株式会社 Earphone
CN201594904U (en) * 2009-11-13 2010-09-29 联想移动通信科技有限公司 Terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454644A (en) * 2016-09-30 2017-02-22 北京小米移动软件有限公司 Audio playing method and device
CN106534497A (en) * 2016-10-31 2017-03-22 努比亚技术有限公司 Method of adaptively switching sound effect output channels and terminal
CN106792358A (en) * 2017-01-06 2017-05-31 上海艾为电子技术股份有限公司 Audio control system and audio system
CN111294702A (en) * 2017-01-06 2020-06-16 上海艾为电子技术股份有限公司 Audio control system and audio system
CN106792358B (en) * 2017-01-06 2020-12-11 上海艾为电子技术股份有限公司 Audio control system and audio system
CN111294702B (en) * 2017-01-06 2021-12-21 上海艾为电子技术股份有限公司 Audio control system and audio system
CN106851488A (en) * 2017-03-30 2017-06-13 上海与德科技有限公司 The control method of audio output, device and circuit
CN106851488B (en) * 2017-03-30 2020-06-30 重庆辉烨通讯技术有限公司 Audio output control method, device and circuit
CN112235441A (en) * 2020-10-10 2021-01-15 维沃移动通信有限公司 Speaker driving circuit, driving method, device and readable storage medium

Similar Documents

Publication Publication Date Title
EP2798856B1 (en) Ultra-compact headset
CN104683917A (en) Audio control method for mobilephone
JP3542955B2 (en) Mobile phone
CN102724360B (en) Method and device for implementation of hearing-aid function of mobile phone and hearing-aid mobile phone
CN100531242C (en) Sound reproduction device and method in portable electronic equipment
CN103716459B (en) A kind of audio system having mobile phone and intercom call function concurrently
CN102143421B (en) Terminal and method for processing audio of terminal
CN202872884U (en) Audio output circuit and mobile terminal
CN104581515B (en) A kind of audio playing apparatus, method and mobile terminal
US20220286538A1 (en) Earphone device and communication method
CN108012220A (en) Audio processor
WO2022017469A1 (en) Headphone call method and headphones
CN204069063U (en) A kind of mobile phone
WO2013131367A1 (en) Multi-decoder audio system, system signal procedure, and formed mobile device
CN104965651B (en) Information processing method and electronic equipment
CN106792368A (en) A kind of multi-mode plays the terminal of voice signal
CN101594422A (en) Can select the portable terminal of audio signal output mode
CN100375009C (en) Time service method of portable electronic device
CN102111475A (en) Mobile phone music playing function control system and control method
CN105721639A (en) Stereo output device of mobile terminal and mobile terminal
US20030076952A1 (en) Earphone capable of automatically receiving telephone calls
CN201781517U (en) Mobile phone device
CN205195931U (en) Headset
CN100499373C (en) Earphone and earphone outputting controller
CN201270156Y (en) MP3 player

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150603