CN102325216B - Mobile communication equipment and volume control method thereof - Google Patents

Mobile communication equipment and volume control method thereof Download PDF

Info

Publication number
CN102325216B
CN102325216B CN201110178332.5A CN201110178332A CN102325216B CN 102325216 B CN102325216 B CN 102325216B CN 201110178332 A CN201110178332 A CN 201110178332A CN 102325216 B CN102325216 B CN 102325216B
Authority
CN
China
Prior art keywords
volume
group
earphone
headset mode
mobile communication
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.)
Active
Application number
CN201110178332.5A
Other languages
Chinese (zh)
Other versions
CN102325216A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201110178332.5A priority Critical patent/CN102325216B/en
Publication of CN102325216A publication Critical patent/CN102325216A/en
Priority to PCT/CN2012/076335 priority patent/WO2013000354A1/en
Application granted granted Critical
Publication of CN102325216B publication Critical patent/CN102325216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6016Substation equipment, e.g. for use by subscribers including speech amplifiers in the receiver circuit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/605Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses mobile communication equipment and a volume control method thereof. The mobile communication equipment comprises a volume setting module, a volume control module and an earphone management module, wherein the volume setting module is connected with the volume control module and is used for setting the volume of different audio types in an earphone mode to be a first group of volume, and setting the volume of different audio types in a non-earphone mode to be a second group of volume; the earphone management module is connected with the volume control module and is used for detecting the earphone mode or the non-earphone mode; the volume control module is used for setting the volume of an application program to be the first group of volume in the earphone mode when the earphone mode is detected, and setting the volume of the application program to be the second group of volume in the non-earphone mode when the non-earphone mode is detected. By adopting the method, an optimum sound effect can be realized under different situations when an earphone is used or a loudspeaker is used, and hearing can be protected.

Description

A kind of mobile communication equipment and method for controlling volume thereof
Technical field
The present invention relates to field of mobile communication, particularly relate to a kind of mobile communication equipment and method for controlling volume thereof.
Background technology
Wireless telecommunications system, as a kind of mobile device, has been not only a kind of communication apparatus, is also a kind of mobile device possessing multimedia function, and nowadays people are when selecting product, also more and more pay close attention to the function beyond its communication.For mobile phone, such as, evaluate Mobile phone OK, not only want the communication function whether testing mobile phone good, also will test it and whether there is powerful multimedia processing capability, such as to the disposal ability of video, audio frequency.
Wireless telecommunications system of today, substantially all has music and video playback capability, and user also often uses earphone to carry out listening to of music.But volume parameters only has a set of on traditional wireless telecommunications system, namely all playback equipments use same volume value, this just brings problem, still for mobile phone, such as: when user plugs in the earphone and listens to music or listen to broadcast receiver, volume is excessive and injure the sense of hearing.Because in mobile phone use procedure, be in different environment and different sound broadcast mode (as played sound by loud speaker in outdoor), multimedia volume is likely adjusted to very large by user, but, when user plugs in the earphone suddenly, open music, video, just may occur that volume when using earphone to listen to is too large, thus ear be damaged.When user finds that earpiece volume manually regulates volume after very large, volume value listened to by the earphone be applicable to reach a user, but, when user pulls out earphone use mobile phone again, because now concert is play from loud speaker, likely think again that volume is too little.
Summary of the invention
The technical problem that the present invention mainly solves is to provide a kind of mobile communication equipment and method for controlling volume thereof, using earphone or using the different situations of loud speaker to realize best audio, can also protect hearing.
For solving the problems of the technologies described above, the technical scheme that the embodiment of the present invention adopts is: provide a kind of mobile communication equipment, comprising: volume arranges module, volume control module and earphone administration module, volume arranges module, connects volume control module, and during for arranging headset mode, the volume of different audio types is first group of volume, and when arranging non-headset mode, the volume of different audio types is second group of volume, earphone administration module, connect volume control module, for Test earphone pattern or non-headset mode, wherein, when earphone state is headset mode, hardware pins produces high level, when earphone state is non-headset mode, hardware pins produces low level, when baseband chip detects that hardware pins generation level changes, call the interrupt processing function of hardware, earphone state described in earphone administration module is notified in interrupt processing function, earphone administration module gets earphone state when being designated as headset mode, earphone state variable is set for " TRUE ", get earphone state when being designated as non-headset mode, earphone state variable is set for " FALSE ", volume control module, when headset mode being detected for basis, when earphone state variable in earphone administration module namely being detected for " TRUE ", the volume arranging application program is first group of volume under headset mode, when non-headset mode being detected, when earphone state variable in earphone administration module namely being detected for " FALSE ", the volume arranging application program is second group of volume of non-headset mode.
Wherein, audio types at least comprises the tinkle of bells, alarm clock and multimedia; First group of volume at least comprises the first ringing volume, the first alarm clock volume and the first multimedia volume; Second group of volume at least comprises the second ringing volume, the second alarm clock volume and the second multimedia volume.
Wherein, volume arranges module and comprises the first memory cell and the second memory cell, volume control module also comprises the first link and the second link, first memory cell connects the first link, second memory cell connects the second link, first memory cell is for storing first group of volume, and the second memory cell is for storing second group of volume.
Wherein, volume control module also for, detect audio types, and earpiece volume is set according to audio types or non-earpiece volume is set, concrete: during headset mode, when audio types is the tinkle of bells, arranging the first ringing volume is earpiece volume, or when audio types is alarm clock, arranging the first alarm clock volume is earpiece volume, or when audio types is multimedia, arranging the first multimedia volume is earpiece volume; During non-headset mode, when audio types is the tinkle of bells, arranging the second ringing volume is non-earpiece volume, or when audio types is alarm clock, arranging the second alarm clock volume is non-earpiece volume, or when audio types is multimedia, arranging the second multimedia volume is non-earpiece volume.
Wherein, volume control module comprises the 3rd memory cell, the 3rd memory cell for storing earpiece volume, or for storing non-earpiece volume.
For solving the problems of the technologies described above, another technical scheme that the embodiment of the present invention adopts is: the method for controlling volume providing a kind of mobile communication equipment, volume dissimilar when comprising the steps: to arrange headset mode is first group of volume, and volume when arranging non-headset mode is second group of volume, detecting mobile communication equipment is that to be in headset mode be also non-headset mode, wherein, when earphone state is headset mode, hardware pins produces high level, when earphone state is non-headset mode, hardware pins produces low level, when baseband chip detects that hardware pins generation level changes, call the interrupt processing function of hardware, earphone state described in earphone administration module is notified in interrupt processing function, earphone administration module gets earphone state when being designated as headset mode, earphone state variable is set for " TRUE ", get earphone state when being designated as non-headset mode, earphone state variable is set for " FALSE ", according to when headset mode being detected, when earphone state variable in earphone administration module namely being detected for " TRUE ", the volume arranging application program is first group of volume under headset mode, when non-headset mode being detected, when earphone state variable in earphone administration module namely being detected for " FALSE ", the volume arranging application program is second group of volume of non-headset mode.
Wherein, the volume dissimilar when arranging headset mode is first group of volume, and volume when arranging non-headset mode is in the step of second group of volume, comprising: store first group of volume and store second group of volume.
Wherein, when basis detects headset mode, the volume arranging application program is first group of volume under headset mode, when non-headset mode being detected, the volume arranging application program is in the step of second group of volume of non-headset mode, comprise: detect audio types, and earpiece volume is set according to audio types or non-earpiece volume is set, concrete: during headset mode, when audio types is the tinkle of bells, arranging the first ringing volume is earpiece volume, or when audio types is alarm clock, arranging the first alarm clock volume is earpiece volume, or when audio types is multimedia, arranging the first multimedia volume is earpiece volume, during non-headset mode, when audio types is the tinkle of bells, arranging the second ringing volume is non-earpiece volume, or when audio types is alarm clock, arranging the second alarm clock volume is non-earpiece volume, or when audio types is multimedia, arranging the second multimedia volume is non-earpiece volume.
Wherein, in detection audio types, and after earpiece volume being set according to audio types or the step of non-earpiece volume being set, comprising: store earpiece volume, or store non-earpiece volume.
The invention has the beneficial effects as follows: be different from prior art to during mobile communication terminal plugged earphone or directly use loud speaker to carry out the adjustment of volume, but situation about playing can not be carried out for the volume of dissimilar audio or video, when the embodiment of the present invention arranges module installation headset mode by volume, the volume of different audio types is first group of volume, and the volume of different audio types is second group of volume when arranging non-headset mode, when headset mode being detected, the volume of application program is set to first group of volume under headset mode, when non-headset mode being detected, the volume arranging application program is second group of volume of non-headset mode, best audio can be realized under different playing environment, protection hearing.
Accompanying drawing explanation
Fig. 1 is the structural representation of mobile communication equipment first embodiment of the present invention;
Fig. 2 is the circuit diagram of the administration module of earphone shown in Fig. 1;
Fig. 3 is the flow chart of method for controlling volume first embodiment of mobile communication equipment of the present invention;
Fig. 4 is the first pass figure of method for controlling volume first embodiment of mobile communication equipment of the present invention;
Fig. 5 is the second flow chart of method for controlling volume first embodiment of mobile communication equipment of the present invention;
Fig. 6 is the 3rd flow chart of method for controlling volume first embodiment of mobile communication equipment of the present invention;
Fig. 7 is the 4th flow chart of method for controlling volume first embodiment of mobile communication equipment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in detail.
Consult Fig. 1, Fig. 1 is the structural representation of mobile communication equipment first embodiment of the present invention.This mobile communication equipment comprises: volume arranges module 10, volume control module 11 and earphone administration module 12.
Volume arranges module 10, connects volume control module 11, and during for arranging headset mode, the volume of different audio types is first group of volume, and when arranging non-headset mode, the volume of different audio types is second group of volume.
Earphone administration module 12, connects volume control module 11, for Test earphone pattern or non-headset mode.
Volume control module 11, for according to when headset mode being detected, the volume arranging application program is first group of volume under headset mode, and when non-headset mode being detected, the volume arranging application program is second group of volume of non-headset mode.
Volume control module 11 comprises volume control module input (not shown), and baseband chip output connects volume control module input.
In embodiments of the present invention; when arranging module installation headset mode by volume, the volume of different audio types is first group of volume; and the volume of different audio types is second group of volume when arranging non-headset mode; when headset mode being detected, the volume of application program is set to first group of volume under headset mode; when non-headset mode being detected; the volume arranging application program is second group of volume of non-headset mode, can realize best audio under different playing environment, protection hearing.
In another execution mode of the present invention, audio types at least comprises the tinkle of bells, alarm clock and multimedia; First group of volume at least comprises the first ringing volume, the first alarm clock volume and the first multimedia volume; Second group of volume at least comprises the second ringing volume, the second alarm clock volume and the second multimedia volume.Certainly, this audio types can also be the audio frequency of other type, repeats no longer one by one herein.
In another execution mode of the present invention, volume control module 11 also for, detect audio types, and earpiece volume is set according to audio types or non-earpiece volume is set, concrete: when earphone administration module 12 detects that this wireless telecommunications system is in headset mode, when audio types is the tinkle of bells, arranging the first ringing volume is earpiece volume, or when audio types is alarm clock, arranging the first alarm clock volume is earpiece volume, or when audio types is multimedia, arranging the first multimedia volume is earpiece volume.
When earphone administration module 12 detects the non-headset mode of this wireless telecommunications system, when audio types is the tinkle of bells, arranging the second ringing volume is non-earpiece volume, or when audio types is alarm clock, arranging the second alarm clock volume is non-earpiece volume, or when audio types is multimedia, arranging the second multimedia volume is non-earpiece volume.
The operation principle of mobile communication equipment first embodiment of the present invention is as follows:
(1) earphone state-detection, continues to consult Fig. 2:
Earphone administration module 12 manages and Test earphone state, when earphone inserts mobile communication equipment, a hardware interrupts can be produced, can by a hardware limb as GPIO angle Test earphone insert state in hardware circuit, when earphone inserts, angle produces high level to this hardware pins, when earphone is extracted, this PIN angle produces low level; When detect PIN angle produces level change time, namely create hardware interrupts.Have no progeny during baseband chip 121 receives, judge the type of interrupting.When the insertion interrupt signal that discovery is earphone, then call the relevant treatment function of hardware interrupts, in interrupt processing function, notify that earphone administration module 12 earphone inserts, and the variable (boolean current_headset_on) of record earphone state is set to " TRUE "; When earphone is extracted from mobile communication equipment, also a hardware interrupts can be produced, have no progeny during baseband chip 121 receives, judge the type of interrupting, discovery be earphone extract interrupt signal, then call the relevant treatment function of hardware interrupts, in the interrupt processing function that earphone is extracted, notify that earphone administration module 12 earphone is extracted, and the variable of record earphone state is set to " FALSE ".
When earphone state changes, as when earphone inserts mobile communication equipment, earphone administration module 12 notifies that volume control module 11 carries out differentiation and the setting of volume type, namely when earphone inserts, current volume type switches to " headset mode " by notice volume control module 11, when earphone is extracted, current volume type switches to " non-headset mode " by notice volume control module 11.
(2) control of volume type:
Volume arranges the setting option that module 10 comprises multiple volume, on conventional mobile communication equipment in the setting option of volume, different audio types is had to need volume to arrange, comprise: the tinkle of bells, alarm clock, multimedia etc., these volumes are stored in the file system of mobile communication equipment in structure mode, after volume is arranged, in the middle of the position that the file system that this volume structure can be stored in mobile communication equipment is corresponding, to ensure the value can preserving user's setting after mobile communication equipment cuts out.Simultaneously, conveniently during audio plays, use these volumes, volume structure, when opening initialization, can read in internal memory by the system of mobile communication equipment, and assignment gives a structure variable (structaudio_volum_info Audio_Level), in the use procedure of mobile communication equipment, after user resets volume, this structure variable also can upgrade in time, with reach to arrange with user preserve consistent.
This volume structure arranges the independence with other broadcast modes to reach earpiece volume, and be added in the file system of mobile communication equipment, what preserve in this volume structure is the volume value corresponding to earphone, i.e. different audio types, as the tinkle of bells, alarm clock, multimedia, the volume play when headset mode.Like this, will have two volume structures preserving volume value in this file system, one is the volume value corresponding to non-earphone, and as speaker volume, i.e. " non-headset mode " volume, another is the volume value corresponding to earphone, i.e. " headset mode " volume.When earphone is inserted on mobile communication equipment, uses earpiece volume, when earphone is not inserted on mobile communication equipment, use non-earpiece volume, thus complete the separation that volume type arranges preservation.
In order to distinguish this two kinds of volume types of service in volume control module, an enumeration type variable is used to indicate current volume classification (ENUM_AUDIO_TYPE current_aduio_type), this variate-value upgrades when earphone state changes, namely handset module is after earphone inserts mobile phone, this variate-value is set to earpiece volume by notice volume control module 11, after handset module detects that earphone is extracted, this variable set up is non-earpiece volume by notice volume control module 11.
Current volume value, when starting, to read in internal memory in corresponding structure variable (struct audio_volum_infoAudio_Level) by mobile communication equipment from the file system of mobile communication equipment, uses when broadcast sound volume to facilitate.During mobile communication equipment opening initialization volume variable, first earphone state is judged, namely the state of current earphone is obtained by the earphone state variable (boolean current_headset_on) in earphone administration module 12, if earphone state inserts mobile communication equipment, current volume type (ENUM_AUDIO_TYPEcurrent_aduio_type) is set to " headset mode ", and earpiece volume value corresponding in file reading system, and earpiece volume value is assigned in volume structure (struct audio_volum_infoAudio_Level); If earphone state does not insert mobile communication equipment, current volume type (ENUM_AUDIO_TYPE current_aduio_type) is set to " non-headset mode ", and non-earpiece volume value corresponding in file reading system, and non-earpiece volume value is assigned in the structure (struct audio_volum_info Audio_Level) of volume.Like this, after mobile communication equipment starts, volume status shown in setting option just with current earphone state consistency: when there being earphone to insert, in setting option shown by user interface is the volume of the different audio types of headset mode; When not having earphone to insert, shown in setting option user interface is the volume of the different audio types of non-headset mode; And mobile communication equipment is when needs play sound, the volume value used also with earphone state consistency, such as: when there being earphone to insert, broadcast sound volume value is earpiece volume; When not having earphone to insert, the volume value of broadcasting is non-earpiece volume (as speaker volume).
Volume structure under above-mentioned headset mode is defined as first group of volume, and the volume structure under non-headset mode is defined as second group of volume.
In an alternative embodiment of the invention, volume arranges module 10 and comprises the first memory cell (not shown) and the second memory cell (not shown), volume control unit 11 also comprises the first link (not shown) and the second link (not shown), first memory cell connects the first link, second memory cell connects the second link, first memory cell is for storing first group of volume, and the second memory cell is for storing second group of volume.
Volume control module 11 comprises the 3rd memory cell (not shown), the 3rd memory cell for storing earpiece volume, or for storing non-earpiece volume.
In embodiments of the present invention, first group of volume when can store headset mode by increasing first, second memory cell, and increase by the 3rd memory cell, when headset mode being detected, store earpiece volume, when non-headset mode being detected, store non-earpiece volume, convenient storage.
Consult Fig. 3, Fig. 3 is the flow chart of method for controlling volume first embodiment of mobile communication equipment of the present invention.This control method comprises the steps:
Step S1, when arranging headset mode, dissimilar volume is first group of volume, and volume when arranging non-headset mode is second group of volume.
Step S2, detecting mobile communication equipment is that to be in headset mode be also non-headset mode.
Step S3, according to when headset mode being detected, the volume arranging application program is first group of volume under headset mode, and when non-headset mode being detected, the volume arranging application program is second group of volume of non-headset mode.
In embodiments of the present invention; during by arranging headset mode, the volume of different audio types is first group of volume; and the volume of different audio types is second group of volume when arranging non-headset mode; and first group of volume when headset mode being detected, the volume of application program is set under headset mode; when non-headset mode being detected; the volume arranging application program is second group of volume of non-headset mode, can realize best audio under different playing environment, protection hearing.
In another execution mode of the present invention, in above-mentioned steps S1, comprising: store first group of volume and store described second group of volume.
In another execution mode of the present invention, in above-mentioned steps S3, comprising: detect audio types, and earpiece volume is set according to audio types or non-earpiece volume is set.
Concrete: when detecting that mobile communication equipment is in headset mode, and the frequency type of sound current broadcasting is when being the tinkle of bells, arranging the first ringing volume is earpiece volume, or when current audio plays type is alarm clock, arranging the first alarm clock volume is earpiece volume, or when current audio plays type is multimedia, arranging the first multimedia volume is earpiece volume; When detecting that mobile communication equipment is in non-headset mode, when current audio plays type is the tinkle of bells, arranging the second ringing volume is non-earpiece volume, or when current audio plays type is alarm clock, arranging the second alarm clock volume is non-earpiece volume, or when current audio plays type is multimedia, arranging the second multimedia volume is non-earpiece volume.
Generally, when headset mode or non-headset mode, the current audio plays type of acquiescence is the tinkle of bells.Certainly, can default audio type be set on demand.
In another execution mode of the present invention, in detection audio types, and after earpiece volume being set according to audio types or the step of non-earpiece volume being set, comprising: store earpiece volume, or store non-earpiece volume.
Consult Fig. 4 and Fig. 5, the second flow chart of Fig. 4 to be the first pass figure of method for controlling volume first embodiment of mobile communication equipment of the present invention, Fig. 5 be method for controlling volume first embodiment of mobile communication equipment of the present invention.
In the use procedure of mobile communication equipment, when earphone state changes, as mobile communication equipment plugged earphone, earphone administration module obtains earphone state, and the earphone state variable of correspondence is set to " TRUE ", meanwhile, notice volume control module upgrades volume type.After volume control module learns that earphone state changes, current volume type (ENUM_AUDIO_TYPEcurrent_aduio_type) is set to " headset mode ", and display and volume value variable is upgraded in volume setting option, namely the value that corresponding in file reading system earpiece volume is preserved, volume variable (struct audio_volum_info Audio_Level) is assigned to by the earpiece volume value read, and the state refreshed about volume display in setting option, use new volume value to show.Like this, the volume value in setting option is adjusted to earpiece volume value automatically, i.e. the volume value state of user interface display is earpiece volume state, and meanwhile, mobile communication equipment is when needs play sound, and the volume value used also is adjusted to earpiece volume; When earphone is extracted from mobile communication equipment, earphone administration module obtains earphone state, and the earphone state variable of correspondence is set to " FALSE ", and meanwhile, notice volume control module upgrades volume type.After volume control module learns that earphone state changes, current volume type (ENUM_AUDIO_TYPE current_aduio_type) is set to " non-headset mode ", and renewal display and renewal volume value variable in module are set in volume, namely the value that corresponding in file reading system earpiece volume is preserved, volume variable (struct audio_volum_info Audio_Level) is assigned to by the earpiece volume value read, and refresh volume arrange in module about volume display state, use new volume value to show.Like this, the volume value that volume is arranged in module is adjusted to non-earpiece volume automatically, i.e. the volume value state of user interface display is non-earpiece volume state, and meanwhile, mobile communication equipment is when needs play sound, and the volume value used also is adjusted to non-earpiece volume.
By the detection of headset detection module to earphone, and after discovery earphone state changes, notice volume control module carries out the switching of volume type, thus the volume variate-value that in guarantee mobile communication equipment, the display of volume and mobile communication equipment use and presently used equipment, the state as earphone, loud speaker etc. maintains unanimously.
Consult Fig. 6, Fig. 6 is the 3rd flow chart of method for controlling volume first embodiment of mobile communication equipment of the present invention.
User is when regulating volume, no matter be arrange module by volume regulate or directly regulated by volume adjusting button, volume control module first then obtains the audio types of current adjustment, as alarm clock, the tinkle of bells, multimedia, if the user interface arranged in module by volume is adjusted, volume arranges user interface in module and corresponds to different sound types and have corresponding setting option, if regulated by volume adjusting button, then according to the current type played sound, if there is no sound in broadcasting, then regulate ringing volume under default situations, then the action that arranges of user is converted into volume value, as when user increases volume by button, the every button of user once, just value corresponding in current volume structure variable is added a grade point (as being added to 60% from 50%), the display that volume arranges volume in module is refreshed according to new volume value, and new volume value is saved in the volume structure of the correspondence in the file system of mobile communication equipment according to current volume type (ENUM_AUDIO_TYPE current_aduio_type), namely have updated the volume settings of the type.
Consult Fig. 7, Fig. 7 is the 4th flow chart of method for controlling volume first embodiment of mobile communication equipment of the present invention.
First, obtaining the analog value in system sound volume structure according to the current type played sound, during as broadcast incoming ring tone music, obtaining incoming ring tone volume value in volume structure; Then, according to current volume type, play sound with the volume value obtained in corresponding equipment.
In above-described embodiment, the volume structure under headset mode is defined as first group of volume, and the volume structure under non-headset mode is defined as second group of volume.
Earphone in above-described embodiment refers generally to wired earphone, and certainly, wireless headset, such as bluetooth earphone is also suitable for the method for the embodiment of the present invention, repeats no longer one by one herein.
These are only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (2)

1. a mobile communication equipment, is characterized in that, comprising:
Volume arranges module, volume control module and earphone administration module;
Described volume arranges module, connects described volume control module, and during for arranging headset mode, the volume of different audio types is first group of volume, and when arranging non-headset mode, the volume of different audio types is second group of volume;
On mobile communication equipment in the setting option of volume, the volume having different audio types corresponding is arranged, and be stored in the file system of mobile communication equipment in structure mode, like this, two volume structures preserving volume value will be had in this file system, one is correspond to second group of volume, and another corresponds to first group of volume; When earphone is inserted on mobile communication equipment, use first group of volume, when earphone is not inserted on mobile communication equipment, use second group of volume, thus complete the separation that volume type arranges preservation; After volume is arranged, in the middle of the position that the file system that this volume structure can be stored in mobile communication equipment is corresponding, to ensure the value can preserving user's setting after mobile communication equipment cuts out; Simultaneously, conveniently during audio plays, use these volumes, volume structure, when opening initialization, can read in internal memory by the system of mobile communication equipment, and assignment gives a structure variable, in the use procedure of mobile communication equipment, after user resets volume, this structure variable also can upgrade in time, with reach to arrange with user preserve consistent;
Described earphone administration module, connect described volume control module, for Test earphone pattern or non-headset mode, wherein, when earphone state is described headset mode, hardware pins produces high level, when described earphone state is described non-headset mode, described hardware pins produces low level, when baseband chip detects that described hardware pins generation level changes, call the interrupt processing function of hardware, earphone state described in described earphone administration module is notified in interrupt processing function, described earphone administration module gets described earphone state when being designated as described headset mode, earphone state variable is set for " TRUE ", get described earphone state when being designated as described non-headset mode, earphone state variable is set for " FALSE ",
Described volume control module, when described headset mode being detected for basis, when described earphone state variable in described earphone administration module namely being detected for " TRUE ", the volume arranging application program is first group of volume under described headset mode, when described non-headset mode being detected, when described earphone state variable in described earphone administration module namely being detected for " FALSE ", the volume arranging application program is second group of volume of non-headset mode;
When regulating volume, no matter be arrange module by volume regulate or directly regulated by volume adjusting button, first volume control module obtains the audio types of current adjustment, if the user interface arranged in module by volume is adjusted, volume arranges user interface in module and corresponds to different sound types and have corresponding setting option; If regulated by volume adjusting button, then volume control module adjusts the volume of this audio types according to the current audio types played sound, if there is no sound in broadcasting, then regulate ringing volume under default situations, then the action that arranges of user is converted into volume value, the display that volume arranges volume in module is refreshed according to new volume value, and new volume value is saved in the volume structure of the correspondence in the file system of mobile communication equipment according to current volume type, namely have updated the volume settings of the type;
Described audio types at least comprises the tinkle of bells, alarm clock and multimedia;
Described first group of volume at least comprises the first ringing volume, the first alarm clock volume and the first multimedia volume;
Described second group of volume at least comprises the second ringing volume, the second alarm clock volume and the second multimedia volume;
Described volume arranges module and comprises the first memory cell and the second memory cell, described volume control module also comprises the first link and the second link, described first memory cell connects described first link, described second memory cell connects the second link, described first memory cell is for storing described first group of volume, and described second memory cell is for storing described second group of volume;
Described volume control module also for, detect described audio types, and first group of volume is set according to described audio types or second group of volume is set, concrete: during headset mode, when described audio types is the tinkle of bells, arranging the first ringing volume is first group of volume, or when described audio types is alarm clock, arranging the first alarm clock volume is first group of volume, or when described audio types is multimedia, arranging the first multimedia volume is first group of volume; During non-headset mode, when described audio types is the tinkle of bells, arranging the second ringing volume is second group of volume, or when described audio types is alarm clock, arranging the second alarm clock volume is second group of volume, or when described audio types is multimedia, arranging the second multimedia volume is second group of volume;
Described volume control module comprises the 3rd memory cell, described 3rd memory cell for storing described first group of volume, or for storing described second group of volume.
2. a method for controlling volume for mobile communication equipment, is characterized in that, comprises the steps:
The volume arranging different audio types during headset mode is first group of volume, and the volume arranging different audio types during non-headset mode is second group of volume; Store described first group of volume and store described second group of volume;
On mobile communication equipment in the setting option of volume, be provided with volume corresponding to different audio types to arrange, and be stored in the file system of mobile communication equipment in structure mode, like this, two volume structures preserving volume value will be had in this file system, one is correspond to second group of volume, and another corresponds to first group of volume; When earphone is inserted on mobile communication equipment, use first group of volume, when earphone is not inserted on mobile communication equipment, use second group of volume, thus complete the separation that volume type arranges preservation; After volume is arranged, in the middle of the position that the file system that this volume structure can be stored in mobile communication equipment is corresponding, to ensure the value can preserving user's setting after mobile communication equipment cuts out; Simultaneously, conveniently during audio plays, use these volumes, volume structure, when opening initialization, can read in internal memory by the system of mobile communication equipment, and assignment gives a structure variable, in the use procedure of mobile communication equipment, after user resets volume, this structure variable also can upgrade in time, with reach to arrange with user preserve consistent;
Detecting mobile communication equipment is that to be in headset mode be also non-headset mode, wherein, when earphone state is described headset mode, hardware pins produces high level, when described earphone state is described non-headset mode, described hardware pins produces low level, when baseband chip detects that described hardware pins generation level changes, call the interrupt processing function of hardware, earphone state described in described earphone administration module is notified in interrupt processing function, described earphone administration module gets described earphone state when being designated as described headset mode, earphone state variable is set for " TRUE ", get described earphone state when being designated as described non-headset mode, earphone state variable is set for " FALSE ",
According to when described headset mode being detected, when described earphone state variable in described earphone administration module namely being detected for " TRUE ", the volume arranging application program is first group of volume under described headset mode, when described non-headset mode being detected, when described earphone state variable in described earphone administration module namely being detected for " FALSE ", the volume arranging application program is second group of volume of non-headset mode;
When regulating volume, no matter be arrange module by volume regulate or directly regulated by volume adjusting button, first volume control module obtains the audio types of current adjustment, if the user interface arranged in module by volume is adjusted, volume arranges user interface in module and corresponds to different sound types and have corresponding setting option; If regulated by volume adjusting button, then volume control module adjusts the volume of this audio types according to the current audio types played sound, if there is no sound in broadcasting, then regulate ringing volume under default situations, then the action that arranges of user is converted into volume value, the display that volume arranges volume in module is refreshed according to new volume value, and new volume value is saved in the volume structure of the correspondence in the file system of mobile communication equipment according to current volume type, namely have updated the volume settings of the type;
When described basis detects described headset mode, the volume arranging application program is first group of volume under described headset mode, when described non-headset mode being detected, the volume arranging application program is in the step of second group of volume of non-headset mode, comprise: detect described audio types, and first group of volume is set according to described audio types or second group of volume is set, concrete: during headset mode, when described audio types is the tinkle of bells, arranging the first ringing volume is first group of volume, or when described audio types is alarm clock, arranging the first alarm clock volume is first group of volume, or when described audio types is multimedia, arranging the first multimedia volume is first group of volume, during non-headset mode, when described audio types is the tinkle of bells, arranging the second ringing volume is second group of volume, or when described audio types is alarm clock, arranging the second alarm clock volume is second group of volume, or when described audio types is multimedia, arranging the second multimedia volume is second group of volume, store described first group of volume, or store described second group of volume.
CN201110178332.5A 2011-06-29 2011-06-29 Mobile communication equipment and volume control method thereof Active CN102325216B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110178332.5A CN102325216B (en) 2011-06-29 2011-06-29 Mobile communication equipment and volume control method thereof
PCT/CN2012/076335 WO2013000354A1 (en) 2011-06-29 2012-05-31 Mobile communication device and volume control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110178332.5A CN102325216B (en) 2011-06-29 2011-06-29 Mobile communication equipment and volume control method thereof

Publications (2)

Publication Number Publication Date
CN102325216A CN102325216A (en) 2012-01-18
CN102325216B true CN102325216B (en) 2015-07-15

Family

ID=45452884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110178332.5A Active CN102325216B (en) 2011-06-29 2011-06-29 Mobile communication equipment and volume control method thereof

Country Status (2)

Country Link
CN (1) CN102325216B (en)
WO (1) WO2013000354A1 (en)

Families Citing this family (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325216B (en) * 2011-06-29 2015-07-15 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof
CN102623041A (en) * 2012-04-05 2012-08-01 福兴达科技实业(深圳)有限公司 Music player and method for automatically adjusting audio output of music player
CN103377674B (en) * 2012-04-16 2017-09-19 富泰华工业(深圳)有限公司 Audio playing apparatus and its control method
CN102915751A (en) * 2012-09-26 2013-02-06 广东欧珀移动通信有限公司 Method for automatically regulating sound volume and terminal equipment thereof
CN103813235B (en) * 2012-11-13 2018-04-27 联想(北京)有限公司 A kind of method and device of information processing
CN103106060A (en) * 2013-02-04 2013-05-15 苏州三星电子电脑有限公司 Computer volume adjustment method
CN104581515B (en) * 2013-10-15 2018-12-18 联想(北京)有限公司 A kind of audio playing apparatus, method and mobile terminal
CN103544958B (en) * 2013-11-04 2018-02-27 深圳Tcl新技术有限公司 Switch the method and apparatus for controlling Audio squealing during audio output
CN105099383B (en) * 2014-05-12 2018-06-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104009724B (en) * 2014-05-15 2017-08-29 广东欧珀移动通信有限公司 Blu-ray player and its method for controlling volume and device
CN103986813A (en) * 2014-05-26 2014-08-13 深圳市中兴移动通信有限公司 Volume setting method and mobile terminal
CN105430569A (en) * 2015-12-31 2016-03-23 宇龙计算机通信科技(深圳)有限公司 Playing method, playing device and terminal
CN105787027A (en) * 2016-02-24 2016-07-20 广东欧珀移动通信有限公司 Audio file playing method and terminal
CN105828231A (en) * 2016-03-31 2016-08-03 乐视控股(北京)有限公司 Earphone volume control method and apparatus, and terminal device
CN105827849A (en) * 2016-04-28 2016-08-03 维沃移动通信有限公司 Method for adjusting sound effect and mobile terminal
CN106131302A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Audio play control method
CN106060261B (en) * 2016-06-22 2020-03-27 努比亚技术有限公司 Audio playing device and method
CN106027809B (en) * 2016-07-27 2019-08-20 维沃移动通信有限公司 A kind of adjusting method and mobile terminal of volume
CN106331356B (en) * 2016-08-29 2019-12-31 Oppo广东移动通信有限公司 Volume control method and terminal
CN106303830A (en) * 2016-09-12 2017-01-04 北京小米移动软件有限公司 Volume adjusting method and device
CN106454644B (en) * 2016-09-30 2020-09-04 北京小米移动软件有限公司 Audio playing method and device
CN106817495B (en) * 2017-02-21 2019-07-23 Oppo广东移动通信有限公司 Mobile terminal message processing method, device and mobile terminal
CN106953972B (en) * 2017-03-15 2020-02-18 上海青橙实业有限公司 Mobile terminal and method and system for adjusting playing volume of audio file
CN107231473B (en) * 2017-05-23 2020-02-18 盐城睿泰数字科技有限公司 Audio output regulation and control method, equipment and computer readable storage medium
CN107147767B (en) * 2017-06-30 2019-08-06 Oppo广东移动通信有限公司 In Call control method, device, storage medium and terminal
CN109068205A (en) * 2018-06-05 2018-12-21 四川斐讯信息技术有限公司 A method of it is controllable using the time using time controllable earphone and earphone
CN109032729B (en) * 2018-07-04 2022-08-02 Oppo(重庆)智能科技有限公司 Mobile terminal, method for preventing automatic page refreshing of mobile terminal and storage medium
CN109168100A (en) * 2018-10-09 2019-01-08 歌尔股份有限公司 A kind of adjusting method of earphone and earpiece volume
CN109361969B (en) * 2018-10-29 2020-04-28 歌尔科技有限公司 Audio equipment and volume adjusting method, device, equipment and medium thereof
CN109375894A (en) * 2018-11-29 2019-02-22 努比亚技术有限公司 Earpiece volume based reminding method, device, mobile terminal and readable storage medium storing program for executing
CN111107226A (en) * 2019-12-27 2020-05-05 珠海市魅族科技有限公司 Volume control method applied to mobile terminal
CN111510784A (en) * 2020-03-23 2020-08-07 宇龙计算机通信科技(深圳)有限公司 Video switching method and device, storage medium and terminal
CN113411707A (en) * 2021-06-17 2021-09-17 歌尔智能科技有限公司 Auxiliary listening earphone, control method, device and system thereof, and readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617546A (en) * 2003-11-14 2005-05-18 乐金电子(中国)研究开发中心有限公司 Tune volume regulating device and method for mobile communication terminal
CN2726214Y (en) * 2004-06-10 2005-09-14 瑞轩科技股份有限公司 Sound player with volume control module
CN101569093A (en) * 2006-12-21 2009-10-28 摩托罗拉公司 Dynamically learning a user's response via user-preferred audio settings in response to different noise environments
CN101610440A (en) * 2008-06-19 2009-12-23 鸿富锦精密工业(深圳)有限公司 Electronic installation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4317834B2 (en) * 2005-06-01 2009-08-19 株式会社カシオ日立モバイルコミュニケーションズ Sound output device and sound output control program
US20080247570A1 (en) * 2007-04-03 2008-10-09 Giga-Byte Technology Co., Ltd. Sound output device with earphone mode and speaker mode
CN101917659A (en) * 2010-07-23 2010-12-15 惠州Tcl移动通信有限公司 Detection device, method and mobile terminal of earphone circuit
CN102325216B (en) * 2011-06-29 2015-07-15 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617546A (en) * 2003-11-14 2005-05-18 乐金电子(中国)研究开发中心有限公司 Tune volume regulating device and method for mobile communication terminal
CN2726214Y (en) * 2004-06-10 2005-09-14 瑞轩科技股份有限公司 Sound player with volume control module
CN101569093A (en) * 2006-12-21 2009-10-28 摩托罗拉公司 Dynamically learning a user's response via user-preferred audio settings in response to different noise environments
CN101610440A (en) * 2008-06-19 2009-12-23 鸿富锦精密工业(深圳)有限公司 Electronic installation

Also Published As

Publication number Publication date
WO2013000354A1 (en) 2013-01-03
CN102325216A (en) 2012-01-18

Similar Documents

Publication Publication Date Title
CN102325216B (en) Mobile communication equipment and volume control method thereof
EP2645737B1 (en) Apparatus and method for interfacing earphone
CN104521247B (en) Bluetooth headset hearing aid and anti-noise method and apparatus
CN103118191B (en) Using control method and mobile terminal for iPhone wire control earphone
US20120294454A1 (en) Mobile terminal and earphone identifying method
CN103078997A (en) Method and system for setting volume of mobile terminal and mobile terminal
CN101841588B (en) Audio interface device and electronic device using same
CN102413402A (en) Audio frequency control method of audio frequency output device and audio frequency output device
WO2017045453A1 (en) Monitoring method and device based on earphone
CN103258548A (en) Audio playing device and its controlling method
CN101877807A (en) Loudspeaker and method for playing sound source
CN105049977A (en) Automatic earphone volume adjusting method and device
CN102170493A (en) Mobile phone as well as method and device for controlling video calls of mobile phone
CN107621933B (en) Audio playing method and device and related medium product
CN101938546A (en) Earphone microphone detection method based on mobile phone and mobile phone
CN105554664A (en) Headset based sound processing method and apparatus, and headset
KR20070025167A (en) Audio volume control apparatus and method for mobile communication device
CN105679350B (en) A kind of method and device that audio plays
CN201238371Y (en) Bluetooth wireless earphone
CN104581515B (en) A kind of audio playing apparatus, method and mobile terminal
US8073482B2 (en) Mobile phone with optional audio output function
CN103813228A (en) Earphones and activation method thereof
CN104683917A (en) Audio control method for mobilephone
CN105142072B (en) A kind of audio devices and audio frequency playing method of external player
KR20050046452A (en) Audio volume control apparatus and method for mobile communication device

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