CN105554631B - Audio switching method, device and electronic equipment - Google Patents
Audio switching method, device and electronic equipment Download PDFInfo
- Publication number
- CN105554631B CN105554631B CN201510974914.2A CN201510974914A CN105554631B CN 105554631 B CN105554631 B CN 105554631B CN 201510974914 A CN201510974914 A CN 201510974914A CN 105554631 B CN105554631 B CN 105554631B
- Authority
- CN
- China
- Prior art keywords
- earphone
- electronic equipment
- type
- interface
- earhole
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2203/00—Details of circuits for transducers, loudspeakers or microphones covered by H04R3/00 but not provided for in any of its subgroups
Abstract
The disclosure is directed to a kind of audio switching method, device and electronic equipments.The described method includes: detecting the type of be inserted into earphone in the earhole of electronic equipment;When the type of the earphone is the first earphone, the earphone interface of the electronic equipment is switched to the corresponding first interface of first earphone by control switching switch;When the type of the earphone is the second earphone, the switching switch is controlled by the earphone interface of the electronic equipment and is switched to the corresponding second interface of second earphone.Disclosed technique scheme can enable electronic equipment support two distinct types of earphone, avoid that the corresponding functional module of one of headset type is arranged on an electronic device, reduce electronic equipment due to needing the functions bring hardware cost such as HIFI.
Description
Technical field
This disclosure relates to field of terminal technology more particularly to a kind of audio switching method, device and electronic equipment.
Background technique
For the demand to sound quality, now more and more cell phone manufacturers by high-fidelity (High-Fidelity, referred to as
HIFI) function is made in mobile phone, so as to so that any earphone can enjoy the acoustics of HIFI.Since HIFI circuit needs
Want very high cost, if user to sound quality without too high requirement, but have purchased the mobile phone with HIFI function at this time, can to use
Bring the unnecessary consumption expenditure in family.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of audio switching method, device and electricity
Sub- equipment reduces electronic equipment due to needing to enable electronic equipment to switch between HIFI earphone and common earphone
HIFI function bring hardware cost.
According to the first aspect of the embodiments of the present disclosure, a kind of audio switching method is provided, comprising:
Detect the type of be inserted into earphone in the earhole of electronic equipment;
When the type of the earphone is the first earphone, control switching switch switches the earphone interface of the electronic equipment
To the corresponding first interface of first earphone;
When the type of the earphone is the second earphone, the switching switch is controlled by the earphone interface of the electronic equipment
It is switched to the corresponding second interface of second earphone.
In one embodiment, it is described detection electronic equipment earhole in be inserted into earphone type, it may include:
Detect the earth impedance value at the Mike end of second earphone;
The type of be inserted into earphone in the earhole of the electronic equipment is determined according to the earth impedance value.
In one embodiment, described that be inserted into earphone in the earhole of the electronic equipment is determined according to the earth impedance value
Type, it may include:
When the earth impedance value is in the first preset range, be inserted into earphone in the earhole of the electronic equipment is determined
Type is the first earphone;
When the earth impedance value is in the second preset range or third preset range, the ear of the electronic equipment is determined
In hole the type of be inserted into earphone be the second earphone, first preset range be located at second preset range upper limit value and
Between the lower limit value of the third preset range.
In one embodiment, it is described detection electronic equipment earhole in be inserted into earphone type, it may include:
Determine whether to receive the identity from the first earphone;
When receiving the identity of first earphone, be inserted into earphone in the earhole of the electronic equipment is determined
Type is the first earphone;
When not receiving the identity of first earphone, be inserted into earphone in the electronic equipment earphone is determined
Type is the second earphone.
In one embodiment, the method may also include that
When the type of the earphone is the second earphone, controls the switching switch and connect the power supply on the earphone interface
Mouth disconnects.
According to the second aspect of an embodiment of the present disclosure, a kind of audio frequency switching device is provided, comprising:
Detection module is configured as the type of be inserted into earphone in the earhole of detection electronic equipment;
First control module is configured as when the detection module detects that the type of the earphone is the first earphone,
The earphone interface of the electronic equipment is switched to the corresponding first interface of first earphone by control switching switch;
Second control module is configured as when the detection module detects that the type of the earphone is the second earphone,
It controls the switching switch and the earphone interface of the electronic equipment is switched to the corresponding second interface of second earphone.
In one embodiment, the detection module can include:
First detection sub-module is configured as detecting the earth impedance value at the Mike end of second earphone;
First determines submodule, and it is true to be configured as the earth impedance value detected according to first detection sub-module
The type of be inserted into earphone in the earhole of the fixed electronic equipment.
In one embodiment, described first submodule is determined can include:
Second determines submodule, is configured as the earth impedance value detected when first detection sub-module the
When one preset range, determine that the type of be inserted into earphone in the earhole of the electronic equipment is the first earphone;
Third determines submodule, is configured as the earth impedance value detected when first detection sub-module the
When two preset ranges or third preset range, determine that the type of be inserted into earphone in the earhole of the electronic equipment is the second ear
Machine, first preset range be located at second preset range upper limit value and the third preset range lower limit value it
Between.
In one embodiment, the detection module can include:
4th determines submodule, is configured to determine whether to receive the identity from the first earphone;
5th determines submodule, is configured as determining the determining body for receiving first earphone of submodule when the described 4th
When part mark, determine that the type of be inserted into earphone in the earhole of the electronic equipment is the first earphone;
6th determines submodule, is configured as determining that submodule determination does not receive first earphone when the described 4th
When identity, determine that the type of be inserted into earphone in the electronic equipment earphone is the second earphone.
In one embodiment, described device may also include that
Third control module is configured as when the detection module detects that the type of the earphone is the second earphone,
The switching switch is controlled to disconnect the power interface on the earphone interface.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Detect the type of be inserted into earphone in the earhole of electronic equipment;
When the type of the earphone is the first earphone, control switching switch switches the earphone interface of the electronic equipment
To the corresponding first interface of first earphone;
When the type of the earphone is the second earphone, the switching switch is controlled by the earphone interface of the electronic equipment
It is switched to the corresponding second interface of second earphone.
The technical scheme provided by this disclosed embodiment can include the following benefits: the ear by detecting electronic equipment
The type of be inserted into earphone in hole, control switching switch connect type that the earphone interface of electronic equipment is switched to earphone is corresponding
Mouthful, so as to avoid that one of them is arranged on an electronic device so that electronic equipment can support two distinct types of earphone
The corresponding functional module of headset type reduces electronic equipment due to needing the functions bring hardware cost such as HIFI.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Figure 1A is the flow chart of audio switching method shown according to an exemplary embodiment.
Figure 1B is the circuit diagram of Audio conversion shown according to an exemplary embodiment.
Fig. 2A is the flow chart according to the audio switching method shown in an exemplary embodiment one.
Fig. 2 B is according to one of the circuit diagram of Audio conversion shown in an exemplary embodiment one.
Fig. 2 C is two according to the circuit diagram of the Audio conversion shown in an exemplary embodiment one.
Fig. 3 A is the flow chart according to the audio switching method shown in an exemplary embodiment two.
Fig. 3 B is the circuit diagram according to the Audio conversion shown in an exemplary embodiment two.
Fig. 4 is a kind of block diagram of audio frequency switching device shown according to an exemplary embodiment.
Fig. 5 is the block diagram of another audio frequency switching device shown according to an exemplary embodiment.
Fig. 6 is the block diagram of another audio frequency switching device shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram suitable for audio frequency switching device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Figure 1A is the flow chart of audio switching method shown according to an exemplary embodiment, and Figure 1B is exemplary according to one
Implement the circuit diagram of the Audio conversion exemplified;The audio switching method can be applied in the electronic equipment with earphone jack
(such as: smart phone, tablet computer) on, as shown in Figure 1A, which includes the following steps S101-S103:
In step s101, the type of be inserted into earphone in the earhole of electronic equipment is detected.
In one embodiment, when not can be carried out wireless or wire communication between electronic equipment and earphone, can pass through
The type for the earphone being inserted into the earhole of electronic equipment is detected to impedance value to the ground at Mike end, in another embodiment,
When wired or wireless communication can be carried out between electronic equipment and second level, can be examined by the identity from earphone
Survey the headset type being inserted into the earhole of electronic equipment.
In step s 102, when the type of earphone is the first earphone, control switching switch connects the earphone of electronic equipment
Mouth is switched to the corresponding first interface of the first earphone.
In step s 103, when the type of earphone is the second earphone, control switching switch connects the earphone of electronic equipment
Mouth is switched to the corresponding second interface of the second earphone.
In one embodiment, the first earphone can be HIFI earphone, and control switching is switched the earphone interface of electronic equipment
It is switched to the corresponding interface of HIFI earphone, the second earphone can be common headphones, and control switching is switched the earphone of electronic equipment
Interface is switched to the corresponding second interface of common headphones.
Property circuit diagram as an example, with the first earphone be HIFI earphone, the second earphone be common headphones for carry out
Exemplary illustration in order to enable electronic equipment to be compatible with common headphones, needs earphone on an electronic device to connect as shown in Figure 1B
Mouthfuls 10 support two kinds of interfaces, one is the first interface 111 for supporting HIFI earphone, are specifically as follows I2S interface, including BCLK,
The pins such as WS, DATA, POWER;Another kind is the second interface 121 of common headphones, which includes the pipe such as L, R, MIC, GND
Foot.In one embodiment, first interface 111 is arranged in the processor 11 of electronic equipment, and second interface 121 is arranged in coding and decoding
In device 12.
Switching circuit 13 is for switching two kinds of interfaces.When common headphones insertion, switching switch 13 is switched to L, R, MIC,
And keep power pin (POWER pin) disconnect, when be inserted into HIFI earphone, switch switch 13 be switched to BCLK, WS, DATA,
The pins such as POWER.
In the present embodiment, the type of be inserted into earphone in the earhole by detecting electronic equipment, control switching switch will be electric
The earphone interface of sub- equipment is switched to the corresponding interface of type of earphone, so as to so that electronic equipment can support two kinds of differences
The earphone of type avoids that the corresponding functional module of one of headset type is arranged on an electronic device, reduce electronic equipment by
In needing the functions bring hardware cost such as HIFI.
In one embodiment, the type of be inserted into earphone in the earhole of electronic equipment is detected, it may include:
Detect the earth impedance value at the Mike end of the second earphone;
The type of be inserted into earphone in the earhole of electronic equipment is determined according to earth impedance value.
In one embodiment, the type of be inserted into earphone in the earhole of electronic equipment is determined according to earth impedance value, can be wrapped
It includes:
When earth impedance value is in the first preset range, determine that the type of be inserted into earphone in the earhole of electronic equipment is the
One earphone;
When earth impedance value is in the second preset range or third preset range, determines in the earhole of electronic equipment and insert
The type for entering earphone is the second earphone, and the first preset range is located under the upper limit value and third preset range of the second preset range
Between limit value.
In one embodiment, the type of be inserted into earphone in the earhole of electronic equipment is detected, it may include:
Determine whether to receive the identity from the first earphone;
When receiving the identity of the first earphone, determine that the type of be inserted into earphone in the earhole of electronic equipment is the
One earphone;
When not receiving the identity of the first earphone, determine that the type of be inserted into earphone in electronic equipment earphone is the
Two earphones.
In one embodiment, method may also include that
When the type of earphone is the second earphone, control switching switch disconnects the power interface on earphone interface.
Specifically how to realize Audio conversion, please refers to subsequent embodiment.
So far, the above method that the embodiment of the present disclosure provides, can enable electronic equipment support two distinct types of
Earphone avoids that the corresponding functional module of one of headset type is arranged on an electronic device, reduces electronic equipment due to needing
The functions bring hardware cost such as HIFI.
The technical solution of embodiment of the present disclosure offer is provided below with specific embodiment.
Fig. 2A is according to the flow chart of the audio switching method shown in an exemplary embodiment one, and Fig. 2 B is according to an example
One of the circuit diagram of Audio conversion shown in property embodiment one, Fig. 2 C is the Audio conversion shown according to an exemplary embodiment one
Circuit diagram two;The present embodiment utilize the embodiment of the present disclosure provide the above method, with by detection Mike end to ground resistance
Anti- value to illustrate for the type of test earphone and in conjunction with Figure 1B, as shown in Figure 2 A, includes the following steps:
In step s 201, the earth impedance value for detecting the Mike end of the second earphone, when earth impedance value is pre- first
If executing step S202 when range, when earth impedance value is in the second preset range or third preset range, step is executed
S204。
In one embodiment, with the first earphone for HIFI earphone, the second earphone illustrates for common headphones, such as
Shown in Figure 1B, common headphones, which are divided into, to be had Mike end (MIC) and not to have two kinds of Mike end (MIC), when common headphones do not have Mike end
When, the earth impedance value of MIC can achieve infinity, and when common headphones have Mike end (MIC), earth impedance value be can achieve
For K ohm level;Therefore the earth impedance value of the data pins (DATA pin) of HIFI earphone can be set as tens Europe K by the disclosure
Nurse is K ohm several hundred, so as to so that electronic equipment is identified specifically by detecting the earth impedance value of Mike end (MIC)
The type for the earphone being inserted into.
In step S202, when earth impedance value is in the first preset range, determines in the earhole of electronic equipment and be inserted into
The type of earphone is the first earphone.
In one embodiment, the first preset range can be set to from tens K ohm to several hundred K ohm of ranges, for example,
First preset range is K ohm of [50,1000].
In step S203, when the type of earphone is the first earphone, control switching switch connects the earphone of electronic equipment
Mouth is switched to the corresponding first interface of the first earphone, and process terminates.
As shown in Figure 2 B, when connecting in the earhole that HIFI earphone 21 is inserted into electronic equipment with earphone interface 10, switching is opened
It closes 13 and is switched to first interface 111, in one embodiment, first interface 111 can be I2S interface, i.e. WS/ shown in Fig. 2 C
BCLK/DATA/GND/POWER.It is can wrap in HIFI earphone 21 containing HIFI module in the related technology, is mentioned by HIFI module
High electronic equipment plays sound quality when voice.
In step S204, when earth impedance value is in the second preset range or third preset range, determine that electronics is set
The type of be inserted into earphone is the second earphone in standby earhole, and the first preset range is located at the upper limit value and the of the second preset range
Between the lower limit value of three preset ranges.
In one embodiment, the second preset range can be set to be less than K ohm, for example, the second preset range is [1,9]
K ohm.In one embodiment, third preset range can be set to the impedance value of the infinitely great grade greater than ten thousand K ohm, for example,
Third preset range is K ohm of [10000 ,+∞].In one embodiment, in order to avoid the first preset range and the second default model
Enclose and type identification mistake that third preset range has intersection to lead to earphone, can according to the upper limit value of the second preset range with
The lower limit value of third preset range is arranged the first preset range.
In step S205, when the type of earphone is the second earphone, control switching switch connects the earphone of electronic equipment
Mouth is switched to the corresponding second interface of the second earphone.
In step S206, control switching switch disconnects the power interface on earphone interface.
As shown in Figure 2 C, when connecting in the earhole that common headphones 22 are inserted into electronic equipment with earphone interface 10, switching is opened
It closes 13 and is switched to second interface 121, i.e. L/R/MIC/GND, since common headphones 22 do not need power supply, switching switch 13
The corresponding switch of power pin (power) disconnects, that is, corresponding earphone interface is vacant.
The present embodiment passes through detection Mike end (MIC) on the basis of the advantageous effects with above-described embodiment
The type for the earphone that earth impedance value is inserted into the earhole to identify electronic equipment, due to common headphones with HIFI earphone respectively
Corresponding earth impedance value difference is larger, therefore the present embodiment can be in the case of not increasing special hardware identification circuit i.e.
It can accurately identify common headphones or HIFI earphone, avoid being modified the hardware configuration of electronic equipment, reduce electricity
The hardware cost of the sub- equipment type of earphone for identification.
Fig. 3 A is according to the flow chart of the audio switching method shown in an exemplary embodiment two, and Fig. 3 B is according to an example
The circuit diagram of Audio conversion shown in property embodiment two;The above method that the present embodiment utilizes the embodiment of the present disclosure to provide, with logical
It crosses between electronic equipment and the first earphone and is illustrated for the type of test earphone by protocol communication, such as Fig. 3 A
It is shown, include the following steps:
In step S301, it is determined whether the identity from the first earphone is received, when receiving the first earphone
When identity, step S302 is executed, when not receiving the identity of the first earphone.
In step s 302, it when receiving the identity of the first earphone, determines in the earhole of electronic equipment and is inserted into
The type of earphone is the first earphone.
In step S303, when the type of earphone is the first earphone, control switching switch connects the earphone of electronic equipment
Mouth is switched to the corresponding first interface of the first earphone, and process terminates.
Step S301 is into step S303, as shown in Figure 3B, a chip 211 can be arranged on HIFI earphone 21, should
It is provided with the communication interface communicated with electronic equipment on chip 211, is additionally provided with to be stored with and is communicated with electronic equipment
Protocol information and HIFI earphone 21 the information such as identity, when HIFI earphone 21 is inserted into the earhole of electronic equipment,
The identity of HIFI earphone 21 can be sent to electronic equipment.The processor 11 of electronic equipment is receiving the identity
Afterwards, control switching switch 13 is switched to first interface 111.
In step s 304, it when not receiving the identity of the first earphone, determines and is inserted into electronic equipment earphone
The type of earphone is the second earphone.
In step S305, when the type of earphone is the second earphone, control switching switch connects the earphone of electronic equipment
Mouth is switched to the corresponding second interface of the second earphone.
In step S306, control switching switch disconnects the power interface on earphone interface.
The associated description of step S304 to step S306 may refer to the related description of above-mentioned Figure 1A or Fig. 2A, herein not
It is described in detail again.
The present embodiment is come from the basis of the advantageous effects with above-described embodiment by determining whether to receive
The type for the earphone that the identity of first earphone is inserted into the earhole to identify electronic equipment, since common headphones are not present
Communication interface for being communicated with electronic equipment, therefore when common headphones insertion, electronic equipment can't receive general
The identity of logical earphone, therefore the present embodiment can pass through body in the case of not increasing special hardware identification circuit
Part identifies HIFI earphone, avoids being modified the hardware configuration of electronic equipment, reduces electronic equipment ear for identification
The hardware cost of the type of machine.
Fig. 4 is a kind of block diagram of audio frequency switching device shown according to an exemplary embodiment, as shown in figure 4, audio is cut
Changing device includes:
Detection module 41 is configured as the type of be inserted into earphone in the earhole of detection electronic equipment;
First control module 42 is configured as the control when detection module 41 detects that the type of earphone is the first earphone
The earphone interface of electronic equipment is switched to the corresponding first interface of the first earphone by switching switch;
Second control module 43 is configured as the control when detection module 41 detects that the type of earphone is the second earphone
The earphone interface of electronic equipment is switched to the corresponding second interface of the second earphone by switching switch.
Fig. 5 is the block diagram of another audio frequency switching device shown according to an exemplary embodiment, as shown in figure 5, upper
On the basis of stating embodiment illustrated in fig. 4, in one embodiment, detection module 41 can include:
First detection sub-module 411 is configured as the earth impedance value at the Mike end of the second earphone of detection;
First determines submodule 412, is configured as the earth impedance value detected according to the first detection sub-module 411 and determines
The type of be inserted into earphone in the earhole of electronic equipment.
In one embodiment, first submodule 4121 is determined can include:
Second determines submodule 4121, is configured as the earth impedance value detected when the first detection sub-module 411 the
When one preset range, determine that the type of be inserted into earphone in the earhole of electronic equipment is the first earphone;
Third determines submodule 4122, is configured as the earth impedance value detected when the first detection sub-module 411 the
When two preset ranges or third preset range, determine that the type of be inserted into earphone in the earhole of electronic equipment is the second earphone,
First preset range is located between the upper limit value of the second preset range and the lower limit value of third preset range.
Fig. 6 is the block diagram of another audio frequency switching device shown according to an exemplary embodiment, as shown in figure 5, upper
On the basis of stating embodiment illustrated in fig. 4, in one embodiment, detection module 41 can include:
4th determines submodule 413, is configured to determine whether to receive the identity from the first earphone;
5th determines submodule 414, is configured as determining the determining identity for receiving the first earphone of submodule 413 when the 4th
When mark, determine that the type of be inserted into earphone in the earhole of electronic equipment is the first earphone;
6th determines submodule 415, is configured as determining the determining body for not receiving the first earphone of submodule 413 when the 4th
When part mark, determine that the type of be inserted into earphone in electronic equipment earphone is the second earphone.
In one embodiment, device may also include that
Third control module 44 is configured as the control when detection module 41 detects that the type of earphone is the second earphone
Switching switch disconnects the power interface on earphone interface.
Fig. 7 is a kind of block diagram suitable for audio frequency switching device shown according to an exemplary embodiment.For example, device
700 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, and medical treatment is set
It is standby, body-building equipment, personal digital assistant etc..
Referring to Fig. 7, device 700 may include following one or more components: processing component 702, memory 704, power supply
Component 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714, and
Communication component 716.
The integrated operation of the usual control device 700 of processing component 702, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing element 702 may include that one or more processors 720 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just
Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate
Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in equipment 700.These data are shown
Example includes the instruction of any application or method for operating on device 700, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 706 provides electric power for the various assemblies of device 700.Electric power assembly 706 may include power management system
System, one or more power supplys and other with for device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between described device 700 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 708 includes a front camera and/or rear camera.When equipment 700 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike
Wind (MIC), when device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set
Part 716 is sent.In some embodiments, audio component 710 further includes a loudspeaker, is used for output audio signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented
Estimate.For example, sensor module 714 can detecte the state that opens/closes of equipment 700, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 700, and sensor module 714 can be with 700 1 components of detection device 700 or device
Position change, the existence or non-existence that user contacts with device 700,700 orientation of device or acceleration/deceleration and device 700
Temperature change.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device
700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of device 700 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (9)
1. a kind of audio switching method, which is characterized in that the described method includes:
Detect the type of be inserted into earphone in the earhole of electronic equipment;
When the type of the earphone is the first earphone, the earphone interface of the electronic equipment is switched to institute by control switching switch
State the corresponding first interface of the first earphone;
When the type of the earphone is the second earphone, controls the switching switch and switch the earphone interface of the electronic equipment
It is disconnected to the corresponding second interface of second earphone, and by the power interface on the earphone interface;
First earphone is HIFI earphone, and second earphone is common headphones.
2. the method according to claim 1, wherein be inserted into earphone in the earhole of the detection electronic equipment
Type, comprising:
Detect the earth impedance value at the Mike end of the earphone;
The type of be inserted into earphone in the earhole of the electronic equipment is determined according to the earth impedance value.
3. according to the method described in claim 2, it is characterized in that, described determine that the electronics is set according to the earth impedance value
The type of be inserted into earphone in standby earhole, comprising:
When the earth impedance value is in the first preset range, the type of be inserted into earphone in the earhole of the electronic equipment is determined
For the first earphone;
When the earth impedance value is in the second preset range or third preset range, in the earhole for determining the electronic equipment
The type of be inserted into earphone is the second earphone, first preset range be located at the upper limit value of second preset range with it is described
Between the lower limit value of third preset range.
4. the method according to claim 1, wherein be inserted into earphone in the earhole of the detection electronic equipment
Type, comprising:
Determine whether to receive the identity from the first earphone;
When receiving the identity of first earphone, the type of be inserted into earphone in the earhole of the electronic equipment is determined
For the first earphone;
When not receiving the identity of first earphone, the type of be inserted into earphone in the electronic equipment earphone is determined
For the second earphone.
5. a kind of audio frequency switching device, which is characterized in that described device includes:
Detection module is configured as the type of be inserted into earphone in the earhole of detection electronic equipment;
First control module is configured as the control when the detection module detects that the type of the earphone is the first earphone
The earphone interface of the electronic equipment is switched to the corresponding first interface of first earphone by switching switch;
Second control module is configured as the control when the detection module detects that the type of the earphone is the second earphone
The earphone interface of the electronic equipment is switched to the corresponding second interface of second earphone by the switching switch;
Third control module is configured as the control when the detection module detects that the type of the earphone is the second earphone
The switching switch disconnects the power interface on the earphone interface;
First earphone is HIFI earphone, and second earphone is common headphones.
6. device according to claim 5, which is characterized in that the detection module includes:
First detection sub-module is configured as detecting the earth impedance value at the Mike end of the earphone;
First determines submodule, is configured as determining institute according to the earth impedance value that first detection sub-module detects
State the type of be inserted into earphone in the earhole of electronic equipment.
7. device according to claim 6, which is characterized in that described first determines that submodule includes:
Second determines submodule, and it is pre- first to be configured as the earth impedance value detected when first detection sub-module
If when range, determining that the type of be inserted into earphone in the earhole of the electronic equipment is the first earphone;
Third determines submodule, and it is pre- second to be configured as the earth impedance value detected when first detection sub-module
If when range or third preset range, determining that the type of be inserted into earphone in the earhole of the electronic equipment is the second earphone,
First preset range is located between the upper limit value of second preset range and the lower limit value of the third preset range.
8. device according to claim 5, which is characterized in that the detection module includes:
4th determines submodule, is configured to determine whether to receive the identity from the first earphone;
5th determines submodule, is configured as determining the determining identity mark for receiving first earphone of submodule when the described 4th
When knowledge, determine that the type of be inserted into earphone in the earhole of the electronic equipment is the first earphone;
6th determines submodule, is configured as determining the determining identity for not receiving first earphone of submodule when the described 4th
When mark, determine that the type of be inserted into earphone in the electronic equipment earphone is the second earphone.
9. a kind of electronic equipment, which is characterized in that the electronic apparatus includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Detect the type of be inserted into earphone in the earhole of electronic equipment;
When the type of the earphone is the first earphone, the earphone interface of the electronic equipment is switched to institute by control switching switch
State the corresponding first interface of the first earphone;
When the type of the earphone is the second earphone, controls the switching switch and switch the earphone interface of the electronic equipment
It is disconnected to the corresponding second interface of second earphone, and by the power interface on the earphone interface;
First earphone is HIFI earphone, and second earphone is common headphones.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510974914.2A CN105554631B (en) | 2015-12-22 | 2015-12-22 | Audio switching method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510974914.2A CN105554631B (en) | 2015-12-22 | 2015-12-22 | Audio switching method, device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105554631A CN105554631A (en) | 2016-05-04 |
CN105554631B true CN105554631B (en) | 2019-06-28 |
Family
ID=55833525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510974914.2A Active CN105554631B (en) | 2015-12-22 | 2015-12-22 | Audio switching method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105554631B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108174316A (en) * | 2016-12-07 | 2018-06-15 | 中兴通讯股份有限公司 | A kind of ear speaker device control method and device |
JP7047833B2 (en) * | 2017-03-13 | 2022-04-05 | ソニーグループ株式会社 | Terminal device, control method and audio data playback system |
CN108064013A (en) * | 2018-02-23 | 2018-05-22 | 西安闻泰电子科技有限公司 | Earphone detection circuit, earphone detecting method and electronic equipment |
TWI702854B (en) * | 2018-08-27 | 2020-08-21 | 威盛電子股份有限公司 | Audio playing apparatus and audio transmission circuit |
CN112468923B (en) * | 2020-11-30 | 2023-03-28 | 维沃移动通信有限公司 | Audio processing circuit, method and device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143262A (en) * | 2010-02-03 | 2011-08-03 | 深圳富泰宏精密工业有限公司 | Electronic device and method for switching audio input channel thereof |
CN202425016U (en) * | 2012-01-11 | 2012-09-05 | 广东欧珀移动通信有限公司 | Circuit for identifying earphone type intelligently |
CN103793193A (en) * | 2012-10-30 | 2014-05-14 | 联想(北京)有限公司 | Mode switching method for audio interface, audio interface and electronic equipment |
CN103902247A (en) * | 2012-12-25 | 2014-07-02 | 联想(北京)有限公司 | Method for converting interface mode and electronic devices |
WO2014130322A2 (en) * | 2013-02-20 | 2014-08-28 | Qualcomm Incorporated | System and method of detecting a plug-in type based on impedance comparison |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105228044A (en) * | 2015-09-28 | 2016-01-06 | 惠州Tcl移动通信有限公司 | A kind of harmless tonequality earphone |
-
2015
- 2015-12-22 CN CN201510974914.2A patent/CN105554631B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143262A (en) * | 2010-02-03 | 2011-08-03 | 深圳富泰宏精密工业有限公司 | Electronic device and method for switching audio input channel thereof |
CN202425016U (en) * | 2012-01-11 | 2012-09-05 | 广东欧珀移动通信有限公司 | Circuit for identifying earphone type intelligently |
CN103793193A (en) * | 2012-10-30 | 2014-05-14 | 联想(北京)有限公司 | Mode switching method for audio interface, audio interface and electronic equipment |
CN103902247A (en) * | 2012-12-25 | 2014-07-02 | 联想(北京)有限公司 | Method for converting interface mode and electronic devices |
WO2014130322A2 (en) * | 2013-02-20 | 2014-08-28 | Qualcomm Incorporated | System and method of detecting a plug-in type based on impedance comparison |
Also Published As
Publication number | Publication date |
---|---|
CN105554631A (en) | 2016-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105554631B (en) | Audio switching method, device and electronic equipment | |
EP2363784A2 (en) | Personal listening device having input applied to the housing to provide a desired function and method | |
CN105262452A (en) | Method and apparatus for adjusting volume, and terminal | |
CN104902059A (en) | Call reminding method and device | |
CN104683568A (en) | Information reminding method and information reminding device | |
CN105703185A (en) | Signal transmission method, signal transmission device and adapter connecting head | |
CN104378715B (en) | The device and method for reducing earphone POP sounds | |
CN106941635B (en) | Speaker connection method and device | |
CN104935729B (en) | Audio-frequency inputting method and device | |
CN105138319A (en) | Event reminding method and apparatus | |
CN104767860A (en) | Incoming call prompt method and device and terminal | |
CN104618783A (en) | Remote control method and device | |
CN105426218A (en) | Method and device for controlling audio playing | |
CN103986999A (en) | Method, device and terminal equipment for detecting earphone impedance | |
CN105391477A (en) | A communication method and device between bluetooth devices | |
CN104394137A (en) | Voice call reminding method and device | |
CN104506703A (en) | Voice message leaving method, voice message leaving device, voice message playing method and voice message playing device | |
CN104503762A (en) | Device and method for identifying electronic accessory | |
CN104794074B (en) | External equipment recognition methods and device | |
CN106358125A (en) | Method and device for audio output | |
CN104281431B (en) | The method and device that audio plays | |
CN105630354A (en) | Application control method and device | |
CN105185396A (en) | Method and device for playing audio signal | |
CN107124512B (en) | The switching method and apparatus of audio-frequency play mode | |
CN109586125A (en) | Type-C adapter, terminal and electronic equipment |
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 |