WO2013000354A1 - Mobile communication device and volume control method therefor - Google Patents
Mobile communication device and volume control method therefor Download PDFInfo
- Publication number
- WO2013000354A1 WO2013000354A1 PCT/CN2012/076335 CN2012076335W WO2013000354A1 WO 2013000354 A1 WO2013000354 A1 WO 2013000354A1 CN 2012076335 W CN2012076335 W CN 2012076335W WO 2013000354 A1 WO2013000354 A1 WO 2013000354A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- volume
- earphone
- resistor
- headphone
- mode
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/6058—Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6016—Substation equipment, e.g. for use by subscribers including speech amplifiers in the receiver circuit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/605—Portable 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
Definitions
- the present invention relates to the field of mobile communications, and in particular to a mobile communication device and a volume control method thereof.
- wireless communication equipment is more than just a communication device. It is also a mobile device with multimedia functions.
- multimedia functions nowadays, when people choose products, they pay more and more attention to functions other than communication.
- Today's wireless communication devices basically have music and video playback functions, and users often use headphones to listen to music.
- there is only one set of volume parameters on the conventional wireless communication device that is, all the playback devices use the same volume value, which brings a problem, still taking the mobile phone as an example, for example, when the user plugs in the earphone to listen to music or listen to the radio, The volume is too loud and hurts the hearing.
- the user may adjust the volume of the multimedia to a large extent, however, when the user suddenly plugs in the headset, the music is turned on. Video, it may happen that the volume when listening to headphones is too large, thus causing damage to the ear.
- the volume of the earphone When the user finds that the volume of the earphone is loud, the volume is adjusted manually to achieve a user-friendly earphone listening volume value. However, when the user unplugs the earphone again to use the mobile phone, since the concert is played from the speaker, the volume may be felt again. Too small.
- the technical problem to be solved by the present invention is to provide a mobile communication device and a volume control method thereof, which can achieve optimal sound effects in different situations using headphones or using speakers, and can also protect hearing.
- a technical solution adopted by the embodiment of the present invention is to provide a mobile communication device, including: a volume setting module, configured to set a volume of a different audio type to a first group of volumes in a headset mode, and In the non-headphone mode, the volume of the different audio types is set to a second group of volume; the volume control module is configured to: when the headset mode is detected, set the volume of the application to the first group of volumes, and detect the non-phone In the headset mode, the volume of the application is set to the second group of volumes; and the headset management module is configured to detect the headset mode or the non-headphone mode; the volume setting module and the headset management module respectively The volume control module is connected; the earphone management module includes a baseband chip, a headphone chip, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, and a second capacitor; the baseband chip includes a first port a second port, a third port, and a
- a mobile communication device including: a volume setting module, a volume control module, and a headset management module; and the volume setting module connecting the volume control a module, configured to set a volume of a different audio type to a first group of volumes, and a non-headphone mode to set a volume of a different audio type to a second set of volumes; the headset management module to connect the volume a control module, configured to detect the earphone mode or the non-earphone mode; the volume control module is configured to: when the headset mode is detected, set a volume of the application to the first group of volumes, and detect the In the non-earphone mode, the volume of the setting application is the second group of volumes.
- the headset management module includes a baseband chip, a headphone chip, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, and a second capacitor; the baseband chip includes a first port, a second port, and a third port.
- the first port is connected to one end of the first resistor, the second port is connected to one end of the second resistor, and the third port is connected to one end of the third resistor;
- the earphone chip includes a left channel port and a right channel port; The other end of the resistor is connected to the left channel port, the other end of the second resistor is connected to one end of the first capacitor, and the other end of the third resistor is connected to one end of the second capacitor; the other end of the first capacitor is connected to the left channel port, The other end of the second capacitor is connected to the right channel port; a second reference voltage is connected between the second resistor and the first capacitor, and a second reference voltage terminal is connected between the third resistor and the second capacitor; The other end is connected to the third reference voltage end;
- the volume control module includes a volume control module input end, and the baseband chip output end is connected to the volume control module input end.
- the audio type includes at least a ringtone, an alarm clock, and multimedia; the first group of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume; and the second set of volumes includes at least a second ringtone volume and a second alarm volume. And a second multimedia volume.
- the volume setting module includes a first storage unit and a second storage unit.
- the volume control module further includes a first connection end and a second connection end.
- the first storage unit is connected to the first connection end, and the second storage unit is connected to the second connection end.
- the first storage unit is for storing the first group of volumes, and the second storage unit is for storing the second group of volumes.
- the volume control module is further configured to detect an audio type and set the volume of the earphone according to the type of the audio or set the volume of the non-earphone.
- the audio type when in the headset mode, if the audio type is a ringtone, setting the first ringtone volume to the earphone volume, if the audio type is an alarm, setting the first alarm volume to the earphone a volume, if the audio type is multimedia, setting the first multimedia volume to the earphone volume; when in the non-earphone mode, if the audio type is a ringtone, setting the second ringtone volume to The non-headphone volume, if the audio type is an alarm clock, setting the second alarm clock volume to the non-earphone volume, and if the audio type is multimedia, setting the second multimedia volume to the non-phone Headphone volume.
- the volume control module includes a third storage unit for storing the volume of the earphone or for storing the volume of the non-earphone.
- another technical solution adopted by the embodiment of the present invention is to provide a volume control method for a mobile communication device, including the following steps: in the headset mode, setting the volume of different audio types to the first group of volumes, In the non-headphone mode, set the volume of the different audio types to the second group of volumes; detect whether the mobile communication device is in the headset mode or the non-headphone mode; when the headset mode is detected, set the volume of the application to The first group of volumes is set, and when the non-earphone mode is detected, the volume of the application is set to the second group of volumes.
- the audio type includes at least a ringtone, an alarm clock, and a multimedia; the first set of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume; and the second set of volumes includes at least a second ringtone Volume, second alarm volume, and second multimedia volume.
- the volume of the different audio types is set to be the first group volume
- the step of setting the volume of the different audio types to the second group of volumes includes: storing the first group of volumes and The second set of volumes is stored.
- the step of setting the volume of the application to the second group of volumes includes: The audio type is detected, and the headphone volume is set according to the audio type or the non-headphone volume is set.
- the audio type when in the headset mode, if the audio type is a ringtone, setting the first ringtone volume to the earphone volume, if the audio type is an alarm, setting the first alarm volume to the earphone a volume, if the audio type is multimedia, setting the first multimedia volume to the earphone volume; when in the non-earphone mode, if the audio type is a ringtone, setting the second ringtone volume to The non-headphone volume, if the audio type is an alarm clock, setting the second alarm clock volume to the non-earphone volume, and if the audio type is multimedia, setting the second multimedia volume to the non-phone Headphone volume.
- the step of detecting the audio type and setting the volume of the earphone according to the audio type or setting the volume of the non-earphone includes: storing the volume of the earphone, or storing the volume of the non-earphone.
- the earphone mode is set by the volume setting module in the embodiment of the present invention.
- the volume of the different audio types is the first group volume
- the volume of the different audio types is the second group volume when the non-headphone mode is set
- the volume of the application is set to the first group volume in the headphone mode when the headphone mode is detected, detecting When in the non-headphone mode, set the volume of the application to the second set of volume in the non-headphone mode, which can achieve the best sound and protect the hearing in different playback environments.
- FIG. 1 is a schematic structural view of a first embodiment of a mobile communication device according to the present invention.
- FIG. 2 is a circuit diagram of the earphone management module shown in FIG. 1;
- FIG. 3 is a flow chart of a first embodiment of a volume control method of a mobile communication device of the present invention
- FIG. 4 is a first flowchart of a first embodiment of a volume control method of a mobile communication device according to the present invention
- FIG. 5 is a second flowchart of the first embodiment of the volume control method of the mobile communication device of the present invention.
- FIG. 6 is a third flowchart of the first embodiment of the volume control method of the mobile communication device of the present invention.
- FIG. 7 is a fourth flow chart of the first embodiment of the volume control method of the mobile communication device of the present invention.
- FIG. 1 is a schematic structural diagram of a first embodiment of a mobile communication device according to the present invention.
- the mobile communication device includes a volume setting module 10, a volume control module 11 and a headset management module 12.
- the volume setting module 10 is connected to the volume control module 11 for setting the volume of different audio types to the first group volume in the headphone mode, and setting the volume of the different audio types to the second group volume in the non-headphone mode.
- the earphone management module 12 is connected to the volume control module 11 for detecting the earphone mode or the non-earphone mode.
- the volume control module 11 is configured to: when the headset mode is detected, set the volume of the application to the first group of volumes in the headset mode, and when the non-headphone mode is detected, set the volume of the application to the second group of volumes that is not the headset mode.
- the headset management module 12 includes a baseband chip 121, a headphone chip 122, a first resistor 123, a second resistor 124, a third resistor 125, a fourth resistor 126, a first capacitor 127, and a second capacitor 128.
- the baseband chip 121 includes a first port 1211, a second port 1212, a third port 1213, and a baseband chip output (not shown).
- the first port 1211 is connected to one end of the first resistor 123
- the second port 1212 is connected to one end of the second resistor 124
- the third port 1213 is connected to one end of the third resistor 125.
- the headset chip 122 includes a left channel port 1221 and a right channel port 1222.
- the other end of the first resistor 123 is connected to the left channel port 1221, the other end of the second resistor 124 is connected to one end of the first capacitor 127, and the other end of the third resistor 125 is connected to one end of the second capacitor 128.
- the other end of the first capacitor 127 is connected to the left channel port 1221, and the other end of the second capacitor 128 is connected to the right channel port 1222.
- a first reference voltage terminal is connected between the second resistor 124 and the first capacitor 127, and a second reference voltage terminal is connected between the third resistor 125 and the second capacitor 128.
- the fourth resistor 126 has one end connected to the left channel port 1221 and the other end connected to the third reference voltage terminal.
- the volume control module 11 includes a volume control module input terminal (not shown), and the baseband chip output terminal is connected to the volume control module input terminal.
- the volume of different audio types is the first group volume
- the volume of different audio types is set to the second group volume when the non-headphone mode is set, and the mode is applied when the earphone mode is detected.
- the volume of the program is set to the first group of volume in the headset mode.
- the volume of the application is set to the second group of the volume of the non-headphone mode, which can achieve the best sound effect and protect the hearing in different playback environments.
- the audio type includes at least a ringtone, an alarm clock, and multimedia; the first set of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume; and the second set of volumes includes at least a second Ringer volume, second alarm volume, and second multimedia volume.
- the audio type can also be other types of audio, which will not be repeated here.
- the volume control module 11 is further configured to detect an audio type, and set a headphone volume according to the audio type or set a non-headphone volume. Specifically, when the earphone management module 12 detects that the wireless communication device is in the earphone In mode, when the audio type is ringtone, set the first ringer volume to the headphone volume, or when the audio type is alarm, set the first alarm volume to the headphone volume, or set the first multimedia volume to the earphone when the audio type is multimedia. volume.
- the headset management module 12 detects that the wireless communication device is not in the headset mode, when the audio type is a ringtone, setting the second ringtone volume to be the non-headphone volume, or setting the second alarm volume to the non-earphone volume when the audio type is an alarm, or When the audio type is multimedia, set the second multimedia volume to non-headphone volume.
- the earphone management module 12 manages and detects the state of the earphone.
- a hardware interrupt is generated.
- the hardware circuit detects the earphone insertion state through a hardware pin such as a GPIO pin.
- the hardware tube is inserted.
- a high level is generated on the foot PIN pin.
- a low level is generated on the PIN pin; when a level change is detected on the PIN pin, a hardware interrupt is generated.
- the baseband chip 121 determines the type of the interrupt.
- the relevant processing function of the hardware interrupt is called, and the earphone management module 12 is notified in the interrupt processing function that the earphone has been inserted, and the variable of the headphone state is recorded (boolean) Current_headset_on) is set to "TRUE"; when the earphone is unplugged from the mobile communication device, a hardware interrupt is also generated.
- the baseband chip 121 receives the interrupt, it determines the type of the interrupt, and finds that the earphone is interrupted by the interrupt signal.
- the relevant processing function of the hardware interrupt notifies the earphone management module 12 that the earphone has been unplugged in the interrupt handling function of the earphone pullout, and sets the variable for recording the state of the earphone to "FALSE".
- the headset management module 12 When the state of the headset changes, such as when the headset is inserted into the mobile communication device, the headset management module 12 notifies the volume control module 11 to distinguish and set the volume type, that is, when the headset is inserted, the volume control module 11 is notified of the current volume type. Switching to "Headphone Mode", when the headset is unplugged, the volume control module 11 is notified to switch the current volume type to "non-headphone mode”.
- the volume setting module 10 includes a plurality of volume setting items.
- different audio types require volume setting, including: ringtone, alarm clock, multimedia, etc., and the volume is stored in a structured manner.
- the volume structure is stored in the corresponding position of the file system of the mobile communication device, so as to ensure that the value set by the user can be saved after the mobile communication device is turned off.
- the system of the mobile communication device reads the volume structure into the memory and assigns it to a structure variable (struct) Audio__volum_info Audio_Level), during the use of the mobile communication device, when the user resets the volume, the structure variable will be updated in time to achieve the same as the user settings.
- the volume structure is added to the file system of the mobile communication device in order to achieve the independence of the headphone volume setting and other play modes, and the volume structure stores the volume value corresponding to the earphone, that is, different audio types, such as Ringtone, alarm, multimedia, volume played in headset mode.
- the file system will have two volume structures for storing the volume value, one corresponding to the volume value of the non-earphone, such as the speaker volume, that is, the "non-headphone mode" volume, and the other corresponding to the volume value of the earphone. That is, the "headphone mode" volume.
- an enumeration type variable is used to indicate the current volume category (ENUM_AUDIO_TYPE Current_aduio_type), the value of the variable is updated when the state of the headset changes, that is, after the headset is inserted into the mobile phone, the earphone module notifies the volume control module 11 to set the variable value to the volume of the earphone, and when the earphone module detects that the earphone is pulled out, the volume control is notified. Module 11 sets this variable to a non-headphone volume.
- the mobile communication device When the mobile communication device starts up, it will read the current volume value from the file system of the mobile communication device to the corresponding structure variable in the memory (struct) Audio__volum_info In Audio_Level), it is convenient to use when playing the volume.
- the headset state is first determined, that is, the headset state variable (boolean) in the headset management module 12.
- Current_headset_on Get the current status of the headset.
- the current volume type (ENUM_AUDIO_TYPE) Current_aduio_type) is set to "Headphone Mode”, and the corresponding headphone volume value in the file system is read, and the headphone volume value is assigned to the volume structure (struct Audio__volum_info Audio_Level); if the headset status is not inserted into the mobile communication device, the current volume type (ENUM_AUDIO_TYPE Current_aduio_type) is set to "non-earphone mode", and reads the corresponding non-headphone volume value in the file system, and assigns the non-headphone volume value to the volume structure (struct Audio__volum_info Audio_Level).
- the volume state displayed in the setting item is consistent with the current headset state: when the headset is plugged in, the user interface of the setting item displays the volume of different audio types of the headset mode; When no headphones are plugged in, the volume of the different audio types of the non-headphone mode is displayed in the setting item user interface; and the volume value used by the mobile communication device when the sound needs to be played is also consistent with the state of the earphone, for example, when there is a headset When inserted, the playback volume value is the headphone volume; when no headphones are plugged in, the volume value of the playback is the non-headphone volume (such as the speaker volume).
- the volume structure in the above-mentioned headphone mode is defined as the first group volume, and the volume structure in the non-earphone mode is defined as the second group volume.
- the volume setting module 10 includes a first storage unit (not shown) and a second storage unit (not shown), and the volume control unit 11 further includes a first connection end (not shown) and a second connection end (not shown), the first storage unit is connected to the first connection end, the second storage unit is connected to the second connection end, the first storage unit is configured to store the first group volume, and the second storage unit is used to store the second connection unit Two groups of volume.
- the volume control module 11 includes a third storage unit (not shown) for storing the headphone volume or for storing the non-headphone volume.
- the first and second storage units by adding the first and second storage units, the first group of volumes in the headphone mode can be stored, and the third storage unit is added.
- the headphone mode is detected, the headphone volume is stored, and the non-headphone mode is detected.
- the non-headphone volume it is convenient for storage.
- FIG. 3 is a flowchart of a first embodiment of a volume control method of a mobile communication device according to the present invention.
- the control method includes the following steps:
- step S1 in the headphone mode, different types of volume are set to the first group of volumes, and in the non-earphone mode, the volume of different audio types is set to the second group of volumes.
- step S2 it is detected whether the mobile communication device is in the headset mode or the non-headphone mode.
- step S3 when the headphone mode is detected, the volume of the application program is set to the first group volume in the headphone mode, and when the non-earphone mode is detected, the volume of the application program is set to the second group volume of the non-headphone mode.
- the volume of different audio types is set to the first group volume when the headphone mode is set, and the volume of the different audio types is set to the second group volume when the non-headphone mode is set, and the application is detected when the headphone mode is detected.
- the volume is set to the first set of volume in the headset mode.
- the volume of the application is set to the second set of volume in the non-earphone mode, which can achieve the best sound and protect the hearing in different playback environments.
- the method in the above step S1, includes: storing the first group of volumes and storing the second group of volumes.
- the method includes: detecting an audio type, and setting a headphone volume according to an audio type or setting a non-earphone volume.
- the default currently playing audio type is ringtone.
- the method after detecting the audio type and setting the headphone volume according to the audio type or setting the non-headphone volume, the method includes: storing the headphone volume, or storing the non-headphone volume.
- FIG. 4 is a first flowchart of a first embodiment of a volume control method for a mobile communication device according to the present invention
- FIG. 5 is a second flowchart of a first embodiment of a volume control method for a mobile communication device according to the present invention.
- the headset management module acquires the headset state, and sets the corresponding headset state variable to “TRUE”, and simultaneously informs the volume control module to update. Volume type.
- the volume control module knows the current volume type (ENUM_AUDIO_TYPE) after the headset status changes.
- Current_aduio_type is set to "Headphone Mode", and the display and volume value variables are updated in the volume setting item, that is, the value saved by the corresponding headphone volume in the file system is read, and the volume value of the read headphone is assigned to the volume variable (struct) Audio__volum_info Audio_Level), and refresh the status of the volume display in the setting item, and display it with the new volume value.
- the volume value in the setting item is automatically adjusted to the headphone volume value, that is, the volume value state displayed by the user interface is the headphone volume state, and at the same time, when the mobile communication device needs to play the sound, the volume value used is also adjusted to the headphone volume;
- the headset management module obtains the headset status and sets the corresponding headset status variable to "FALSE", while notifying the volume control module to update the volume type.
- the volume control module knows the current volume type (ENUM_AUDIO_TYPE) after the headset status changes.
- Current_aduio_type is set to "non-headphone mode", and the display is updated and the volume value variable is updated in the volume setting module, that is, the value saved by the corresponding headphone volume in the file system is read, and the volume value of the read headphone is assigned to the volume variable. (struct Audio__volum_info Audio_Level), and refresh the status of the volume display in the volume setting module, and display it with the new volume value.
- the volume value in the volume setting module is automatically adjusted to the non-headphone volume, that is, the volume value state displayed by the user interface is the non-headphone volume state, and at the same time, the volume value used by the mobile communication device when the sound needs to be played is also adjusted to be non- Headphone volume.
- the volume control module is notified to switch the volume type, thereby ensuring the display of the volume in the mobile communication device and the volume variable value used by the mobile communication device and the currently used volume value.
- the status of devices such as headphones, speakers, etc. remains the same.
- FIG. 6 is a third flowchart of the first embodiment of the volume control method of the mobile communication device of the present invention.
- the volume control module When the user adjusts the volume, whether through the volume setting module or directly through the volume adjustment button, the volume control module first obtains the currently adjusted audio type, such as alarm clock, ringtone, multimedia, if it is through the user interface in the volume setting module.
- the user interface in the volume setting module has corresponding setting items corresponding to different sound types; if the button is adjusted, according to the type of the currently playing sound, if no sound is playing, the ringer volume is adjusted by default, and then Convert the user's setting action into a volume value. For example, when the user increases the volume by pressing the button, each time the user presses the button, the corresponding value in the current volume structure variable is added with a level value (for example, from 50% to 60).
- FIG. 7 is a fourth flowchart of the first embodiment of the volume control method of the mobile communication device of the present invention.
- the corresponding value in the system volume structure is obtained according to the type of the currently playing sound, such as the ringing volume value of the incoming call ring in the volume structure; then, according to the current volume type, the volume is obtained in the corresponding device. The value plays the sound.
- the volume structure in the headphone mode is defined as the first group volume
- the volume structure in the non-headphone mode is defined as the second group volume
- the earphones in the above embodiments are generally referred to as wired headsets.
- the wireless headsets such as the Bluetooth headsets, are also applicable to the method of the embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
Disclosed in the present invention are a mobile communications device and a volume control method therefore. The mobile communications device comprises: a volume settings module used to set up a first group of sound volumes and a second group of sound volumes; a headset management module used to detect headset mode or non-headset mode; a volume control module used to set applications to the first sound volume group or the second sound volume group. The method of the present invention enables provision of optimal sound whether the headset or speakers are used, and can also provide hearing protection.
Description
本发明涉及移动通讯领域,特别是涉及一种移动通讯设备及其音量控制方法。The present invention relates to the field of mobile communications, and in particular to a mobile communication device and a volume control method thereof.
无线通讯设备作为一种移动设备,已不仅仅是一种通讯设备,也是一种具备多媒体功能的移动设备,如今人们在选择产品时,对其通讯以外的功能也越来越关注。以手机为例,比如,评价一款手机的好不好,不仅要测试手机有没有好的通讯功能,还要测试其是否具有强大的多媒体处理能力,比如对视频、音频的处理能力。As a mobile device, wireless communication equipment is more than just a communication device. It is also a mobile device with multimedia functions. Nowadays, when people choose products, they pay more and more attention to functions other than communication. Take the mobile phone as an example. For example, to evaluate whether a mobile phone is good or not, not only to test whether the mobile phone has good communication functions, but also to test whether it has powerful multimedia processing capabilities, such as processing capabilities for video and audio.
如今的无线通讯设备,基本都具有音乐以及视频播放功能,用户也经常使用耳机进行音乐的收听。然而,传统的无线通讯设备上音量参数只有一套,即所有的播放设备使用同一音量值,这就带来了问题,仍以手机为例,比如:用户插上耳机收听音乐或者收听收音机时,音量过大而伤害听觉。因为在手机使用过程中,处于不同的环境以及不同的声音播放方式(如在室外通过扬声器播放声音),用户有可能将多媒体的音量调整到很大,然而,当用户突然插上耳机,打开音乐、视频,就可能会出现使用耳机收听时的音量太大,因而对耳朵造成伤害。当用户发现耳机音量很大后通过手动调节音量,以达到一个用户适合的耳机收听音量值,但是,当用户再次拔掉耳机使用手机时,因为此时音乐会从扬声器播放,有可能又觉得音量太小。Today's wireless communication devices basically have music and video playback functions, and users often use headphones to listen to music. However, there is only one set of volume parameters on the conventional wireless communication device, that is, all the playback devices use the same volume value, which brings a problem, still taking the mobile phone as an example, for example, when the user plugs in the earphone to listen to music or listen to the radio, The volume is too loud and hurts the hearing. Because during the use of the mobile phone, in different environments and different sound playback modes (such as playing sound through the speaker outdoors), the user may adjust the volume of the multimedia to a large extent, however, when the user suddenly plugs in the headset, the music is turned on. Video, it may happen that the volume when listening to headphones is too large, thus causing damage to the ear. When the user finds that the volume of the earphone is loud, the volume is adjusted manually to achieve a user-friendly earphone listening volume value. However, when the user unplugs the earphone again to use the mobile phone, since the concert is played from the speaker, the volume may be felt again. Too small.
本发明主要解决的技术问题是提供一种移动通讯设备及其音量控制方法,能够在使用耳机或者使用扬声器的不同情况实现最佳音效,还能保护听力。The technical problem to be solved by the present invention is to provide a mobile communication device and a volume control method thereof, which can achieve optimal sound effects in different situations using headphones or using speakers, and can also protect hearing.
为解决上述技术问题,本发明实施例采用的一个技术方案是:提供一种移动通讯设备,包括:音量设置模块,用于在耳机模式时,设置不同音频类型的音量为第一组音量,以及在非耳机模式时,设置不同音频类型的音量为第二组音量;音量控制模块,用于检测到所述耳机模式时,设置应用程序的音量为所述第一组音量,检测到所述非耳机模式时,设置应用程序的音量为所述第二组音量;以及耳机管理模块,用于检测所述耳机模式或者所述非耳机模式;所述音量设置模块和所述耳机管理模块分别与所述音量控制模块连接;所述耳机管理模块包括基带芯片、耳机芯片、第一电阻、第二电阻、第三电阻、第四电阻、第一电容以及第二电容;所述基带芯片包括第一端口、第二端口、第三端口和基带芯片输出端;所述第一端口连接所述第一电阻的一端,所述第二端口连接所述第二电阻的一端,所述第三端口连接所述第三电阻的一端;所述耳机芯片包括左声道端口和右声道端口;所述第一电阻的另一端连接所述左声道端口,所述第二电阻的另一端连接所述第一电容的一端,所述第三电阻的另一端连接所述第二电容的一端;所述第一电容的另一端连接所述左声道端口,所述第二电容的另一端连接所述右声道端口;所述第二电阻和所述第一电容之间连接第一参考电压端,所述第三电阻和所述第二电容之间连接第二参考电压端;所述第四电阻一端连接所述左声道端口,另一端连接第三参考电压端;所述音量控制模块包括音量控制模块输入端,所述基带芯片输出端连接所述音量控制模块输入端;所述音频类型至少包括铃声、闹钟以及多媒体;所述第一组音量至少包括第一铃声音量、第一闹钟音量以及第一多媒体音量;所述第二组音量至少包括第二铃声音量、第二闹钟音量以及第二多媒体音量。In order to solve the above technical problem, a technical solution adopted by the embodiment of the present invention is to provide a mobile communication device, including: a volume setting module, configured to set a volume of a different audio type to a first group of volumes in a headset mode, and In the non-headphone mode, the volume of the different audio types is set to a second group of volume; the volume control module is configured to: when the headset mode is detected, set the volume of the application to the first group of volumes, and detect the non-phone In the headset mode, the volume of the application is set to the second group of volumes; and the headset management module is configured to detect the headset mode or the non-headphone mode; the volume setting module and the headset management module respectively The volume control module is connected; the earphone management module includes a baseband chip, a headphone chip, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, and a second capacitor; the baseband chip includes a first port a second port, a third port, and a baseband chip output; the first port is coupled to one end of the first resistor, a second port is connected to one end of the second resistor, the third port is connected to one end of the third resistor; the earphone chip includes a left channel port and a right channel port; and the other end of the first resistor is connected a left channel port, the other end of the second resistor is connected to one end of the first capacitor, and the other end of the third resistor is connected to one end of the second capacitor; a left channel port, the other end of the second capacitor is connected to the right channel port; a first reference voltage terminal is connected between the second resistor and the first capacitor, the third resistor and the a second reference voltage terminal is connected between the second capacitors; the fourth resistor is connected to the left channel port at one end, and the third reference voltage terminal is connected to the other end; the volume control module includes a volume control module input end, and the baseband The chip output end is connected to the volume control module input end; the audio type includes at least a ringtone, an alarm clock, and multimedia; and the first group of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia Volume; the second set comprises at least a second volume of the ringtone volume, alarm volume and a second volume of a second multimedia.
为解决上述技术问题,本发明实施例采用的另一个技术方案是:提供一种移动通讯设备,包括:音量设置模块、音量控制模块和耳机管理模块;所述音量设置模块,连接所述音量控制模块,用于在耳机模式时,设置不同音频类型的音量为第一组音量,以及在非耳机模式时,设置不同音频类型的音量为第二组音量;所述耳机管理模块,连接所述音量控制模块,用于检测所述耳机模式或者所述非耳机模式;所述音量控制模块,用于检测到所述耳机模式时,设置应用程序的音量为所述第一组音量,检测到所述非耳机模式时,设置应用程序的音量为所述第二组音量。In order to solve the above technical problem, another technical solution adopted by the embodiment of the present invention is to provide a mobile communication device, including: a volume setting module, a volume control module, and a headset management module; and the volume setting module connecting the volume control a module, configured to set a volume of a different audio type to a first group of volumes, and a non-headphone mode to set a volume of a different audio type to a second set of volumes; the headset management module to connect the volume a control module, configured to detect the earphone mode or the non-earphone mode; the volume control module is configured to: when the headset mode is detected, set a volume of the application to the first group of volumes, and detect the In the non-earphone mode, the volume of the setting application is the second group of volumes.
其中,耳机管理模块包括基带芯片、耳机芯片、第一电阻、第二电阻、第三电阻、第四电阻、第一电容以及第二电容;基带芯片包括第一端口、第二端口、第三端口和基带芯片输出端;第一端口连接第一电阻的一端,第二端口连接第二电阻的一端,第三端口连接第三电阻的一端;耳机芯片包括左声道端口和右声道端口;第一电阻的另一端连接左声道端口,第二电阻的另一端连接第一电容的一端,第三电阻的另一端连接第二电容的一端;第一电容的另一端连接左声道端口,第二电容的另一端连接右声道端口;第二电阻和第一电容之间连接第一参考电压端,第三电阻和第二电容之间连接第二参考电压端;第四电阻一端连接左声道端口,另一端连接第三参考电压端;所述音量控制模块包括音量控制模块输入端,基带芯片输出端连接音量控制模块输入端。The headset management module includes a baseband chip, a headphone chip, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, and a second capacitor; the baseband chip includes a first port, a second port, and a third port. And a baseband chip output end; the first port is connected to one end of the first resistor, the second port is connected to one end of the second resistor, and the third port is connected to one end of the third resistor; the earphone chip includes a left channel port and a right channel port; The other end of the resistor is connected to the left channel port, the other end of the second resistor is connected to one end of the first capacitor, and the other end of the third resistor is connected to one end of the second capacitor; the other end of the first capacitor is connected to the left channel port, The other end of the second capacitor is connected to the right channel port; a second reference voltage is connected between the second resistor and the first capacitor, and a second reference voltage terminal is connected between the third resistor and the second capacitor; The other end is connected to the third reference voltage end; the volume control module includes a volume control module input end, and the baseband chip output end is connected to the volume control module input end.
其中,音频类型至少包括铃声、闹钟以及多媒体;第一组音量至少包括第一铃声音量、第一闹钟音量以及第一多媒体音量;第二组音量至少包括第二铃声音量、第二闹钟音量以及第二多媒体音量。The audio type includes at least a ringtone, an alarm clock, and multimedia; the first group of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume; and the second set of volumes includes at least a second ringtone volume and a second alarm volume. And a second multimedia volume.
其中,音量设置模块包括第一存储单元和第二存储单元,音量控制模块还包括第一连接端和第二连接端,第一存储单元连接第一连接端,第二存储单元连接第二连接端,第一存储单元用于存储第一组音量,第二存储单元用于存储第二组音量。The volume setting module includes a first storage unit and a second storage unit. The volume control module further includes a first connection end and a second connection end. The first storage unit is connected to the first connection end, and the second storage unit is connected to the second connection end. The first storage unit is for storing the first group of volumes, and the second storage unit is for storing the second group of volumes.
其中,音量控制模块还用于,检测音频类型,并根据音频类型设置耳机音量或者设置非耳机音量。The volume control module is further configured to detect an audio type and set the volume of the earphone according to the type of the audio or set the volume of the non-earphone.
其中,当处于所述耳机模式时,如所述音频类型为铃声,设置所述第一铃声音量为所述耳机音量,如所述音频类型为闹钟,设置所述第一闹钟音量为所述耳机音量,如所述音频类型为多媒体,设置所述第一多媒体音量为所述耳机音量;当处于所述非耳机模式时,如所述音频类型为铃声,设置所述第二铃声音量为所述非耳机音量,如所述音频类型为闹钟,设置所述第二闹钟音量为所述非耳机音量,如所述音频类型为多媒体时,设置所述第二多媒体音量为所述非耳机音量。Wherein, when in the headset mode, if the audio type is a ringtone, setting the first ringtone volume to the earphone volume, if the audio type is an alarm, setting the first alarm volume to the earphone a volume, if the audio type is multimedia, setting the first multimedia volume to the earphone volume; when in the non-earphone mode, if the audio type is a ringtone, setting the second ringtone volume to The non-headphone volume, if the audio type is an alarm clock, setting the second alarm clock volume to the non-earphone volume, and if the audio type is multimedia, setting the second multimedia volume to the non-phone Headphone volume.
其中,音量控制模块包括第三存储单元,第三存储单元用于存储耳机音量,或者用于存储非耳机音量。The volume control module includes a third storage unit for storing the volume of the earphone or for storing the volume of the non-earphone.
为解决上述技术问题,本发明实施例采用的另一个技术方案是:提供一种移动通讯设备的音量控制方法,包括如下步骤:在耳机模式时,设置不同音频类型的音量为第一组音量,在非耳机模式时,设置不同音频类型的音量为第二组音量;检测移动通讯设备是处于所述耳机模式还是所述非耳机模式;检测到所述耳机模式时,设置应用程序的音量为所述第一组音量,检测到所述非耳机模式时,设置应用程序的音量为所述第二组音量。In order to solve the above technical problem, another technical solution adopted by the embodiment of the present invention is to provide a volume control method for a mobile communication device, including the following steps: in the headset mode, setting the volume of different audio types to the first group of volumes, In the non-headphone mode, set the volume of the different audio types to the second group of volumes; detect whether the mobile communication device is in the headset mode or the non-headphone mode; when the headset mode is detected, set the volume of the application to The first group of volumes is set, and when the non-earphone mode is detected, the volume of the application is set to the second group of volumes.
其中,所述音频类型至少包括铃声、闹钟以及多媒体;所述第一组音量至少包括第一铃声音量、第一闹钟音量以及第一多媒体音量;所述第二组音量至少包括第二铃声音量、第二闹钟音量以及第二多媒体音量。The audio type includes at least a ringtone, an alarm clock, and a multimedia; the first set of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume; and the second set of volumes includes at least a second ringtone Volume, second alarm volume, and second multimedia volume.
其中,所述在耳机模式时,设置不同音频类型的音量为第一组音量,在非耳机模式时,设置不同音频类型的音量为第二组音量的步骤包括:存储所述第一组音量以及存储所述第二组音量。Wherein, in the headset mode, the volume of the different audio types is set to be the first group volume, and in the non-headphone mode, the step of setting the volume of the different audio types to the second group of volumes includes: storing the first group of volumes and The second set of volumes is stored.
其中,所述检测到所述耳机模式时,设置应用程序的音量为所述第一组音量,检测到所述非耳机模式时,设置应用程序的音量为所述第二组音量的步骤包括:检测所述音频类型,并根据所述音频类型设置耳机音量或者设置非耳机音量。Wherein, when the headset mode is detected, the volume of the application is set to the first group of volumes, and when the non-headphone mode is detected, the step of setting the volume of the application to the second group of volumes includes: The audio type is detected, and the headphone volume is set according to the audio type or the non-headphone volume is set.
其中,当处于所述耳机模式时,如所述音频类型为铃声,设置所述第一铃声音量为所述耳机音量,如所述音频类型为闹钟,设置所述第一闹钟音量为所述耳机音量,如所述音频类型为多媒体,设置所述第一多媒体音量为所述耳机音量;当处于所述非耳机模式时,如所述音频类型为铃声,设置所述第二铃声音量为所述非耳机音量,如所述音频类型为闹钟,设置所述第二闹钟音量为所述非耳机音量,如所述音频类型为多媒体时,设置所述第二多媒体音量为所述非耳机音量。Wherein, when in the headset mode, if the audio type is a ringtone, setting the first ringtone volume to the earphone volume, if the audio type is an alarm, setting the first alarm volume to the earphone a volume, if the audio type is multimedia, setting the first multimedia volume to the earphone volume; when in the non-earphone mode, if the audio type is a ringtone, setting the second ringtone volume to The non-headphone volume, if the audio type is an alarm clock, setting the second alarm clock volume to the non-earphone volume, and if the audio type is multimedia, setting the second multimedia volume to the non-phone Headphone volume.
其中,所述检测所述音频类型,并根据所述音频类型设置耳机音量或者设置非耳机音量的步骤之后,包括:存储所述耳机音量,或者存储所述非耳机音量。The step of detecting the audio type and setting the volume of the earphone according to the audio type or setting the volume of the non-earphone includes: storing the volume of the earphone, or storing the volume of the non-earphone.
区别于现有技术对移动通信终端插入耳机时或者直接使用扬声器进行音量的调节,但并不能针对不同类型的音频或视频的音量进行播放的情况,本发明实施例通过音量设置模块设置耳机模式时不同音频类型的音量为第一组音量,以及设置非耳机模式时不同音频类型的音量为第二组音量,检测到耳机模式时将应用程序的音量设置为耳机模式下的第一组音量,检测到非耳机模式时,设置应用程序的音量为非耳机模式的第二组音量,能够在不同播放环境下实现最佳音效,保护听力。Different from the prior art, when the mobile communication terminal is inserted into the earphone or the volume is directly adjusted by using the speaker, but the volume of the audio or video is not played, the earphone mode is set by the volume setting module in the embodiment of the present invention. The volume of the different audio types is the first group volume, and the volume of the different audio types is the second group volume when the non-headphone mode is set, and the volume of the application is set to the first group volume in the headphone mode when the headphone mode is detected, detecting When in the non-headphone mode, set the volume of the application to the second set of volume in the non-headphone mode, which can achieve the best sound and protect the hearing in different playback environments.
图1是本发明移动通讯设备第一实施例的结构示意图;1 is a schematic structural view of a first embodiment of a mobile communication device according to the present invention;
图2是图1所示耳机管理模块的电路图;2 is a circuit diagram of the earphone management module shown in FIG. 1;
图3是本发明移动通讯设备的音量控制方法第一实施例的流程图;3 is a flow chart of a first embodiment of a volume control method of a mobile communication device of the present invention;
图4是本发明移动通讯设备的音量控制方法第一实施例的第一流程图;4 is a first flowchart of a first embodiment of a volume control method of a mobile communication device according to the present invention;
图5是本发明移动通讯设备的音量控制方法第一实施例的第二流程图;5 is a second flowchart of the first embodiment of the volume control method of the mobile communication device of the present invention;
图6是本发明移动通讯设备的音量控制方法第一实施例的第三流程图;6 is a third flowchart of the first embodiment of the volume control method of the mobile communication device of the present invention;
图7是本发明移动通讯设备的音量控制方法第一实施例的第四流程图。7 is a fourth flow chart of the first embodiment of the volume control method of the mobile communication device of the present invention.
下面结合附图和实施例对本发明进行详细说明。The invention will now be described in detail in conjunction with the drawings and embodiments.
参阅图1,图1是本发明移动通讯设备第一实施例的结构示意图。该移动通讯设备包括:音量设置模块10、音量控制模块11和耳机管理模块12。Referring to FIG. 1, FIG. 1 is a schematic structural diagram of a first embodiment of a mobile communication device according to the present invention. The mobile communication device includes a volume setting module 10, a volume control module 11 and a headset management module 12.
音量设置模块10,连接音量控制模块11,用于在耳机模式时,设置不同音频类型的音量为第一组音量,以及在非耳机模式时,设置不同音频类型的音量为第二组音量。The volume setting module 10 is connected to the volume control module 11 for setting the volume of different audio types to the first group volume in the headphone mode, and setting the volume of the different audio types to the second group volume in the non-headphone mode.
耳机管理模块12,连接音量控制模块11,用于检测耳机模式或者非耳机模式。The earphone management module 12 is connected to the volume control module 11 for detecting the earphone mode or the non-earphone mode.
音量控制模块11,用于检测到耳机模式时,设置应用程序的音量为耳机模式下的第一组音量,检测到非耳机模式时,设置应用程序的音量为非耳机模式的第二组音量。The volume control module 11 is configured to: when the headset mode is detected, set the volume of the application to the first group of volumes in the headset mode, and when the non-headphone mode is detected, set the volume of the application to the second group of volumes that is not the headset mode.
请继续参阅图2,图2是图1所示耳机管理模块的电路图。该耳机管理模块12包括:基带芯片121、耳机芯片122、第一电阻123、第二电阻124、第三电阻125、第四电阻126、第一电容127以及第二电容128。Please continue to refer to FIG. 2, which is a circuit diagram of the earphone management module shown in FIG. 1. The headset management module 12 includes a baseband chip 121, a headphone chip 122, a first resistor 123, a second resistor 124, a third resistor 125, a fourth resistor 126, a first capacitor 127, and a second capacitor 128.
基带芯片121包括第一端口1211、第二端口1212、第三端口1213和基带芯片输出端(图未示)。The baseband chip 121 includes a first port 1211, a second port 1212, a third port 1213, and a baseband chip output (not shown).
第一端口1211连接第一电阻123的一端,第二端口1212连接第二电阻124的一端,第三端口1213连接第三电阻125的一端。The first port 1211 is connected to one end of the first resistor 123, the second port 1212 is connected to one end of the second resistor 124, and the third port 1213 is connected to one end of the third resistor 125.
耳机芯片122包括左声道端口1221和右声道端口1222。The headset chip 122 includes a left channel port 1221 and a right channel port 1222.
第一电阻123的另一端连接左声道端口1221,第二电阻124的另一端连接第一电容127的一端,第三电阻125的另一端连接第二电容128的一端。The other end of the first resistor 123 is connected to the left channel port 1221, the other end of the second resistor 124 is connected to one end of the first capacitor 127, and the other end of the third resistor 125 is connected to one end of the second capacitor 128.
第一电容127的另一端连接左声道端口1221,第二电容128的另一端连接右声道端口1222。The other end of the first capacitor 127 is connected to the left channel port 1221, and the other end of the second capacitor 128 is connected to the right channel port 1222.
第二电阻124和第一电容127之间连接第一参考电压端,第三电阻125和第二电容128之间连接第二参考电压端。A first reference voltage terminal is connected between the second resistor 124 and the first capacitor 127, and a second reference voltage terminal is connected between the third resistor 125 and the second capacitor 128.
第四电阻126一端连接左声道端口1221,另一端连接第三参考电压端。The fourth resistor 126 has one end connected to the left channel port 1221 and the other end connected to the third reference voltage terminal.
音量控制模块11包括音量控制模块输入端(图未示),基带芯片输出端连接音量控制模块输入端。The volume control module 11 includes a volume control module input terminal (not shown), and the baseband chip output terminal is connected to the volume control module input terminal.
在本发明实施例中,通过音量设置模块设置耳机模式时不同音频类型的音量为第一组音量,以及设置非耳机模式时不同音频类型的音量为第二组音量,检测到耳机模式时将应用程序的音量设置为耳机模式下的第一组音量,检测到非耳机模式时,设置应用程序的音量为非耳机模式的第二组音量,能够在不同播放环境下实现最佳音效,保护听力。In the embodiment of the present invention, when the earphone mode is set by the volume setting module, the volume of different audio types is the first group volume, and the volume of different audio types is set to the second group volume when the non-headphone mode is set, and the mode is applied when the earphone mode is detected. The volume of the program is set to the first group of volume in the headset mode. When the non-earphone mode is detected, the volume of the application is set to the second group of the volume of the non-headphone mode, which can achieve the best sound effect and protect the hearing in different playback environments.
在本发明另一实施方式中,音频类型至少包括铃声、闹钟以及多媒体;第一组音量至少包括第一铃声音量、第一闹钟音量以及第一多媒体音量;第二组音量至少包括第二铃声音量、第二闹钟音量以及第二多媒体音量。当然,该音频类型还可以是其它类型的音频,此处不再一一赘述。In another embodiment of the present invention, the audio type includes at least a ringtone, an alarm clock, and multimedia; the first set of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume; and the second set of volumes includes at least a second Ringer volume, second alarm volume, and second multimedia volume. Of course, the audio type can also be other types of audio, which will not be repeated here.
在本发明另一实施方式中,音量控制模块11还用于,检测音频类型,并根据音频类型设置耳机音量或者设置非耳机音量,具体的:当耳机管理模块12检测到该无线通讯设备处于耳机模式时,音频类型为铃声时,设置第一铃声音量为耳机音量,或者音频类型为闹钟时,设置第一闹钟音量为耳机音量,或者音频类型为多媒体时,设置第一多媒体音量为耳机音量。In another embodiment of the present invention, the volume control module 11 is further configured to detect an audio type, and set a headphone volume according to the audio type or set a non-headphone volume. Specifically, when the earphone management module 12 detects that the wireless communication device is in the earphone In mode, when the audio type is ringtone, set the first ringer volume to the headphone volume, or when the audio type is alarm, set the first alarm volume to the headphone volume, or set the first multimedia volume to the earphone when the audio type is multimedia. volume.
当耳机管理模块12检测到该无线通讯设备非耳机模式时,音频类型为铃声时,设置第二铃声音量为非耳机音量,或者音频类型为闹钟时,设置第二闹钟音量为非耳机音量,或者音频类型为多媒体时,设置第二多媒体音量为非耳机音量。When the headset management module 12 detects that the wireless communication device is not in the headset mode, when the audio type is a ringtone, setting the second ringtone volume to be the non-headphone volume, or setting the second alarm volume to the non-earphone volume when the audio type is an alarm, or When the audio type is multimedia, set the second multimedia volume to non-headphone volume.
本发明移动通讯设备第一实施例的工作原理如下:The working principle of the first embodiment of the mobile communication device of the present invention is as follows:
(1)耳机状态检测,继续参阅图2:(1) Headphone status detection, continue to refer to Figure 2:
耳机管理模块12管理并检测耳机状态,当耳机插入移动通讯设备时,会产生一个硬件中断,硬件电路中会通过一个硬件管脚如:GPIO脚检测耳机插入状态,当耳机插入时,该硬件管脚PIN脚上产生高电平,当耳机拔出时,该PIN脚上产生低电平;当检测到PIN脚上产生电平变化时,即产生了硬件中断。基带芯片121接收到中断后,判断中断的类型。当发现是耳机的插入中断信号,则调用硬件中断的相关处理函数,在中断处理函数中通知耳机管理模块12耳机已经插入,并将记录耳机状态的变量(boolean
current_headset_on)置为“TRUE”;当耳机从移动通讯设备中拔出时,也会产生一个硬件中断,基带芯片121收到中断后,判断中断的类型,发现是耳机的拔出中断信号,则调用硬件中断的相关处理函数,在耳机拔出的中断处理函数中通知耳机管理模块12耳机已经拔出,并将记录耳机状态的变量置为“FALSE”。The earphone management module 12 manages and detects the state of the earphone. When the earphone is inserted into the mobile communication device, a hardware interrupt is generated. The hardware circuit detects the earphone insertion state through a hardware pin such as a GPIO pin. When the earphone is inserted, the hardware tube is inserted. A high level is generated on the foot PIN pin. When the earphone is pulled out, a low level is generated on the PIN pin; when a level change is detected on the PIN pin, a hardware interrupt is generated. After receiving the interrupt, the baseband chip 121 determines the type of the interrupt. When it is found that the insertion interrupt signal of the earphone, the relevant processing function of the hardware interrupt is called, and the earphone management module 12 is notified in the interrupt processing function that the earphone has been inserted, and the variable of the headphone state is recorded (boolean)
Current_headset_on) is set to "TRUE"; when the earphone is unplugged from the mobile communication device, a hardware interrupt is also generated. After the baseband chip 121 receives the interrupt, it determines the type of the interrupt, and finds that the earphone is interrupted by the interrupt signal. The relevant processing function of the hardware interrupt notifies the earphone management module 12 that the earphone has been unplugged in the interrupt handling function of the earphone pullout, and sets the variable for recording the state of the earphone to "FALSE".
当耳机状态发生改变时,如当耳机插入移动通讯设备时,耳机管理模块12通知音量控制模块11进行音量类型的区分与设定,即当耳机插入时,通知音量控制模块11将当前的音量类型切换为“耳机模式”,当耳机拔出时,通知音量控制模块11将当前的音量类型切换为“非耳机模式”。When the state of the headset changes, such as when the headset is inserted into the mobile communication device, the headset management module 12 notifies the volume control module 11 to distinguish and set the volume type, that is, when the headset is inserted, the volume control module 11 is notified of the current volume type. Switching to "Headphone Mode", when the headset is unplugged, the volume control module 11 is notified to switch the current volume type to "non-headphone mode".
(2)音量类型的控制:(2) Volume type control:
音量设置模块10包括多个音量的设置项,传统移动通讯设备上在音量的设置项中,有不同的音频类型需要音量设置,包括:铃声、闹钟、多媒体等,这些音量以结构体方式保存于移动通讯设备的文件系统中,当音量设置后,该音量结构体会保存于移动通讯设备的文件系统对应的位置当中,以保证移动通讯设备关闭后能够保存用户设置的值。同时,为了方便播放音频时,使用这些音量,移动通讯设备的系统在开启初始化时,会将音量结构体读取到内存中,并赋值给一个结构变量(struct
audio__volum_info
Audio_Level),在移动通讯设备的使用过程中,当用户重新设置音量后,该结构变量也会及时更新,以达到与用户设置保存一致。The volume setting module 10 includes a plurality of volume setting items. In the volume setting item on the conventional mobile communication device, different audio types require volume setting, including: ringtone, alarm clock, multimedia, etc., and the volume is stored in a structured manner. In the file system of the mobile communication device, when the volume is set, the volume structure is stored in the corresponding position of the file system of the mobile communication device, so as to ensure that the value set by the user can be saved after the mobile communication device is turned off. At the same time, in order to facilitate the audio playing, when using the volume, the system of the mobile communication device reads the volume structure into the memory and assigns it to a structure variable (struct)
Audio__volum_info
Audio_Level), during the use of the mobile communication device, when the user resets the volume, the structure variable will be updated in time to achieve the same as the user settings.
该音量结构体是为了达到耳机音量设置与其他播放方式的独立,而添加在移动通讯设备的文件系统中的,该音量结构体中保存的是对应于耳机的音量值,即不同音频类型,如铃声、闹钟、多媒体,在耳机模式时播放的音量。这样,该文件系统中将有两个保存音量值的音量结构体,一个是对应于非耳机的音量值,如扬声器音量,即“非耳机模式”音量,另一个是对应于耳机的音量值,即“耳机模式”音量。当耳机插在移动通讯设备上时,使用耳机音量,当耳机没有插在移动通讯设备上时,使用非耳机音量,从而完成了音量类型设置保存的分离。The volume structure is added to the file system of the mobile communication device in order to achieve the independence of the headphone volume setting and other play modes, and the volume structure stores the volume value corresponding to the earphone, that is, different audio types, such as Ringtone, alarm, multimedia, volume played in headset mode. Thus, the file system will have two volume structures for storing the volume value, one corresponding to the volume value of the non-earphone, such as the speaker volume, that is, the "non-headphone mode" volume, and the other corresponding to the volume value of the earphone. That is, the "headphone mode" volume. When the earphone is plugged into the mobile communication device, the earphone volume is used, and when the earphone is not inserted in the mobile communication device, the non-headphone volume is used, thereby completing the separation of the volume type setting save.
音量控制模块中为了区分这两种音量使用类型,使用一个枚举类型变量标明当前的音量类别(ENUM_AUDIO_TYPE
current_aduio_type),该变量值在耳机状态发生改变时更新,即耳机模块在耳机插入手机后,通知音量控制模块11将该变量值设置为耳机音量,当耳机模块检测到耳机拔出后,通知音量控制模块11将该变量设置为非耳机音量。In order to distinguish between the two volume usage types in the volume control module, an enumeration type variable is used to indicate the current volume category (ENUM_AUDIO_TYPE
Current_aduio_type), the value of the variable is updated when the state of the headset changes, that is, after the headset is inserted into the mobile phone, the earphone module notifies the volume control module 11 to set the variable value to the volume of the earphone, and when the earphone module detects that the earphone is pulled out, the volume control is notified. Module 11 sets this variable to a non-headphone volume.
移动通讯设备在启动时,会将当前音量值从移动通讯设备的文件系统中读取到内存中对应的结构变量(struct
audio__volum_info
Audio_Level)中,以方便在播放音量时使用。移动通讯设备开机初始化音量变量时,首先判断耳机状态,即通过耳机管理模块12中的耳机状态变量(boolean
current_headset_on)获得当前耳机的状态,如果耳机状态是插入移动通讯设备的,将当前音量类型(ENUM_AUDIO_TYPE
current_aduio_type)置为“耳机模式”,并读取文件系统中对应的耳机音量值,并将耳机音量值赋给音量结构体(struct
audio__volum_info Audio_Level)中;如果耳机状态是没有插入移动通讯设备的,将当前音量类型(ENUM_AUDIO_TYPE
current_aduio_type)置为“非耳机模式”,并读取文件系统中对应的非耳机音量值,并将非耳机音量值赋给音量的结构体(struct
audio__volum_info
Audio_Level)中。这样,在移动通讯设备启动后,设置项中所显示的音量状态就与当前耳机状态一致:当有耳机插着时,设置项中用户界面所显示的是耳机模式的不同音频类型的音量;当没有耳机插入时,设置项用户界面中所显示的是非耳机模式的不同音频类型的音量;并且移动通讯设备在需要播放声音时,所使用的音量值也是与耳机状态一致的,比如:当有耳机插入时,播放音量值是耳机音量;当没有耳机插入时,播放的音量值是非耳机音量(如扬声器音量)。When the mobile communication device starts up, it will read the current volume value from the file system of the mobile communication device to the corresponding structure variable in the memory (struct)
Audio__volum_info
In Audio_Level), it is convenient to use when playing the volume. When the mobile communication device is powered on to initialize the volume variable, the headset state is first determined, that is, the headset state variable (boolean) in the headset management module 12.
Current_headset_on) Get the current status of the headset. If the headset status is inserted into the mobile communication device, the current volume type (ENUM_AUDIO_TYPE)
Current_aduio_type) is set to "Headphone Mode", and the corresponding headphone volume value in the file system is read, and the headphone volume value is assigned to the volume structure (struct
Audio__volum_info Audio_Level); if the headset status is not inserted into the mobile communication device, the current volume type (ENUM_AUDIO_TYPE
Current_aduio_type) is set to "non-earphone mode", and reads the corresponding non-headphone volume value in the file system, and assigns the non-headphone volume value to the volume structure (struct
Audio__volum_info
Audio_Level). In this way, after the mobile communication device is started, the volume state displayed in the setting item is consistent with the current headset state: when the headset is plugged in, the user interface of the setting item displays the volume of different audio types of the headset mode; When no headphones are plugged in, the volume of the different audio types of the non-headphone mode is displayed in the setting item user interface; and the volume value used by the mobile communication device when the sound needs to be played is also consistent with the state of the earphone, for example, when there is a headset When inserted, the playback volume value is the headphone volume; when no headphones are plugged in, the volume value of the playback is the non-headphone volume (such as the speaker volume).
上述耳机模式下的音量结构体定义为第一组音量,非耳机模式下的音量结构体定义为第二组音量。The volume structure in the above-mentioned headphone mode is defined as the first group volume, and the volume structure in the non-earphone mode is defined as the second group volume.
在本发明另一实施例中,音量设置模块10包括第一存储单元(图未示)和第二存储单元(图未示),音量控制单元11还包括第一连接端(图未示)和第二连接端(图未示),第一存储单元连接第一连接端,第二存储单元连接第二连接端,第一存储单元用于存储第一组音量,第二存储单元用于存储第二组音量。In another embodiment of the present invention, the volume setting module 10 includes a first storage unit (not shown) and a second storage unit (not shown), and the volume control unit 11 further includes a first connection end (not shown) and a second connection end (not shown), the first storage unit is connected to the first connection end, the second storage unit is connected to the second connection end, the first storage unit is configured to store the first group volume, and the second storage unit is used to store the second connection unit Two groups of volume.
音量控制模块11包括第三存储单元(图未示),第三存储单元用于存储耳机音量,或者用于存储非耳机音量。The volume control module 11 includes a third storage unit (not shown) for storing the headphone volume or for storing the non-headphone volume.
在本发明实施例中,通过增加第一、第二存储单元可以存储耳机模式时的第一组音量,并增加第三存储单元,在检测到耳机模式时,存储耳机音量,检测到非耳机模式时,存储非耳机音量,方便存储。In the embodiment of the present invention, by adding the first and second storage units, the first group of volumes in the headphone mode can be stored, and the third storage unit is added. When the headphone mode is detected, the headphone volume is stored, and the non-headphone mode is detected. When storing non-headphone volume, it is convenient for storage.
参阅图3,图3是本发明移动通讯设备的音量控制方法第一实施例的流程图。该控制方法包括如下步骤:Referring to FIG. 3, FIG. 3 is a flowchart of a first embodiment of a volume control method of a mobile communication device according to the present invention. The control method includes the following steps:
步骤S1,在耳机模式时,设置不同类型的音量为第一组音量,在非耳机模式时,设置不同音频类型的音量为第二组音量。In step S1, in the headphone mode, different types of volume are set to the first group of volumes, and in the non-earphone mode, the volume of different audio types is set to the second group of volumes.
步骤S2,检测移动通讯设备是处于耳机模式还是非耳机模式。In step S2, it is detected whether the mobile communication device is in the headset mode or the non-headphone mode.
步骤S3,检测到耳机模式时,设置应用程序的音量为耳机模式下的第一组音量,检测到非耳机模式时,设置应用程序的音量为非耳机模式的第二组音量。In step S3, when the headphone mode is detected, the volume of the application program is set to the first group volume in the headphone mode, and when the non-earphone mode is detected, the volume of the application program is set to the second group volume of the non-headphone mode.
在本发明实施例中,通过设置耳机模式时不同音频类型的音量为第一组音量,以及设置非耳机模式时不同音频类型的音量为第二组音量,并检测到耳机模式时将应用程序的音量设置为耳机模式下的第一组音量,检测到非耳机模式时,设置应用程序的音量为非耳机模式的第二组音量,能够在不同播放环境下实现最佳音效,保护听力。In the embodiment of the present invention, the volume of different audio types is set to the first group volume when the headphone mode is set, and the volume of the different audio types is set to the second group volume when the non-headphone mode is set, and the application is detected when the headphone mode is detected. The volume is set to the first set of volume in the headset mode. When the non-earphone mode is detected, the volume of the application is set to the second set of volume in the non-earphone mode, which can achieve the best sound and protect the hearing in different playback environments.
在本发明另一实施方式中,在上述步骤S1中,包括:存储第一组音量以及存储所述第二组音量。In another embodiment of the present invention, in the above step S1, the method includes: storing the first group of volumes and storing the second group of volumes.
在本发明另一实施方式中,在上述步骤S3中,包括:检测音频类型,并根据音频类型设置耳机音量或者设置非耳机音量。In another embodiment of the present invention, in the above step S3, the method includes: detecting an audio type, and setting a headphone volume according to an audio type or setting a non-earphone volume.
具体的:当检测到移动通讯设备处于耳机模式时,且音当前播放的频类型为铃声时,设置第一铃声音量为耳机音量,或者当前播放音频类型为闹钟时,设置第一闹钟音量为耳机音量,或者当前播放音频类型为多媒体时,设置第一多媒体音量为耳机音量;当检测到移动通讯设备处于非耳机模式时,当前播放音频类型为铃声时,设置第二铃声音量为非耳机音量,或者当前播放音频类型为闹钟时,设置第二闹钟音量为非耳机音量,或者当前播放音频类型为多媒体时,设置第二多媒体音量为非耳机音量。Specifically: when detecting that the mobile communication device is in the headset mode, and the frequency type currently playing is a ringtone, setting the first ringtone volume to the earphone volume, or setting the first alarm volume to the earphone when the current playing audio type is an alarm clock When the volume, or the currently playing audio type is multimedia, set the first multimedia volume to the earphone volume; when detecting that the mobile communication device is in the non-earphone mode, when the currently playing audio type is a ringtone, set the second ringing volume to be a non-earphone When the volume, or the currently playing audio type is an alarm, set the second alarm volume to be the non-headphone volume, or set the second multimedia volume to the non-earphone volume when the currently playing audio type is multimedia.
一般情况下,耳机模式或者非耳机模式时,默认的当前播放音频类型为铃声。当然,可以按需要设置默认音频类型。In general, when the headset mode or non-headphone mode is used, the default currently playing audio type is ringtone. Of course, you can set the default audio type as needed.
在本发明另一实施方式中,在检测音频类型,并根据音频类型设置耳机音量或者设置非耳机音量的步骤之后,包括:存储耳机音量,或者存储非耳机音量。In another embodiment of the present invention, after detecting the audio type and setting the headphone volume according to the audio type or setting the non-headphone volume, the method includes: storing the headphone volume, or storing the non-headphone volume.
参阅图4和图5,图4是本发明移动通讯设备的音量控制方法第一实施例的第一流程图,图5是本发明移动通讯设备的音量控制方法第一实施例的第二流程图。Referring to FIG. 4 and FIG. 5, FIG. 4 is a first flowchart of a first embodiment of a volume control method for a mobile communication device according to the present invention, and FIG. 5 is a second flowchart of a first embodiment of a volume control method for a mobile communication device according to the present invention. .
在移动通讯设备的使用过程中,当耳机状态发生改变时,如移动通讯设备插入耳机,耳机管理模块获取耳机状态,并将对应的耳机状态变量置为“TRUE”,同时,通知音量控制模块更新音量类型。音量控制模块得知耳机状态发生改变后,将当前的音量类型(ENUM_AUDIO_TYPE
current_aduio_type)置为“耳机模式”,并在音量设置项中更新显示与音量值变量,即读取文件系统中对应的耳机音量所保存的值,用读取的耳机音量值赋给音量变量(struct
audio__volum_info
Audio_Level),并刷新设置项中关于音量显示的状态,使用新的音量值进行显示。这样,设置项中的音量值自动调整为耳机音量值,即用户界面显示的音量值状态为耳机音量状态,同时,移动通讯设备在需要播放声音时,所运用的音量值也调整为耳机音量;当耳机从移动通讯设备上拔出时,耳机管理模块获得了耳机状态,并将对应的耳机状态变量置为“FALSE”,同时,通知音量控制模块更新音量类型。音量控制模块得知耳机状态发生改变后,将当前的音量类型(ENUM_AUDIO_TYPE
current_aduio_type)置为“非耳机模式”,并在音量设置模块中更新显示以及更新音量值变量,即读取文件系统中对应的耳机音量所保存的值,用读取的耳机音量值赋给音量变量(struct
audio__volum_info
Audio_Level),并刷新音量设置模块中关于音量显示的状态,使用新的音量值进行显示。这样,音量设置模块中的音量值自动调整为非耳机音量,即用户界面显示的音量值状态为非耳机音量状态,同时,移动通讯设备在需要播放声音时,所运用的音量值也调整为非耳机音量。During the use of the mobile communication device, when the state of the headset changes, such as the mobile communication device is inserted into the headset, the headset management module acquires the headset state, and sets the corresponding headset state variable to “TRUE”, and simultaneously informs the volume control module to update. Volume type. The volume control module knows the current volume type (ENUM_AUDIO_TYPE) after the headset status changes.
Current_aduio_type) is set to "Headphone Mode", and the display and volume value variables are updated in the volume setting item, that is, the value saved by the corresponding headphone volume in the file system is read, and the volume value of the read headphone is assigned to the volume variable (struct)
Audio__volum_info
Audio_Level), and refresh the status of the volume display in the setting item, and display it with the new volume value. In this way, the volume value in the setting item is automatically adjusted to the headphone volume value, that is, the volume value state displayed by the user interface is the headphone volume state, and at the same time, when the mobile communication device needs to play the sound, the volume value used is also adjusted to the headphone volume; When the headset is unplugged from the mobile communication device, the headset management module obtains the headset status and sets the corresponding headset status variable to "FALSE", while notifying the volume control module to update the volume type. The volume control module knows the current volume type (ENUM_AUDIO_TYPE) after the headset status changes.
Current_aduio_type) is set to "non-headphone mode", and the display is updated and the volume value variable is updated in the volume setting module, that is, the value saved by the corresponding headphone volume in the file system is read, and the volume value of the read headphone is assigned to the volume variable. (struct
Audio__volum_info
Audio_Level), and refresh the status of the volume display in the volume setting module, and display it with the new volume value. In this way, the volume value in the volume setting module is automatically adjusted to the non-headphone volume, that is, the volume value state displayed by the user interface is the non-headphone volume state, and at the same time, the volume value used by the mobile communication device when the sound needs to be played is also adjusted to be non- Headphone volume.
通过耳机检测模块对耳机的检测,以及当发现耳机状态改变后,通知音量控制模块进行音量类型的切换,从而保证移动通讯设备中音量的显示以及移动通讯设备使用的音量变量值与当前所使用的设备,如耳机、扬声器等的状态保持了一致。Through the detection of the earphone by the earphone detection module, and when the state of the earphone is found to be changed, the volume control module is notified to switch the volume type, thereby ensuring the display of the volume in the mobile communication device and the volume variable value used by the mobile communication device and the currently used volume value. The status of devices such as headphones, speakers, etc. remains the same.
参阅图6,图6是本发明移动通讯设备的音量控制方法第一实施例的第三流程图。Referring to FIG. 6, FIG. 6 is a third flowchart of the first embodiment of the volume control method of the mobile communication device of the present invention.
用户在调节音量时,无论是通过音量设置模块调节还是直接通过音量调节按键调节,音量控制模块首先接着获得当前调整的音频类型,如闹钟、铃声、多媒体,如果是通过音量设置模块中的用户界面进行调整,音量设置模块中用户界面对应于不同的声音类型有对应的设置项;如果通过按键调节,则根据当前播放声音的类型,如果没有声音在播放,则默认情况下是调节铃声音量,接着将用户的设置动作转化为音量值,如当用户通过按键增大音量时,用户每按键一次,就将当前的音量结构体变量中对应的值加上一个等级值(如从50%加到60%),根据新的音量值刷新音量设置模块中音量的显示,并将新的音量值根据当前音量类型(ENUM_AUDIO_TYPE
current_aduio_type)保存到移动通讯设备的文件系统中的对应的音量结构体中,即更新了该类型的音量设置值。When the user adjusts the volume, whether through the volume setting module or directly through the volume adjustment button, the volume control module first obtains the currently adjusted audio type, such as alarm clock, ringtone, multimedia, if it is through the user interface in the volume setting module. To make adjustments, the user interface in the volume setting module has corresponding setting items corresponding to different sound types; if the button is adjusted, according to the type of the currently playing sound, if no sound is playing, the ringer volume is adjusted by default, and then Convert the user's setting action into a volume value. For example, when the user increases the volume by pressing the button, each time the user presses the button, the corresponding value in the current volume structure variable is added with a level value (for example, from 50% to 60). %), refresh the display of the volume in the volume setting module according to the new volume value, and the new volume value according to the current volume type (ENUM_AUDIO_TYPE
Current_aduio_type) is saved to the corresponding volume structure in the file system of the mobile communication device, that is, the volume setting value of the type is updated.
参阅图7,图7是本发明移动通讯设备的音量控制方法第一实施例的第四流程图。Referring to FIG. 7, FIG. 7 is a fourth flowchart of the first embodiment of the volume control method of the mobile communication device of the present invention.
首先,根据当前播放声音的类型获取系统音量结构中的相应值,如播来电铃声音乐时,获取音量结构体中来电铃声音量值;接着,根据当前音量类型,在相应的设备中以获取的音量值播放声音。First, the corresponding value in the system volume structure is obtained according to the type of the currently playing sound, such as the ringing volume value of the incoming call ring in the volume structure; then, according to the current volume type, the volume is obtained in the corresponding device. The value plays the sound.
上述实施例中,耳机模式下的音量结构体定义为第一组音量,非耳机模式下的音量结构体定义为第二组音量。In the above embodiment, the volume structure in the headphone mode is defined as the first group volume, and the volume structure in the non-headphone mode is defined as the second group volume.
上述实施例中的耳机一般指有线耳机,当然,无线耳机,例如蓝牙耳机也适用本发明实施例的方法,此处不再一一赘述。The earphones in the above embodiments are generally referred to as wired headsets. Of course, the wireless headsets, such as the Bluetooth headsets, are also applicable to the method of the embodiments of the present invention.
以上仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
Claims (14)
- 一种移动通讯设备,其包括:A mobile communication device comprising:音量设置模块,用于在耳机模式时,设置不同音频类型的音量为第一组音量,以及在非耳机模式时,设置不同音频类型的音量为第二组音量;a volume setting module, configured to set a volume of different audio types to a first group of volumes in the headset mode, and set a volume of a different audio type to a second group of volumes in the non-headphone mode;音量控制模块,用于检测到所述耳机模式时,设置应用程序的音量为所述第一组音量,检测到所述非耳机模式时,设置应用程序的音量为所述第二组音量;以及a volume control module, configured to set a volume of the application to the first group of volumes when the headset mode is detected, and set a volume of the application to the second group of volumes when the non-headphone mode is detected;耳机管理模块,用于检测所述耳机模式或者所述非耳机模式;a headset management module, configured to detect the headset mode or the non-headphone mode;所述音量设置模块和所述耳机管理模块分别与所述音量控制模块连接;The volume setting module and the earphone management module are respectively connected to the volume control module;所述耳机管理模块包括基带芯片、耳机芯片、第一电阻、第二电阻、第三电阻、第四电阻、第一电容以及第二电容;The headset management module includes a baseband chip, a headphone chip, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, and a second capacitor;所述基带芯片包括第一端口、第二端口、第三端口和基带芯片输出端;The baseband chip includes a first port, a second port, a third port, and a baseband chip output end;所述第一端口连接所述第一电阻的一端,所述第二端口连接所述第二电阻的一端,所述第三端口连接所述第三电阻的一端;The first port is connected to one end of the first resistor, the second port is connected to one end of the second resistor, and the third port is connected to one end of the third resistor;所述耳机芯片包括左声道端口和右声道端口;The earphone chip includes a left channel port and a right channel port;所述第一电阻的另一端连接所述左声道端口,所述第二电阻的另一端连接所述第一电容的一端,所述第三电阻的另一端连接所述第二电容的一端;The other end of the first resistor is connected to the left channel port, the other end of the second resistor is connected to one end of the first capacitor, and the other end of the third resistor is connected to one end of the second capacitor;所述第一电容的另一端连接所述左声道端口,所述第二电容的另一端连接所述右声道端口;The other end of the first capacitor is connected to the left channel port, and the other end of the second capacitor is connected to the right channel port;所述第二电阻和所述第一电容之间连接第一参考电压端,所述第三电阻和所述第二电容之间连接第二参考电压端;a first reference voltage terminal is connected between the second resistor and the first capacitor, and a second reference voltage terminal is connected between the third resistor and the second capacitor;所述第四电阻一端连接所述左声道端口,另一端连接第三参考电压端;The fourth resistor is connected to the left channel port at one end and to the third reference voltage terminal at the other end;所述音量控制模块包括音量控制模块输入端,所述基带芯片输出端连接所述音量控制模块输入端;The volume control module includes a volume control module input end, and the baseband chip output end is connected to the volume control module input end;所述音频类型至少包括铃声、闹钟以及多媒体;The audio type includes at least a ringtone, an alarm clock, and multimedia;所述第一组音量至少包括第一铃声音量、第一闹钟音量以及第一多媒体音量;The first set of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume;所述第二组音量至少包括第二铃声音量、第二闹钟音量以及第二多媒体音量。The second set of volume includes at least a second ring volume, a second alarm volume, and a second multimedia volume.
- 一种移动通讯设备,其包括:A mobile communication device comprising:音量设置模块、音量控制模块和耳机管理模块;a volume setting module, a volume control module, and a headset management module;所述音量设置模块,连接所述音量控制模块,用于在耳机模式时,设置不同音频类型的音量为第一组音量,以及在非耳机模式时,设置不同音频类型的音量为第二组音量;The volume setting module is connected to the volume control module, configured to set the volume of different audio types to be the first group volume in the headphone mode, and set the volume of the different audio types to the second group volume in the non-headphone mode. ;所述耳机管理模块,连接所述音量控制模块,用于检测所述耳机模式或者所述非耳机模式;The headset management module is connected to the volume control module, configured to detect the headset mode or the non-headphone mode;所述音量控制模块,用于检测到所述耳机模式时,设置应用程序的音量为所述第一组音量,检测到所述非耳机模式时,设置应用程序的音量为所述第二组音量。The volume control module is configured to: when the headset mode is detected, set a volume of the application to the first group volume, and when the non-headphone mode is detected, set a volume of the application to the second group volume .
- 根据权利要求2所述的移动通讯设备,其中所述耳机管理模块包括基带芯片、耳机芯片、第一电阻、第二电阻、第三电阻、第四电阻、第一电容以及第二电容;The mobile communication device according to claim 2, wherein the earphone management module comprises a baseband chip, a headphone chip, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, and a second capacitor;所述基带芯片包括第一端口、第二端口、第三端口和基带芯片输出端;The baseband chip includes a first port, a second port, a third port, and a baseband chip output end;所述第一端口连接所述第一电阻的一端,所述第二端口连接所述第二电阻的一端,所述第三端口连接所述第三电阻的一端;The first port is connected to one end of the first resistor, the second port is connected to one end of the second resistor, and the third port is connected to one end of the third resistor;所述耳机芯片包括左声道端口和右声道端口;The earphone chip includes a left channel port and a right channel port;所述第一电阻的另一端连接所述左声道端口,所述第二电阻的另一端连接所述第一电容的一端,所述第三电阻的另一端连接所述第二电容的一端;The other end of the first resistor is connected to the left channel port, the other end of the second resistor is connected to one end of the first capacitor, and the other end of the third resistor is connected to one end of the second capacitor;所述第一电容的另一端连接所述左声道端口,所述第二电容的另一端连接所述右声道端口;The other end of the first capacitor is connected to the left channel port, and the other end of the second capacitor is connected to the right channel port;所述第二电阻和所述第一电容之间连接第一参考电压端,所述第三电阻和所述第二电容之间连接第二参考电压端;a first reference voltage terminal is connected between the second resistor and the first capacitor, and a second reference voltage terminal is connected between the third resistor and the second capacitor;所述第四电阻一端连接所述左声道端口,另一端连接第三参考电压端;The fourth resistor is connected to the left channel port at one end and to the third reference voltage terminal at the other end;所述音量控制模块包括音量控制模块输入端,所述基带芯片输出端连接所述音量控制模块输入端。The volume control module includes a volume control module input, and the baseband chip output is coupled to the volume control module input.
- 根据权利要求2所述的移动通讯设备,其中所述音频类型至少包括铃声、闹钟以及多媒体;The mobile communication device according to claim 2, wherein said audio type comprises at least a ringtone, an alarm clock, and multimedia;所述第一组音量至少包括第一铃声音量、第一闹钟音量以及第一多媒体音量;The first set of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume;所述第二组音量至少包括第二铃声音量、第二闹钟音量以及第二多媒体音量。The second set of volume includes at least a second ring volume, a second alarm volume, and a second multimedia volume.
- 根据权利要求4所述的移动通讯设备,其中所述音量设置模块包括第一存储单元和第二存储单元,所述音量控制模块还包括第一连接端和第二连接端,所述第一存储单元连接所述第一连接端,所述第二存储单元连接第二连接端,所述第一存储单元用于存储所述第一组音量,所述第二存储单元用于存储所述第二组音量。The mobile communication device according to claim 4, wherein said volume setting module comprises a first storage unit and a second storage unit, said volume control module further comprising a first connection end and a second connection end, said first storage The unit is connected to the first connection end, the second storage unit is connected to the second connection end, the first storage unit is configured to store the first group volume, and the second storage unit is configured to store the second connection unit Group volume.
- 根据权利要求5所述的移动通讯设备,其中所述音量控制模块还用于,检测所述音频类型,并根据所述音频类型设置耳机音量或者设置非耳机音量。The mobile communication device according to claim 5, wherein said volume control module is further configured to detect said audio type and set a headphone volume or set a non-earphone volume according to said audio type.
- 根据权利要求6所述的移动通讯设备,其中当处于所述耳机模式时,如所述音频类型为铃声,设置所述第一铃声音量为所述耳机音量,如所述音频类型为闹钟,设置所述第一闹钟音量为所述耳机音量,如所述音频类型为多媒体,设置所述第一多媒体音量为所述耳机音量;当处于所述非耳机模式时,如所述音频类型为铃声,设置所述第二铃声音量为所述非耳机音量,如所述音频类型为闹钟,设置所述第二闹钟音量为所述非耳机音量,如所述音频类型为多媒体时,设置所述第二多媒体音量为所述非耳机音量。The mobile communication device according to claim 6, wherein when in the earphone mode, if the audio type is a ringtone, setting the first ringtone volume to the earphone volume, if the audio type is an alarm, setting The first alarm clock volume is the volume of the earphone, and if the audio type is multimedia, the first multimedia volume is set to be the volume of the earphone; when in the non-earphone mode, if the audio type is a ringtone, setting the second ringtone volume to the non-earphone volume, if the audio type is an alarm, setting the second alarm volume to the non-earphone volume, and if the audio type is multimedia, setting the The second multimedia volume is the non-headphone volume.
- 根据权利要求6所述的移动通讯设备,其中所述音量控制模块包括第三存储单元,所述第三存储单元用于存储所述耳机音量,或者用于存储所述非耳机音量。The mobile communication device according to claim 6, wherein said volume control module comprises a third storage unit for storing said earphone volume or for storing said non-earphone volume.
- 一种移动通讯设备的音量控制方法,其包括如下步骤:A volume control method for a mobile communication device includes the following steps:在耳机模式时,设置不同音频类型的音量为第一组音量,在非耳机模式时,设置不同音频类型的音量为第二组音量;In the headphone mode, the volume of the different audio types is set to the first group of volumes, and in the non-headphone mode, the volume of the different audio types is set to the second group of volumes;检测移动通讯设备是处于所述耳机模式还是所述非耳机模式;Detecting whether the mobile communication device is in the headset mode or the non-headphone mode;检测到所述耳机模式时,设置应用程序的音量为所述第一组音量,检测到所述非耳机模式时,设置应用程序的音量为所述第二组音量。When the headset mode is detected, the volume of the application is set to the first group of volumes, and when the non-headphone mode is detected, the volume of the application is set to the second group of volumes.
- 根据权利要求9所述的移动通讯设备的音量控制方法,其中所述音频类型至少包括铃声、闹钟以及多媒体;The volume control method of a mobile communication device according to claim 9, wherein said audio type comprises at least a ringtone, an alarm clock, and multimedia;所述第一组音量至少包括第一铃声音量、第一闹钟音量以及第一多媒体音量;The first set of volume includes at least a first ringtone volume, a first alarm volume, and a first multimedia volume;所述第二组音量至少包括第二铃声音量、第二闹钟音量以及第二多媒体音量。The second set of volume includes at least a second ring volume, a second alarm volume, and a second multimedia volume.
- 根据权利要求10所述的移动通讯设备的音量控制方法,其中所述在耳机模式时,设置不同音频类型的音量为第一组音量,在非耳机模式时,设置不同音频类型的音量为第二组音量的步骤包括:存储所述第一组音量以及存储所述第二组音量。The volume control method of the mobile communication device according to claim 10, wherein in the earphone mode, the volume of the different audio types is set to be the first group volume, and in the non-headphone mode, the volume of the different audio types is set to the second. The step of group volume includes storing the first set of volumes and storing the second set of volumes.
- 根据权利要求11所述的移动通讯设备的音量控制方法,其中所述检测到所述耳机模式时,设置应用程序的音量为所述第一组音量,检测到所述非耳机模式时,设置应用程序的音量为所述第二组音量的步骤包括:检测所述音频类型,并根据所述音频类型设置耳机音量或者设置非耳机音量。The volume control method of the mobile communication device according to claim 11, wherein when the headset mode is detected, the volume of the application is set to the first group volume, and when the non-headphone mode is detected, the application is set. The step of the volume of the program being the second set of volumes includes detecting the type of audio and setting a headphone volume or setting a non-earphone volume according to the type of audio.
- 根据权利要求12所述的移动通讯设备的音量控制方法,其中当处于所述耳机模式时,如所述音频类型为铃声,设置所述第一铃声音量为所述耳机音量,如所述音频类型为闹钟,设置所述第一闹钟音量为所述耳机音量,如所述音频类型为多媒体,设置所述第一多媒体音量为所述耳机音量;当处于所述非耳机模式时,如所述音频类型为铃声,设置所述第二铃声音量为所述非耳机音量,如所述音频类型为闹钟,设置所述第二闹钟音量为所述非耳机音量,如所述音频类型为多媒体时,设置所述第二多媒体音量为所述非耳机音量。The volume control method of a mobile communication device according to claim 12, wherein when in the earphone mode, if the audio type is a ringtone, setting the first ringtone volume to the earphone volume, such as the audio type For the alarm clock, set the first alarm clock volume to the earphone volume, if the audio type is multimedia, set the first multimedia volume to the earphone volume; when in the non-earphone mode, The audio type is a ringtone, and the second ringtone volume is set to the non-headphone volume, if the audio type is an alarm, and the second alarm volume is set to the non-earphone volume, if the audio type is multimedia And setting the second multimedia volume to the non-earphone volume.
- 根据权利要求12所述的移动通讯设备的音量控制方法,其中所述检测所述音频类型,并根据所述音频类型设置耳机音量或者设置非耳机音量的步骤之后,包括:存储所述耳机音量,或者存储所述非耳机音量。The volume control method of a mobile communication device according to claim 12, wherein said step of detecting said audio type and setting a headphone volume or setting a non-headphone volume according to said audio type comprises: storing said headphone volume, Or store the non-earphone volume.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110178332.5 | 2011-06-29 | ||
CN201110178332.5A CN102325216B (en) | 2011-06-29 | 2011-06-29 | Mobile communication equipment and volume control method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013000354A1 true WO2013000354A1 (en) | 2013-01-03 |
Family
ID=45452884
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/076335 WO2013000354A1 (en) | 2011-06-29 | 2012-05-31 | Mobile communication device and volume control method therefor |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102325216B (en) |
WO (1) | WO2013000354A1 (en) |
Families Citing this family (33)
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 (5)
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 |
US20080247570A1 (en) * | 2007-04-03 | 2008-10-09 | Giga-Byte Technology Co., Ltd. | Sound output device with earphone mode and speaker mode |
CN101610440A (en) * | 2008-06-19 | 2009-12-23 | 鸿富锦精密工业(深圳)有限公司 | Electronic installation |
CN102325216A (en) * | 2011-06-29 | 2012-01-18 | 惠州Tcl移动通信有限公司 | Mobile communication equipment and volume control method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4317834B2 (en) * | 2005-06-01 | 2009-08-19 | 株式会社カシオ日立モバイルコミュニケーションズ | Sound output device and sound output control program |
US20080153537A1 (en) * | 2006-12-21 | 2008-06-26 | Charbel Khawand | Dynamically learning a user's response via user-preferred audio settings in response to different noise environments |
CN101917659A (en) * | 2010-07-23 | 2010-12-15 | 惠州Tcl移动通信有限公司 | Detection device, method and mobile terminal of earphone circuit |
-
2011
- 2011-06-29 CN CN201110178332.5A patent/CN102325216B/en active Active
-
2012
- 2012-05-31 WO PCT/CN2012/076335 patent/WO2013000354A1/en active Application Filing
Patent Citations (5)
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 |
US20080247570A1 (en) * | 2007-04-03 | 2008-10-09 | Giga-Byte Technology Co., Ltd. | Sound output device with earphone mode and speaker mode |
CN101610440A (en) * | 2008-06-19 | 2009-12-23 | 鸿富锦精密工业(深圳)有限公司 | Electronic installation |
CN102325216A (en) * | 2011-06-29 | 2012-01-18 | 惠州Tcl移动通信有限公司 | Mobile communication equipment and volume control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102325216B (en) | 2015-07-15 |
CN102325216A (en) | 2012-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013000354A1 (en) | Mobile communication device and volume control method therefor | |
WO2014021670A1 (en) | Mobile apparatus and control method thereof | |
WO2009063413A1 (en) | Portable hands-free device with sensor | |
WO2015143776A1 (en) | Multi-mode power saving multimedia transmission method and system | |
JP3150873U (en) | headphone | |
JP7335090B2 (en) | Stabilization of high performance audio amplifiers | |
JP2006339953A (en) | Audio output device and audio output control method | |
CN101938546A (en) | Earphone microphone detection method based on mobile phone and mobile phone | |
WO2018192164A1 (en) | Method, device and system for reducing power consumption at type-c interface | |
WO2014121576A1 (en) | Method and device for supplying power for noise-reducing earphones using power supply of electronic device | |
KR20070025167A (en) | Audio volume control apparatus and method for mobile communication device | |
WO2017113796A1 (en) | Intelligent voice reminding system, server and method thereof | |
WO2019031767A1 (en) | Display apparatus and controlling method thereof | |
WO2017161873A1 (en) | Incoming call voice playing method and system, and bluetooth smart watch | |
KR20150045638A (en) | Earjack and electronic device having the same | |
GB2502983A (en) | Electronic host device with flexible interface for accessory connection | |
KR20060109770A (en) | Sound output control method for audio device | |
KR20050046452A (en) | Audio volume control apparatus and method for mobile communication device | |
US20030076952A1 (en) | Earphone capable of automatically receiving telephone calls | |
KR20040084616A (en) | Method and apparatus for improving sound quality of multi function device(mfd) in mobile communication terminal | |
WO2014088202A1 (en) | Sound-processing system recognizing earphones for mobile terminal using sound pattern, method for recognizing mobile terminal earphones and method for processing input sound using same, method for automatically converting audio signal amplification output based on earphones/microphone set, and computer-readable recording medium therefor | |
WO2019059492A1 (en) | Electronic apparatus, method for controlling thereof and the computer readable recording medium | |
WO2018126375A1 (en) | Earphone apparatus | |
JP2006140866A (en) | Electronic equipment | |
KR20010059527A (en) | Ear microphone of mobile phone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12803832 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12803832 Country of ref document: EP Kind code of ref document: A1 |