[go: up one dir, main page]

CN105446696A - System and method for restraining blasting noise - Google Patents

System and method for restraining blasting noise Download PDF

Info

Publication number
CN105446696A
CN105446696A CN201511033185.7A CN201511033185A CN105446696A CN 105446696 A CN105446696 A CN 105446696A CN 201511033185 A CN201511033185 A CN 201511033185A CN 105446696 A CN105446696 A CN 105446696A
Authority
CN
China
Prior art keywords
codec
chip
state
mcu
current audio
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.)
Granted
Application number
CN201511033185.7A
Other languages
Chinese (zh)
Other versions
CN105446696B (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.)
Goertek Techology Co Ltd
Original Assignee
Qingdao Goertek 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 Qingdao Goertek Co Ltd filed Critical Qingdao Goertek Co Ltd
Priority to CN201511033185.7A priority Critical patent/CN105446696B/en
Publication of CN105446696A publication Critical patent/CN105446696A/en
Application granted granted Critical
Publication of CN105446696B publication Critical patent/CN105446696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本发明公开了一种抑制爆破噪音的系统和方法。所述系统包括:处理器MCU、移动终端高清影音标准接口转红绿蓝MHL?to?RGB芯片、编译码器芯片CODEC;所述MHL?to?RGB芯片,给所述处理器MCU发送第一当前音频状态信号;所述处理器MCU,从所述MHL?to?RGB芯片接收所述第一当前音频状态信号;并根据所述第一当前音频状态信号,判断所述MHL?to?RGB芯片给所述编译码器芯片CODEC输出的第一当前音频信号是否正常;根据所述第一当前音频信号的状态,给所述CODEC发送相应的第一处理指令;所述CODEC,从所述处理器MCU接收所述第一处理指令,并根据所述第一处理指令进行处理。本发明可以抑制头戴显示器的爆破噪音。

The invention discloses a system and method for suppressing blasting noise. The system includes: processor MCU, mobile terminal high-definition audio-visual standard interface to red-green-blue MHL? to? RGB chip, codec chip CODEC; the MHL? to? The RGB chip sends the first current audio status signal to the processor MCU; the processor MCU sends the MHL? to? The RGB chip receives the first current audio state signal; and according to the first current audio state signal, judges whether the MHL? to? Whether the first current audio signal output by the RGB chip to the codec chip CODEC is normal; according to the state of the first current audio signal, send the corresponding first processing instruction to the CODEC; the CODEC, from the The processor MCU receives the first processing instruction and performs processing according to the first processing instruction. The invention can suppress the explosion noise of the head-mounted display.

Description

一种抑制爆破噪音的系统和方法A system and method for suppressing blasting noise

技术领域technical field

本发明涉及音频领域,特别涉及一种抑制爆破噪音的系统和方法。The invention relates to the audio field, in particular to a system and method for suppressing blasting noise.

背景技术Background technique

Pop爆破噪音是指音频放大器在上电、断电瞬间以及在待机切换时,电源对输入电容,偏置电容或输出隔直电容充电所产生的爆破声。对电容的瞬时充电往往在输出端会产生一个尖峰电压,此电压加在扬声器两端,,生成电流并切割磁力线,产生作用力,使扬声器发出爆破噪声。Popping noise refers to the popping sound produced by the power supply charging the input capacitor, bias capacitor or output DC blocking capacitor when the audio amplifier is powered on, powered off and switched in standby mode. The instantaneous charging of the capacitor often produces a peak voltage at the output terminal, and this voltage is added to both ends of the speaker to generate a current and cut the magnetic force lines, resulting in a force that makes the speaker emit a popping noise.

头戴显示器是现代显示技术中一种全新的技术,在增强显示、虚拟实现以及立体显示等方面都有重要的应用。该款头戴显示器,通过标准的移动终端高清影音标准接口MHL接口(MHL2.0协议)与游戏机、平板、手机等连接,经过音/视频处理模块后,通过LCD显示屏呈现给终端用户。Head-mounted display is a brand-new technology in modern display technology, which has important applications in enhanced display, virtual realization and stereoscopic display. This head-mounted display is connected to game consoles, tablets, mobile phones, etc. through the standard mobile terminal high-definition audio and video standard interface MHL interface (MHL2.0 protocol), and is presented to end users through the LCD display after passing through the audio/video processing module.

为了满足客户对高品质音质的追求,在头戴显示器中,同样需要做音频消噪处理。In order to meet the customer's pursuit of high-quality sound, in the head-mounted display, audio noise reduction processing is also required.

发明内容Contents of the invention

本发明提供的一种抑制爆破噪音的系统和方法,能够有效的抑制爆破噪音。The invention provides a system and method for suppressing blasting noise, which can effectively suppress blasting noise.

一种抑制爆破噪音的系统,包括:A system for suppressing blast noise comprising:

处理器MCU、移动终端高清影音标准接口转红绿蓝MHLtoRGB芯片、编译码器芯片CODEC;Processor MCU, mobile terminal high-definition audio-visual standard interface to red, green and blue MHLtoRGB chip, codec chip CODEC;

所述MHLtoRGB芯片,给所述处理器MCU发送第一当前音频状态信号;The MHLtoRGB chip sends a first current audio status signal to the processor MCU;

所述处理器MCU,从所述MHLtoRGB芯片接收所述第一当前音频状态信号;并根据所述第一当前音频状态信号,判断所述MHLtoRGB芯片给所述编译码器芯片CODEC输出的第一当前音频信号是否正常;根据所述第一当前音频信号的状态,给所述CODEC发送相应的第一处理指令;The processor MCU receives the first current audio state signal from the MHLtoRGB chip; and judges the first current audio state output from the MHLtoRGB chip to the codec chip CODEC according to the first current audio state signal. Whether the audio signal is normal; according to the state of the first current audio signal, send a corresponding first processing instruction to the CODEC;

所述CODEC,从所述处理器MCU接收所述第一处理指令,并根据所述第一处理指令进行处理。The CODEC receives the first processing instruction from the processor MCU, and performs processing according to the first processing instruction.

所述处理器MCU根据所述第一当前音频信号的状态,给所述CODEC发送相应的第一处理指令具体为:The processor MCU sends a corresponding first processing instruction to the CODEC according to the state of the first current audio signal, specifically:

当所述第一当前音频信号的状态为异常时,设置所述CODEC的工作状态为静音状态;When the state of the first current audio signal is abnormal, set the working state of the CODEC to a mute state;

当所述第一当前音频信号的状态为正常时,判断所述CODEC是否完成初始化;并根据所述CODEC是否完成初始化,进行相应处理。When the state of the first current audio signal is normal, it is judged whether the initialization of the CODEC is completed; and corresponding processing is performed according to whether the initialization of the CODEC is completed.

所述处理器MCU根据所述CODEC是否完成初始化,进行相应处理具体为:The processor MCU performs corresponding processing according to whether the CODEC completes the initialization, specifically:

当所述CODEC为未初始化状态,则初始化所述CODEC;并开启所述CODEC的音量;When the CODEC is in an uninitialized state, initialize the CODEC; and turn on the volume of the CODEC;

当所述CODEC状态为已完成初始化状态时,开启所述CODEC的音量。When the state of the CODEC is an initialization completed state, turn on the volume of the CODEC.

所述MCU初始化所述CODEC具体为:The CODEC initialized by the MCU is specifically:

在预订时长内通过设置所述CODEC的复位管脚的电平,使得CODEC保持为非正常工作状态;Keeping the CODEC in an abnormal working state by setting the level of the reset pin of the CODEC within the predetermined duration;

设置所述CODEC的耳机插孔输出通路输出的水平直流电平的上升时间。Set the rise time of the horizontal DC level output by the headphone jack output channel of the CODEC.

所述处理器MCU还用于,当开启所述CODEC的音量之后,从所述MHLtoRGB芯片接收的第二当前音频状态信号;当所述第二当前音频状态信号表示所述MHLtoRGB芯片给所述编译码器芯片CODEC输出的第二当前音频信号为异常时,所述处理器MCU设置所述CODEC的工作状态为静音状态。The processor MCU is also used to, when the volume of the CODEC is turned on, receive the second current audio state signal from the MHLtoRGB chip; When the second current audio signal output by the encoder chip CODEC is abnormal, the processor MCU sets the working state of the CODEC to a mute state.

所述当所述第二当前音频状态信号表示MHLtoRGB芯片给所述编译码器芯片CODEC输出的第二当前音频信号为异常时,所述处理器MCU设置所述CODEC的工作状态为静音状态具体为:When the second current audio state signal indicates that the second current audio signal output by the MHLtoRGB chip to the codec chip CODEC is abnormal, the processor MCU sets the working state of the CODEC to a mute state, specifically as follows :

所述处理器MCU设置所述CODEC芯片的复位管脚的电平,使得所述CODEC芯片处于复位状态。The processor MCU sets the level of the reset pin of the CODEC chip, so that the CODEC chip is in a reset state.

所述CODEC的耳机插孔输出通路上串连有电阻。A resistor is connected in series with the earphone jack output path of the CODEC.

一种抑制爆破噪音的方法,包括:A method of suppressing blasting noise, comprising:

处理器MCU从MHLtoRGB芯片接收第一当前音频状态信号;根据所述第一当前音频状态信号,判断MHLtoRGB芯片给编译码器芯片CODEC输出的第一当前音频信号是否正常;根据所述第一当前音频信号的状态,对所述CODEC进行相应处理。The processor MCU receives the first current audio state signal from the MHLtoRGB chip; according to the first current audio state signal, it is judged whether the first current audio signal output by the MHLtoRGB chip to the codec chip CODEC is normal; The state of the signal is processed accordingly to the CODEC.

所述根据所述第一当前音频信号的状态,对所述CODEC进行相应处理的步骤包括:The step of performing corresponding processing on the CODEC according to the state of the first current audio signal includes:

当所述第一当前音频信号的状态为异常时,所述MCU设置所述CODEC的工作状态为静音状态;When the state of the first current audio signal is abnormal, the MCU sets the working state of the CODEC to a mute state;

当所述第一当前音频信号的状态为正常时,所述MCU判断所述CODEC是否完成初始化;所述MCU根据所述CODEC是否完成初始化,进行相应处理。When the state of the first current audio signal is normal, the MCU judges whether the CODEC is initialized; and the MCU performs corresponding processing according to whether the CODEC is initialized.

所述MCU根据所述CODEC是否完成初始化,进行相应处理的步骤包括:According to whether the MCU completes the initialization of the CODEC, the steps of performing corresponding processing include:

当所述CODEC为未初始化状态,则所述MCU初始化所述CODEC;所述MCU开启所述CODEC的音量;When the CODEC is in an uninitialized state, the MCU initializes the CODEC; the MCU turns on the volume of the CODEC;

当所述CODEC状态为已完成初始化状态,则所述MCU开启所述CODEC的音量。When the state of the CODEC is an initialization completed state, the MCU turns on the volume of the CODEC.

本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:

本发明检测音频信号是否正常,当所述第一当前音频信号的状态为异常时,设置所述CODEC的工作状态为静音状态,从而达到抑制CODEC爆破噪音popnoise的目的。The present invention detects whether the audio signal is normal, and when the state of the first current audio signal is abnormal, sets the working state of the CODEC to a silent state, thereby achieving the purpose of suppressing the popnoise of CODEC blasting noise.

附图说明Description of drawings

图1为本发明实施例提供的抑制爆破噪音的系统的连接示意图;Fig. 1 is the connection diagram of the system for suppressing blasting noise provided by the embodiment of the present invention;

图2为本发明实施例提供的抑制爆破噪音的方法的处理流程示意图;Fig. 2 is a schematic diagram of the processing flow of the method for suppressing blasting noise provided by an embodiment of the present invention;

图3为本发明的抑制爆破噪音的系统的应用场景中头戴显示器的系统框图;Fig. 3 is a system block diagram of the head-mounted display in the application scene of the system for suppressing blasting noise of the present invention;

图4本发明实施例提供的抑制爆破噪音的系统的应用场景的部分电路示意图;Fig. 4 is a partial circuit schematic diagram of the application scene of the system for suppressing blasting noise provided by the embodiment of the present invention;

图5为本发明实施例提供的抑制爆破噪音的系统中MCU的处理流程示意图;5 is a schematic diagram of the processing flow of the MCU in the system for suppressing blasting noise provided by an embodiment of the present invention;

图6为本发明实施例提供的抑制爆破噪音的系统中MHL转RGB芯片的流程图;Fig. 6 is the flowchart of the MHL to RGB chip in the system for suppressing blasting noise provided by the embodiment of the present invention;

图7为本发明实施例提供的抑制爆破噪音的系统中MHL转RGB芯片的中断处理流程图。FIG. 7 is a flow chart of interrupt processing of the MHL-to-RGB chip in the system for suppressing blasting noise provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

如图1所示,为本发明所述的一种抑制爆破噪音的系统,包括:As shown in Figure 1, it is a system for suppressing blasting noise according to the present invention, including:

处理器MCU11、移动终端高清影音标准接口转RGB(MHLtoRGB)芯片12、编译码器芯片CODEC13;Processor MCU11, mobile terminal high-definition audio-visual standard interface to RGB (MHLtoRGB) chip 12, codec chip CODEC13;

所述MHLtoRGB芯片12,给所述处理器MCU11发送第一当前音频状态信号;The MHLtoRGB chip 12 sends the first current audio status signal to the processor MCU11;

所述处理器MCU11,从所述MHLtoRGB芯片接收所述第一当前音频状态信号;并根据所述第一当前音频状态信号,判断所述MHLtoRGB芯片12给所述编译码器芯片CODEC13输出的第一当前音频信号是否正常;根据所述第一当前音频信号的状态,给所述CODEC13发送相应的第一处理指令;Said processor MCU11 receives said first current audio state signal from said MHLtoRGB chip; Whether the current audio signal is normal; according to the state of the first current audio signal, send a corresponding first processing instruction to the CODEC13;

所述CODEC13,从所述处理器MCU接收所述第一处理指令,并根据所述第一处理指令进行处理。The CODEC13 receives the first processing instruction from the processor MCU, and performs processing according to the first processing instruction.

本发明检测音频信号是否正常,正常后再配置CODEC,达到抑制CODEC爆破噪音popnoise的目的,使得在头盔显示器等的应用当中无法听出popnoise,满足了产品设计的要求。The invention detects whether the audio signal is normal, and configures the CODEC after it is normal, so as to suppress the popnoise of CODEC blasting noise, so that the popnoise cannot be heard in the application of the helmet display, etc., and meets the requirements of product design.

所述处理器MCU11根据所述第一当前音频信号的状态,给所述CODEC13发送相应的第一处理指令具体为:The processor MCU11 sends the corresponding first processing instruction to the CODEC13 according to the state of the first current audio signal, specifically:

当所述第一当前音频信号的状态为异常时,设置所述CODEC的工作状态为静音状态;When the state of the first current audio signal is abnormal, set the working state of the CODEC to a mute state;

当所述第一当前音频信号的状态为正常时,判断所述CODEC是否完成初始化;并根据所述CODEC是否完成初始化,进行相应处理。When the state of the first current audio signal is normal, it is judged whether the initialization of the CODEC is completed; and corresponding processing is performed according to whether the initialization of the CODEC is completed.

所述处理器MCU根据所述CODEC是否完成初始化,进行相应处理具体为:The processor MCU performs corresponding processing according to whether the CODEC completes the initialization, specifically:

当所述CODEC为未初始化状态,则初始化所述CODEC;并开启所述CODEC的音量;When the CODEC is in an uninitialized state, initialize the CODEC; and turn on the volume of the CODEC;

当所述CODEC状态为已完成初始化状态时,开启所述CODEC的音量。When the state of the CODEC is an initialization completed state, turn on the volume of the CODEC.

所述MCU初始化所述CODEC具体为:The CODEC initialized by the MCU is specifically:

在预订时长内通过设置所述CODEC的复位管脚的电平,使得CODEC保持为非正常工作状态;Keeping the CODEC in an abnormal working state by setting the level of the reset pin of the CODEC within the predetermined duration;

设置所述CODEC的耳机插孔输出通路输出的水平直流电平的上升时间。Set the rise time of the horizontal DC level output by the headphone jack output channel of the CODEC.

所述处理器MCU11还用于,当开启所述CODEC的音量之后,从所述MHLtoRGB芯片接收的第二当前音频状态信号;当所述第二当前音频状态信号表示所述MHLtoRGB芯片给所述编译码器芯片CODEC输出的第二当前音频信号为异常时,所述处理器MCU设置所述CODEC的工作状态为静音状态。The processor MCU11 is also used for, when the volume of the CODEC is turned on, the second current audio state signal received from the MHLtoRGB chip; When the second current audio signal output by the encoder chip CODEC is abnormal, the processor MCU sets the working state of the CODEC to a mute state.

所述当所述第二当前音频状态信号表示MHLtoRGB芯片给所述编译码器芯片CODEC输出的第二当前音频信号为异常时,所述处理器MCU设置所述CODEC的工作状态为静音状态具体为:When the second current audio state signal indicates that the second current audio signal output by the MHLtoRGB chip to the codec chip CODEC is abnormal, the processor MCU sets the working state of the CODEC to a mute state, specifically as follows :

所述处理器MCU设置所述CODEC芯片的复位管脚的电平,使得所述CODEC芯片处于复位状态。The processor MCU sets the level of the reset pin of the CODEC chip, so that the CODEC chip is in a reset state.

如图4所示,所述CODEC的耳机插孔输出通路上串连有电阻R1和R2。即:在CODEC的输出通路上串电阻,对popnoise的幅值进行压制,当然这也会减小头戴显示的最大音量。因此,需要将CODEC输出音量调大同时兼顾对popnoise压制。在调大CODEC输出和抑制popnoise的幅值中选取一个平衡值,即Popnoise在可以接受的范围内,同时输出最大音量也不太小。As shown in FIG. 4 , resistors R1 and R2 are connected in series to the earphone jack output path of the CODEC. That is: connect a resistor in series with the output path of the CODEC to suppress the amplitude of the popnoise. Of course, this will also reduce the maximum volume of the head-mounted display. Therefore, it is necessary to increase the CODEC output volume while simultaneously suppressing popnoise. Select a balanced value between increasing the CODEC output and suppressing the popnoise amplitude, that is, the Popnoise is within an acceptable range, and the maximum output volume is not too low.

如图4所示,所述CODEC的耳机插孔输出通路上还设置有R4、C5、C6,可以更好的抑制popnoise和获得更好的频响特性。As shown in FIG. 4 , R4, C5, and C6 are also arranged on the headphone jack output path of the CODEC, which can better suppress popnoise and obtain better frequency response characteristics.

如图2所示,为本发明所述的一种抑制爆破噪音的方法,包括:As shown in Figure 2, it is a kind of method for suppressing blasting noise described in the present invention, comprising:

步骤21,处理器MCU从MHLtoRGB芯片接收第一当前音频状态信号;Step 21, the processor MCU receives the first current audio status signal from the MHLtoRGB chip;

步骤22,根据所述第一当前音频状态信号,判断MHLtoRGB芯片给编译码器芯片CODEC输出的第一当前音频信号是否正常;Step 22, according to the first current audio state signal, judge whether the first current audio signal output by the MHLtoRGB chip to the codec chip CODEC is normal;

步骤23,当所述第一当前音频信号的状态为异常时,所述MCU设置所述CODEC的工作状态为静音状态;Step 23, when the state of the first current audio signal is abnormal, the MCU sets the working state of the CODEC to a mute state;

步骤24,当所述第一当前音频信号的状态为正常时,所述MCU判断所述CODEC是否完成初始化;所述MCU根据所述CODEC是否完成初始化,进行相应处理。Step 24: When the state of the first current audio signal is normal, the MCU judges whether the CODEC is initialized; and the MCU performs corresponding processing according to whether the CODEC is initialized.

所述MCU根据所述CODEC是否完成初始化,进行相应处理的步骤包括:According to whether the MCU completes the initialization of the CODEC, the steps of performing corresponding processing include:

步骤25,当所述CODEC为未初始化状态,则所述MCU初始化所述CODEC;步骤26,所述MCU开启所述CODEC的音量;Step 25, when the CODEC is in an uninitialized state, the MCU initializes the CODEC; Step 26, the MCU turns on the volume of the CODEC;

步骤27,当所述CODEC状态为已完成初始化状态,则所述MCU开启所述CODEC的音量。Step 27, when the state of the CODEC is an initialization completed state, the MCU turns on the volume of the CODEC.

所述方法还包括:The method also includes:

步骤28,判断从所述MHLtoRGB芯片接收的第二当前音频状态信号是否正常;Step 28, judging whether the second current audio status signal received from the MHLtoRGB chip is normal;

步骤29,当第二当前音频状态信号表示所述MHLtoRGB芯片给所述编译码器芯片CODEC输出的第二当前音频信号为异常时,所述MCU设置所述CODEC的工作状态为静音状态。Step 29, when the second current audio state signal indicates that the second current audio signal output by the MHLtoRGB chip to the codec chip CODEC is abnormal, the MCU sets the working state of the CODEC to a mute state.

本发明通过检测音频信号是否正常,正常后再配置CODEC,达到抑制CODECpopnoise爆破噪音的目的,使得在头盔显示器(HMD的应用当中无法听出popnoise,满足了产品设计的要求。The present invention detects whether the audio signal is normal, and configures the CODEC after it is normal to achieve the purpose of suppressing the CODEC popnoise blasting noise, so that the popnoise cannot be heard in the application of the helmet-mounted display (HMD), which meets the requirements of product design.

以下描述本发明的应用场景。The application scenarios of the present invention are described below.

图3为头戴显示器系统的逻辑框图,主要是由MCU5、MHL转RGB芯片2,音频处理单元3、视频处理4、LCD显示屏7等组成。整个头戴显示器作为视频的sink端(终端显示端),负责音视频信号处理并显示。其中,音频处理单元3可以为TIAIC3104CODEC,既可以满足音质需求,也可以降低成本。Figure 3 is a logical block diagram of the head-mounted display system, which is mainly composed of MCU5, MHL to RGB chip 2, audio processing unit 3, video processing 4, LCD display 7 and so on. The entire head-mounted display is used as the sink end of the video (terminal display end), responsible for audio and video signal processing and display. Wherein, the audio processing unit 3 can be a TIAIC3104CODEC, which can not only meet the sound quality requirement, but also reduce the cost.

MCU通过MHL转RGB芯片2,检测是否有音频信号;当检测到正常的音频信号后,配置CODEC。在未检测到正常的音频信号时,MCU一直拉低CODEC的RST(复位)管脚,使CODEC处于复位状态(非正常工作状态)。当复位管脚为高时,CODEC处于正常工作状态。The MCU detects whether there is an audio signal through the MHL to RGB chip 2; when a normal audio signal is detected, the CODEC is configured. When a normal audio signal is not detected, the MCU keeps pulling down the RST (reset) pin of the CODEC, so that the CODEC is in a reset state (abnormal working state). When the reset pin is high, the CODEC is in normal working condition.

也就是说,本发明通过配置MHL转RGB芯片(例如为Sii9293ACNUCSiliconImage矽映电子科技公司,以下简称9293),判断源端是否有送出音频信号。有音频信号时,配置CODEC。MCU通过I2C数据总线每隔预订时长(10ms)查询一MHL转RGB芯片2的状态,以便实时获取音频状态。That is to say, the present invention judges whether there is an audio signal sent from the source end by configuring an MHL-to-RGB chip (for example, Sii9293ACNUCSiliconImage, hereinafter referred to as 9293). When there is audio signal, configure CODEC. The MCU inquires the status of an MHL-to-RGB chip 2 every predetermined period of time (10ms) through the I2C data bus, so as to obtain the audio status in real time.

其中,如图5所示,抑制popnoise的MCU的处理流程包括:Among them, as shown in Figure 5, the processing flow of the MCU that suppresses popnoise includes:

步骤101,MCU初始化,使能CODEC和9293(MHL转RGB芯片)电源控制管脚,拉低CODEC的复位管脚(RST),防止CODEC上电时产生的POP音。Step 101, MCU initialization, enable CODEC and 9293 (MHL to RGB chip) power control pins, pull down the CODEC reset pin (RST), to prevent the POP sound generated when the CODEC is powered on.

步骤102,MCU每隔预订时长(例如为10ms)检测音频信号是否准备好;如果音频信号未准备好,则继续等待;否则进入步骤103,判断CODEC是否初始化;如果CODEC未初始化,跳转到步骤104;如果CODEC已经初始化,则跳转到步骤106。Step 102, the MCU detects whether the audio signal is ready every predetermined time length (for example, 10ms); if the audio signal is not ready, then continue to wait; otherwise enter step 103, judge whether the CODEC is initialized; if the CODEC is not initialized, jump to the step 104; if the CODEC has been initialized, go to step 106.

步骤104,如果CODEC未初始化,则拉高CODEC复位管脚,延时20毫秒;Step 104, if the CODEC is not initialized, the CODEC reset pin is pulled high, and the delay is 20 milliseconds;

步骤105,初始化CODEC(配置隔直电容的充电时间等)。本发明中,等I2S的时钟正常后,再初始化CODEC,可以避免时钟不正常时产生的pop音。具体为:首先要将CODECRST引脚拉高,然后设置寄存器(Register42)设置水平直流电平的上升时间。具体为:例如,设置DriverPower-ontimer(信号上升时间)为400ms,DriverRamp-upStepTimingControl(控制输出直流偏压对输出电容的充电速度)为4ms,使得该电平在一定时间内跳变到设定值,而不是很陡的一个上升沿。经试验验证以及实际体验,该设置可以取得较好效果。CODEC初始化完成之后,此时插入耳机就可以听到Source源端的音频。Step 105, initialize the CODEC (configure the charging time of the DC blocking capacitor, etc.). In the present invention, the CODEC is initialized after the clock of the I2S is normal, so that the pop sound generated when the clock is abnormal can be avoided. Specifically: first pull the CODECRST pin high, and then set the register (Register42) to set the rise time of the horizontal DC level. Specifically: For example, set DriverPower-ontimer (signal rise time) to 400ms, DriverRamp-upStepTimingControl (control the charging speed of the output DC bias voltage to the output capacitor) to 4ms, so that the level jumps to the set value within a certain period of time , rather than a steep rising edge. After experimental verification and actual experience, this setting can achieve better results. After the CODEC initialization is complete, plug in the earphones and you can hear the audio from the Source.

步骤106;设置CODEC的输出音量,以打开CODEC的声音,然后跳转到步骤107;Step 106; The output volume of CODEC is set, to open the sound of CODEC, then jump to step 107;

步骤107,循环检测音频信号是否正常;如果音频信号不正常或者没有音频信号,跳转到步骤108。如果正常,继续检测。Step 107, circularly check whether the audio signal is normal; if the audio signal is abnormal or there is no audio signal, jump to step 108. If normal, continue testing.

步骤108,如果音频信号不正常或者没有音频信号,则静音MuteCODEC的输出。muteCODEC输出具体为:设置寄存器Register43,Register44,同时把DAC/HeadphoneDriverPowerdown(切断输出直流偏压电源),并尽可能的优化缩短检测到音频信号断开到控制CODECmute的时间。Step 108, if the audio signal is abnormal or there is no audio signal, mute the output of the MuteCODEC. The muteCODEC output is specifically: set the registers Register43 and Register44, and at the same time power down the DAC/HeadphoneDriver (cut off the output DC bias power supply), and optimize and shorten the time from detecting the disconnection of the audio signal to controlling the CODECmute as much as possible.

如图6所示,MHL转RGB芯片(9293)处理的流程包括以下步骤:As shown in Figure 6, the process of MHL to RGB chip (9293) processing includes the following steps:

步骤200,9293初始化,配置I2S的输出,配置PLL时钟,打开NewAudioInfoframe中断程序,即当收到新AudioInfoframe(音频数据包)时,产生中断.中断服务程序处理流程请参考图5。清除softmuteflag(该参数表示软件静音mute处理),设置as_AudioOff(该参数表示程序初始化之后的状态,准备好处理音频数据)为初始状态,设置音频处理标志。Step 200, 9293 initialization, configure the output of I2S, configure the PLL clock, open the NewAudioInfoframe interrupt program, that is, when a new AudioInfoframe (audio data packet) is received, an interrupt is generated. Please refer to Figure 5 for the processing flow of the interrupt service program. Clear softmuteflag (this parameter indicates software mute mute processing), set as_AudioOff (this parameter indicates the state after program initialization, ready to process audio data) as the initial state, and set the audio processing flag.

步骤201,检测Audioexception是否存在异常(通过AutoAudioControlRegister,检测音频是否异常)。如果异常,则关闭Audio音频数据的输出,返回as_AudioOff状态,并清除音频准备好标志。Step 201, check whether the Audioexception is abnormal (check whether the audio is abnormal through AutoAudioControlRegister). If abnormal, close the output of Audio audio data, return to the as_AudioOff state, and clear the audio ready flag.

步骤202,检测音频处理标志(AudioProcessflag)。如果音频处理标志置位(将音频处理标志设置为1),则跳转到as_RegAudio(音频寄存器)状态;Step 202, detecting an audio processing flag (AudioProcessflag). If the audio processing flag is set (the audio processing flag is set to 1), then jump to the as_RegAudio (audio register) state;

步骤203,判断CTS(CycleTimeStamp:采样周期)是否正确(Is_CTS_error);如果正确,则跳转到步骤204;否则,跳转到步骤205。Step 203, judge whether CTS (CycleTimeStamp: sampling period) is correct (Is_CTS_error); if correct, then jump to step 204; otherwise, jump to step 205.

步骤204,通过CTS(CycleTimeStamp:采样周期)和N(采样点数)值计算出Fs(音频采样频率)以及MCLK(MasterClock主时钟:I2S的主时钟),计算公式可以参考公式1、公式2。注意此时并没有设置输出MCLK时钟,直到SwitchAudioON(打开音频(clk,data))之后,才打开MCLK时钟。Step 204, calculate Fs (audio sampling frequency) and MCLK (MasterClock master clock: master clock of I2S) by CTS (CycleTimeStamp: sampling period) and N (number of sampling points) values, calculation formula can refer to formula 1, formula 2. Note that the output MCLK clock is not set at this time, and the MCLK clock is not turned on until SwitchAudioON (turn on audio (clk, data)).

128 × F s = P i x e l C l o c k × N C T S (公式1) 128 × f the s = P i x e l C l o c k × N C T S (Formula 1)

MCLK=Fs×Bits×2(公式2);MCLK=Fs×Bits×2 (Formula 2);

其中,Fs为音频采样频率,CTS(CycleTimeStamp)为采样周期,N为采样点数,Pixelclock为像素时钟;具体可以参考MHL或HDMI协议。AudioclockRegeneration(声音的时钟产生器)Packet(包)z中包含采样周期CTS和采样点数N值信息。Among them, Fs is the audio sampling frequency, CTS (CycleTimeStamp) is the sampling period, N is the number of sampling points, and Pixelclock is the pixel clock; for details, please refer to the MHL or HDMI protocol. AudioclockRegeneration (sound clock generator) Packet (package) z contains sampling period CTS and sampling point number N value information.

步骤205,清除CTSerror(采样周期错误标识),(这个取值要满足一定的条件。具体可参考HDMI/MHL协议规范),然后等待下一次循环。当前仍然在as_ReqAudio状态。Step 205, clear CTSerror (sampling period error flag), (this value must meet certain conditions. For details, refer to the HDMI/MHL protocol specification), and then wait for the next cycle. Currently still in the as_ReqAudio state.

步骤206,通过9293的寄存器,检测Clock时钟是否正常。如果不正常则重新跳转到as_RegAudio状态,否则跳转到步骤207;Step 206, check whether the Clock clock is normal through the register of the 9293. If not normal, then jump to the as_RegAudio state, otherwise jump to step 207;

步骤207,打开I2S的时钟以及音频数据,同时设置音频准备好标志(SwitchAudioON)。MCU通过音频准备好标志,判断音频数据是否正常。Step 207, turn on the I2S clock and audio data, and set the audio ready flag (SwitchAudioON) at the same time. The MCU judges whether the audio data is normal through the audio ready flag.

步骤208,判断Audiochannelchange(声音通道变换(声音采样包))(Audiosamplepackets的包内容变化时表示Fs(音频采样频率)发生变化),如果是,则跳转到步骤209,更新音频采样频率Fs,否则,循环判断是否有Audiochannelchange。Step 208, judge Audiochannelchange (sound channel change (sound sampling package)) (expression Fs (audio sampling frequency) changes when the package content of Audiosamplepackets changes), if yes, then jump to step 209, update audio sampling frequency Fs, otherwise , loop to judge whether there is an Audiochannelchange.

步骤210,当视频模式不在VideoON(音频输出)状态时,则关闭Audio音频输出(as_AudioOff)。Step 210, when the video mode is not in the VideoON (audio output) state, turn off the Audio audio output (as_AudioOff).

本发明中,判断视频状态时也可以在中断里进行的,目前头盔显示器,只有在有视频图像时才会传输音频。In the present invention, judging the video state can also be performed in an interruption. At present, the head-mounted display only transmits audio when there is a video image.

如图7所示,收到NewAudioInfoFrame的中断处理流程包括以下步骤:As shown in Figure 7, the interrupt processing flow of receiving NewAudioInfoFrame includes the following steps:

步骤301,判断收到的AudioInfoFrame(声音数据流)长度以及校验是否正确;Step 301, judge whether the received AudioInfoFrame (sound data stream) length and verification are correct;

如果正确,则转到步骤302,设置Audioinfoflag(声音标志位);If correct, then go to step 302, Audioinfoflag (sound flag bit) is set;

否则,跳转到步骤303,设置failpacketflag(失败包标志位),等待下一次中断。Otherwise, jump to step 303, set failpacketflag (fail packet flag bit), and wait for the next interrupt.

步骤304,判断当前是否在as_AudioOn(声音打开)状态或者as_AudioReady(声音准备好)状态,如果是,则跳转到步骤305,更新音频采样频率Fs。Step 304, judging whether it is currently in the as_AudioOn (sound on) state or as_AudioReady (sound is ready) state, if yes, jump to step 305, and update the audio sampling frequency Fs.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (10)

1. suppress a system for noise of blasting, it is characterized in that, comprising:
Processor MCU, mobile terminal high-definition audio and video standard interface turn RGB MHLtoRGB chip, coder chip CODEC;
Described MHLtoRGB chip, sends the first present video status signal to described processor MCU;
Described processor MCU, receives described first present video status signal from described MHLtoRGB chip; And according to described first present video status signal, judge that whether the first current audio signals that described MHLtoRGB chip exports to described coder chip CODEC is normal; When the state of described first current audio signals is abnormal, described first processing instruction is: the duty arranging described CODEC is mute state; When the state of described first current audio signals is normal, described first processing instruction is: judge whether described CODEC completes initialization; And whether complete initialization according to described CODEC and process;
Described CODEC, receives described first processing instruction from described processor MCU, and processes according to described first processing instruction.
2. system according to claim 1, is characterized in that, whether described processor MCU completes initialization according to described CODEC, carries out respective handling and is specially:
When described CODEC is no initializtion state, then CODEC described in initialization; And open the volume of described CODEC;
When described CODEC state is for completing init state, open the volume of described CODEC.
3. system according to claim 2, is characterized in that, described in described MCU initialization, CODEC is specially:
By arranging the level of the reseting pin of described CODEC in reservation duration, CODEC is made to remain abnormal operating state;
The rise time of the horizontal DC level that the earphone jack output channel arranging described CODEC exports.
4. system according to claim 2, is characterized in that, described processor MCU also for, after the volume of opening described CODEC, from the second present video status signal that described MHLtoRGB chip receives; When described second present video status signal represents that described MHLtoRGB chip is abnormal to the second current audio signals that described coder chip CODEC exports, the duty that described processor MCU arranges described CODEC is mute state.
5. system according to claim 4, it is characterized in that, described when described second present video status signal represents that MHLtoRGB chip is abnormal to the second current audio signals that described coder chip CODEC exports, the duty that described processor MCU arranges described CODEC is that mute state is specially:
Described processor MCU arranges the level of the reseting pin of described CODEC chip, makes described CODEC chip be in reset mode.
6. system according to claim 1, is characterized in that,
The earphone jack output channel of described CODEC is connected with resistance.
7. suppress a method for noise of blasting, it is characterized in that, comprising:
Processor MCU receives the first present video status signal from MHLtoRGB chip;
According to described first present video status signal, judge that whether the first current audio signals that MHLtoRGB chip exports to coder chip CODEC is normal;
When the state of described first current audio signals is abnormal, the duty that described MCU arranges described CODEC is mute state;
When the state of described first current audio signals is normal, described MCU judges whether described CODEC completes initialization; Whether described MCU completes initialization according to described CODEC, carries out respective handling.
8. method according to claim 7, is characterized in that, whether described MCU completes initialization according to described CODEC, and the step of carrying out respective handling comprises:
When described CODEC is no initializtion state, then CODEC described in described MCU initialization; Described MCU opens the volume of described CODEC;
When described CODEC state is for complete init state, then described MCU opens the volume of described CODEC.
9. method according to claim 8, is characterized in that, after described MCU opens the step of the volume of described CODEC, described method also comprises:
Judge that whether the second present video status signal received from described MHLtoRGB chip is normal;
When the second present video status signal represents that described MHLtoRGB chip is abnormal to the second current audio signals that described coder chip CODEC exports, the duty that described MCU arranges described CODEC is mute state.
10. method according to claim 9, it is characterized in that, describedly represent that the second current audio signals that MHLtoRGB chip exports to described coder chip CODEC is for time abnormal when described second present video status signal, the duty that described processor MCU arranges described CODEC is that the step of mute state is specially:
Described processor MCU arranges the level of the reseting pin of described CODEC chip, makes described CODEC chip be in reset mode.
CN201511033185.7A 2015-12-31 2015-12-31 A kind of system and method inhibiting noise of blasting Active CN105446696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511033185.7A CN105446696B (en) 2015-12-31 2015-12-31 A kind of system and method inhibiting noise of blasting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511033185.7A CN105446696B (en) 2015-12-31 2015-12-31 A kind of system and method inhibiting noise of blasting

Publications (2)

Publication Number Publication Date
CN105446696A true CN105446696A (en) 2016-03-30
CN105446696B CN105446696B (en) 2018-10-26

Family

ID=55556952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511033185.7A Active CN105446696B (en) 2015-12-31 2015-12-31 A kind of system and method inhibiting noise of blasting

Country Status (1)

Country Link
CN (1) CN105446696B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676819A (en) * 2021-10-21 2021-11-19 武汉市聚芯微电子有限责任公司 Soft mute control circuit, soft mute control method and device
US12063454B2 (en) * 2022-06-20 2024-08-13 Realtek Semiconductor Corporation Electronic device and method for transmitting video data and audio data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090208032A1 (en) * 2008-02-15 2009-08-20 Hon Hai Precision Industry Co., Ltd. Pop noise suppression apparatus and audio output system utilizing the same
CN101621280A (en) * 2008-07-04 2010-01-06 伦飞电脑实业股份有限公司 Audio output device for preventing pop sound
CN103702048A (en) * 2013-12-27 2014-04-02 乐视致新电子科技(天津)有限公司 Method and system for eliminating television noise
CN105187963A (en) * 2015-09-22 2015-12-23 青岛歌尔声学科技有限公司 Microphone noise suppression circuit and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090208032A1 (en) * 2008-02-15 2009-08-20 Hon Hai Precision Industry Co., Ltd. Pop noise suppression apparatus and audio output system utilizing the same
CN101621280A (en) * 2008-07-04 2010-01-06 伦飞电脑实业股份有限公司 Audio output device for preventing pop sound
CN103702048A (en) * 2013-12-27 2014-04-02 乐视致新电子科技(天津)有限公司 Method and system for eliminating television noise
CN105187963A (en) * 2015-09-22 2015-12-23 青岛歌尔声学科技有限公司 Microphone noise suppression circuit and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676819A (en) * 2021-10-21 2021-11-19 武汉市聚芯微电子有限责任公司 Soft mute control circuit, soft mute control method and device
CN113676819B (en) * 2021-10-21 2022-01-07 武汉市聚芯微电子有限责任公司 Soft mute control circuit, soft mute control method and device
US12063454B2 (en) * 2022-06-20 2024-08-13 Realtek Semiconductor Corporation Electronic device and method for transmitting video data and audio data

Also Published As

Publication number Publication date
CN105446696B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
US11750963B2 (en) Communication control method, device and system, charging box and wireless earpiece
US11909239B2 (en) Wireless charging dock
CN103222279B (en) Multi-purpose connectors and handheld electronic devices that multiplex headphone jacks into high-definition video and audio interfaces
WO2015165345A1 (en) Transmission method, mobile terminal, multi-channel earphone, and audio playing system
US20120203560A1 (en) Systems and methods for encoding control messages in an audio bitstream
US9070199B2 (en) Sharing a graphics-processing-unit display port
US10268443B2 (en) Earphone status detection method and terminal
US20130328667A1 (en) Remote interaction with siri
TW201418987A (en) Electronic device using Thunder interface, connection method thereof and base device
CN115396520A (en) Control method, control device, electronic equipment and readable storage medium
US20190007764A1 (en) Head-mounted display device and head-mounted display system
CN105446696B (en) A kind of system and method inhibiting noise of blasting
CA2766527C (en) Systems and methods for encoding control messages in an audio bitstream
CN113316057B (en) Headphones, methods, devices and electronic equipment for reducing power consumption
CN115022442A (en) Audio fault time positioning method, audio data storage method and electronic equipment
CN107357547B (en) An audio control method, audio control device and audio equipment
CN108255561B (en) Method and device for processing black screen during page switching and computer readable storage medium
CN102833513B (en) High definition player
CN103974169B (en) Audio processing device and audio processing method
CN106331356B (en) A volume control method and terminal
CN114125131B (en) Channel configuration method and device of audio drive motor, electronic equipment and storage medium
CN217135682U (en) Anti-interference circuit and earphone
CN103853511B (en) Electronic device adopting thunderbolt interface, its connection method and base device
EP4366326A1 (en) Electronic apparatus and controlling method thereof
CN114630065B (en) Audio conversion device and audio processing method for multimedia relay device

Legal Events

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

Effective date of registration: 20201012

Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Patentee after: GoerTek Optical Technology Co.,Ltd.

Address before: International Exhibition Center of wealth 18 No. 266061 Shandong province Qingdao city Laoshan District No. 3 Qinling Mountains Road, building 5 floor

Patentee before: Qingdao GoerTek Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221214

Address after: 266104 No. 500, Songling Road, Laoshan District, Qingdao, Shandong

Patentee after: GOERTEK TECHNOLOGY Co.,Ltd.

Address before: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Patentee before: GoerTek Optical Technology Co.,Ltd.