CN106101913B - A kind of method and terminal that earphone noise is eliminated - Google Patents

A kind of method and terminal that earphone noise is eliminated Download PDF

Info

Publication number
CN106101913B
CN106101913B CN201610772086.9A CN201610772086A CN106101913B CN 106101913 B CN106101913 B CN 106101913B CN 201610772086 A CN201610772086 A CN 201610772086A CN 106101913 B CN106101913 B CN 106101913B
Authority
CN
China
Prior art keywords
earphone socket
earphone
predeterminated position
headset plug
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610772086.9A
Other languages
Chinese (zh)
Other versions
CN106101913A (en
Inventor
李伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610772086.9A priority Critical patent/CN106101913B/en
Publication of CN106101913A publication Critical patent/CN106101913A/en
Application granted granted Critical
Publication of CN106101913B publication Critical patent/CN106101913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides methods and terminal that a kind of earphone noise is eliminated, wherein, the method that earphone noise is eliminated includes: the distance between the second predeterminated position on the first predeterminated position and the earphone socket when obtaining headset plug to be inserted into the earphone socket, on the headset plug;When the distance is less than or equal to the first preset value, otherwise the microphone access be connected on the earphone socket is not turned on.Scheme provided by the invention by the first predeterminated position on headset plug between the second predeterminated position on the earphone socket at a distance from be less than or equal to the first preset value when, the microphone access on earphone socket is connected again, the risk that headset plugging generates noise and poor contact in the process is avoided, the accuracy rate of detection is improved.

Description

A kind of method and terminal that earphone noise is eliminated
Technical field
The present invention relates to electronic technology fields, particularly relate to a kind of method and terminal that earphone noise is eliminated.
Background technique
The fast development of mobile terminal, shows more and more functions, therefore user's life also becomes more convenient.With Family becomes essential a part in recreation using mobile terminal playing audio file or video file, most of the time User will use earphone broadcasting, and the sound quality that on the one hand can have been experienced, another aspect can also be to avoid influencing other people.
But in use process, user can hear bright, it can be seen that during earphone is inserted into or extracts earphone base Aobvious noise.Generated noise effect user experience is extracted in insertion, while frequent noise can also be to the hearing of user It impacts.
Specifically, generating having its source in for noise: as shown in Figure 1, during earphone inserts or pull out earphone base, ear The microphone pin of base touches G sections (ground sections), and the ground pin of earphone base touches R sections (right channel sections), is added in this way MIC_BIAS (Mike's biasing) voltage on microphone will be formed into a loop in the R sound channel of earphone, so that the R sound channel of earphone will Generate noise.MIC_BIAS voltage is higher, and the noise generated in swapping process will be bigger.
In response to this, patent " earphone base ontology, earphone socket, electronic product " discloses a kind of earphone socket, will Detection elastic slice is placed in socket end to promote the comfort in swapping process.But there are still defects: earphone for the scheme in patent Top it is generally all sharper, contact area is small, be easy the risk there are poor contact, while earphone base is in routine use, into After entering dust, for dust accretions in earphone base end, will cause can not detect earphone.
Exist during into and out earphone from the foregoing, it will be observed that the prior art does not solve mobile intelligent terminal preferably The problem of noise.
Summary of the invention
The purpose of the present invention is to provide method and terminal that a kind of earphone noise is eliminated, solves earphone in the prior art and insert Noise is led to the problem of during pulling out.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of method that earphone noise is eliminated, and is applied to eventually End, and the terminal includes earphone socket, which comprises
The first predeterminated position and the earphone when obtaining the headset plug insertion earphone socket, on the headset plug The distance between second predeterminated position on socket;
When the distance is less than or equal to the first preset value, the microphone access on the earphone socket is connected, otherwise, It is not turned on.
The present invention also provides a kind of terminals, including earphone socket, further includes:
Sensor, the first default position when being inserted into the earphone socket for obtaining headset plug, on the headset plug It sets and the distance between the second predeterminated position on the earphone socket;
First processing module, for being connected on the earphone socket when the distance is less than or equal to the first preset value Microphone access be otherwise not turned on.
The advantageous effects of the above technical solutions of the present invention are as follows:
In above scheme, method that the earphone noise is eliminated by the first predeterminated position on headset plug with it is described When the distance between second predeterminated position on earphone socket is less than or equal to the first preset value, then the wheat on earphone socket is connected Gram wind access avoids the risk for generating noise and poor contact during headset plugging, improves the accuracy rate of detection.
Detailed description of the invention
Fig. 1 is that headset plug in the prior art and earphone socket cooperate schematic diagram;
Fig. 2 is the method flow schematic diagram that the earphone noise of the embodiment of the present invention one is eliminated;
Fig. 3 is that the headset plug of the embodiment of the present invention one has just been inserted into earphone socket schematic diagram;
Fig. 4 is that the headset plug of the embodiment of the present invention one is fully inserted into earphone socket schematic diagram;
Fig. 5 is the method concrete application flow diagram that the earphone noise of the embodiment of the present invention one is eliminated;
Fig. 6 is two terminal structure schematic diagram of the embodiment of the present invention;
Fig. 7 is three terminal structure schematic diagram of the embodiment of the present invention;
Fig. 8 is four terminal structure schematic diagram of the embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool Body embodiment is described in detail.
Middle headset plugging leads to the problem of noise in the process to the present invention in view of the prior art, provides a variety of solution party Case, specific as follows:
Embodiment one
As shown in Fig. 2, the method that the earphone noise that the embodiment of the present invention one provides is eliminated, is applied to terminal, and the end End includes earphone socket, which comprises
Step 21: the first predeterminated position and earphone socket when obtaining headset plug insertion earphone socket, on headset plug On the distance between the second predeterminated position contacted after the first predeterminated position is preferably headset plug insertion with earphone socket Position.
First predeterminated position is preferably the disconnected end (for contradicting the end of connection with earphone socket) of headset plug, Second predeterminated position is preferably the end (bottom of earphone jack) of earphone socket.
Step 22: when distance is less than or equal to the first preset value, the microphone access on earphone socket is connected, otherwise, It is not turned on (triggering earphone insertion is interrupted, and control Mike's bias voltage starts to power, and otherwise, is not powered).
First preset value can be headset plug and fully mated rear first predeterminated position of earphone socket and the second default position Distance value between setting.Triggering earphone insertion, which is interrupted, can be described as so that the bias voltage being added on microphone is formed back on earphone Road.
Specifically, the first predeterminated position and earphone socket when obtaining headset plug insertion earphone socket, on headset plug On the distance between the second predeterminated position the step of include: sensor by being set on earphone socket, obtain earphone and insert When head insertion earphone socket, between the second predeterminated position on the first predeterminated position and earphone socket on headset plug away from From.
It is, obtained using the sensor on earphone socket between the first predeterminated position and the second predeterminated position away from From.
More specifically, pass through the sensor being set on earphone socket, when obtaining headset plug insertion earphone socket, earphone The step of the distance between the first predeterminated position on plug and the second predeterminated position on earphone socket includes: to be set to ear On machine transplanting of rice seat, and the detection foot being connect with the L channel contact of earphone socket, detect headset plug insertion earphone socket and a left side When sound channel contact connects, the sensor by being set to the second predeterminated position obtain the first predeterminated position and the second predeterminated position it Between distance.
It is, utilizing sensor to obtain the first default position when detection foot detects that headset plug is inserted into earphone socket Set the distance between second predeterminated position.
In view of practical application, preferably sensor is ultrasonic sensor;Distance can of course can be known using other Device of information, such as infrared sensor etc., are not limited thereto.
Further, the method that earphone noise is eliminated further include: when distance is greater than or equal to the second preset value, described in disconnection Microphone access on earphone socket (triggering earphone, which is extracted, to interrupt, and control Mike's bias voltage stops output).
It is, after headset plug is separated with earphone socket, then cut off the circuit of bias voltage formation.
In the embodiment of the present invention, the second predeterminated position is preferably the L channel contact position of earphone socket, and earphone is inserted L channel section, right channel section, location and the microphone segment of seat are sequentially connected, and Mike's bias voltage is added in the Mike of earphone socket On wind contact.
The method eliminated below to the earphone noise that the embodiment of the present invention one provides is further described.
The embodiment of the present invention for existing mobile intelligent terminal during into and out earphone, ask by existing noise Topic provides a kind of method that earphone noise is eliminated:
By increasing sensor (such as ultrasound) in earphone socket end, come whether test earphone plug is fully inserted into, only It is fully inserted into and (is less than triggering distance), can just generate earphone insertion and interrupt, do not inserted completely also so as to avoid in headset plug Enter, Mike biases MIC_BIAS voltage and is just formed into a loop on earphone access, and then eliminates insertion noise;Withdrawal process works as inspection When measuring headset plug and leaving earphone socket end certain distance (be greater than triggering distance), MIC_BIAS voltage is disconnected, and then disappear Except extraction noise.
Above scheme solves the problems, such as generation noise during headset plugging at this stage, meanwhile, avoid poor contact Risk, improve the accuracy rate of detection.
Scheme provided in an embodiment of the present invention is further illustrated by taking ultrasonic sensor as an example:
Insertion process: utilizing ultrasonic sensor, and distance of the test earphone plug apart from earphone socket end is touched when being less than Hair apart from when, generate earphone insertion interrupt, at this time it is considered that headset plug has been fully inserted into, the voltage of MIC_BIAS is in ear It is formed into a loop on machine access, passes through headset plug output signal.Triggering distance therein can be that headset plug is complete with preset in advance It is fully inserted under state, the distance of headset plug and earphone socket end.
It is, state as shown in Figure 3, in earphone insertion process, also it is not fully inserted into, earphone will not be triggered at this time and inserted Enter to interrupt, i.e. MIC_BIAS will not power.
Here be fully inserted into it is to be understood that the L channel of earphone socket, right channel, and microphone respectively with earphone L (L channel), R (right channel), G (ground), the M (microphone) of plug are in contact.
State as shown in Figure 4, earphone are fully inserted into socket, then generate earphone insertion and interrupt, MIC_BIAS power supply, in ear It is formed into a loop on machine access, passes through earphone head output signal.
It is specific as shown in Figures 3 to 5, comprising:
Step 51: headset plug is inserted into earphone socket.
Step 52: headset plug contacts L channel and detection foot 1.
Step 53: detection foot 2 starts, and measures the distance between headset plug and earphone socket bottom.
Step 54: judging whether distance is less than preset value.
Step 55: being that control MIC_BIAS power supply passes through headset plug output signal.
Withdrawal process: using ultrasonic sensor (detection foot 2), test earphone plug apart from earphone socket end away from From, when be greater than triggering apart from when, disconnect MIC_BIAS voltage, avoid extract noise.
Detailed process is similar to Fig. 5, and details are not described herein.
From the foregoing, it will be observed that the embodiment of the present invention solves headset plugging at this stage by increasing sensor in earphone socket end Noise is led to the problem of in the process, is compared existing scheme, is avoided the risk of poor contact, improve the accuracy rate of detection.
Described herein as, scheme provided in an embodiment of the present invention can be applied in mobile phone, can also be applied in other electricity such as PDA On sub- Product Terminal.
Embodiment two
As shown in fig. 6, terminal provided by Embodiment 2 of the present invention includes earphone socket, further includes:
Sensor 61, the first predeterminated position and ear when for obtaining headset plug insertion earphone socket, on headset plug The distance between second predeterminated position on machine transplanting of rice seat, the first predeterminated position are preferably after headset plug is inserted into, with earphone socket The position of contact.
First predeterminated position is preferably the disconnected end (for contradicting the end of connection with earphone socket) of headset plug, Second predeterminated position is preferably the end (bottom of earphone jack) of earphone socket.
Control module 62 is connected, for being connected on the earphone socket when distance is less than or equal to the first preset value Otherwise microphone access is not turned on and (triggers earphone insertion to interrupt, control Mike's bias voltage starts to power, and otherwise, does not supply Electricity).
First preset value can be headset plug and fully mated rear first predeterminated position of earphone socket and the second default position Distance value between setting.Triggering earphone insertion, which is interrupted, can be described as so that the bias voltage being added on microphone is formed back on earphone Road.
Specifically, sensor is set to the second predeterminated position of earphone socket.
It is, obtained using the sensor on earphone socket between the first predeterminated position and the second predeterminated position away from From.
More specifically, terminal further includes the inspection for being set on earphone socket, and connecting with the L channel contact of earphone socket It surveys module (the detection foot for being equivalent to above-described embodiment);Whether detection module is inserted into earphone socket and a left side for test earphone plug The connection of sound channel contact;
Sensor is specifically used for: when headset plug insertion earphone socket is connect with L channel contact, it is default to obtain first The distance between position and the second predeterminated position.
It is, it is default to obtain first using sensor when detection module detects that headset plug is inserted into earphone socket The distance between position and the second predeterminated position.
In view of practical application, preferably sensor is ultrasonic sensor;Distance can of course can be known using other Device of information, such as infrared sensor etc., are not limited thereto.
Further, the conducting control module is also used to: when the distance is greater than or equal to the second preset value, disconnecting institute State the microphone access on earphone socket (triggering earphone, which is extracted, to interrupt, and control Mike's bias voltage stops output/stopping power supply).
It is, after headset plug is separated with earphone socket, then cut off the circuit of bias voltage formation.
In the embodiment of the present invention, the second predeterminated position is preferably the L channel contact position of earphone socket, and earphone is inserted L channel section, right channel section, location and the microphone segment of seat are sequentially connected, and Mike's bias voltage is added in the Mike of earphone socket On wind contact.
Wherein, the realization embodiment for the method that above-mentioned earphone noise is eliminated suitable for the embodiment of the terminal, Also it can reach identical technical effect.
Embodiment three
As shown in fig. 7, the terminal 700 that the embodiment of the present invention three provides includes:
At least one processor 701, memory 702, at least one network interface 704 and other users interface 703.Terminal Various components in 700 are coupled by bus system 705.It is understood that bus system 705 for realizing these components it Between connection communication.Bus system 705 further includes power bus, control bus and status signal in addition to including data/address bus Bus.But for the sake of clear explanation, various buses are all designated as bus system 705 in Fig. 7.
Wherein, user interface 703 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 702 of system and method described herein is intended to include but is not limited to these and arbitrarily its It is suitble to the memory of type.
In some embodiments, memory 702 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 7022.
In embodiments of the present invention, by the program or instruction of calling memory 702 to store, specifically, can be application The program or instruction stored in program 7022, when processor 701 is inserted into the earphone socket for obtaining headset plug, the ear The distance between the second predeterminated position on the first predeterminated position and the earphone socket on machine transplanting of rice head;It is less than in the distance Or when being equal to the first preset value, otherwise the microphone access be connected on the earphone socket is not turned on.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701. Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 702, processor 701 reads the information in memory 702, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, processor 701 is specifically used for: by the sensor being set on the earphone socket, obtaining the ear When machine transplanting of rice head is inserted into the earphone socket, second on the first predeterminated position and the earphone socket on the headset plug is pre- If the distance between position.
Optionally, processor 701 is more particularly for: detecting that the headset plug is inserted into the earphone socket and L channel When contact connects, the sensor by being set to second predeterminated position obtains first predeterminated position and described second in advance If the distance between position.
Optionally, the sensor is ultrasonic sensor.
Optionally, processor 701 is specifically also used to: when the distance is greater than or equal to the second preset value, described in disconnection Microphone access on earphone socket.
Optionally, second predeterminated position is the L channel contact position of earphone socket, Mike's biased electrical Pressure is added on the microphone contact of the earphone socket.
Terminal 700 can be realized each process that terminal is realized in previous embodiment, no longer superfluous here to avoid repeating It states.
To sum up, the terminal that the embodiment of the present invention three provides by the first predeterminated position on headset plug with it is described When the distance between second predeterminated position on earphone socket is less than or equal to the first preset value, then the wheat on earphone socket is connected Gram wind access avoids the risk for generating noise and poor contact during headset plugging, improves the accuracy rate of detection.
Example IV
Specifically, as shown in figure 8, the terminal 800 in the embodiment of the present invention four can be mobile phone, tablet computer, a number Word assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..
Terminal 800 in Fig. 8 includes radio frequency (Radio Frequency, RF) circuit 810, memory 820, input unit 830, display unit 840, processor 860, voicefrequency circuit 870, WiFi (Wireless Fidelity) module 880 and power supply 890。
Wherein, input unit 830 can be used for receiving the number or character information of user's input, and generate and terminal 800 User setting and function control related signal input.Specifically, in the embodiment of the present invention, which can be with Including touch panel 831.Touch panel 831, also referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user uses the operation of finger, stylus any suitable object or attachment on touch panel 831), and according to setting in advance Fixed formula drives corresponding attachment device.Optionally, touch panel 831 may include touch detecting apparatus and touch controller two A part.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then The processor 860 is given, and order that processor 860 is sent can be received and executed.Furthermore, it is possible to using resistance-type, electricity The multiple types such as appearance formula, infrared ray and surface acoustic wave realize touch panel 831.In addition to touch panel 831, input unit 830 Can also include other input equipments 832, other input equipments 832 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 840 can be used for showing information input by user or be supplied to the information and terminal of user 800 various menu interfaces.Display unit 840 may include display panel 841, optionally, can use LCD or organic light emission two The forms such as pole pipe (Organic Light-Emitting Diode, OLED) configure display panel 841.
It should be noted that touch panel 831 can cover display panel 841, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 860 is sent to determine the type of touch event, is followed by subsequent processing device 860 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 860 is the control centre of terminal 800, utilizes each of various interfaces and connection whole mobile phone Part by running or execute the software program and/or module that are stored in first memory 821, and calls and is stored in the Data in two memories 822 execute the various functions and processing data of terminal 800, to carry out whole prison to terminal 800 Control.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 821 in software program and/or module and/ Or the data in the second memory 822, when processor 860 is inserted into the earphone socket for obtaining headset plug, the ear The distance between the second predeterminated position on the first predeterminated position and the earphone socket on machine transplanting of rice head;It is less than in the distance Or when being equal to the first preset value, otherwise the microphone access be connected on the earphone socket is not turned on.
Optionally, processor 860 is specifically used for: by the sensor being set on the earphone socket, obtaining the ear When machine transplanting of rice head is inserted into the earphone socket, second on the first predeterminated position and the earphone socket on the headset plug is pre- If the distance between position.
Optionally, processor 860 is more particularly for: detecting that the headset plug is inserted into the earphone socket and L channel When contact connects, the sensor by being set to second predeterminated position obtains first predeterminated position and described second in advance If the distance between position.
Optionally, the sensor is ultrasonic sensor.
Optionally, processor 860 is specifically also used to: when the distance is greater than or equal to the second preset value, described in disconnection Microphone access on earphone socket.
Optionally, second predeterminated position is the L channel contact position of earphone socket, Mike's biased electrical Pressure is added on the microphone contact of the earphone socket.
As it can be seen that the terminal that provides of the embodiment of the present invention four by the first predeterminated position on headset plug with it is described When the distance between second predeterminated position on earphone socket is less than or equal to the first preset value, then the wheat on earphone socket is connected Gram wind access avoids the risk for generating noise and poor contact during headset plugging, improves the accuracy rate of detection.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or the terminal device that include a series of elements not only include that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of terminal device.In the absence of more restrictions, the element limited by sentence "including a ...", and It is not precluded in the process, method including the element, article or terminal device that there is also other identical elements.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of method that earphone noise is eliminated is applied to terminal, and the terminal includes earphone socket, which is characterized in that institute The method of stating includes:
The first predeterminated position and the earphone socket when obtaining the headset plug insertion earphone socket, on the headset plug On the distance between the second predeterminated position;
When the distance is less than or equal to the first preset value, otherwise the microphone access be connected on the earphone socket is not led It is logical;
Wherein, the first predeterminated position is on headset plug for contradicting the end position of connection, the second default position with earphone socket It is set to the bottom position of earphone jack on earphone socket;
The method further include:
When the distance is greater than or equal to the second preset value, the microphone access on the earphone socket is disconnected.
2. the method according to claim 1, wherein the acquisition headset plug be inserted into the earphone socket when, The first predeterminated position on the headset plug is wrapped with the step of the distance between the second predeterminated position on the earphone socket It includes:
It is described when obtaining the headset plug insertion earphone socket by the sensor being set on the earphone socket The distance between the second predeterminated position on the first predeterminated position and the earphone socket on headset plug.
3. according to the method described in claim 2, it is characterized in that, the sensing by being set on the earphone socket Device, the first predeterminated position and the earphone when obtaining the headset plug insertion earphone socket, on the headset plug The step of the distance between second predeterminated position on socket includes:
It is pre- by being set to described second when detecting that the headset plug insertion earphone socket is connect with L channel contact If the sensor of position obtains the distance between first predeterminated position and second predeterminated position.
4. according to the method described in claim 3, it is characterized in that, the sensor is ultrasonic sensor.
5. method according to any one of claims 1 to 4, which is characterized in that second predeterminated position is earphone socket L channel contact position, Mike's bias voltage is added on the microphone contact of the earphone socket.
6. a kind of terminal, including earphone socket, which is characterized in that further include:
Sensor, when being inserted into the earphone socket for obtaining headset plug, the first predeterminated position on the headset plug with The distance between second predeterminated position on the earphone socket;
Control module is connected, for the wheat on the earphone socket to be connected when the distance is less than or equal to the first preset value Otherwise gram wind access is not turned on;
Wherein, the first predeterminated position is on headset plug for contradicting the end position of connection, the second default position with earphone socket It is set to the bottom position of earphone jack on earphone socket;
The conducting control module is also used to:
When the distance is greater than or equal to the second preset value, the microphone access on the earphone socket is disconnected.
7. terminal according to claim 6, which is characterized in that it is second pre- to be set to the earphone socket for the sensor If position.
8. terminal according to claim 7, which is characterized in that the terminal further includes being set on the earphone socket, And the detection module being connect with the L channel contact of the earphone socket;
Whether the detection module is inserted into the earphone socket for detecting the headset plug connect with L channel contact;
The sensor is specifically used for: when the headset plug is inserted into the earphone socket and connect with L channel contact, obtaining The distance between first predeterminated position and second predeterminated position.
9. terminal according to claim 8, which is characterized in that the sensor is ultrasonic sensor.
10. according to the described in any item terminals of claim 6 to 9, which is characterized in that second predeterminated position is earphone socket L channel contact position, Mike's bias voltage is added on the microphone contact of the earphone socket.
CN201610772086.9A 2016-08-30 2016-08-30 A kind of method and terminal that earphone noise is eliminated Active CN106101913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610772086.9A CN106101913B (en) 2016-08-30 2016-08-30 A kind of method and terminal that earphone noise is eliminated

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610772086.9A CN106101913B (en) 2016-08-30 2016-08-30 A kind of method and terminal that earphone noise is eliminated

Publications (2)

Publication Number Publication Date
CN106101913A CN106101913A (en) 2016-11-09
CN106101913B true CN106101913B (en) 2019-03-05

Family

ID=57224107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610772086.9A Active CN106101913B (en) 2016-08-30 2016-08-30 A kind of method and terminal that earphone noise is eliminated

Country Status (1)

Country Link
CN (1) CN106101913B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201750528U (en) * 2010-03-31 2011-02-16 宇龙计算机通信科技(深圳)有限公司 Audio processing device
CN104679674A (en) * 2013-11-29 2015-06-03 联想(北京)有限公司 Information processing method and electronic device
CN105120390A (en) * 2015-08-31 2015-12-02 努比亚技术有限公司 Headphone socket, headphone plug and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160064842A (en) * 2014-11-28 2016-06-08 삼성전자주식회사 Method for confirming a foreign substance in earjack and electronic device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201750528U (en) * 2010-03-31 2011-02-16 宇龙计算机通信科技(深圳)有限公司 Audio processing device
CN104679674A (en) * 2013-11-29 2015-06-03 联想(北京)有限公司 Information processing method and electronic device
CN105120390A (en) * 2015-08-31 2015-12-02 努比亚技术有限公司 Headphone socket, headphone plug and electronic device

Also Published As

Publication number Publication date
CN106101913A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106844265B (en) A kind of control method and mobile terminal of general-purpose serial bus USB interface
CN106303804B (en) A kind of control method and mobile terminal of microphone
CN106844067B (en) A kind of processing method and mobile terminal of content
US20070118234A1 (en) Apparatus and method of displaying a symmetric-type menu
CN106205580B (en) A kind of audio data processing method and terminal
CN106341535B (en) A kind of audio play control method and mobile terminal
CN108268388B (en) A kind of Type-C interface protective circuit and method, mobile terminal
CN106341538B (en) A kind of method for pushing and mobile terminal of lyrics poster
JP2014110055A (en) Electronic device for providing hovering input effects and method for controlling the same
CN106208206B (en) A kind of wireless charging method and mobile terminal
CN106375576B (en) A kind of voice-frequency channel control method and mobile terminal
TW201629748A (en) System and method for detecting status of headphone port
CN106412671B (en) A kind of video broadcasting method and mobile terminal
CN107241642B (en) A kind of playback method and terminal
CN106230069B (en) A kind of charging method and terminal
CN108268403A (en) A kind of Type-C interface protective circuits and method, mobile terminal
CN104301824B (en) Line traffic control equipment, controller, method and device
CN108268395A (en) A kind of method and mobile terminal of data communication
CN107257406B (en) A kind of method and terminal to charge and audio data is handled
CN106101913B (en) A kind of method and terminal that earphone noise is eliminated
CN106293184A (en) Can the terminal of side touch-control and touch control method thereof
CN107819931A (en) A kind of audio frequency playing method and mobile terminal based on wireless headset
CN106973154A (en) A kind of reminding method and mobile terminal
CN106961518A (en) The changing method and mobile terminal of a kind of audio-frequency play mode
CN106210948A (en) A kind of on-off circuit, earphone socket, mobile terminal and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant