Audio coding and decoding system
By adopting a design in which the main control module and the selector module share an output signal pin in the audio codec system, the problem of high power consumption of the audio decoder in mobile terminal equipment is solved and the system energy efficiency is improved.
Patent Information
- Application Number
- CN202323438542.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2033-12-15
AI Technical Summary
In mobile terminal equipment, existing audio decoders consume high power when outputting multiple analog electrical signals, and have a large number of pins and complex control logic, resulting in large system size and high power consumption.
Design an audio coding and decoding system, including the main control module, audio coding and decoding module, speakers and headphones. The digital audio signal is converted into an analog electrical signal through the DAC conversion module, and the selector module is used to share an output signal pin to simplify the control logic. , reduce power consumption.
It achieves a reduction in power consumption when outputting multiple analog electrical signals, simplifies the control logic, reduces interactions, and improves the energy efficiency of the system.
Smart Images

Figure CN221728490U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of audio, in particular to an audio encoding and decoding system. Background Art
[0002] The audio and video codec chip is an essential electronic chip in the current semiconductor industry. It is responsible for collecting the sound source, and after analog-to-digital conversion, it can be saved in the form of a binary file in the electronic storage unit. At the same time, it can convert the audio digital information stored in the electronic storage unit into digital-to-analog, and output the analog single signal to the vibration sound-generating device such as the speaker or earphone, thereby restoring the sound.
[0003] In mobile terminal devices, the audio decoder needs to output multiple electrical signals to the sound-generating device, at least two of which are headphones and speakers. The existing technology is to design multiple outputs from the audio and video codec chip, and each channel on the integrated circuit has two pins, which are used to output the electrical signals of the left and right channels respectively. In the case of two channels, the speaker and the headphones, four pins need to be designed to output electrical signals. At the same time, the chip uses logic gates to control which electrical signal is effective and which is not output. If multiple analog electrical signals need to be output, more pins are required. More pins mean a larger size, more complex internal control logic, more interactions are required, and higher power consumption. Utility Model Content
[0004] The main purpose of the utility model is to provide an audio codec system, aiming to solve the problem of high power consumption when multiple analog electrical signals need to be output.
[0005] To achieve the above-mentioned purpose, the utility model proposes an audio codec system, including a main control module, an audio codec module, a speaker, and a headset. The main control module is electrically connected to the audio codec module, the speaker, and the headset. The audio codec module includes a DAC conversion module, a first selector, and a second selector. The DAC conversion module is electrically connected to the first selector and the second selector. The DAC conversion module is used to convert a digital audio signal into an analog electrical signal and output it to the first selector and the second selector. The main control module is used to control the analog electrical signal output by the audio codec module to be output from the speaker or the headset. The first selector is electrically connected to the speaker and the headset, and the second selector is electrically connected to the speaker and the headset.
[0006] In one embodiment, the audio codec module includes an audio data processing module, the audio data processing module is electrically connected to the main control module, and the main control module transmits audio data to the audio data processing module.
[0007] In one embodiment, the earphone includes a MIC module, the MIC module is connected to the main control module, and the MIC module is used to receive analog electrical signals.
[0008] In one embodiment, the MIC module includes a first interface, a first capacitor, a second capacitor, and a third capacitor. The first end of the first capacitor, the first end of the second capacitor, and the first end of the third capacitor are electrically connected to the first end of the first interface, and the second end of the first capacitor, the second end of the second capacitor, and the second end of the third capacitor are grounded.
[0009] In one embodiment, the MIC module further includes a first diode and a second diode, wherein a first end of the first diode is electrically connected to a first end of the first interface, a first end of the second diode is electrically connected to a second end of the first interface, and a second end of the first diode and a second end of the second diode are grounded.
[0010] In one embodiment, the headset further includes a DMIC module, the DMIC module includes a second interface, the second interface is connected to the main control module, and the main control module transmits an analog electrical signal to the second interface.
[0011] In one embodiment, the speaker includes an audio amplifier chip, a fourth capacitor, and a fifth capacitor. The VO1 terminal of the audio amplifier chip is connected to the first end of the fourth capacitor, the VO2 terminal of the audio amplifier chip is connected to the first end of the fifth capacitor, and the second end of the fourth capacitor is connected to the second end of the fifth capacitor and grounded.
[0012] In one embodiment, the audio codec system further includes a detection circuit, which is connected to a main control module and headphones. The main control module is provided with a gpio controller, and the headphones detect the gpio controller interrupted by the main control module through the detection circuit.
[0013] The utility model controls the analog electrical signal output by the audio codec module through the main control module to be output from the speaker or the earphone. The speaker or the earphone generates vibration through the analog electrical signal, and the analog electrical signal is simultaneously connected to one terminal. When the audio codec module is externally connected to the earphone and the speaker, the audio codec module only needs to provide one analog electrical signal and share one output signal pin. The control logic is simple, the interaction is reduced, and the power consumption of the audio codec system is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0015] Figure 1 This is the module schematic diagram of the audio codec system;
[0016] Figure 2 This is the circuit diagram of the audio codec module;
[0017] Figure 3 This is the circuit diagram of the MIC module;
[0018] Figure 4 This is the circuit diagram of the DMIC module;
[0019] Figure 5 The circuit diagram for the speaker;
[0020] Figure 6 This is the detection circuit diagram.
[0021] Description of Figure Numbers:
[0022] 1-main control module, 2-audio codec module, 21-audio data processing module, 22-DAC conversion module, 23-first selector, 24-second selector, 3-earphone, 4-speaker.
[0023] The realization of the purpose, functional features and advantages of the utility model will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0025] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0026] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the utility model, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if the meaning of "and / or" appearing in the full text is to include three parallel schemes, taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the utility model.
[0027] The utility model proposes an audio codec system, comprising a main control module 1, an audio codec module 2, a speaker 4, and a headset 3. The main control module 1 is electrically connected to the audio codec module 2, the speaker 4, and the headset 3. The audio codec module 2 comprises a DAC conversion module 22, a first selector 23, and a second selector 24. The DAC conversion module 22 is electrically connected to the first selector 23 and the second selector 24. The DAC conversion module 22 is used to convert a digital audio signal into an analog electrical signal and output it to the first selector 23 and the second selector 24. The main control module 1 is used to control the analog electrical signal output by the audio codec module 2 to be output from the speaker 4 or the headset 3. The first selector 23 is electrically connected to the speaker 4 and the headset 3. The second selector 24 is electrically connected to the speaker 4 and the headset 3.
[0028] In the embodiment of the present utility model, Figure 1 and Figure 2 As shown, the utility model adopts the main control module 1 to control the analog electrical signal output by the audio codec module 2 to be output from the speaker 4 or the earphone 3. The speaker 4 or the earphone 3 generates vibration through the analog electrical signal, and the analog electrical signal is simultaneously connected to one terminal. When the audio codec module 2 is externally connected to the earphone 3 and the speaker 4, the audio codec module 2 only needs to provide one analog electrical signal and share one output signal pin. The control logic is simple, the interaction is reduced, and the power consumption of the audio codec system is reduced.
[0029] The main control module 1 reads the audio data and sends the audio data to the audio codec module 2. The audio data is filtered, rectified, and gained. The main control module 1 inputs the audio data into the DAC conversion module 22 for digital-to-analog conversion into an analog electrical signal, and checks whether the first selector 23 and the second selector 24 are configured. The main control module 1 determines whether the audio codec module 2 outputs the analog electrical signal to the OUT pin. The first selector 23 outputs to the left earphone 3 or the left speaker 4, and the second selector 24 outputs to the right earphone 3 or the right speaker 4. The first selector 23 and the second selector 24 output analog electrical signals to the left earphone 3 or the right earphone 3, the left speaker 4 or the right speaker 4, which can be adjusted according to actual conditions.
[0030] The first selector 23 and the second selector 24 are MIXER selectors, which are used to mix and control audio signals. The MIXER selector can receive multiple audio sources and mix them into one or more output signals. The audio signal can be precisely controlled and adjusted by adjusting the volume, balance, tone and other parameters of different channels.
[0031] The output pin of the audio codec module 2 is output to the earphone 3 and the speaker 4 at the same time, and the electrical signal will be output to these two sound-generating devices at the same time. The main control module 1 controls the power-on status of the earphone 3 and the speaker 4 through the gpio pin to determine which sound-generating device outputs the sound. In the scenario of mobile terminal devices, since the earphone 3 is not plugged in for a long time, the enable control gpio of the earphone 3 can be removed. When the earphone 3 is not plugged in, the speaker 4 is enabled. When the main control module 1 detects that the earphone 3 is plugged in, the speaker 4 is turned off and the sound is output from the earphone 3.
[0032] The audio codec module 2 includes an audio data processing module 21 . The audio data processing module 21 is electrically connected to the main control module 1 . The main control module 1 transmits audio data to the audio data processing module 21 .
[0033] like Figure 3 The earphone 3 shown includes a MIC module (MIC is a word derived from the abbreviation of Microphone, which refers to a microphone, a device for picking up and transmitting sound, and can convert sound signals into electrical signals). The MIC module is connected to the main control module 1, and the MIC module is used to receive analog electrical signals.
[0034] The MIC module includes a first interface J7107, a first capacitor C7107, a second capacitor C7111, and a third capacitor C7112. The first end of the first capacitor C7107, the first end of the second capacitor C7111, and the first end of the third capacitor C7112 are electrically connected to the first end of the first interface J7107. The second end of the first capacitor C7107, the second end of the second capacitor C7111, and the second end of the third capacitor C7112 are grounded. The first capacitor C7107, the second capacitor C7111, and the third capacitor C7112 filter the analog electrical signal input by the MIC module.
[0035] The MIC module also includes a first diode ED7101 and a second diode ED7102. The first end of the first diode ED7101 is electrically connected to the first end of the first interface J7107, the first end of the second diode ED7102 is electrically connected to the second end of the first interface J7107, the second end of the first diode ED7101 and the second end of the second diode ED7102 are grounded, and the first diode ED7101 and the second diode ED7102 are ESD diodes. ESD diodes (ElectroStaticDischargeDiode) are used to prevent electrostatic discharge from damaging electronic devices. In electronic devices, electrostatic discharge (ESD) may generate high-energy electromagnetic pulses at unpredictable times, causing damage to sensitive electronic components. ESD diodes provide a low-impedance path to guide electrostatic discharge away from sensitive components, thereby protecting them from damage. When an electrostatic discharge event occurs, the ESD diode will quickly turn on, pass and disperse the overvoltage to the ground or other lower potential parts to prevent the voltage from exceeding the rated working voltage of the sensitive component.
[0036] like Figure 4 As shown, the earphone 3 also includes a DMIC module, and the DMIC module includes a second interface J19, and the second interface J19 is connected to the main control module 1. The main control module 1 transmits an analog electrical signal to the second interface J19. The DMIC is a digital microphone with an integrated ADC, so the output is a digital signal, generally a PDM code or an 12S signal.
[0037] like Figure 5 As shown, the speaker 4 includes an audio amplifier chip U35, a fourth capacitor C7121, and a fifth capacitor C7125. The VO1 end of the audio amplifier chip U35 is connected to the first end of the fourth capacitor C7121, the VO2 end of the audio amplifier chip U35 is connected to the first end of the fifth capacitor C7125, the second end of the fourth capacitor C7121 is connected to the second end of the fifth capacitor C7125 and is grounded, and the fourth capacitor C7121 and the fifth capacitor C7125 are used for filtering.
[0038] like Figure 6 As shown, the audio codec system further includes a detection circuit, which is connected to the main control module 1 and the earphone 3. The main control module 1 is provided with a gpio controller. The earphone 3 detects the gpio controller interrupted by the main control module 1 through the HP_DET_H input terminal of the detection circuit. The gpio (General Purpose Input / Output) controller is used to control the input and output of external devices through digital signals. It is usually composed of multiple independent pins, each of which can be configured as input or output, and can send or receive digital signals to the external circuit.
[0039] The above description is only an optional embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. An audio codec system, characterized in that: It includes a main control module, an audio codec module, a speaker, and a headset. The main control module is electrically connected to the audio codec module, the speaker, and the headset. The audio codec module includes a DAC conversion module, a first selector, and a second selector. The DAC conversion module is electrically connected to the first selector and the second selector. The DAC conversion module is used to convert a digital audio signal into an analog electrical signal and output it to the first selector and the second selector. The main control module is used to control the analog electrical signal output by the audio codec module to be output from the speaker or the headset. The first selector is electrically connected to the speaker and the headset, and the second selector is electrically connected to the speaker and the headset.
2. The audio codec system according to claim 1, characterized in that: The audio codec module includes an audio data processing module, the audio data processing module is electrically connected to the main control module, and the main control module transmits audio data to the audio data processing module.
3. The audio codec system according to claim 1, wherein: The earphone comprises a MIC module, the MIC module is connected to the main control module, and the MIC module is used to receive analog electrical signals.
4. The audio codec system according to claim 3, characterized in that: The MIC module includes a first interface, a first capacitor, a second capacitor, and a third capacitor. The first end of the first capacitor, the first end of the second capacitor, and the first end of the third capacitor are electrically connected to the first end of the first interface, and the second end of the first capacitor, the second end of the second capacitor, and the second end of the third capacitor are grounded.
5. The audio codec system according to claim 3, characterized in that: The MIC module further includes a first diode and a second diode, wherein a first end of the first diode is electrically connected to a first end of the first interface, a first end of the second diode is electrically connected to a second end of the first interface, and second ends of the first diode and the second diode are grounded.
6. The audio codec system according to claim 1, characterized in that: The earphone also includes a DMIC module, the DMIC module includes a second interface, the second interface is connected to the main control module, and the main control module transmits an analog electrical signal to the second interface.
7. The audio codec system according to claim 1, wherein: The speaker includes an audio amplifier chip, a fourth capacitor, and a fifth capacitor. The VO1 end of the audio amplifier chip is connected to the first end of the fourth capacitor, the VO2 end of the audio amplifier chip is connected to the first end of the fifth capacitor, and the second end of the fourth capacitor is connected to the second end of the fifth capacitor and is grounded.
8. The audio codec system according to claim 1, wherein: The audio codec system further comprises a detection circuit, which is connected to a main control module and earphones. The main control module is provided with a gpio controller, and the earphones detect the gpio controller interrupted by the main control module through the detection circuit.
