CN112672253A - PCM data modulation method and device - Google Patents

PCM data modulation method and device Download PDF

Info

Publication number
CN112672253A
CN112672253A CN202011449339.1A CN202011449339A CN112672253A CN 112672253 A CN112672253 A CN 112672253A CN 202011449339 A CN202011449339 A CN 202011449339A CN 112672253 A CN112672253 A CN 112672253A
Authority
CN
China
Prior art keywords
pcm data
pcm
data
delta
bit
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
CN202011449339.1A
Other languages
Chinese (zh)
Other versions
CN112672253B (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.)
Rockchip Electronics Co Ltd
Original Assignee
Rockchip Electronics 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 Rockchip Electronics Co Ltd filed Critical Rockchip Electronics Co Ltd
Priority to CN202011449339.1A priority Critical patent/CN112672253B/en
Publication of CN112672253A publication Critical patent/CN112672253A/en
Application granted granted Critical
Publication of CN112672253B publication Critical patent/CN112672253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A PCM data modulation method and device, wherein the method includes the following steps, carry on the interpolation resampling to the PCM data under the mode of oversampling rate, carry on Delta-Sigma modulation to the audio frequency after interpolation resampling, arrange the 1-bit dataflow after Delta-Sigma modulation according to the high order first, fill to the bit position in I2S/PCM data register and export sequentially. Through the scheme, the 1-bit data stream is filled and output according to the I2S data format by converting PCM data into a Delta-Sigma modulation algorithm; the resampling interpolation to Delta Sigma modulation output meets the operating slot requirements for each audio frame. The I2S/PCM interface can realize the output of 1bit data bit, does not need to be externally hung with a more expensive and complicated audio Codec chip, saves the cost and has better practicability.

Description

PCM data modulation method and device
Technical Field
The invention relates to the field of audio modulation, in particular to a modulation processing method for improving PCM data compatibility.
Background
At present, the mainstream embedded consumer products are more and more based on the Linux operating system, and the carried main control chip usually does not have the integrated audio Codec IP function, and only provides an I2S/PCM digital audio interface to be connected to an external Codec audio chip for working. Some products which are not high in audio playing tone quality requirement but sensitive to cost are externally connected with a Codec chip, so that extra material cost is brought, the PCB wiring is increased, and the difficulty of debugging the Codec chip is increased. Like the prior art: the disclosed document is a document of https:// my. oschira. net/u/4277049/blog/3638113, and the document is used for realizing oversampling on an interface of I2S on an RTOS system, and needs to forcedly improve the DATA rate and the sampling rate of hardware output, so that the requirement on the clock accuracy of a chip is higher. Another prior art, such as CN201310636558, is a solution for implementing a method and apparatus for implementing a digital speaker system based on multi-bit delta-sigma modulation, which is not utilized on linux platform and only can perform multi-bit output.
Disclosure of Invention
Therefore, a new PCM data modulation method needs to be provided, which can achieve the purpose of reducing and improving the compatibility of PCM data under the LINUX platform;
in order to achieve the above object, the inventor provides a PCM data modulation method, which includes the following steps of performing interpolation resampling on PCM data in an oversampling rate mode, performing Delta Sigma modulation on audio subjected to interpolation resampling, arranging a 1-bit data stream subjected to Delta Sigma modulation in a high-order-first mode, and sequentially filling the data stream into a bit output in an I2S/PCM data register.
Specifically, the method further comprises the steps of establishing an ALSA plug-in unit in the linux user layer, and performing interpolation resampling and Delta-Sigma modulation through the ALSA plug-in unit.
Specifically, the I2S/PCM data is in stereo format, and the PCM data bit width is 32bit or 64 bit.
A PCM data modulation device comprises a resampling module, a modulation module and a register module, wherein the resampling module is used for carrying out interpolation resampling on PCM data in an oversampling rate mode, the modulation module is used for carrying out Delta-Sigma modulation on audio after interpolation resampling, and the register module is used for arranging a 1-bit data stream after Delta-Sigma modulation according to a high-order-first mode and sequentially filling the data stream into a bit position in a data register of I2S/PCM for output.
Specifically, the system further comprises a plug-in establishing module, wherein the plug-in establishing module is used for establishing an ALSA plug-in a linux user layer, and interpolation resampling and Delta-Sigma modulation are carried out through the ALSA plug-in.
Specifically, the I2S/PCM data is in stereo format, and the PCM data bit width is 32bit or 64 bit.
Optionally, an I2S/PCM audio interface is further included, the I2S/PCM audio interface being for receiving output data of the register module.
Through the scheme, the 1-bit data stream is filled and output according to the I2S data format by converting PCM data into a Delta-Sigma modulation algorithm; the resampling interpolation to Delta Sigma modulation output meets the operating slot requirements for each audio frame. The I2S/PCM interface can realize the output of 1bit data bit, does not need to be externally hung with a more expensive and complicated audio Codec chip, saves the cost and has better practicability.
Drawings
Fig. 1 is a flowchart of a PCM data modulation method according to an embodiment of the present invention;
fig. 2 is a block diagram of a PCM data modulation apparatus according to an embodiment of the present invention.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1, a PCM data modulation method includes a step S101 of performing interpolation resampling on PCM data in an oversampling rate mode, and operating in a higher oversampling rate mode, so that the requirement for an analog anti-aliasing filter can be more easily achieved. S102, the audio after interpolation resampling is subjected to Delta-Sigma modulation, after the Delta-Sigma modulation, noise is shaped, and the noise of a low-frequency part is pushed to a high-frequency part more intensively, so that the method has a better fidelity effect. S103, arranging the 1-bit data stream modulated by Delta-Sigma in a high-order-first mode, and sequentially filling the data stream into a bit position in a data register of I2S/PCM for output. Specifically, the I2S/PCM data is in stereo format, and the PCM data bit width is 32bit or 64 bit. In this way, 32 or 64 times oversampled output may be equivalently achieved, and the I2S/PCM drive clock may remain unchanged. In some further embodiments, the I2S/PCM data is output through an I2S/PCM audio interface, and after passing through an analog low-pass filter and an analog power amplifier, the sound can be played on a loudspeaker. After passing through the analog low-pass filter, quantization noise in most low frequency bands can be eliminated, and therefore the overall signal-to-noise ratio is improved. The scheme has the technical effects of low cost and compatibility with the chip of the Linux kernel.
In some other specific embodiments, the method further includes the step of establishing an ALSA plug-in (abbreviation of Advanced Linux Sound Architecture plug-in) on the Linux user layer, which provides support for audio and MIDI (Musical Instrument Digital Interface) on the Linux operating system, and in this embodiment, we can perform interpolation resampling and Delta-Sigma modulation through the ALSA plug-in, so that the method can be better applied to a hardware chip of the Linux kernel.
In the embodiment shown in fig. 2, a PCM data modulation apparatus is shown, which includes a resampling module 200, a modulation module 201, and a register module 202, where the resampling module is configured to perform interpolation resampling on PCM data in an oversampling rate mode, the modulation module is configured to perform Delta-Sigma modulation on interpolated and resampled audio, and the register module is configured to arrange a 1-bit data stream, which is subjected to Delta-Sigma modulation, in a high-order-first manner, and sequentially fill bit outputs into a data register of I2S/PCM.
Specifically, the system further comprises a plug-in establishing module 203, wherein the plug-in establishing module is used for establishing an ALSA plug-in the linux user layer, and performing interpolation resampling and Delta-Sigma modulation through the ALSA plug-in.
Specifically, the I2S/PCM data is in stereo format, and the PCM data bit width is 32bit or 64 bit.
Optionally, an I2S/PCM audio interface is further included, the I2S/PCM audio interface being for receiving output data of the register module.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.

Claims (7)

1. A PCM data modulation method is characterized by comprising the following steps of carrying out interpolation resampling on PCM data in an oversampling rate mode, carrying out Delta-Sigma modulation on audio subjected to interpolation resampling, arranging a 1-bit data stream subjected to Delta-Sigma modulation according to a high-order-first mode, and sequentially filling bit positions in a data register of I2S/PCM to output.
2. The PCM data modulation method according to claim 1, further comprising the step of establishing an ALSA plug-in at the linux user layer, and performing interpolation resampling and Delta-Sigma modulation through the ALSA plug-in.
3. A PCM data modulation method according to claim 1 wherein I2S/PCM data is in stereo format standard, the PCM data bit width being 32bit or 64 bit.
4. The device for modulating the PCM data is characterized by comprising a resampling module, a modulation module and a register module, wherein the resampling module is used for carrying out interpolation resampling on the PCM data in an oversampling rate mode, the modulation module is used for carrying out Delta-Sigma modulation on audio subjected to interpolation resampling, and the register module is used for arranging a 1-bit data stream subjected to Delta-Sigma modulation according to a high-order-priority mode and sequentially filling the data stream into a bit position in an I2S/PCM data register for outputting.
5. The PCM data modulation device according to claim 4, further comprising a plug-in establishing module, wherein the plug-in establishing module is used for establishing an ALSA plug-in the linux user layer, and performing interpolation resampling and Delta-Sigma modulation through the ALSA plug-in.
6. A PCM data modulation according to claim 4, wherein I2S/PCM data is in stereo format, PCM data bit width is 32bit or 64 bit.
7. A PCM data modulation according to claim 4 and further comprising an I2S/PCM audio interface, said I2S/PCM audio interface being adapted to receive the output data of the register block.
CN202011449339.1A 2020-12-09 2020-12-09 PCM data modulation method and device Active CN112672253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011449339.1A CN112672253B (en) 2020-12-09 2020-12-09 PCM data modulation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011449339.1A CN112672253B (en) 2020-12-09 2020-12-09 PCM data modulation method and device

Publications (2)

Publication Number Publication Date
CN112672253A true CN112672253A (en) 2021-04-16
CN112672253B CN112672253B (en) 2022-06-21

Family

ID=75402266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011449339.1A Active CN112672253B (en) 2020-12-09 2020-12-09 PCM data modulation method and device

Country Status (1)

Country Link
CN (1) CN112672253B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697401A (en) * 2022-03-14 2022-07-01 广州广哈通信股份有限公司 Audio data transmission method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6405092B1 (en) * 1997-09-29 2002-06-11 William Vincent Oxford Method and apparatus for amplifying and attenuating digital audio
CN101640055A (en) * 2008-07-30 2010-02-03 索尼株式会社 Signal processing device, signal processing method, and signal level display device
CN103107813A (en) * 2012-11-13 2013-05-15 长沙景嘉微电子股份有限公司 Voice frequency digital-to-analog converter (DAC) circuit with Class-AB output
CN103944575A (en) * 2014-04-21 2014-07-23 中国科学院半导体研究所 Oversampling 64-time sigma-delta modulation circuit with effective bit being 18
CN105208021A (en) * 2015-09-14 2015-12-30 英特格灵芯片(天津)有限公司 Data communication method and system
KR101619879B1 (en) * 2014-12-22 2016-05-11 주식회사 아이리버 Apparatus for playing dsd audio file using programmable device and method thereof
US20160309274A1 (en) * 2013-12-02 2016-10-20 Suzhou Sonavox Electronics Co., Ltd. Implementation method and device of multi-bit modulation-based digital speaker system
CN107205206A (en) * 2016-03-17 2017-09-26 北京卓锐微技术有限公司 Microphone test device, system and method for testing
CN206962798U (en) * 2017-06-20 2018-02-02 上海工程技术大学 A kind of over-sampling △ ∑ digital analog converters
CN111901115A (en) * 2020-07-27 2020-11-06 合肥工业大学 SIMON algorithm encryption circuit in multi-configuration mode

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6405092B1 (en) * 1997-09-29 2002-06-11 William Vincent Oxford Method and apparatus for amplifying and attenuating digital audio
CN101640055A (en) * 2008-07-30 2010-02-03 索尼株式会社 Signal processing device, signal processing method, and signal level display device
CN103107813A (en) * 2012-11-13 2013-05-15 长沙景嘉微电子股份有限公司 Voice frequency digital-to-analog converter (DAC) circuit with Class-AB output
US20160309274A1 (en) * 2013-12-02 2016-10-20 Suzhou Sonavox Electronics Co., Ltd. Implementation method and device of multi-bit modulation-based digital speaker system
CN103944575A (en) * 2014-04-21 2014-07-23 中国科学院半导体研究所 Oversampling 64-time sigma-delta modulation circuit with effective bit being 18
KR101619879B1 (en) * 2014-12-22 2016-05-11 주식회사 아이리버 Apparatus for playing dsd audio file using programmable device and method thereof
CN105208021A (en) * 2015-09-14 2015-12-30 英特格灵芯片(天津)有限公司 Data communication method and system
CN107205206A (en) * 2016-03-17 2017-09-26 北京卓锐微技术有限公司 Microphone test device, system and method for testing
CN206962798U (en) * 2017-06-20 2018-02-02 上海工程技术大学 A kind of over-sampling △ ∑ digital analog converters
CN111901115A (en) * 2020-07-27 2020-11-06 合肥工业大学 SIMON algorithm encryption circuit in multi-configuration mode

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697401A (en) * 2022-03-14 2022-07-01 广州广哈通信股份有限公司 Audio data transmission method

Also Published As

Publication number Publication date
CN112672253B (en) 2022-06-21

Similar Documents

Publication Publication Date Title
JP4669394B2 (en) Method and apparatus for extending the bandwidth of an audio signal
US7847716B2 (en) Asynchronous sigma-delta digital-analog converter
US6438434B1 (en) Mixing, coding and decoding devices and methods
JP2010020356A (en) Apparatus for extending band of audio signal
US9990173B2 (en) Mixing of single-bit and multi-bit audio signals for simultaneous output
JPH06232755A (en) Signal processing system and processing method
WO2000041311A1 (en) Circuits, systems and methods for processing data in a one-bit format
JP2006303618A (en) Speaker driving system
CN112672253B (en) PCM data modulation method and device
US8325073B2 (en) Performing enhanced sigma-delta modulation
CN116913294B (en) PCM signal processing method and device, digital audio system and electronic equipment
JP2008187375A (en) Analog/digital converter, and electronic apparatus employing it
US20170303032A1 (en) Over-sampling digital processing path that emulates nyquist rate (non-oversampling) audio conversion
US7064698B2 (en) Circuit arrangement and method for sigma-delta conversion with reduced idle tones
US10972123B1 (en) Signal processing structure
JP3312538B2 (en) Sound signal processing device
TWI427619B (en) Audio mixer and method thereof
JP3312539B2 (en) Sound signal processing device
WO2020003745A1 (en) Audio device, audio reproduction method, and audio reproduction program
JP2003208186A (en) Signal processor and signal processing method
JP3339320B2 (en) Digital signal processor
JPH09321630A (en) Mixing circuit, coder and coding decoding device
JP5474145B2 (en) Fade processing device for DSD signal in audio products
JP3384262B2 (en) Audio data input method
JP2009088924A (en) Method and device for modulating signal, electronic device and signal modulating program

Legal Events

Date Code Title Description
PB01 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