CN112218020B - Audio data transmission method and device for multi-channel platform - Google Patents

Audio data transmission method and device for multi-channel platform Download PDF

Info

Publication number
CN112218020B
CN112218020B CN201910659488.1A CN201910659488A CN112218020B CN 112218020 B CN112218020 B CN 112218020B CN 201910659488 A CN201910659488 A CN 201910659488A CN 112218020 B CN112218020 B CN 112218020B
Authority
CN
China
Prior art keywords
audio
data
channel
audio data
channels
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
CN201910659488.1A
Other languages
Chinese (zh)
Other versions
CN112218020A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual 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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to PCT/CN2020/070929 priority Critical patent/WO2021004049A1/en
Priority to PCT/CN2020/070902 priority patent/WO2021004048A1/en
Priority to PCT/CN2020/070890 priority patent/WO2021004046A1/en
Priority to PCT/CN2020/070887 priority patent/WO2021004045A1/en
Priority to PCT/CN2020/070891 priority patent/WO2021004047A1/en
Publication of CN112218020A publication Critical patent/CN112218020A/en
Application granted granted Critical
Publication of CN112218020B publication Critical patent/CN112218020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/60Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals
    • H04N5/607Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals for more than one sound signal, e.g. stereo, multilanguages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention relates to the technical field of multimedia, in particular to a method and a device for transmitting audio data of a multi-channel platform, wherein the method comprises the following steps: receiving mixed audio data, and analyzing and identifying the mixed audio data to obtain audio data of a plurality of sound channels; processing the audio data of a plurality of sound channels, and placing the audio data of more than two sound channels into one audio channel according to a preset combination arrangement mode to generate audio coding data; outputting all audio coding data and combined arrangement information through more than two paths of audio channels; receiving all audio coding data, arranging the information according to the combination, decoding and restoring the received audio coding data to obtain audio data of a plurality of sound channels; the invention puts the audio data of more than three sound channels into one I2S audio channel, so that the machine core end can support the transmission of more than eight sound channel audio data, and the requirement on multi-channel audio playing is well met.

Description

Audio data transmission method and device for multi-channel platform
Technical Field
The invention relates to the technical field of multimedia, in particular to a multi-channel platform audio data transmission method and a multi-channel platform audio data transmission device.
Background
With the economic development of society, people have higher and higher requirements on the playing effect of audio. In order to seek better sound effect, the adoption of multi-channel surround playing is a common audio playing mode nowadays; therefore, most of the existing audio source files contain audio data of multiple channels.
However, the core end of the existing television equipment only supports three paths of I2S audio channels, and audio data are transmitted to the power amplifier equipment through the three paths of I2S audio channels; according to the existing audio processing mode, the left and right channels of each I2S audio channel respectively transmit audio data of one channel, that is, one I2S audio channel on the existing television equipment can transmit audio data of two channels, so the core end of the television equipment can transmit audio data of six channels at most, which cannot meet the requirements of the multi-channel audio surround system environment.
Disclosure of Invention
To overcome the above-mentioned drawbacks, it is an object of the present invention to provide a method and apparatus for implementing multi-channel audio output on an existing television chip.
The purpose of the invention is realized by the following technical scheme:
the invention relates to a multi-channel platform audio data transmission method, which comprises the following steps:
receiving mixed audio data, and analyzing and identifying the mixed audio data to obtain audio data of each sound channel;
processing the audio data of each sound channel, and placing the audio data of more than two sound channels into one audio channel according to a preset combination arrangement mode;
outputting the audio data and the combined arrangement information of all the sound channels through more than two paths of audio channels;
and receiving audio data in all audio channels, decoding and restoring the received audio data according to the combined arrangement information to obtain the audio data of each channel.
The invention relates to an audio data transmission device of a multi-channel platform, which comprises:
a main chip and an audio co-processor chip, the main chip comprising:
the decoder is used for receiving mixed audio data, analyzing and identifying the mixed audio data and obtaining audio data of each sound channel;
the re-encoder is connected with the decoder and used for processing the audio data of each sound channel and placing the audio data of more than two sound channels into one sound channel according to a preset combination arrangement mode;
the number of the audio channels is more than two, and each audio channel is connected with the recoder and used for outputting audio data and combined arrangement information of all the sound channels;
the audio coprocessor chip is connected with all audio channels and used for receiving audio data in all audio channels, decoding and restoring the received audio data according to the combined arrangement information to obtain the audio data of each channel.
The invention arranges the received audio data of a plurality of sound channels and arranges the audio data of more than three sound channels in one I2S audio channel, so that the transmission of more than eight sound channel audio data can be supported on the core end of the television equipment, and the requirement of playing multi-channel audio is well met.
Drawings
For the purpose of easy explanation, the present invention will be described in detail with reference to the following preferred embodiments and the accompanying drawings.
FIG. 1 is a schematic diagram of the distribution of speakers of a television apparatus;
FIG. 2 is a schematic flowchart illustrating an embodiment of a method for transmitting audio data of a multi-channel platform according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of the method for transmitting audio data of a multi-channel platform according to the present invention;
FIG. 4 is a schematic diagram illustrating the operation of data acquisition in a second embodiment of the method for transmitting audio data using a multi-channel platform according to the present invention;
FIG. 5 is a schematic diagram illustrating the operation of data recovery in a second embodiment of the method for transmitting audio data using a multi-channel platform according to the present invention;
FIG. 6 is a schematic diagram illustrating the operation principle of data acquisition in a third embodiment of the method for transmitting audio data of a multi-channel platform according to the present invention;
FIG. 7 is a flowchart illustrating a fourth embodiment of a method for transmitting audio data of a multi-channel platform according to the present invention;
FIG. 8 is a schematic diagram illustrating the operation of data acquisition in a fourth embodiment of the method for transmitting audio data on a multi-channel platform according to the present invention;
FIG. 9 is a schematic diagram illustrating the operation of data recovery in a fourth embodiment of the method for transmitting audio data using a multi-channel platform according to the present invention;
FIG. 10 is a schematic diagram of a logical structure of an audio data transmission apparatus for multi-channel platform according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description of the present invention, it should be noted that the terms "mounted," "connected," and "connected" are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected unless otherwise explicitly stated or limited. Either mechanically or electrically. Either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Referring to fig. 1, in the present invention, a conventional 5.1.2 eight-channel surround playing system can be formed by a multi-channel surround sound system installed in the television apparatus, that is, a speaker system installed with a left channel L, a right channel R, a left surround SL, a right surround SR, a left sky TOPL, a right sky TOPR, a Center, and a subwoofer (not shown) in the television apparatus; in practical application, the number of external speakers can be increased appropriately according to the number of channels of the audio data, so as to form a multi-channel surround playing system.
The following describes a method for transmitting audio data of a multi-channel platform according to the present invention by taking a television device as an example, please refer to fig. 2, in which the method includes:
s101, identifying and obtaining audio data of each sound channel
Receiving mixed audio data sent by an external sound source, and analyzing and identifying the mixed audio data to obtain audio data of each sound channel; the mixed audio data comprises: a left channel L, a right channel R, a left surround SL, a right surround SR, a left sky TOPL, a right sky TOPR, a Center, and a subwoofer Woofer; audio data of the eight channels; here, the decoder decodes the mixed audio data, and then identifies the decoded audio data respectively to obtain audio data of eight channels respectively.
S102, combining the audio data to generate audio coded data
Processing audio data of each sound channel by Dynamic Range Control (DRC) and cloud optimization-based storage, and placing the audio data of more than two sound channels into one sound channel according to a preset combination arrangement mode to generate audio coding data; for example, audio data of a left channel L, a right channel R, a left surround SL and three channels are integrated into one audio channel I2S0 to obtain one audio coded data, and audio data of a right surround SR, a left sky TOPL and a right sky TOPR are integrated into the other audio channel I2S1 to obtain the other audio coded data. Or integrating the left channel L, the right channel R and a part of the audio data of the left surround SL into an audio channel I2S0 to obtain an audio coding data; and the other part of the audio data of the left surround SL is integrated into the audio channel of the other path and transmitted through the audio channel of the other path.
S103, transmitting multi-channel audio data by using more than two audio channels
Outputting all audio coding data and combined arrangement information through more than two paths of audio channels; the relevant principle of I2S audio channel transmission is as follows:
first, the I2S signal includes: MCLK, BCLK, SDATA, WS
(1) The serial clock BCLK has 1 pulse for each bit of the digital audio.
BCLK frequency =2 × sampling frequency × number of sampling bits =2 × 48khz × 16bit =1.536mhz
(2) The frame clock WS is used to switch the data of the left and right channels. WS of "1" indicates that data for the left channel is being transmitted, and WS of "0" indicates that data for the right channel is being transmitted. The frequency of WS is equal to the sampling frequency.
(3) Serial data SDATA is audio data represented by two's complement.
(4) The MCLK master clock, i.e. the system clock, is intended to enable better synchronization between the systems, the frequency of the MCLK being 256 or 384 times the sampling frequency, 48khz 256=12.288mhz. Regardless of how many bits of valid data are in the I2S format signal, the most significant bit of data always appears at the WS change, i.e., the 2 nd BCLK pulse after the start of a frame. This allows the number of significant bits to be different between the receiving side and the transmitting side. If the number of effective digits which can be processed by the receiving end is less than that of the transmitting end, redundant low-order data in the data frame can be abandoned; if the number of the significant digits which can be processed by the receiving end is more than that of the transmitting end, the rest bits can be self-complemented. The synchronization mechanism facilitates interconnection of digital audio devices without causing data skew.
With the development of technology, under a unified I2S interface, a variety of different data formats have emerged. Based on the position of SDATA data relative to WS and BCLK, left alignment, I2S format and right alignment are distinguished. In order to ensure correct transmission of the digital audio signal, the transmitting end and the receiving end should use the same data format and length. Of course, the data length may be different for the I2S format.
The field (channel) select (WS) command select line indicates the channel being transmitted.
WS = O, indicating that data for the left channel is being transmitted.
WS =1, indicating that data for the right channel is being transmitted.
WS may change on the rising or falling edge of the serial clock and the WS signal need not necessarily be symmetric. At the slave side WS changes on the rising edge of the clock signal. WS always changes one clock cycle before the most significant bit transfer, which allows the slave device to get time to synchronize with the serial data being transferred and allows the receiving end to store the current command and clear space for the next command.
S104, obtaining the audio data of each sound channel according to the combined arrangement information
Receiving all audio coding data, and decoding and restoring the received audio coding data according to the combined arrangement information to obtain audio data of each sound channel; because the combination arrangement information records the position of the audio data of each sound channel in the audio channel and the audio coding data, different parts of the audio coding data in each audio channel are intercepted according to the combination arrangement information, and the audio data of the corresponding sound channel can be obtained, such as: the audio data of the left channel L is placed in the 16bit of the front end of the left channel of the I2S0, and then the 16bit of the front end of the left channel of the I2S0 is intercepted, so that the audio data of the left channel L can be obtained.
Because the I2S architecture modes in different chip schemes are different, four groups of signals including MCLK, BCLK, WS and Data exist in an I2S protocol, wherein MCLK is a main clock signal. The BCLK clock signal, WS channel selection, data are channel Data, so based on the difference in chip architecture, the form of I2S transmission is also different, in this embodiment, two reception schemes can be adopted:
the first receiving mode is as follows:
the method comprises the following steps: when the chip I2S outputs a path of CLK, the receiving end adopts a mode of edge folding and edge unfolding.
The I2S output channels of different chips are different, when the 2 paths of I2S output at the core end share one path of MCLK, BCLK and WS, namely one path of CLK is collected, the one path of CLK is sent to the audio coprocessor chip by the core end, the audio coprocessor chip collects the audio data of a plurality of sound channels sent by the core end according to different coding arrangement forms according to the one path of CLK, the sampling rates are different, and because the audio data are simultaneously sent to the receiving end, the audio coprocessor chip receives the audio data and simultaneously disassembles the audio data according to a multi-channel data coding sequence provided by the core end.
However, if the 3 paths of I2S of the core chip share one path of CLK, in the data transmission process, once the CLK shared by the I2S fails, the received data of the 3 paths of I2S data transmission will be mistaken, and there may be a case of abnormal sound, where the CLK fails: software delays, interference of peripheral signals, hardware circuitry, etc.
Therefore, the present embodiment provides another receiving method, which is the second receiving method:
the method comprises the following steps: firstly, after all the 3 paths of I2S data are processed, the data are simultaneously sent; then initializing and sending new sound, collecting the first bit of 3 paths of initialization sound, using the first bit effective signal as MCLK of waiting sound, and using 3 paths of CLK to respectively send data due to the sharing of 3 paths of CLK, thus greatly reducing data error caused by abnormality of one path of CLK.
Because the main chip of the existing television equipment can only output 3 paths of I2S data at most, namely, the transmission of audio data of 6 sound channels is realized at most, and the output of the audio data of 8 sound channels is realized in the invention, the audio data of 8 sound channels is recoded in the scheme to obtain the audio coding data of 6 sound channels. Correspondingly, the 6-channel audio coding data is transmitted to an audio coprocessor chip, and the chip can decode and restore the 6-channel audio coding data into 8-channel audio data according to the coding rule of the recoder and transmit the 8-channel audio data to a power amplifier, so that the effect of multi-channel output is realized.
The following describes a method for transmitting audio data of a multi-channel platform according to an embodiment of a working method that adjusts a sampling bit width without adjusting a sampling frequency, that is, a working method that keeps a sampling frequency at 48KHZ and adjusts an original sampling bit width from 16 bits to 24 bits, with reference to fig. 3 to 5, which includes:
s201, identifying and obtaining audio data of each sound channel
Receiving mixed audio data sent by an external sound source, and analyzing and identifying the mixed audio data to obtain audio data of each sound channel; the mixed audio data comprises: a left channel L, a right channel R, a left surround SL, a right surround SR, a left sky TOPL, a right sky TOPR, a Center, and a subwoofer Woofer; audio data of the eight channels; here, the decoder decodes the mixed audio data, and then identifies the decoded audio data respectively to obtain audio data of eight channels respectively.
S202, renumbering the audio data
Splitting audio data of a preset sound channel, and renumbering the audio data of all the sound channels; the method comprises the following steps: renumbering the decoded audio data of 8 channels, wherein the renumbering is respectively performed on the audio data of the cache1: l (16 bit), cache2: r (16 bit), cache3: LS (16 bit), cache4: RS (16 bit), cache5: FTL (16 bit), cache6: FTR (16 bit), cache7: SWH (8 bit high) Cache8: SWL (low 8 bit), cache9: CH (8 bit high), cache10: CL (low 8 bit) storing the packet data into the buffer, and calling the data in the bottom buffer into the stack by driving, performing data arrangement as shown in fig. 4, and transmitting out through I2SData by BCLK clock; in order to avoid the influence on the sound effect experience, the audio data of the secondary channel, such as the center tone and the sub-bass, are generally classified, which has the advantage that when the CLK is interfered or abnormal, the acquired main channel and surround sound are not lost or wrong.
S203, adjusting the sampling bit width to generate audio coded data
Changing the sampling bit width of one audio coding data in the audio channel, and according to the changed sampling bit width, placing the audio data of the corresponding number of sound channels into one audio coding data; the method comprises the following steps: the original way of I2S output 16bit @48Khz audio coding data is changed into 24bit @48KHZ audio coding data, in the embodiment, the sampling frequency is kept unchanged, the sampling bit width is changed, and the original 16bit is changed into 24bit; taking an I2S 2ch path as an example, left channel data is collected when WS (LRCK) =0, right channel data is collected when WS (LRCK) =1, and the WS can collect left and right channel data of 32bit at most because one I2S audio channel can support bit width of 32bit at most; in the embodiment, the audio data of Ch0 channel of 16bit is placed in the left channel of I2S0, and the audio data of Ch2 channel of 16bit is placed in the right channel of I2S 0; audio data of the Ch1 sound channel is disassembled into 2 8-bit parts, and then the 2-bit parts are respectively placed in a left sound channel and a right sound channel in the I2S 0; therefore, the left and right channels in I2S0 are both 24-bit wide.
S204, judging whether audio coded data are generated all the time
Caching the generated audio coding data, judging whether all audio coding data are generated in all audio channels needing to be transmitted, if all audio coding data are generated, performing step S205, and outputting all audio coding data and combined arrangement information through the audio channels; and if the audio coded data are not generated, waiting that all the audio channels needing to be transmitted generate the audio coded data.
The internal structure of the output 3I 2S chip is that each group of I2S has a separate MCLK, WS, BCK and Data, but more importantly, the MCLK synchronization of the 3I 2S chips is ensured.
In this embodiment, a work mode of waiting for transmission is adopted, that is, after all the 3 paths of I2S data are processed, the data are transmitted at the same time; initializing the sound, collecting the first bit of 3 paths of initialization sound, and taking the first bit valid signal as MCLK of waiting sound. 3 paths of CLK share, and 3 paths of CLK are used for respectively acquiring and transmitting data, so that data errors caused by the abnormity of a certain path of CLK are greatly reduced.
S205, transmitting multi-channel audio data by using three audio channels
Outputting all audio coding data and combined arrangement information through three audio channels; each audio channel can transmit three paths of audio data, so in the embodiment, the audio data of 9 sound channels can be transmitted at most; when the audio data to be transmitted is 8 channels, the audio data of one channel may be inserted into each of the left and right channels of one channel of audio channel without inserting the split audio data, as shown in fig. 4.
S206, receiving and caching all audio coding data
And receiving all audio coding data, and buffering all the received audio data. The method comprises the following steps: the main chip transmits all the 24-bit data in the 3 paths of I2S audio channels to the audio coprocessor chip, the audio coprocessor chip does not perform simultaneous collection and disassembly, and the audio coprocessor chip caches the 24-bit data in the buffer;
the chip end of the main chip converts the audio data of 8 channels into the coding arrangement mode of the coding data of 6 channels and provides the coding arrangement mode to the audio coprocessor chip;
s207, obtaining audio data of each sound channel according to the combined arrangement information
And according to the combination arrangement information, intercepting audio data with a preset sampling bit width from a preset position in the audio coding data, and adding attribute information which is a corresponding sound channel to the intercepted audio data. After the three groups of data are buffered, because a clock signal exists in the chip end of the audio coprocessor, the first bit of 3 paths of data is respectively collected as an effective MCLK signal, the first 16 bits of effective data of 24 bits of data are collected, and the 16 bits of effective data are combined to obtain audio data of a main sound channel, surround sound and upper sound.
Acquiring 3 paths of 24-bit first-order effective data as effective MCLK signals, acquiring 8-bit data after the 24-bit data, and performing data combination again to obtain middle-set tone, heavy bass and other audio data
And the restored original multi-channel 5.1.2 data is transmitted to a power amplifier end through 4 paths of I2S, so that the aim of multi-channel sound effect is fulfilled.
Referring to fig. 6, in another embodiment, the sampling bit width may be adjusted from 16bit to 32bit without adjusting the sampling frequency, so that 4 channels of audio signals may be transmitted in one channel of I2S audio channel, the encoding in this manner may ensure that 2 channels of I2S support at most 8 channels of audio data, all the multiple channels of audio data are transmitted to the co-audio processor, the core end notifies the co-audio processor of the encoding manner, the co-audio processor recovers the 2 channels of I2S input audio data, and transmits the recovered multiple channels of I2S to the corresponding power amplifier chips respectively through its own multiple channels of I2S, so as to output 5.1.2 sound effects. In the present embodiment, only 2I 2S audio channels need to be utilized, which has good scalability.
The following describes a method for transmitting audio data of a multi-channel platform according to an embodiment of a working method that adjusts a sampling frequency without adjusting a sampling bit width, that is, a working method that keeps a sampling bit width of 16 bits and adjusts an original sampling frequency from 48KHz to 96KHz, with reference to fig. 7 to 9, which includes:
s501, identifying and obtaining audio data of each sound channel
Receiving mixed audio data sent by an external sound source, and analyzing and identifying the mixed audio data to obtain audio data of each sound channel; the mixed audio data comprises: a left channel L, a right channel R, a left surround SL, a right surround SR, a left sky TOPL, a right sky TOPR, a Center, a subwoofer Woofer; audio data of the eight channels; here, the decoder decodes the mixed audio data, and then identifies the decoded audio data respectively to obtain audio data of eight channels respectively.
S502, adjusting sampling frequency to generate audio coded data
Changing the sampling frequency of one piece of audio coding data in the audio channel, and embedding audio data of the channels with the appropriate number into one piece of audio coding data according to the changed sampling frequency; the method comprises the following steps: the sampling bit width is unchanged, the sampling frequency is raised to 96KHz, and the corresponding BCLK frequency is raised to: 2 96KHz 16bit =3.072MHz, the data that every BCLK rises and gathers become 32Bit, take 2 sound track audio data of I2S of the same way as an example, gather left channel data when WS (LRCK) =0, gather right channel data when WS (LRCK) =1, its WS can gather 32Bit left and right channel data at most, there are two kinds of modes for changing the sampling frequency, one is to change BCLK' S frequency single edge collection, a BCLK frequency is unchangeable, adopt two edge collections, the data L passageway that data WS gathered of this kind of mode gathers, gather 32Bit data, R passageway gathers 32Bit data, the collection rate is 96KHz.
S503, judging whether audio coding data are generated or not
Caching the generated audio coding data, judging whether all audio coding data are generated in all audio channels needing to be transmitted, if all audio coding data are generated, performing step S504, and outputting all audio coding data and combined arrangement information through the audio channels; and if the audio coded data are not generated, waiting that all the audio channels needing to be transmitted generate the audio coded data.
The internal structure of the output 3I 2S chip is that each group of I2S has a separate MCLK, WS, BCK and Data, but more importantly, the MCLK synchronization of the 3I 2S chips is ensured.
In this embodiment, a work mode of waiting for transmission is adopted, that is, after all the 3 paths of I2S data are processed, the data are transmitted at the same time; initializing and sending new sound, collecting the first bit of 3 paths of initialization sound, and taking the first bit valid signal as MCLK of waiting sound. 3 paths of CLK share, and 3 paths of CLK are used for respectively acquiring and transmitting data, so that data errors caused by the abnormity of a certain path of CLK are greatly reduced.
S504, transmitting multi-channel audio data by using three audio channels
Outputting all audio coding data and combined arrangement information through three audio channels; each audio channel can transmit three audio data channels, so in this embodiment, at most 12 audio data channels can be transmitted.
S506, receiving and caching all audio coding data
And receiving all audio coding data, and buffering all the received audio data. The bit width IS kept unchanged, the sampling frequency IS changed, the transmission in the mode IS still 16-bit data 48KHZ, compression sampling IS carried out on a multipath channel at a machine core end, the 16-bit 48HKZ IS changed into a 1multibit @96KHZ signal, 4ch data can be transmitted through 1 path of I2S in the mode, and the output of 3 paths of IS can maximally support the output of 12-channel 16bit 48KHZ data; the method specifically comprises the following steps:
the core end transmits all the 3 paths of I2S and data to the audio coprocessor chip, the audio coprocessor chip does not perform simultaneous closing and dismantling, and the audio coprocessor chip caches the data in a buffer;
the chip end provides the code arrangement mode and the double-edge sampling mode to the audio coprocessor chip.
S507, obtaining audio data of each sound channel according to the combined arrangement information
And according to the combination arrangement information, intercepting audio data with a preset sampling bit width from a preset position in the audio coding data, and adding attribute information which is a corresponding sound channel to the intercepted audio data.
The method comprises the following steps: the audio coprocessor chip takes the first bit effective data of the 3 paths of I2S as a reference MCLK, and the sampling frequency is set to be 48KHZ; simultaneously putting 3 paths of I2S data into a stack, setting the sampling frequency to be 48KHz, and adopting a double-edge sampling mode; respectively sampling 16bit data of ch1, ch 2-ch 12; the 12-channel 16-bit data are subjected to spontaneous waiting tone in a 6-channel I2S channel audio coprocessor chip according to the original data distribution format, and the CLK synchronization of the 6-channel I2S is adjusted; after the CLK is synchronized, the CLK is simultaneously sent to a power amplifier end by the audio coprocessor chip through 6 paths of I2S.
In this embodiment, if 8-channel data is transmitted, two-way transmission can be adopted, and a sampling rate of 96HZ can be achieved. If there are more channels of data, the sampling rate can be increased.
In another embodiment, the sampling bit width and the sampling frequency can be adjusted simultaneously, so that the sampling bit width is adjusted from 16 bits to 24 bits, the sampling frequency is adjusted from 48KHz to 96KHz, and the corresponding BCLK frequency is raised as follows: 2 96khz 24bit =4.608mhz, the data that each BCLK rises and gathers become 32Bit, take a way I2S 2 sound track as an example, WS (LRCK) =0 gathers left channel data, WS (LRCK) =1 gathers right channel data, its WS can gather 32Bit left and right channel data at most, there are two kinds of ways to change the sampling frequency, one is to change frequency single edge gathering of BCLK, a BCLK frequency is invariable, adopt the collection of the double edge, data L channel that this kind of way gathers, gather 24Bit data, R channel gathers 24Bit data, the collection rate 96KHz, this way coding can guarantee 2 way I2S supports the audio data of 8 sound channels at most, all transmit the multichannel audio data to the audio frequency processor, the core end informs the co-processor of the coding mode, the audio data that the co-audio frequency is located are recovered, through its own multichannel I2S, transmit to the corresponding power amplifier chip separately, the sound effect of the output of 5.2.2.2.
Referring to fig. 10, the present invention is disposed in a television apparatus, which is a multi-channel platform audio data transmission apparatus, including:
a main chip 810 and an audio co-processor chip 820, the main chip 810 comprising:
the decoder 811 is configured to receive mixed audio data, and parse and identify the mixed audio data to obtain audio data of each channel; the mixed audio data comprises: a left channel L, a right channel R, a left surround SL, a right surround SR, a left sky TOPL, a right sky TOPR, a Center, and a subwoofer Woofer; audio data of the eight channels; in this embodiment, the decoder decodes the mixed audio data first, and then identifies the decoded audio data respectively to obtain audio data of eight channels;
a re-encoder 812, where the re-encoder 812 is connected to the decoder 811, and is configured to process the audio data of each channel, and place the audio data of more than three channels into one channel of audio channel according to a predetermined combination arrangement manner, so as to generate audio encoded data; it may specifically be: placing audio data of more than three sound channels into one audio channel to generate audio coding data; if audio data of a left channel L, a right channel R, a left surround SL and three channels are integrated into one audio channel I2S0 to obtain one channel of audio coding data, and audio data of a right surround SR, a left sky TOPL and a right sky TOPR are integrated into the other audio channel I2S1 to obtain the other channel of audio coding data;
the number of the audio channels 813 is more than two, and each audio channel 813 is connected with the re-encoder 812 and is used for outputting all audio encoding data and combined arrangement information;
the audio coprocessor chip 820 is connected with all the audio channels 813 and is used for receiving the audio coding data in all the audio channels 813, decoding and restoring the received audio coding data according to the combination arrangement information to obtain the audio data of each channel; because the combination arrangement information records the position of the audio data of each sound channel in the audio channel and the audio coding data, different parts of the audio coding data in each audio channel are intercepted according to the combination arrangement information, and the audio data of the corresponding sound channel can be obtained, such as: the audio data of the left channel L is placed in the 16bit of the front end of the left channel of the I2S0, and then the 16bit of the front end of the left channel of the I2S0 is intercepted, so that the audio data of the left channel L can be obtained.
In this embodiment, the apparatus further includes:
and the power amplifier 830, where the power amplifier 830 is connected to the audio coprocessor chip 820, and is used to play and output the audio data of each channel.
In this embodiment, the re-encoder 812 includes:
a transmission audio adjusting module, configured to change a sampling bit width and/or a sampling rate of one piece of transmission audio data in the audio channel 813, and place audio data of an appropriate number of channels in one piece of transmission audio data according to the changed sampling bit width and/or sampling rate;
the audio data splitting module is used for splitting audio data of a preset sound channel.
In this embodiment, the audio coprocessor chip 820 includes:
and the cache module is used for caching all the received audio data.
In the description of the present specification, reference to the description of the terms "one embodiment", "some embodiments", "an illustrative embodiment", "an example", "a specific example", or "some examples", etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method for audio data transmission for a multi-channel platform, comprising:
receiving mixed audio data, and analyzing and identifying the mixed audio data to obtain audio data of a plurality of sound channels;
processing the audio data of a plurality of sound channels, and respectively placing the audio data of more than two sound channels into one audio channel according to a preset combination arrangement mode to generate audio coding data;
outputting all audio coding data and combined arrangement information through more than two paths of audio channels, wherein the combined arrangement information records the position of the audio data of each sound channel in the audio channels and the audio coding data;
and receiving all audio coding data, decoding and restoring the received audio coding data according to the combined arrangement information to obtain audio data of a plurality of sound channels.
2. The method of claim 1, wherein the step of placing audio data of more than three channels into one audio channel and generating audio encoded data comprises:
and changing the sampling bit width and/or the sampling rate of one piece of audio coding data in the audio channel, and embedding the audio data of the corresponding number of channels into one piece of audio coding data according to the changed sampling bit width and/or the changed sampling rate.
3. The multi-channel platform audio data transmission method of claim 2, wherein the processing the audio data for the plurality of channels further comprises:
and splitting the audio data of the preset sound channel, and renumbering the audio data of all the sound channels.
4. The method of claim 3, wherein the arranging the information according to the combination, decoding and restoring the received audio data to obtain audio data of multiple channels comprises:
and according to the combination arrangement information, intercepting the audio data with preset sampling bit width and/or sampling rate from the preset position in the audio coding data, and adding the attribute information of the corresponding sound channel to the intercepted audio data.
5. The method of claim 4, wherein the outputting all audio encoded data and the combined permutation information via more than two audio channels comprises:
caching the generated audio coding data, judging whether all audio coding data are generated in all audio channels needing to be transmitted, and if all the audio coding data are generated, starting to output all the audio coding data and the combined arrangement information through the audio channels; and if the audio coded data are not generated, waiting that all the audio channels needing to be transmitted generate the audio coded data.
6. The multi-channel platform audio data transmission method according to claim 5, further comprising, after receiving the audio data in all audio channels:
all received audio data is buffered.
7. An apparatus for audio data transmission for a multi-channel platform, comprising:
a main chip and an audio co-processor chip, the main chip comprising:
the decoder is used for receiving mixed audio data, analyzing and identifying the mixed audio data and obtaining audio data of a plurality of sound channels;
the re-encoder is connected with the decoder and used for processing the audio data of a plurality of sound channels and respectively placing the audio data of more than two sound channels into one audio channel according to a preset combination arrangement mode to generate audio encoded data;
the device comprises a recoder, an audio channel, a decoder and a decoder, wherein the number of the audio channels is more than two, each audio channel is connected with the recoder and is used for outputting all audio coding data and combined arrangement information, and the combined arrangement information records the positions of the audio data of each channel in the audio channels and the audio coding data;
the audio coprocessor chip is connected with all audio channels and used for receiving audio coding data in all audio channels, decoding and restoring the received audio coding data according to the combined arrangement information to obtain audio data of a plurality of sound channels.
8. The apparatus for multi-channel platform audio data transmission according to claim 7, further comprising:
and the power amplifier is connected with the audio coprocessor chip and is used for playing and outputting the audio data of the plurality of sound channels.
9. The multi-channel platform audio data transmission apparatus of claim 8, wherein the re-encoder comprises:
a transmission audio adjusting module, configured to change a sampling bit width and/or a sampling rate of one piece of transmission audio data in the audio channel, and embed audio data of an appropriate number of channels in the one piece of transmission audio data according to the changed sampling bit width and/or sampling rate;
the audio data splitting module is used for splitting audio data of a preset sound channel.
10. The multi-channel platform audio data transfer apparatus of claim 9, wherein the audio coprocessor chip comprises:
and the cache module is used for caching all the received audio data.
CN201910659488.1A 2019-07-09 2019-07-22 Audio data transmission method and device for multi-channel platform Active CN112218020B (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
PCT/CN2020/070929 WO2021004049A1 (en) 2019-07-09 2020-01-08 Display device, and audio data transmission method and device
PCT/CN2020/070902 WO2021004048A1 (en) 2019-07-09 2020-01-08 Display device and audio data transmission method
PCT/CN2020/070890 WO2021004046A1 (en) 2019-07-09 2020-01-08 Audio processing method and apparatus, and display device
PCT/CN2020/070887 WO2021004045A1 (en) 2019-07-09 2020-01-08 Method for transmitting audio data of multichannel platform, apparatus thereof, and display device
PCT/CN2020/070891 WO2021004047A1 (en) 2019-07-09 2020-01-08 Display device and audio playing method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910618541 2019-07-09
CN2019106185413 2019-07-09

Publications (2)

Publication Number Publication Date
CN112218020A CN112218020A (en) 2021-01-12
CN112218020B true CN112218020B (en) 2023-03-21

Family

ID=74047269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910659488.1A Active CN112218020B (en) 2019-07-09 2019-07-22 Audio data transmission method and device for multi-channel platform

Country Status (1)

Country Link
CN (1) CN112218020B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113783680B (en) * 2021-11-05 2022-02-08 湖南北顺源智能科技有限公司 Data synchronous transmission method and data synchronous transmission system
CN114697401A (en) * 2022-03-14 2022-07-01 广州广哈通信股份有限公司 Audio data transmission method
CN115171706A (en) * 2022-06-27 2022-10-11 哲库科技(上海)有限公司 Data encoding method, data decoding method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1926610A (en) * 2004-03-12 2007-03-07 诺基亚公司 Synthesizing a mono audio signal based on an encoded multi-channel audio signal
JP2007526522A (en) * 2004-03-01 2007-09-13 ドルビー・ラボラトリーズ・ライセンシング・コーポレーション Multi-channel audio coding
CN108076306A (en) * 2017-12-29 2018-05-25 中兴通讯股份有限公司 Meeting implementation method, device, equipment and system, computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5895050B2 (en) * 2011-06-24 2016-03-30 コーニンクレッカ フィリップス エヌ ヴェKoninklijke Philips N.V. Audio signal processor and method for processing encoded multi-channel audio signals

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007526522A (en) * 2004-03-01 2007-09-13 ドルビー・ラボラトリーズ・ライセンシング・コーポレーション Multi-channel audio coding
CN1926610A (en) * 2004-03-12 2007-03-07 诺基亚公司 Synthesizing a mono audio signal based on an encoded multi-channel audio signal
CN108076306A (en) * 2017-12-29 2018-05-25 中兴通讯股份有限公司 Meeting implementation method, device, equipment and system, computer readable storage medium

Also Published As

Publication number Publication date
CN112218020A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN112218020B (en) Audio data transmission method and device for multi-channel platform
CN101479786B (en) Method for encoding and decoding object-based audio signal and apparatus thereof
US8208653B2 (en) Method and apparatus for reproducing multi-channel sound using cable/wireless device
CN101542597B (en) Methods and apparatuses for encoding and decoding object-based audio signals
CN101178921B (en) Method and system for processing audio signal
TW447193B (en) Signal processing device
KR100880643B1 (en) Method and apparatus for decoding an audio signal
KR20090102089A (en) Audio apparatus to transfer audio signal wirelessly and method thereof
CN110248285B (en) Multi-channel audio equipment
EP3358856B1 (en) Signal processing device, signal processing method and program
CN101379554A (en) Apparatus and method for encoding/decoding signal
CN107277691B (en) Multi-channel audio playing method and system based on cloud and audio gateway device
JP4859925B2 (en) Audio signal decoding method and apparatus
KR101427756B1 (en) A method and an apparatus for transferring multi-channel audio signal
CN112218019B (en) Audio data transmission method and device
CN112218210B (en) Display device, audio playing method and device
US20210297777A1 (en) Optimized Audio Forwarding
CN101635857A (en) Multi-path audio collecting system
KR0152037B1 (en) Structure of transmission bit array of multi-channel audio signal
US20050107900A1 (en) Portable computer adapted for use with a loudspeaker unit to reproduce audio playback information with surround sound effects
CN115328432A (en) Audio format conversion device
CN116343806A (en) Control method and device for processing audio at high speed based on USB2.0 interface
KR100606509B1 (en) Xtdm receiving module for audio signal routing network
JP2018512613A (en) Encoding and decoding digital data sets
CN101685636A (en) DRA data format conversion method and implementation device thereof

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