CN105912299A - Method and device for controlling earphone mode switching, and electronic equipment - Google Patents

Method and device for controlling earphone mode switching, and electronic equipment Download PDF

Info

Publication number
CN105912299A
CN105912299A CN201610282561.4A CN201610282561A CN105912299A CN 105912299 A CN105912299 A CN 105912299A CN 201610282561 A CN201610282561 A CN 201610282561A CN 105912299 A CN105912299 A CN 105912299A
Authority
CN
China
Prior art keywords
electronic equipment
earphone
pattern
switching
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610282561.4A
Other languages
Chinese (zh)
Inventor
李云志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610282561.4A priority Critical patent/CN105912299A/en
Publication of CN105912299A publication Critical patent/CN105912299A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • 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/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/15Transducers incorporated in visual displaying devices, e.g. televisions, computer displays, laptops

Abstract

The invention discloses a method for controlling earphone mode switching. The method is characterized by comprising the following steps: according to a current application, judging whether electronic equipment carries out switching to a digital mode from an analog mode or not, and controlling the reset of an earphone connected with the electronic equipment through a Type-C interface if the electronic equipment carries out switching to the digital mode from the analog mode; controlling an audio channel to be switched to a digital channel from an analog channel; and setting a Vconn pin in the Type-C interface of the electronic equipment to be under a low level so as to cause the earphone to be switched to the digital mode. According to different applications, different modes are switched to realize a purpose that the earphone is controlled to be switched to the analog mode from the digital mode, and the sound of the earphone can be always in a best state.

Description

Control method, device and the electronic equipment of headset mode switching
Technical field
The present invention relates to audio area, more particularly, to a kind of control headset mode switching method, Device and electronic equipment.
Background technology
At present the earphone of Type-C interface includes figure pattern and simulation model: figure pattern audio is good, Noise jamming is little, is suitable for playing the application of music;Simulation model voice output postpones little, is suitable for call Application.But, the earphone of current Type-C interface only supports figure pattern or simulation model one of which, Pattern switching cannot be carried out according to application.
The method that earphone is switched to figure pattern by simulation model is controlled accordingly, it is desirable to provide a kind of.
The basic structure of Type-C interface will be first explained below.
The maximum feature of Type-C interface is to support from tow sides the most insertable " positive anti-plug " merit Can, its A face and B face respectively have 12 stitch, and the layout of each stitch is as shown in table 1:
Table 1:
Wherein, TX1+, TX1-, RX1+, RX1-, TX2+, TX2-, RX2+, RX2-are four to difference Sub-signal stitch, GND is ground pin, and D+, D-are the USB differential signal for compatible USB2.0 Stitch, VBUS is power supply stitch, and CC1, CC2 are for being used for detecting positive anti-plug, distinguishing principal and subordinate, configuration The stitch of voltage of VBUS etc., SBU1, SBU2 are bus stitch.
When having chip in the cable of Type-C interface when, a CC transmits signal, another CC Become power supply Vconn, be used for as the chip power supply in cable.
Summary of the invention
It is an object of the present invention to provide a kind of earphone that controls and switched to figure pattern by simulation model New solution.
According to the first aspect of the invention, it is provided that a kind of control headset mode switching method, including:
Judge whether electronic equipment is carried out by the switching of simulation model to figure pattern according to current application, In this way, then:
Control to set up, by Type-C interface, the earphone being connected with electronic equipment to reset;
Control voice-frequency channel and switch to digital channel from analog channel;
Arranging Vconn stitch in the Type-C interface of described electronic equipment is low level, so that described Earphone switches to figure pattern.
Optionally, the side resetted with electronic equipment is controlled by the earphone that the foundation of Type-C interface is connected Method is particularly as follows: the VBUS stitch power-off controlling Type-C interface carries out earphone reset.
Optionally, described control voice-frequency channel switches to digital channel from analog channel, specifically by Control single pole double throw analog switch to realize.
Optionally, described according to current application judge electronic equipment whether carry out by simulation model to numeral If the switching of pattern is particularly as follows: current application is switched to music application by talk application, the most described electricity Subset is carried out by the switching of simulation model to figure pattern..
According to the second aspect of the invention, it is provided that a kind of control headset mode switching device, including:
According to current application, judge module, for judging whether electronic equipment is carried out by simulation model to number The switching of word pattern;
Reset control module, for controlling the ear being connected with electronic equipment by the foundation of Type-C interface Machine resets;
Path control module, is used for controlling voice-frequency channel and switches to digital channel from analog channel;
Level arranges module, Vconn stitch in the Type-C interface arranging described electronic equipment For low level, so that described earphone switches to figure pattern.
Optionally, described reset control module specifically for: control the VBUS of described Type-C interface Stitch power-off carries out earphone reset.
Optionally, path control module includes that single pole double throw analog switchs.
Optionally, described judge module specifically for: if current application is switched to sound by talk application Happy application, the most described electronic equipment is carried out by the switching of simulation model to figure pattern.
According to the third aspect of the invention we, it is provided that a kind of electronic equipment, including right above-mentioned control ear The device of machine pattern switching.
According to the fourth aspect of the invention, it is provided that a kind of electronic equipment, including memorizer and processor, Described memorizer is used for storing instruction, and described instruction is used for controlling described processor and performs above-mentioned control ear The method of machine pattern switching.
It was found by the inventors of the present invention that in the prior art, headset mode cannot carry out mould according to scene The problem of formula switching.Embodiments of the invention switch different mode according to different application, it is achieved control ear Machine, by the switching of figure pattern to simulation model, can make headphones sound be in best state all the time. Therefore, the present invention is to be realized technical assignment or to be solved technical problem is that art technology That personnel never expect or it is not expected that, therefore the present invention is a kind of new technical scheme.
By detailed description to the exemplary embodiment of the present invention referring to the drawings, its of the present invention Its feature and advantage thereof will be made apparent from.
Accompanying drawing explanation
Combined in the description and the accompanying drawing of the part that constitutes description shows the reality of the present invention Execute example, and together with its explanation for explaining the principle of the present invention.
Fig. 1 is to control, according to the present invention, the one that earphone is switched to the method for simulation model by figure pattern The flow chart of embodiment;
Fig. 2 is the flow chart of a kind of embodiment according to earphone repositioning method of the present invention;
Fig. 3 is to control, according to the present invention, the one that earphone is switched to the method for figure pattern by simulation model The flow chart of embodiment;
Fig. 4 is the stream of a kind of embodiment of the headset mode changing method according to earphone of the present invention realization Cheng Tu;
Fig. 5 is a kind of square frame principle implementing structure controlling headset mode switching device according to the present invention Figure;
Fig. 6 is a kind of frame principle figure implementing structure according to electronic equipment of the present invention.
Detailed description of the invention
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should also be noted that Unless specifically stated otherwise, the parts that illustrate the most in these embodiments and step positioned opposite, Numerical expression and numerical value do not limit the scope of the invention.
Description only actually at least one exemplary embodiment is illustrative below, never makees For to the present invention and application thereof or any restriction of use.
May not beg in detail for technology, method and apparatus known to person of ordinary skill in the relevant Opinion, but in the appropriate case, described technology, method and apparatus should be considered a part for description.
Shown here with in all examples discussed, any occurrence should be construed as merely example Property rather than as limit.Therefore, other example of exemplary embodiment can have different Value.
It should also be noted that similar label and letter represent similar terms, therefore, one in following accompanying drawing A certain Xiang Yi the accompanying drawing of denier is defined, then need not it is carried out further in accompanying drawing subsequently Discuss.
The present invention is to solve that electronic equipment cannot be according to for switching audio frequency present in prior art The problem of pattern, it is provided that the new technical scheme of switching of a kind of digital audio pattern to simulation model.
Fig. 1 is to control, according to the present invention, the one that earphone is switched to the method for simulation model by figure pattern The flow chart of embodiment.
According to Fig. 1, comprise the steps:
According to current application, step S101, judges whether electronic equipment is carried out by figure pattern to simulating mould The switching of formula, in this way, then performs step S102;As no, then perform step S101, proceed inspection Survey.
If specifically, current application is switched to music application by talk application, then electronic equipment is carried out Switching by simulation model to figure pattern.When current application is music application, if earphone is in number Word pattern, it is possible to such that play sound effect is good, noise jamming is little;When current application is talk application, as Really earphone is in simulation model, it is possible to voice output is postponed little.Therefore, current application is by music When application switches to talk application, in order to make headphones sound be in optimum state all the time, electronic equipment will Controlling earphone and carry out by the switching of figure pattern to simulation model, meanwhile, electronic equipment end also needs to carry out Corresponding switching.
Step S102, controls earphone and resets, and in headset mode handoff procedure, needs first that earphone is multiple Position processes, and concrete grammar can be that the VBUS stitch power-off controlling Type-C interface carries out earphone reset, Can also be by performing the reset instruction power-off that electronic equipment sends.Wherein, during power-off restoration, Due to power-off is the VBUS stitch powered for earphone, it would be possible to there will be Property of Blasting Noise.
Further, Fig. 2 is the flow chart of a kind of embodiment according to earphone repositioning method of the present invention.
According to Fig. 2, comprise the following steps:
Step S201, whether detection electronic equipment is connected by USB interface foundation with earphone, in this way, Then perform step S202,;As no, then perform step S201, i.e. proceed detection.
Wherein, USB interface can be that mini-USB interface, micro-USB interface and Type-C connect Any one in Kou, in a specific embodiment of the present invention, electronic equipment and earphone pass through Type-C Interface is set up and is connected, in order to carry out follow-up mode handover operation by Type-C interface.
Step S202, detects whether to require the event generation that earphone resets, in this way, then performs step S203;As no, then perform step S202.
Wherein, it is desirable to the event that earphone resets can be that headset mode is switched to simulate mould by figure pattern The event requiring earphone to reset during formula, can be the earphone reseting event of user's selection, it is also possible to be it The event that the earphone of his applications trigger resets.
Step S203, electronic equipment one end sends reset instruction to earphone one end.Specifically, electronics sets Standby earphone driver sends reset instruction to earphone controller.
Step S204, earphone one end, according to this reset instruction, controls digital signal processing unit in earphone Power-off.
Further, earphone one end, always according to this reset instruction, controls the usb protocol unit in earphone Power-off.
When being in digital simulation due to earphone, transmission is analogue signal rather than digital signal, is not required to Digital signal processing unit is wanted to process digital signal, simultaneously as usb protocol is also at transmission letter Number for need during digital signal, therefore, switched to simulation model at earphone by figure pattern and carry out multiple During position, only need to be by signal processing unit and usb protocol power-off.
So, in earphone reseting procedure, Digital Logic that what earphone was disconnected is rather than audio frequency and controller, Therefore will not produce noise of blasting in reseting procedure, be effectively improved Consumer's Experience.
Step S103, controls voice-frequency channel and switches to analog channel from digital channel.
In one particular embodiment of the present invention, by single pole double throw analog on-off control voice-frequency channel Switching.During carrying out digital-to-analogue switching, voice-frequency channel need to be controlled and switch to simulation from digital channel Path, so that electronic equipment output simulated audio signal is to earphone.So, be capable of audio frequency lead to While the switching of road, effectively reduce handover module and take the space of electronic equipment.
Step S104, arranging Vconn stitch is high level, so that earphone switches to simulation model.
Vconn stitch is for the chip power supply on data wire, when earphone is in figure pattern, Vconn stitch need not provide voltage, and need to arrange Vconn stitch is low level;When earphone is in mould During simulation models, Vconn stitch need to provide voltage to the chip power supply on data wire, need to arrange Vconn Stitch is high level.Therefore, when carrying out digital-to-analogue switching, Vconn stitch to be arranged is high level.
So, when electronic equipment end current application is switched to talk application by music application, it becomes possible to Electronic equipment one end is switched to simulation model by figure pattern, controls earphone simultaneously and cut by figure pattern Shift to simulation model so that headphones sound is maintained at optimal state.
Fig. 3 is to control, according to the present invention, the one that earphone is switched to the method for figure pattern by simulation model The flow chart of embodiment.
According to Fig. 3, comprise the steps:
According to current application, step S301, judges whether electronic equipment is carried out by simulation model to numeral mould The switching of formula, in this way, then performs step S302;As no, then perform step S301, i.e. proceed Detection.
If specifically, current application is switched to talk application by music application, then electronic equipment is carried out Switching by figure pattern to simulation model.When current application is music application, if earphone is in number Word pattern, it is possible to such that play sound effect is good, noise jamming is little;When current application is talk application, as Really earphone is in simulation model, it is possible to voice output is postponed little.Therefore, current application is by conversing When application switches to music application, in order to make headphones sound be in optimum state all the time, electronic equipment will Controlling earphone and carry out by the switching of simulation model to figure pattern, meanwhile, electronic equipment end also needs to carry out Corresponding switching.
Step S302, controls earphone and resets, and in headset mode handoff procedure, needs first that earphone is multiple Position processes, and the concrete grammar that earphone resets is the VBUS stitch power-off restoration controlling Type-C interface, Make audio frequency and controller power-off restoration.
Owing to USB interface is merely able to transmit digital signal, therefore, cut by simulation model controlling earphone When shifting to figure pattern, it is impossible to enough carry out earphone reset by the method shown in above-mentioned Fig. 2.
Step S303, controls voice-frequency channel and switches to digital channel from analog channel.
In one particular embodiment of the present invention, by single pole double throw analog on-off control voice-frequency channel Switching.During carrying out modulus switching, voice-frequency channel need to be controlled and switch to numeral from analog channel Path, so that electronic equipment output digital audio and video signals is to earphone.In such manner, it is possible to effectively reduce switching Module takies the space of electronic equipment.
Step S304, arranging Vconn stitch is low level.
Vconn stitch is for the chip power supply on data wire, when earphone is in figure pattern, Vconn stitch need not provide voltage, and need to arrange Vconn stitch is low level;When earphone is in mould During simulation models, Vconn stitch need to provide number of voltages according to the chip power supply on line, need to arrange Vconn Stitch is high level.Therefore, when carrying out modulus switching, Vconn stitch to be arranged is low level.
So, when electronic equipment end current application is switched to music application by talk application, it becomes possible to Electronic equipment one end is switched to figure pattern by simulation model, controls earphone simultaneously and cut by simulation model Shift to figure pattern so that headphones sound is maintained at optimal state.
In one particular embodiment of the present invention, it is provided that the headset mode switching that a kind of earphone realizes Method, specifically can comprise the following steps as shown in Figure 4:
Step S401, whether detection electronic equipment is connected by the foundation of Type-C interface with earphone, as It is then to perform step S401;As no, the most do not perform any operation.
Step S402, according to current application, electronic equipment one end judges whether electronic equipment carries out numeral mould Switching between formula and simulation model, in this way, then performs step S403;As no, then continue executing with step Rapid S402.
When current application is music application, if earphone is in figure pattern, it is possible to make play sound effect Well, noise jamming is little;When current application is talk application, if earphone is in simulation model, it is possible to Voice output is postponed little.Therefore, if current application is switched to music application by talk application, In order to make headphones sound be in optimum state all the time, control earphone is carried out by simulation model by electronic equipment To figure pattern;If current application is switched to call mode by music pattern, in order to make headphones sound All the time being in optimum state, electronic equipment carries out cutting by figure pattern to simulation model by controlling earphone Change.
Step S403, electronic equipment one end arranges electronic equipment Vconn stitch level value according to this switching.
If electronic equipment is switched to simulation model by figure pattern, then Vconn stitch is set for high electricity Flat;If electronic equipment is switched to figure pattern by simulation model, then arranging Vconn stitch is low electricity Flat.
Wherein, the concrete grammar arranging level value includes: electronic equipment sends instructions under passing through and controls GPIO The level value of Vconn stitch is set.
Step S404, electronic equipment one end Vconn stitch level value is supplied to coupled earphone Vconn stitch.Electronic equipment is electrically connected with by Type-C interface with earphone, the Type-C of electronic equipment Signal all can be supplied to the Type-C interface of earphone by all stitch of interface correspondingly.
Step S405, earphone one end test earphone Vconn stitch level value.
Step S406, earphone one end switches headset mode according to Vconn stitch level value.
Particularly as follows: if be detected that Vconn stitch is high level, then earphone is switched to simulation model; If be detected that Vconn stitch is low level, then earphone is switched to figure pattern.So, not only Enable to the switching that earpiece side realizes between figure pattern and simulation model, and simply, conveniently.
So, switched to music application in electronic equipment end current application by talk application, or by sound When happy application switches to talk application, it becomes possible to headset mode will be controlled by electronic equipment and realize by mould Simulation models is to figure pattern, or the switching by figure pattern to simulation model so that earphone is play Sound remains at optimal state.
Fig. 5 is a kind of square frame principle implementing structure controlling headset mode switching device according to the present invention Figure.
According to Fig. 5, headset mode switching device 500 includes judge module 501, resetting controls Module 502, path control module 503 and level arrange module 504.This judge module 501 is for root Judge whether electronic equipment is carried out by the switching of simulation model to figure pattern according to current application;Reset control Molding block 502 carries out under the switch instances by simulation model to figure pattern for electronic equipment, controls Set up, by Type-C interface, the earphone being connected with electronic equipment to reset;Path control module 503 Digital channel is switched to by analog channel for controlling voice-frequency channel;Level arranges module 504 for setting Putting Vconn stitch in the Type-C interface of electronic equipment is low level, so that earphone switches to numeral mould Formula.
Wherein, reset control module 502 is specifically for controlling the VBUS of electronic equipment Type-C interface Stitch power-off carries out earphone reset;Path control module 503 includes that single pole double throw analog switchs;Judge If module 501 is switched to music application specifically for current application by talk application, then electronic equipment Carry out by the switching of simulation model to figure pattern.
Present invention also offers a kind of electronic equipment, on the one hand, this electronic equipment includes aforesaid ear The device 500 of machine pattern switching.This electronic equipment e.g. mobile phone, panel computer, notebook computer Deng.
Fig. 6 is the frame principle figure of the enforcement structure of this electronic equipment according to another aspect of the present invention.
According to Fig. 6, this electronic equipment 600 includes memorizer 601 and processor 602, and this is deposited Reservoir 601 is used for storing instruction, and this instruction is used for controlling processor 602 and carries out operating performing above-mentioned The method of headset mode switching.
This processor can be such as central processor CPU, Micro-processor MCV etc..This memorizer example As include ROM (read only memory), RAM (random access memory), such as hard disk non-volatile Property memorizer etc..
In addition, according to Fig. 6, this electronic equipment 600 also includes interface arrangement 603, defeated Enter device 604, display device 605, communicator 606, speaker 607, mike 608 etc.. Although figure 6 illustrates multiple device, but, electronic equipment of the present invention can only relate to therein Partial devices, such as, processor 601, memorizer 602, interface arrangement 603 etc..
Above-mentioned communicator 606 such as can carry out there is wired or wireless communication.
Above-mentioned interface arrangement 603 such as includes earphone jack, Type-C interface etc., so that interface arrangement The Type-C interface of 603 is connected with earphone foundation by Type-C data wire.
Above-mentioned input equipment 604 such as can include touch screen, button etc..
Above-mentioned display device 605 e.g. LCDs, touch display screen etc..
Electronic equipment of the present invention e.g. mobile phone, panel computer etc..
The various embodiments described above primary focus describes and the difference of other embodiments, but art technology Personnel are it should be understood that, the various embodiments described above can be used alone as required or be combined with each other makes With.
Each embodiment in this specification all uses the mode gone forward one by one to describe, phase between each embodiment Part cross-reference as homophase, each embodiment stress with other embodiments Difference, but it will be clear for those skilled in the art that the various embodiments described above can be as required It is used alone or is combined with each other.It addition, for device embodiment, owing to it is and side Method embodiment is corresponding, so describing fairly simple, relevant part sees the correspondence of embodiment of the method The explanation of part.System embodiment described above is only schematically, wherein as dividing Module from part description can be or may not be physically separate.
The present invention can be device, method and/or computer program.Computer program can To include computer-readable recording medium, containing for making processor realize each side of the present invention The computer-readable program instructions in face.
Computer-readable recording medium can keep and store by instruction execution equipment use The tangible device of instruction.Computer-readable recording medium such as may be-but not limited to-electricity and deposits Storage equipment, magnetic storage apparatus, light storage device, electromagnetism storage device, semiconductor memory apparatus or The combination of above-mentioned any appropriate.The more specifically example of computer-readable recording medium is (non exhaustive List) including: portable computer diskette, hard disk, random access memory (RAM), read-only storage Device (ROM), erasable type programmable read only memory (EPROM or flash memory), static random-access are deposited Reservoir (SRAM), Portable compressed dish read only memory (CD-ROM), digital versatile disc (DVD), Memory stick, floppy disk, mechanical coding equipment, such as storage has punch card or the groove convex of instruction on it Play structure and the combination of above-mentioned any appropriate.Computer-readable recording medium used herein above It is not construed as instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations, logical Cross electromagnetic wave (such as, by the light pulse of fiber optic cables) that waveguide or other transmission mediums propagate, Or by the signal of telecommunication of wire transfer.
Computer-readable program instructions as described herein can be downloaded from computer-readable recording medium To each calculating/processing equipment, or by network, such as the Internet, LAN, wide area network and/ Or wireless network downloads to outer computer or External memory equipment.Network can include copper transmission cable, Fiber-optic transfer, be wirelessly transferred, router, fire wall, switch, gateway computer and/or edge clothes Business device.Adapter or network interface in each calculating/processing equipment receive computer from network Readable program instructions, and forward this computer-readable program instructions, calculate for being stored in each/process In computer-readable recording medium in equipment.
Can be assembly instruction, instruction set architecture for performing the computer program instructions of present invention operation (ISA) instruction, machine instruction, machine-dependent instructions, microcode, firmware instructions, state arrange number According to or the source code write with the combination in any of one or more programming languages or object code, institute State programming language and include OO programming language such as Smalltalk, C++ etc., and conventional Procedural programming languages such as " C " language or similar programming language.Computer-readable program refers to Order can perform the most on the user computer, perform the most on the user computer, as one Individual independent software kit performs, part part the most on the user computer performs the most on the remote computer or Person performs completely on remote computer or server.In the situation relating to remote computer, remotely By the network of any kind, computer can include that LAN (LAN) or wide area network (WAN) connect To subscriber computer, or, it may be connected to outer computer (such as utilizes Internet service to provide Business passes through Internet connection).In certain embodiments, by utilizing computer-readable program instructions Status information come personalized customization electronic circuit, such as Programmable Logic Device, field programmable gate Array (FPGA) or programmable logic array (PLA), this electronic circuit can perform computer-readable Programmed instruction, thus realize various aspects of the invention.
Referring herein to method according to embodiments of the present invention, device (system) and computer program Flow chart and/or block diagram describe various aspects of the invention.Should be appreciated that flow chart and/or frame The combination of each square frame in each square frame of figure and flow chart and/or block diagram, can be by computer-readable Programmed instruction realizes.
These computer-readable program instructions can be supplied to general purpose computer, special-purpose computer or other The processor of programmable data processing means, thus produce a kind of machine so that these instructions are logical When crossing the processor execution of computer or other programmable data processing means, create flowchart And/or the device of the function/action of regulation in the one or more square frames in block diagram.Can also be these Computer-readable program instructions store in a computer-readable storage medium, these instruction make computer, Programmable data processing means and/or other equipment work in a specific way, thus, storage has instruction Computer-readable medium then includes a manufacture, and it includes one in flowchart and/or block diagram Or the instruction of the various aspects of the function/action of regulation in multiple square frame.
Computer-readable program instructions can also be loaded into computer, other programmable data processes dress Put or on miscellaneous equipment so that at computer, other programmable data processing means or miscellaneous equipment Upper execution sequence of operations step, to produce computer implemented process so that computer, The instruction flowchart performed in other programmable data processing means or miscellaneous equipment and/or block diagram In one or more square frames in regulation function/action.
Flow chart and block diagram in accompanying drawing show the system of multiple embodiments according to the present invention, method Architectural framework in the cards, function and operation with computer program.In this, flow process Each square frame in figure or block diagram can represent a module, program segment or a part for instruction, described A part for module, program segment or instruction comprises one or more logic function for realizing regulation Executable instruction.At some as in the realization replaced, the function marked in square frame can also be with not The order being same as being marked in accompanying drawing occurs.Such as, two continuous print square frames can essentially the most also Performing, they can also perform sometimes in the opposite order capablely, and this is depending on involved function. It is also noted that in each square frame in block diagram and/or flow chart and block diagram and/or flow chart The combination of square frame, can come by the special hardware based system of the function or action that perform regulation Realize, or can realize with the combination of specialized hardware with computer instruction.For art technology It is well known that for personnel, realize by hardware mode, realized by software mode and pass through software Realize being all of equal value with the mode of combination of hardware.
Being described above various embodiments of the present invention, described above is exemplary, and exhaustive Property, and it is also not necessarily limited to disclosed each embodiment.At the model without departing from illustrated each embodiment Enclose with spirit in the case of, many modifications and changes for those skilled in the art Will be apparent from.The selection of term used herein, it is intended to explain the former of each embodiment best Reason, actual application or the technological improvement to the technology in market, or make other of the art general Logical technical staff is understood that each embodiment disclosed herein.The scope of the present invention is come by claims Limit.

Claims (10)

1. the method controlling headset mode switching, it is characterised in that including:
Judge whether electronic equipment is carried out by the switching of simulation model to figure pattern according to current application, in this way, then:
Control to set up, by Type-C interface, the earphone being connected with electronic equipment to reset;
Control voice-frequency channel and switch to digital channel from analog channel;
Arranging Vconn stitch in the Type-C interface of described electronic equipment is low level, so that described earphone switches to figure pattern.
Method the most according to claim 1, it is characterised in that control to set up the method for the earphone reset being connected particularly as follows: the VBUS stitch power-off controlling Type-C interface carries out earphone reset with electronic equipment by Type-C interface.
Method the most according to claim 1, it is characterised in that described control voice-frequency channel switches to digital channel from analog channel, realizes specifically by controlling single pole double throw analog switch.
Method the most according to claim 1, it is characterized in that, judging whether electronic equipment carries out the switching by simulation model to figure pattern particularly as follows: if current application is switched to music application by talk application described according to current application, the most described electronic equipment is carried out by the switching of simulation model to figure pattern.
5. the device controlling headset mode switching, it is characterised in that including:
According to current application, judge module, for judging whether electronic equipment is carried out by the switching of simulation model to figure pattern;
Reset control module, is resetted for the earphone controlling to be connected by the foundation of Type-C interface with electronic equipment;
Path control module, is used for controlling voice-frequency channel and switches to digital channel from analog channel;
Level arranges module, and in the Type-C interface arranging described electronic equipment, Vconn stitch is low level, so that described earphone switches to figure pattern.
Method the most according to claim 5, it is characterised in that described reset control module specifically for: the VBUS stitch power-off controlling described Type-C interface carries out earphone reset.
Method the most according to claim 5, it is characterised in that path control module includes that single pole double throw analog switchs.
Method the most according to claim 5, it is characterised in that described judge module specifically for: if current application is switched to music application by talk application, the most described electronic equipment is carried out by the switching of simulation model to figure pattern.
9. an electronic equipment, it is characterised in that include the device described in any one of claim 5 to 8.
10. an electronic equipment, it is characterised in that include that memorizer and processor, described memorizer are used for storing instruction, described instruction performs the method described in described any one of Claims 1-4 for controlling described processor.
CN201610282561.4A 2016-04-29 2016-04-29 Method and device for controlling earphone mode switching, and electronic equipment Pending CN105912299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610282561.4A CN105912299A (en) 2016-04-29 2016-04-29 Method and device for controlling earphone mode switching, and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610282561.4A CN105912299A (en) 2016-04-29 2016-04-29 Method and device for controlling earphone mode switching, and electronic equipment

Publications (1)

Publication Number Publication Date
CN105912299A true CN105912299A (en) 2016-08-31

Family

ID=56753513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610282561.4A Pending CN105912299A (en) 2016-04-29 2016-04-29 Method and device for controlling earphone mode switching, and electronic equipment

Country Status (1)

Country Link
CN (1) CN105912299A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454594A (en) * 2016-10-27 2017-02-22 立讯精密工业股份有限公司 Earphone
CN108401203A (en) * 2017-02-04 2018-08-14 天津三星通信技术研究有限公司 Earphone
CN108897521A (en) * 2018-07-04 2018-11-27 合肥联宝信息技术有限公司 A kind of electronic equipment and control method
CN109218922A (en) * 2018-08-27 2019-01-15 维沃移动通信有限公司 Control method, terminal and the audio signal output device of output audio signal
CN110168511A (en) * 2017-09-29 2019-08-23 华为技术有限公司 A kind of electronic equipment and the method and device for reducing power consumption
CN111050240A (en) * 2018-10-15 2020-04-21 珠海格力电器股份有限公司 Earphone mode switching method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201303356Y (en) * 2008-11-04 2009-09-02 中兴通讯股份有限公司 Device of mobile phone television multi-channel audios
CN101834933A (en) * 2009-03-10 2010-09-15 中兴通讯股份有限公司 Mobile terminal and method for realizing call in use process of mobile telephone TV service
US20140029770A1 (en) * 2012-07-25 2014-01-30 Conexant Systems, Inc. Hybrid analog/digital headset
JP2014187413A (en) * 2013-03-21 2014-10-02 Casio Comput Co Ltd Acoustic device and program
CN204761690U (en) * 2015-07-23 2015-11-11 杭州纳雄科技有限公司 Head circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201303356Y (en) * 2008-11-04 2009-09-02 中兴通讯股份有限公司 Device of mobile phone television multi-channel audios
CN101834933A (en) * 2009-03-10 2010-09-15 中兴通讯股份有限公司 Mobile terminal and method for realizing call in use process of mobile telephone TV service
US20140029770A1 (en) * 2012-07-25 2014-01-30 Conexant Systems, Inc. Hybrid analog/digital headset
JP2014187413A (en) * 2013-03-21 2014-10-02 Casio Comput Co Ltd Acoustic device and program
CN204761690U (en) * 2015-07-23 2015-11-11 杭州纳雄科技有限公司 Head circuit

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454594A (en) * 2016-10-27 2017-02-22 立讯精密工业股份有限公司 Earphone
CN108401203A (en) * 2017-02-04 2018-08-14 天津三星通信技术研究有限公司 Earphone
CN110168511A (en) * 2017-09-29 2019-08-23 华为技术有限公司 A kind of electronic equipment and the method and device for reducing power consumption
CN110168511B (en) * 2017-09-29 2021-02-09 华为技术有限公司 Electronic equipment and method and device for reducing power consumption
US11061464B2 (en) 2017-09-29 2021-07-13 Huawei Technologies Co., Ltd. Electronic device, method for reducing power consumption, and apparatus
CN108897521A (en) * 2018-07-04 2018-11-27 合肥联宝信息技术有限公司 A kind of electronic equipment and control method
CN109218922A (en) * 2018-08-27 2019-01-15 维沃移动通信有限公司 Control method, terminal and the audio signal output device of output audio signal
CN109218922B (en) * 2018-08-27 2021-03-23 维沃移动通信有限公司 Control method for outputting audio signal, terminal and audio signal output device
CN111050240A (en) * 2018-10-15 2020-04-21 珠海格力电器股份有限公司 Earphone mode switching method and device

Similar Documents

Publication Publication Date Title
CN105912299A (en) Method and device for controlling earphone mode switching, and electronic equipment
CN105933810A (en) Earphone mode switching method and apparatus, electronic device, and earphones
CN109068206B (en) Master-slave earphone switching control method and related product
EP4099148A1 (en) Changing companion communication device behavior based on status of wearable device
CN106210949A (en) The mode switching method of a kind of earphone and mode-changeover device
CN106255051A (en) The method of attachment of a kind of bluetooth equipment and equipment
CN102215287B (en) Method and device for switching audio channels of communication module
CN105975420A (en) Charging power adjustment method and apparatus used for electronic device and electronic device
CN106774891A (en) The audio effect generating method of virtual reality scenario, equipment and virtual reality device
CN105872900A (en) Switching device
CN105451299A (en) Method for controlling WiFi connection and electronic equipment thereof
CN105681974A (en) Multiple-sound-source switching method and device and audio equipment
CN105959878A (en) Control method and device of stereo sound system
US20170048605A1 (en) Method, apparatus, and system for supplying power to active noise reduction headset
CN105956458A (en) Interaction control method and device for terminals
CN105259830A (en) Voice box automatic switching method, apparatus and voice box device
CN204244456U (en) Earphone
CN107040871A (en) The connection method of bluetooth equipment and equipment
JP2018512813A (en) Earphone status detection method and terminal
CN105872902A (en) Switching device and switching system
CN106293221B (en) Touch pressure control method and equipment
CN111866831A (en) Connection control method, device, terminal equipment and system
CN105975244A (en) Method and device for controlling mode switching of earphones and electronic equipment
CN106028184A (en) Earphone reset method and device, electronic equipment and earphone
CN203813935U (en) Voice frequency transmission device and assembly block

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160831