CN106231460B - The multiplexing method and device of earphone interface - Google Patents

The multiplexing method and device of earphone interface Download PDF

Info

Publication number
CN106231460B
CN106231460B CN201610629942.5A CN201610629942A CN106231460B CN 106231460 B CN106231460 B CN 106231460B CN 201610629942 A CN201610629942 A CN 201610629942A CN 106231460 B CN106231460 B CN 106231460B
Authority
CN
China
Prior art keywords
earphone
audio
interface
detection signal
insertion detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610629942.5A
Other languages
Chinese (zh)
Other versions
CN106231460A (en
Inventor
吴有肇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201610629942.5A priority Critical patent/CN106231460B/en
Publication of CN106231460A publication Critical patent/CN106231460A/en
Priority to PCT/CN2016/112316 priority patent/WO2018023927A1/en
Application granted granted Critical
Publication of CN106231460B publication Critical patent/CN106231460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Stereophonic Arrangements (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses a kind of multiplexing method of earphone interface, method includes: whether the earphone insertion detection signal detected in audio-frequence player device earphone interface changes;If the earphone insertion detection signal changes, it is determined that the earphone interface has ear speaker device access, and sets mute state for the loudspeaker of the audio-frequence player device;If the earphone insertion detection signal remains unchanged, it is determined that the earphone interface accesses without equipment or have audio frequency adaptor access, and the loudspeaker of the audio-frequence player device is remained and puts state outside.The invention also discloses a kind of multiplexers of earphone interface.The multiplexing method and device of earphone interface disclosed in this invention, the earphone interface for realizing audio-frequence player device can not only access earphone but also can access RCA type analogue audio frequency output interface, RCA type analogue audio frequency output interface can be replaced using earphone interface, reduction production cost is realized, the purpose of product beauty is promoted.

Description

Multiplexing method and device of earphone interface
Technical Field
The invention relates to the technical field of audio playing equipment, in particular to a multiplexing method and a multiplexing device for an earphone interface.
Background
At present, besides a speaker or a sound box, most of sound output of audio playing devices also include an earphone and an external earphone and audio playing device accessed by an RCA (lotus plug) type analog audio output interface. With the extreme requirements of consumers on ultra-thin, good-looking, good-use and the like of the product appearance, the RCA type analog audio output interface adopts a side-out or back-out mode and the like in audio playing equipment such as a television and the like at present, so that the equipment panel space is occupied, the production cost is increased, and the product appearance is influenced. Meanwhile, the frequency of the user using the earphone interface and the RCA type analog audio output interface is not high, and the probability of using both interfaces at the same time is much smaller.
Disclosure of Invention
The invention mainly aims to provide a method and a device for multiplexing an earphone interface, aims to multiplex the earphone interface into an RCA analog audio output interface, and solves the problems that the RCA analog audio output interface in the prior art is high in production cost and affects the product attractiveness.
In order to achieve the above object, the present invention provides a method for multiplexing headphone interfaces, the method comprising:
detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes;
if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state;
and if the earphone insertion detection signal is kept unchanged, determining that no equipment is accessed to the earphone interface or an audio adapter is accessed to the earphone interface, and keeping the loudspeaker of the audio playing equipment in an external playing state.
Preferably, the determining that the headset interface has the headset device access if the headset insertion detection signal changes specifically includes:
and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold value, it is determined that the earphone interface has the earphone equipment access.
Preferably, after determining that the headset interface has the headset device connected thereto, the method further includes:
and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state.
Preferably, the audio adapter comprises two ports, one end of the port is an earphone connector, and the other end of the port is an RCA analog audio output interface.
Preferably, the method further comprises:
if the loudspeaker of the audio playing device is in a mute state, setting the volume gain output by the audio output interface to be controlled by the master volume;
and if the loudspeaker of the audio playing device is in an outward playing state, setting the volume gain output by the audio output interface as a preset gain.
In addition, to achieve the above object, the present invention further provides a multiplexing device for headphone interfaces, the device including:
the detection module is used for detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes;
the first setting module is used for determining that the earphone interface has earphone equipment access if the earphone insertion detection signal changes and setting a loudspeaker of the audio playing equipment to be in a mute state;
and the second setting module is used for determining that no equipment is accessed or an audio adapter is accessed to the earphone interface and keeping the loudspeaker of the audio playing equipment in an external playing state if the earphone insertion detection signal is kept unchanged.
Preferably, the first setting module includes:
the determining module is configured to determine that the headset interface has a headset device access if the headset insertion detection signal changes from a high level to a low level, the low level is restored to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold.
Preferably, the first setting module further includes:
and the third setting module is configured to, after it is determined that the earphone interface has an earphone device access, set a speaker of the audio playing device to an external playing state if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after continuing for a second time period, and the second time period is greater than or equal to the preset time threshold.
Preferably, the audio adapter comprises two ports, one end of the port is an earphone connector, and the other end of the port is an RCA analog audio output interface.
Preferably, the apparatus further comprises:
the fourth setting module is used for setting the volume gain output by the audio output interface to be controlled by the master volume if the loudspeaker of the audio playing device is in a mute state;
and the fifth setting module is used for setting the volume gain output by the audio output interface to be a preset gain if the loudspeaker of the audio playing device is in an outward playing state.
The invention provides a multiplexing method and a device of an earphone interface, comprising the following steps: detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes; if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state; and if the earphone insertion detection signal is kept unchanged, determining that no equipment is accessed to the earphone interface or an audio adapter is accessed to the earphone interface, and keeping the loudspeaker of the audio playing equipment in an external playing state. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
Drawings
Fig. 1 is a schematic flow chart of a multiplexing method of an earphone interface according to a first embodiment of the present invention;
FIG. 2 is a circuit schematic of the headphone interface of the present invention;
fig. 3 is a schematic circuit diagram of the headset connector of the present invention;
FIG. 4 is a schematic diagram of an audio adapter according to the present invention;
fig. 5 is a flow chart of a second embodiment of the multiplexing method of the headphone interface of the present invention;
fig. 6 is a functional block diagram of a first embodiment of the multiplexing device of the headphone interface of the present invention;
fig. 7 is a functional block diagram of a multiplexing device of a headphone interface according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a multiplexing method for an earphone interface according to a first embodiment of the present invention. The multiplexing method of the earphone interface comprises the following steps:
step S10, detecting whether the earphone insertion detection signal in the earphone interface of the audio playing device changes.
Referring to fig. 2, fig. 2 is a circuit schematic diagram of the earphone interface of the present invention. Wherein, earphone interface includes 5 pins, and these 5 pins correspond 5 function signal respectively, specifically are: the "1" pin corresponds to the earphone insertion detection signal "HP _ DET", "2" pin corresponds to the right channel signal "AUDIO _ R", "3" pin corresponds to the ground signal "GND", "4" and "5" pin corresponds to the left channel signal "AUDIO _ L". In addition, the earphone interface further includes two built-in resistors R1, R2 and a built-in capacitor C1, and a power terminal "VDD" and a ground terminal "GND".
In this embodiment, when the earphone interface is not accessed by a device, the earphone insertion detection signal "HP _ DET" is kept at a high level, and after the device is inserted, the earphone insertion detection signal may be changed or kept unchanged according to the type of the access device.
Step S20, if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a speaker of the audio playing device to a mute state.
In this embodiment, if the earphone interface has a three-section type earphone connector access, the earphone insertion detection signal changes from a high level to a low level, and at this time, it is determined that the earphone interface has an earphone device access, and a speaker of the audio playing device is set to a mute state.
If the earphone interface has four-section type earphone connector access, the earphone insertion detection signal is still high level. When the answering key of the four-section type earphone is pressed, the earphone insertion detection signal changes, if the earphone insertion detection signal is detected to change, the earphone interface can be determined to have earphone equipment connected, and a loudspeaker of the audio playing equipment is set to be in a mute state.
And when the loudspeaker of the audio playing device is set to be in a mute state, if the audio playing device has an audio signal, the audio signal is output to an earphone for playing.
Further, in order to better understand the multiplexing method of the earphone interface provided in this embodiment, referring to fig. 3, fig. 3 is a schematic structural diagram of the earphone connector of the present invention. Wherein, the pin of three-section earphone connector '1 & 3' corresponds to the grounding signal 'END ground', '2' pin corresponds to the right channel signal 'R sound channel' and '4 & 5' pin corresponds to the left channel signal 'L sound channel'.
After the three-section type earphone connector shown in fig. 3 is connected to the earphone interface shown in fig. 2, the pin "1 & 3" of the earphone connector is correspondingly connected with the pin "3" of the earphone interface, the pin "2" of the earphone connector is correspondingly connected with the pin "2" of the earphone interface, and the pin "4 & 5" of the earphone connector is correspondingly connected with the pin "4" and the pin "5" of the earphone interface.
Since the "1" pin and the "3" pin of the three-segment type earphone connector are connected together, the "1" pin in the earphone interface shown in fig. 2 changes from high level to low level after the three-segment type earphone connector is connected, that is, the "1" pin is grounded, so that the earphone insertion detection signal "HP _ DET" changes from high level to low level.
Further, a pin "1" of the four-segment type earphone connector shown in fig. 3 is connected to a pin "3" through an "answer key", the pin "3" corresponds to the ground signal "END", the pin "2" corresponds to the right channel signal "AUDIO _ R", and the pins "4 & 5" correspond to the left channel signal "AUDIO _ L". In addition, the "1" pin also corresponds to the "MIC" signal to which the headset is connected.
After the four-section type earphone connector shown in fig. 3 is connected to the earphone interface shown in fig. 2, the pin "1 & 3" of the earphone connector is correspondingly connected with the pin "3" of the earphone interface, the pin "2" of the earphone connector is correspondingly connected with the pin "2" of the earphone interface, and the pin "4 & 5" of the earphone connector is correspondingly connected with the pin "4" and the pin "5" of the earphone interface.
Since the pins "1" and "3" of the four-segment type earphone connector are connected together by the "answer key", when the "answer key" is not pressed, the pins "1" and "3" are disconnected, and the earphone insertion detection signal "HP _ DET" corresponding to the pin "1" shown in fig. 2 remains at a high level. When the "answer key" is pressed, the "1" pin and the "3" pin are connected, so the "1" pin in the earphone interface shown in fig. 2 changes from high level to low level before the earphone connector is connected, i.e., the "1" pin is grounded, and the earphone insertion detection signal "HP _ DET" changes from high level to low level.
Step S30, if the earphone insertion detection signal remains unchanged, determining that the earphone interface has no device access or has an audio adapter access, and keeping the speaker of the audio playing device in a play-out state.
In this embodiment, if the earphone insertion detection signal remains unchanged, it is determined that the earphone interface has no device access or an audio adapter access, and at this time, the speaker of the audio playing device remains in an external playing state. For example, when no device is connected to the earphone interface of the audio playing device, the audio signal of the audio playing device may be externally played through a speaker provided by the audio playing device, after the audio adapter is connected to the earphone interface, the earphone insertion detection signal may remain unchanged, the speaker of the audio playing device may still be in an externally played state, and the audio signal of the audio playing device may be simultaneously output to an external speaker device through the audio adapter.
Further, in order to better understand the multiplexing method of the earphone interface provided in this embodiment, referring to fig. 4, fig. 4 is a schematic structural diagram of the audio adapter of the present invention. The audio adapter comprises two ports, one end of the audio adapter is a four-section type standard earphone plug, and the other end of the audio adapter is a standard RCA seat sub-interface, namely an RCA type analog audio output interface. The four-section type standard earphone plug is the four-section type earphone plug shown in fig. 3, a pin "1" is an idle pin, a pin "3" corresponds to the ground signal "END", a pin "2" corresponds to the right channel signal "AUDIO _ R", and a pin "4" corresponds to the left channel signal "AUDIO _ L". The standard RCA seat sub-interface comprises two ports, wherein one port is connected with a right channel signal 'AUDIO _ R' corresponding to a pin '2' of the earphone connector, and the other port is connected with a left channel signal 'AUDIO _ L' corresponding to a pin '4' of the earphone connector.
The embodiment detects whether the earphone insertion detection signal in the earphone interface of the audio playing device changes; if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state; and if the earphone insertion detection signal is kept unchanged, determining that no equipment is accessed to the earphone interface or an audio adapter is accessed to the earphone interface, and keeping the loudspeaker of the audio playing equipment in an external playing state. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
Referring to fig. 5, fig. 5 is a flowchart illustrating a multiplexing method for an earphone interface according to a second embodiment of the present invention. The method comprises the following steps:
step S10, detecting whether the earphone insertion detection signal in the earphone interface of the audio playing device changes.
Step S20, if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a speaker of the audio playing device to a mute state.
In this embodiment, if the four-segment type earphone connector is connected to the earphone interface, the earphone insertion detection signal is still at a high level. When an answer key of a four-section type earphone is pressed, the earphone insertion detection signal changes, if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold value, the equipment accessed by the earphone interface is determined to be the earphone. For example: and setting the time threshold to be 3 seconds, and if the earphone insertion detection signal is changed from high level to low level and the duration time of the low level is less than 3 seconds and then is restored to the high level, determining that the earphone interface has earphone equipment access.
Step S40, if the earphone insertion detection signal changes from high level to low level, the low level returns to high level after continuing for a second time period, and the second time period is greater than or equal to the preset time threshold, the speaker of the audio playing device is set to be in an external playing state.
After the earphone interface is determined to have the earphone device connected, if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state. For example, after the user accesses the earphone, the audio playing device is in a mute state, and when the user needs to pull out the earphone, the user needs to set the audio playing device to the play-out state, and only needs to press the answer key of the earphone for more than 3 seconds, the audio player cancels the mute state and sets the audio playing device to the play-out state.
Further, if the loudspeaker of the audio playing device is in a mute state, setting the volume gain output by the audio output interface to be controlled by the master volume; and if the loudspeaker of the audio playing device is in an outward playing state, setting the volume gain output by the audio output interface as a preset gain.
The embodiment detects whether the earphone insertion detection signal in the earphone interface of the audio playing device changes; if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state; and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
Referring to fig. 6, fig. 6 is a functional block diagram of a multiplexing device of an earphone interface according to a first embodiment of the present invention. The multiplexing apparatus 300 of the headphone interface includes: a detection module 310, a first setup module 320, and a second setup module 330. Wherein:
the detecting module 310 is configured to detect whether a headphone insertion detection signal in a headphone interface of the audio playing device changes.
Referring to fig. 2, fig. 2 is a circuit schematic diagram of the earphone interface of the present invention. Wherein, earphone interface includes 5 pins, and these 5 pins correspond 5 function signal respectively, specifically are: the "1" pin corresponds to the earphone insertion detection signal "HP _ DET", "2" pin corresponds to the right channel signal "AUDIO _ R", "3" pin corresponds to the ground signal "GND", "4" and "5" pin corresponds to the left channel signal "AUDIO _ L". In addition, the earphone interface further includes two built-in resistors R1, R2 and a built-in capacitor C1, and a power terminal "VDD" and a ground terminal "GND".
In this embodiment, when the earphone interface is not accessed by a device, the earphone insertion detection signal "HP _ DET" is kept at a high level, and after the device is inserted, the earphone insertion detection signal may be changed or kept unchanged according to the type of the access device.
The first setting module 320 is configured to determine that an earphone device is connected to the earphone interface and set a speaker of the audio playing device to a mute state if the earphone insertion detection signal changes.
In this embodiment, if the earphone interface has a three-section type earphone connector access, the earphone insertion detection signal changes from a high level to a low level, and at this time, it is determined that the earphone interface has an earphone device access, and a speaker of the audio playing device is set to a mute state.
If the earphone interface has four-section type earphone connector access, the earphone insertion detection signal is still high level. When the answering key of the four-section type earphone is pressed, the earphone insertion detection signal changes, if the earphone insertion detection signal is detected to change, the earphone interface can be determined to have earphone equipment connected, and a loudspeaker of the audio playing equipment is set to be in a mute state.
And when the loudspeaker of the audio playing device is set to be in a mute state, if the audio playing device has an audio signal, the audio signal is output to an earphone for playing.
Further, in order to better understand the multiplexing device of the earphone interface provided in this embodiment, referring to fig. 3, fig. 3 is a schematic structural diagram of the earphone connector of the present invention. Wherein, the pin of three-section earphone connector '1 & 3' corresponds to the grounding signal 'END ground', '2' pin corresponds to the right channel signal 'R sound channel' and '4 & 5' pin corresponds to the left channel signal 'L sound channel'.
After the three-section type earphone connector shown in fig. 3 is connected to the earphone interface shown in fig. 2, the pin "1 & 3" of the earphone connector is correspondingly connected with the pin "3" of the earphone interface, the pin "2" of the earphone connector is correspondingly connected with the pin "2" of the earphone interface, and the pin "4 & 5" of the earphone connector is correspondingly connected with the pin "4" and the pin "5" of the earphone interface.
Since the "1" pin and the "3" pin of the three-segment type earphone connector are connected together, the "1" pin in the earphone interface shown in fig. 2 changes from high level to low level after the three-segment type earphone connector is connected, that is, the "1" pin is grounded, so that the earphone insertion detection signal "HP _ DET" changes from high level to low level.
Further, a pin "1" of the four-segment type earphone connector shown in fig. 3 is connected to a pin "3" through an "answer key", the pin "3" corresponds to the ground signal "END", the pin "2" corresponds to the right channel signal "AUDIO _ R", and the pins "4 & 5" correspond to the left channel signal "AUDIO _ L". In addition, the "1" pin also corresponds to the "MIC" signal to which the headset is connected.
After the four-section type earphone connector shown in fig. 3 is connected to the earphone interface shown in fig. 2, the pin "1 & 3" of the earphone connector is correspondingly connected with the pin "3" of the earphone interface, the pin "2" of the earphone connector is correspondingly connected with the pin "2" of the earphone interface, and the pin "4 & 5" of the earphone connector is correspondingly connected with the pin "4" and the pin "5" of the earphone interface.
Since the pins "1" and "3" of the four-segment type earphone connector are connected together by the "answer key", when the "answer key" is not pressed, the pins "1" and "3" are disconnected, and the earphone insertion detection signal "HP _ DET" corresponding to the pin "1" shown in fig. 2 remains at a high level. When the "answer key" is pressed, the "1" pin and the "3" pin are connected, so the "1" pin in the earphone interface shown in fig. 2 changes from high level to low level before the earphone connector is connected, i.e., the "1" pin is grounded, and the earphone insertion detection signal "HP _ DET" changes from high level to low level.
A second setting module 330, configured to determine that the earphone interface has no device access or an audio adapter access if the earphone insertion detection signal remains unchanged, and keep a speaker of the audio playing device in an external playing state.
In this embodiment, if the earphone insertion detection signal remains unchanged, it is determined that the earphone interface has no device access or an audio adapter access, and at this time, the speaker of the audio playing device remains in an external playing state. For example, when no device is connected to the earphone interface of the audio playing device, the audio signal of the audio playing device may be externally played through a speaker provided by the audio playing device, after the audio adapter is connected to the earphone interface, the earphone insertion detection signal may remain unchanged, the speaker of the audio playing device may still be in an externally played state, and the audio signal of the audio playing device may be simultaneously output to an external speaker device through the audio adapter.
Further, in order to better understand the multiplexing device of the earphone interface provided in this embodiment, referring to fig. 4, fig. 4 is a schematic structural diagram of the audio adapter of the present invention. The audio adapter comprises two ports, one end of the audio adapter is a four-section type standard earphone plug, and the other end of the audio adapter is a standard RCA seat sub-interface, namely an RCA type analog audio output interface. The four-section type standard earphone plug is the four-section type earphone plug shown in fig. 3, a pin "1" is an idle pin, a pin "3" corresponds to the ground signal "END", a pin "2" corresponds to the right channel signal "AUDIO _ R", and a pin "4" corresponds to the left channel signal "AUDIO _ L". The standard RCA seat sub-interface comprises two ports, wherein one port is connected with a right channel signal 'AUDIO _ R' corresponding to a pin '2' of the earphone connector, and the other port is connected with a left channel signal 'AUDIO _ L' corresponding to a pin '4' of the earphone connector.
The multiplexing apparatus 300 of the earphone interface according to the above embodiment includes: the detecting module 310 is configured to detect whether a headphone insertion detection signal in a headphone interface of the audio playing device changes. The first setting module 320 is configured to determine that an earphone device is connected to the earphone interface and set a speaker of the audio playing device to a mute state if the earphone insertion detection signal changes. A second setting module 330, configured to determine that the earphone interface has no device access or an audio adapter access if the earphone insertion detection signal remains unchanged, and keep a speaker of the audio playing device in an external playing state. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
Referring to fig. 7, fig. 7 is a functional block diagram of a multiplexing device of an earphone interface according to a second embodiment of the present invention. The multiplexing apparatus 300 of the headphone interface includes: a detection module 310, a first setup module 320, and a third setup module 340. Wherein,
the detecting module 310 is configured to detect whether a headphone insertion detection signal in a headphone interface of the audio playing device changes.
The first setting module 320 is configured to determine that an earphone device is connected to the earphone interface and set a speaker of the audio playing device to a mute state if the earphone insertion detection signal changes.
In this embodiment, if the four-segment type earphone connector is connected to the earphone interface, the earphone insertion detection signal is still at a high level. When an answer key of a four-section type earphone is pressed, the earphone insertion detection signal changes, if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold value, the equipment accessed by the earphone interface is determined to be the earphone. For example: and setting the time threshold to be 3 seconds, and if the earphone insertion detection signal is changed from high level to low level and the duration time of the low level is less than 3 seconds and then is restored to the high level, determining that the earphone interface has earphone equipment access.
A third setting module 340, configured to set a speaker of the audio playing device to an external playing state if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold.
After the earphone interface is determined to have the earphone device connected, if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state. For example, after the user accesses the earphone, the audio playing device is in a mute state, and when the user needs to pull out the earphone, the user needs to set the audio playing device to the play-out state, and only needs to press the answer key of the earphone for more than 3 seconds, the audio player cancels the mute state and sets the audio playing device to the play-out state.
Further, if the loudspeaker of the audio playing device is in a mute state, setting the volume gain output by the audio output interface to be controlled by the master volume; and if the loudspeaker of the audio playing device is in an outward playing state, setting the volume gain output by the audio output interface as a preset gain.
The multiplexing apparatus 300 of the earphone interface according to the above embodiment includes: the detecting module 310 is configured to detect whether a headphone insertion detection signal in a headphone interface of the audio playing device changes. The first setting module 320 is configured to determine that an earphone device is connected to the earphone interface and set a speaker of the audio playing device to a mute state if the earphone insertion detection signal changes. A third setting module 340, configured to set a speaker of the audio playing device to an external playing state if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold. The earphone interface of the audio playing device can be connected with the earphone and the RCA analog audio output interface, namely the earphone interface of the audio playing device can replace the RCA analog audio output interface, so that the aims of reducing the production cost and improving the product appearance are fulfilled.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for multiplexing headphone interfaces, the method comprising:
detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes;
if the earphone insertion detection signal changes, determining that an earphone device is connected to the earphone interface, and setting a loudspeaker of the audio playing device to be in a mute state;
and if the earphone insertion detection signal is kept unchanged, determining that an audio adapter is connected to the earphone interface, and keeping a loudspeaker of the audio playing device in an external playing state, wherein the audio adapter comprises two ports, one end of the audio adapter is an earphone connector, and the other end of the audio adapter is an RCA analog audio output interface.
2. The method of claim 1, wherein the determining that the headset device is connected to the headset interface if the headset insertion detection signal changes specifically comprises:
and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold value, it is determined that the earphone interface has the earphone equipment access.
3. The method of claim 2, wherein the determining that the headset interface has a headset device access further comprises:
and if the earphone insertion detection signal is changed from a high level to a low level, the low level is restored to the high level after lasting for a second time period, and the second time period is greater than or equal to the preset time threshold, the loudspeaker of the audio playing device is set to be in an external playing state.
4. The method according to any one of claims 1-3, further comprising:
if the loudspeaker of the audio playing device is in a mute state, setting the volume gain output by the audio output interface to be controlled by the master volume;
and if the loudspeaker of the audio playing device is in an outward playing state, setting the volume gain output by the audio output interface as a preset gain.
5. A multiplexing device for a headphone interface, the device comprising:
the detection module is used for detecting whether an earphone insertion detection signal in an earphone interface of the audio playing equipment changes;
the first setting module is used for determining that the earphone interface has earphone equipment access if the earphone insertion detection signal changes and setting a loudspeaker of the audio playing equipment to be in a mute state;
and the second setting module is used for determining that the earphone interface has an audio adapter access if the earphone insertion detection signal is kept unchanged, and keeping a loudspeaker of the audio playing device in an external playing state, wherein the audio adapter comprises two ports, one end of the audio adapter is an earphone connector, and the other end of the audio adapter is an RCA analog audio output interface.
6. The apparatus of claim 5, wherein the first setup module comprises:
the determining module is configured to determine that the headset interface has a headset device access if the headset insertion detection signal changes from a high level to a low level, the low level is restored to the high level after lasting for a first time period, and the first time period is smaller than a preset time threshold.
7. The apparatus of claim 6, wherein the first setup module further comprises:
and the third setting module is configured to, after it is determined that the earphone interface has an earphone device access, set a speaker of the audio playing device to an external playing state if the earphone insertion detection signal changes from a high level to a low level, the low level returns to the high level after continuing for a second time period, and the second time period is greater than or equal to the preset time threshold.
8. The apparatus of any one of claims 5-7, further comprising:
the fourth setting module is used for setting the volume gain output by the audio output interface to be controlled by the master volume if the loudspeaker of the audio playing device is in a mute state;
and the fifth setting module is used for setting the volume gain output by the audio output interface to be a preset gain if the loudspeaker of the audio playing device is in an outward playing state.
CN201610629942.5A 2016-08-03 2016-08-03 The multiplexing method and device of earphone interface Active CN106231460B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610629942.5A CN106231460B (en) 2016-08-03 2016-08-03 The multiplexing method and device of earphone interface
PCT/CN2016/112316 WO2018023927A1 (en) 2016-08-03 2016-12-27 Earphone interface reusing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610629942.5A CN106231460B (en) 2016-08-03 2016-08-03 The multiplexing method and device of earphone interface

Publications (2)

Publication Number Publication Date
CN106231460A CN106231460A (en) 2016-12-14
CN106231460B true CN106231460B (en) 2019-05-31

Family

ID=57536512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610629942.5A Active CN106231460B (en) 2016-08-03 2016-08-03 The multiplexing method and device of earphone interface

Country Status (2)

Country Link
CN (1) CN106231460B (en)
WO (1) WO2018023927A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231460B (en) * 2016-08-03 2019-05-31 深圳Tcl数字技术有限公司 The multiplexing method and device of earphone interface
CN107371078B (en) * 2017-06-28 2019-10-15 维沃移动通信有限公司 A kind of mobile terminal and earphone
CN109871196B (en) * 2019-03-15 2022-08-02 维沃移动通信有限公司 Mobile terminal and control method of mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201869241U (en) * 2010-10-22 2011-06-15 蒲业臣 Audio interface of communication equipment
CN202197393U (en) * 2011-08-03 2012-04-18 深圳市金康特通讯技术有限公司 Earphone interface and mobile terminal shared by sensor and earphone
CN103260108A (en) * 2012-02-20 2013-08-21 深圳富泰宏精密工业有限公司 Electronic device and method for achieving earphone compatibility
CN204836549U (en) * 2015-07-31 2015-12-02 南京信息工程大学 Multi -functional audio frequency patch cord

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7780478B2 (en) * 2007-06-28 2010-08-24 Apple Inc. Apparatus and methods for connecting two electrical devices together
CN101610439B (en) * 2008-06-19 2013-02-27 鸿富锦精密工业(深圳)有限公司 Electronic device
CN202310062U (en) * 2011-09-02 2012-07-04 广东欧珀移动通信有限公司 Compatible three-section earphone insertion detection circuit
CN106231460B (en) * 2016-08-03 2019-05-31 深圳Tcl数字技术有限公司 The multiplexing method and device of earphone interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201869241U (en) * 2010-10-22 2011-06-15 蒲业臣 Audio interface of communication equipment
CN202197393U (en) * 2011-08-03 2012-04-18 深圳市金康特通讯技术有限公司 Earphone interface and mobile terminal shared by sensor and earphone
CN103260108A (en) * 2012-02-20 2013-08-21 深圳富泰宏精密工业有限公司 Electronic device and method for achieving earphone compatibility
CN204836549U (en) * 2015-07-31 2015-12-02 南京信息工程大学 Multi -functional audio frequency patch cord

Also Published As

Publication number Publication date
CN106231460A (en) 2016-12-14
WO2018023927A1 (en) 2018-02-08

Similar Documents

Publication Publication Date Title
CN105578353B (en) By the method for the circuit and reduction crosstalk of usb audio receiver and electronic equipment coupling
US8260380B2 (en) Headset with remote control
AU2008205331B2 (en) Wired headset with integrated switch
US20150098579A1 (en) Method and apparatus for an integrated headset switch with reduced crosstalk noise
US9264823B2 (en) Audio headset with automatic equalization
CN101841588B (en) Audio interface device and electronic device using same
CN106231460B (en) The multiplexing method and device of earphone interface
US20130101131A1 (en) Headphone with speaker function
US9571916B2 (en) Audio codec with audio jack detection function and audio jack detection method
JP2018529110A (en) Audio reproduction system, external expansion apparatus, audio reproduction method, apparatus, program, and recording medium
TWI522902B (en) Electronic device and method for sensing headset
DE102007052625A1 (en) Stereo Bluetooth headset
US20170195778A1 (en) Method and apparatus for being compatible with forward insertion and inverted insertion of analog earphone
US20100166237A1 (en) Single earphone for stereo and monaural audio devices
KR20150045638A (en) Earjack and electronic device having the same
CN107635171B (en) Circuit for improving earphone compatibility
CN105120390B (en) Headphone socket, headphone plug and electronic device
TWI522904B (en) Electronic device and headset for calibrating electronic device
TWI539837B (en) Audio player and control method thereof
US9491532B2 (en) Adapter device to allow the monitoring of media exposure on consumer devices
CN107205191A (en) A kind of interior recording device extended by ear microphone jack and method
US8660273B2 (en) Interface circuit and electronic device using the same
CN206650845U (en) Headset detection device and intelligent electronic device
US20130114816A1 (en) Audio Coupling System
CN107800853B (en) Memory, mobile phone, audio circuit thereof and method for externally playing audio file

Legal Events

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