CN102915751A - Method for automatically regulating sound volume and terminal equipment thereof - Google Patents

Method for automatically regulating sound volume and terminal equipment thereof Download PDF

Info

Publication number
CN102915751A
CN102915751A CN2012103642561A CN201210364256A CN102915751A CN 102915751 A CN102915751 A CN 102915751A CN 2012103642561 A CN2012103642561 A CN 2012103642561A CN 201210364256 A CN201210364256 A CN 201210364256A CN 102915751 A CN102915751 A CN 102915751A
Authority
CN
China
Prior art keywords
earphone
volume
volume value
processing unit
value
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
CN2012103642561A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN2012103642561A priority Critical patent/CN102915751A/en
Publication of CN102915751A publication Critical patent/CN102915751A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for automatically regulating sound volume. The method comprises the following steps: a. when an earphone is inserted, a system detects that the earphone is inserted and receives the broadcasting of the earphone in system voice service; b. the system judges the current working state of the terminal equipment and reads the sound volume under the current working state; c. the sound volume under the working state is regulated, and the current sound volume value is automatically adjusted as a threshold sound volume value preset by the system if the current sound volume value is higher than the sound volume value preset by the system; and d. when the earphone is pulled out, the system detects that the earphone is pulled out, and the sound volume value is reset to the sound volume value the same as that before the earphone is inserted. The invention also discloses terminal equipment capable of implementing the method for automatically regulating the sound volume. The terminal equipment can automatically regulate and reset sound volume under the current working state through detecting the insertion or pull-out action of the earphone, thereby protecting ears of a user and bringing pleasure experiences for the user.

Description

A kind of method of automatic regulating volume and terminal device thereof
Technical field
The present invention relates to a kind of terminal device, particularly relate to method and the terminal device thereof of automatic regulating volume behind a kind of plugged earphone.
Background technology
In the actual life, with earphone, and earphone is personal stereo on the increasing terminal device, the purposes of earphone, time and the place of using earphone, and oneself taste, the tonequality of earphone all are will consider when selecting secondary suitable oneself a earphone.Nowadays more and more require sectionalization for earphone, select suitable earphone to become a kind of symbol of trend life according to different occasions.
But in use, earphone has only provided tonequality, be difficult to automatically control play content, such as the earphone status being divided into conversation, common music or video playback, three kinds of states of standby, but two kinds of volumes of In Call and other are different, sometimes incoming call can cause certain impact or loss to ear suddenly, perhaps switch to music or video broadcasting condition or come electricity condition from standby, affect user's use, the user is changed between various states, and make ear receive that more joyful audibility is the technical issues that need to address of the present invention.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, method and the terminal device thereof of automatic regulating volume behind a kind of plugged earphone is provided, can automatically carry out volume adjusting and volume and recover, the protection user's ear brings the user joyful experience.
In order to achieve the above object, the technical solution used in the present invention is that a kind of method of automatic regulating volume may further comprise the steps:
A. when plugged earphone, system has detected earphone and has inserted, and receives the broadcasting of plugged earphone in the system audio service unit;
B. the residing duty of current terminal device is judged by system, and reads the volume of work at present state;
C. the volume value of duty is adjusted, current volume value then is adjusted into current volume value the volume threshold values that is lower than systemic presupposition automatically greater than the volume threshold values of systemic presupposition;
D. when earphone was extracted, system detected earphone and extracts, and volume value is reverted to earphone insert front volume value.
Further, system has detected earphone and inserts and to comprise:
When earphone inserted, corresponding Test earphone inserted the GPIO pin of extracting and is dragged down, and triggered external interrupt, drove to receive afterwards to send the event that earphone inserts to the upper system audio service.
Further, system judges that the residing duty of current terminal device comprises:
Step S101. system reads the m-Mode value of the duty in the audio service unit, and the m-Mode value is the numerical value of expression duty;
Step S102. is sent to system's CPU (central processing unit) with the m-Mode value;
Judging unit in the step S103. CPU (central processing unit) is judged the residing duty of current terminal device according to the m-Mode value, obtains current volume value and storage.
Further, described duty comprises incoming call conversation, the broadcast of ordinary video audio frequency and holding state.
Further, described volume value adjustment to duty comprises:
Step S201. is delivered to judging unit with the current volume value of obtaining;
Step S202. judging unit compares judgement with current volume value and systemic presupposition volume threshold values;
Step S203. current volume value then is delivered to processing unit with the result greater than systemic presupposition volume threshold values, otherwise keeps current volume value;
Step S204. processing unit is adjusted into current volume value the volume threshold values that is lower than systemic presupposition automatically.
Further, the described volume value that volume value is reverted to before earphone inserts comprises:
Step S301. system will detect the signal that earphone extracts and be sent to CPU (central processing unit);
Volume value before step S302. CPU (central processing unit) is inserted earphone accesses, and current volume value is adjusted into inserts front volume value.
A kind of terminal device of method of described automatic regulating volume comprises:
Detecting unit is connected with CPU (central processing unit), inserts or pull action by the signal intensity Test earphone, and testing result is sent to CPU (central processing unit);
The audio service unit is connected with CPU (central processing unit), stores the m-Mode value of work at present state, judges the work at present state according to the m-Mode value;
CPU (central processing unit) comprises judging unit and processing unit,
Judging unit is judged whether terminal device work at present state and volume value surpass the systemic presupposition threshold values, and judged result is flowed to processing unit;
Processing unit is adjusted current volume value according to the judged result of judging unit.
Compared with prior art, the invention has the beneficial effects as follows: insert or pull action by Test earphone, can automatically carry out volume adjusting and volume to the volume of work at present state and recover, the protection user's ear brings the user joyful experience.
Description of drawings
Fig. 1 is method flow diagram of the present invention.
Embodiment
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, in order to technical characterictic of the present invention and advantage are carried out more deep annotation.
Method flow diagram of the present invention as shown in Figure 1, a kind of method of automatic regulating volume may further comprise the steps:
A. when plugged earphone, system has detected earphone and has inserted, and receives the broadcasting of plugged earphone in the system audio service;
B. the residing duty of current terminal device is judged by system, and reads the volume of work at present state;
C. the volume value of duty is adjusted, current volume value then is adjusted into current volume value the volume threshold values that is lower than systemic presupposition automatically greater than the volume threshold values of systemic presupposition;
D. when earphone was extracted, system detected earphone and extracts, and volume value is reverted to earphone insert front volume value.
Further, system has detected earphone and inserts and to comprise:
When earphone inserted, corresponding Test earphone inserted the GPIO pin of extracting and is dragged down, and triggered external interrupt, drove to receive afterwards to send the event that earphone inserts to the upper system audio service.
Further, system judges that the residing duty of current terminal device comprises:
Step S101. system reads the m-Mode value of the duty in the audio service unit, and the m-Mode value is the numerical value of expression duty;
Step S102. is sent to system's CPU (central processing unit) with the m-Mode value;
Judging unit in the step S103. CPU (central processing unit) is judged the residing duty of current terminal device according to the m-Mode value, obtains current volume value and storage.
Further, described duty comprises incoming call conversation, the broadcast of ordinary video audio frequency and holding state.
Further, described volume value adjustment to duty comprises:
Step S201. is delivered to judging unit with the current volume value of obtaining;
Step S202. judging unit compares judgement with current volume value and systemic presupposition volume threshold values;
Step S203. current volume value then is delivered to processing unit with the result greater than systemic presupposition volume threshold values, otherwise keeps current volume value;
Step S204. processing unit is adjusted into current volume value the volume threshold values that is lower than systemic presupposition automatically.
Further, the described volume value that volume value is reverted to before earphone inserts comprises:
Step S301. system will detect the signal that earphone extracts and be sent to CPU (central processing unit);
Volume value before step S302. CPU (central processing unit) is inserted earphone accesses, and current volume value is adjusted into inserts front volume value.
A kind of terminal device of method of described automatic regulating volume comprises:
Detecting unit is connected with CPU (central processing unit), inserts or pull action by the signal intensity Test earphone, and testing result is sent to CPU (central processing unit);
The audio service unit is connected with CPU (central processing unit), stores the m-Mode value of work at present state, judges the work at present state according to the m-Mode value;
CPU (central processing unit) comprises judging unit and processing unit,
Judging unit is judged whether terminal device work at present state and volume value surpass the systemic presupposition threshold values, and judged result is flowed to processing unit;
Processing unit is adjusted current volume value according to the judged result of judging unit.
As preferred embodiment, workflow of the present invention is divided into earphone insertion adjusting volume and earphone is extracted the two kinds of situations of volume of regulating.
Earphone inserts the volume value process of regulating:
When Test earphone inserted, the earphone base pin connected a pull-up resistor, can produce like this a signal, and whether expression earphone or other external device (ED) insert jack.During the typical case connects, if there is certain external device (ED) to insert, detecting pin will disconnect.When detecting the earphone insertion, should insert signal and flow to CPU (central processing unit).
After CPU (central processing unit) receives this signal, read the m-Mode value of audio service unit, the m-Mode value that different duties is corresponding different, judge the work at present state according to the m-Mode value, for example incoming call conversation, ordinary video audio frequency are play and holding state, and obtain the volume value of work at present state, and this volume value is delivered to judging unit.
Judging unit is compared the volume value of work at present state with the volume threshold values of systemic presupposition, when greater than threshold values, automatically reduce volume value, is reduced to the predefined volume that is lower than the volume threshold values of user.For example, when playing the ordinary video audio frequency, broadcast sound volume often stimulates ear after plugging in the earphone especially, seems special loud, can impact eardrum and the sense of hearing, then just needs automatically to regulate.The volume value that reduces can manually arrange to realize by the user, if the user does not arrange, and then reminding user setting, and after arranging, the user stores in order to using later on, and need not all need the user to arrange at every turn, if the user has set in advance, then directly carry out volume adjusting according to what the user arranged.
Earphone is extracted the adjusting volume value and is returned to the front volume value state procedure of insertion:
Test earphone is extracted with the Test earphone insertion process similar, when detecting earphone and extract signal, this signal is delivered to CPU (central processing unit).
CPU (central processing unit) reads the volume value before earphone inserts, and the volume value before earphone inserts is set to current volume value.
The present invention inserts or pull action by Test earphone, can automatically carry out volume adjusting and volume to the volume of work at present state and recover, and the protection user's ear brings the user joyful experience.
Above content is the further description of the present invention being done in conjunction with concrete optimal way, should not assert that implementation of the present invention is confined to above explanation.For those skilled in the art, without departing from the inventive concept of the premise, can also make some simple deduction or replace, within the protection domain that the claim that all should be considered as being submitted to by the present invention is determined.

Claims (7)

1. the method for an automatic regulating volume may further comprise the steps:
A. when plugged earphone, system has detected earphone and has inserted, and receives the broadcasting of plugged earphone in the system audio service;
B. the residing duty of current terminal device is judged by system, and reads the volume of work at present state;
C. the volume value of duty is adjusted, current volume value then is adjusted into current volume value the volume threshold values that is lower than systemic presupposition automatically greater than the volume threshold values of systemic presupposition;
D. when earphone was extracted, system detected earphone and extracts, and volume value is reverted to earphone insert front volume value.
2. the method for automatic regulating volume according to claim 1 is characterized in that, system has detected the earphone insertion and comprised:
When earphone inserted, corresponding Test earphone inserted the GPIO pin of extracting and is dragged down, and triggered external interrupt, drove to receive afterwards to send the event that earphone inserts to the upper system audio service.
3. the method for automatic regulating volume according to claim 2 is characterized in that, system judges that the residing duty of current terminal device comprises:
Step S101. system reads the m-Mode value of the duty in the audio service unit, and the m-Mode value is the numerical value of expression duty;
Step S102. is sent to system's CPU (central processing unit) with the m-Mode value;
Judging unit in the step S103. CPU (central processing unit) is judged the residing duty of current terminal device according to the m-Mode value, obtains current volume value and storage.
4. the method for automatic regulating volume according to claim 3 is characterized in that: described duty comprises that incoming call conversation, ordinary video audio frequency play and holding state.
5. the method for automatic regulating volume according to claim 4 is characterized in that, described volume value adjustment to duty comprises:
Step S201. is delivered to judging unit with the current volume value of obtaining;
Step S202. judging unit compares judgement with current volume value and systemic presupposition volume threshold values;
Step S203. current volume value then is delivered to processing unit with the result greater than systemic presupposition volume threshold values, otherwise keeps current volume value;
Step S204. processing unit is adjusted into current volume value the volume threshold values that is lower than systemic presupposition automatically.
6. the method for automatic regulating volume according to claim 5 is characterized in that, the described volume value that volume value is reverted to before earphone inserts comprises:
Step S301. system will detect the signal that earphone extracts and be sent to CPU (central processing unit);
Volume value before step S302. CPU (central processing unit) is inserted earphone accesses, and current volume value is adjusted into inserts front volume value.
One kind according to claim 1-6 in the terminal device of method of each described automatic regulating volume, it is characterized in that, comprising:
Detecting unit is connected with CPU (central processing unit), inserts or pull action by the signal intensity Test earphone, and testing result is sent to CPU (central processing unit);
The audio service unit is connected with CPU (central processing unit), stores the m-Mode value of work at present state, judges the work at present state according to the m-Mode value;
CPU (central processing unit) comprises judging unit and processing unit,
Judging unit is judged whether terminal device work at present state and volume value surpass the systemic presupposition threshold values, and judged result is flowed to processing unit;
Processing unit is adjusted current volume value according to the judged result of judging unit.
CN2012103642561A 2012-09-26 2012-09-26 Method for automatically regulating sound volume and terminal equipment thereof Pending CN102915751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103642561A CN102915751A (en) 2012-09-26 2012-09-26 Method for automatically regulating sound volume and terminal equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103642561A CN102915751A (en) 2012-09-26 2012-09-26 Method for automatically regulating sound volume and terminal equipment thereof

Publications (1)

Publication Number Publication Date
CN102915751A true CN102915751A (en) 2013-02-06

Family

ID=47614086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103642561A Pending CN102915751A (en) 2012-09-26 2012-09-26 Method for automatically regulating sound volume and terminal equipment thereof

Country Status (1)

Country Link
CN (1) CN102915751A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200498A (en) * 2013-03-22 2013-07-10 广东欧珀移动通信有限公司 Music playing method and music playing system of mobile terminal
CN103237277A (en) * 2013-04-12 2013-08-07 广东欧珀移动通信有限公司 Method and device for headset audio playing
CN105099383A (en) * 2014-05-12 2015-11-25 联想(北京)有限公司 Information processing method and electronic equipment
CN105182730A (en) * 2015-09-23 2015-12-23 广东小天才科技有限公司 Alarm clock prompting method and device
CN105242866A (en) * 2015-08-27 2016-01-13 广东欧珀移动通信有限公司 Volume adjustment method and user terminal
CN105373371A (en) * 2014-08-26 2016-03-02 腾讯科技(深圳)有限公司 Method and system for controlling volume of windows equipment through browser
CN105812924A (en) * 2016-03-22 2016-07-27 上海斐讯数据通信技术有限公司 Method and system for controlling audio-video device
CN106303830A (en) * 2016-09-12 2017-01-04 北京小米移动软件有限公司 Volume adjusting method and device
CN107147780A (en) * 2017-04-26 2017-09-08 维沃移动通信有限公司 A kind of method for controlling audio frequency of mobile terminal to export and mobile terminal
TWI607374B (en) * 2017-02-10 2017-12-01 華碩電腦股份有限公司 Calibration method and computer readable recording medium
CN107566940A (en) * 2017-10-11 2018-01-09 深圳传音制造有限公司 Earpiece volume adjusting method and earpiece volume regulating system based on intelligent terminal
CN109166271A (en) * 2018-10-30 2019-01-08 广汽丰田汽车有限公司 Automobile production workshop alarm method, device and readable storage medium storing program for executing
CN109240642A (en) * 2018-09-26 2019-01-18 深圳市中科明望通信软件有限公司 A kind of method for regulation of sound volume of terminal device, device and terminal device
CN109375894A (en) * 2018-11-29 2019-02-22 努比亚技术有限公司 Earpiece volume based reminding method, device, mobile terminal and readable storage medium storing program for executing
CN109388366A (en) * 2018-08-21 2019-02-26 奇酷互联网络科技(深圳)有限公司 Intelligence adjusts method, mobile terminal and the computer readable storage medium of volume
CN109511041A (en) * 2018-12-28 2019-03-22 歌尔科技有限公司 A kind of method, apparatus and earphone of the booting setting of earphone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855704A (en) * 2005-04-26 2006-11-01 佛山市顺德区顺达电脑厂有限公司 Automatic volume regulation of electronic device
CN101018043A (en) * 2006-02-07 2007-08-15 环达电脑(上海)有限公司 Method for automatic detection of volume adjusting during sound switching
CN102325216A (en) * 2011-06-29 2012-01-18 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855704A (en) * 2005-04-26 2006-11-01 佛山市顺德区顺达电脑厂有限公司 Automatic volume regulation of electronic device
CN101018043A (en) * 2006-02-07 2007-08-15 环达电脑(上海)有限公司 Method for automatic detection of volume adjusting during sound switching
CN102325216A (en) * 2011-06-29 2012-01-18 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200498B (en) * 2013-03-22 2015-11-18 广东欧珀移动通信有限公司 A kind of mobile terminal music playing method and system
CN103200498A (en) * 2013-03-22 2013-07-10 广东欧珀移动通信有限公司 Music playing method and music playing system of mobile terminal
CN103237277A (en) * 2013-04-12 2013-08-07 广东欧珀移动通信有限公司 Method and device for headset audio playing
CN105099383B (en) * 2014-05-12 2018-06-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105099383A (en) * 2014-05-12 2015-11-25 联想(北京)有限公司 Information processing method and electronic equipment
CN105373371A (en) * 2014-08-26 2016-03-02 腾讯科技(深圳)有限公司 Method and system for controlling volume of windows equipment through browser
CN105242866A (en) * 2015-08-27 2016-01-13 广东欧珀移动通信有限公司 Volume adjustment method and user terminal
CN105182730A (en) * 2015-09-23 2015-12-23 广东小天才科技有限公司 Alarm clock prompting method and device
CN105812924A (en) * 2016-03-22 2016-07-27 上海斐讯数据通信技术有限公司 Method and system for controlling audio-video device
CN106303830A (en) * 2016-09-12 2017-01-04 北京小米移动软件有限公司 Volume adjusting method and device
TWI607374B (en) * 2017-02-10 2017-12-01 華碩電腦股份有限公司 Calibration method and computer readable recording medium
CN107147780A (en) * 2017-04-26 2017-09-08 维沃移动通信有限公司 A kind of method for controlling audio frequency of mobile terminal to export and mobile terminal
CN107566940A (en) * 2017-10-11 2018-01-09 深圳传音制造有限公司 Earpiece volume adjusting method and earpiece volume regulating system based on intelligent terminal
CN109388366A (en) * 2018-08-21 2019-02-26 奇酷互联网络科技(深圳)有限公司 Intelligence adjusts method, mobile terminal and the computer readable storage medium of volume
CN109240642A (en) * 2018-09-26 2019-01-18 深圳市中科明望通信软件有限公司 A kind of method for regulation of sound volume of terminal device, device and terminal device
CN109240642B (en) * 2018-09-26 2021-09-03 深圳市中科明望通信软件有限公司 Volume adjusting method and device of terminal equipment and terminal equipment
CN109166271A (en) * 2018-10-30 2019-01-08 广汽丰田汽车有限公司 Automobile production workshop alarm method, device and readable storage medium storing program for executing
CN109375894A (en) * 2018-11-29 2019-02-22 努比亚技术有限公司 Earpiece volume based reminding method, device, mobile terminal and readable storage medium storing program for executing
CN109511041A (en) * 2018-12-28 2019-03-22 歌尔科技有限公司 A kind of method, apparatus and earphone of the booting setting of earphone

Similar Documents

Publication Publication Date Title
CN102915751A (en) Method for automatically regulating sound volume and terminal equipment thereof
CN102325216B (en) Mobile communication equipment and volume control method thereof
EP2645737B1 (en) Apparatus and method for interfacing earphone
WO2016106616A1 (en) Charging protection method and apparatus
KR101636771B1 (en) Circuit apparatus and method for recognition earphone in electronic device
KR20140047201A (en) Device and method for detecting insertion of ear-mic phone in terminal
CN103078997A (en) Method and system for setting volume of mobile terminal and mobile terminal
CN103051997A (en) Earphone, and terminal equipment and method for controlling audio presentation through earphone
CN102769810B (en) A kind of mobile terminal preventing call misoperation
CN103324459A (en) Method and system for implementing USB (universal serial bus) headset devices
CN105376689A (en) Self-adaptive audio playing control method and system
CN103985394A (en) Audio file playing method
CN103577145B (en) Volume processing unit and method, the electronic system of electronic equipment
CN103106060A (en) Computer volume adjustment method
WO2019137220A1 (en) Volume adjustment method under lock screen state, and mobile terminal and storage medium
CN102623041A (en) Music player and method for automatically adjusting audio output of music player
CN103200498A (en) Music playing method and music playing system of mobile terminal
US20120250890A1 (en) Audio device and method for audio outputting
CN103501442A (en) Method and system controlling output of terminal voice of smart television
CN105373371A (en) Method and system for controlling volume of windows equipment through browser
CN111031435A (en) Audio circuit, head-mounted display equipment and head-mounted display system
CN103366779A (en) Method and device for automatic setting of sound-effect parameters
CN103985400A (en) Audio file playing system
CN109391869A (en) A kind of earphone and ear canal judge cut-in method
CN106406808A (en) Volume processing method, device and 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130206