CN112218020A - 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
CN112218020A
CN112218020A CN201910659488.1A CN201910659488A CN112218020A CN 112218020 A CN112218020 A CN 112218020A CN 201910659488 A CN201910659488 A CN 201910659488A CN 112218020 A CN112218020 A CN 112218020A
Authority
CN
China
Prior art keywords
audio
data
audio data
channel
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.)
Granted
Application number
CN201910659488.1A
Other languages
Chinese (zh)
Other versions
CN112218020B (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/070887 priority patent/WO2021004045A1/en
Priority to PCT/CN2020/070891 priority patent/WO2021004047A1/en
Priority to PCT/CN2020/070902 priority patent/WO2021004048A1/en
Priority to PCT/CN2020/070890 priority patent/WO2021004046A1/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)

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, decoding and restoring the received audio coding data according to the combined arrangement information to obtain audio data of a plurality of sound channels; the invention puts the audio data of more than three sound channels into one path of I2S audio channel, so that the core end can support the transmission of more than eight sound channels of audio data, and the requirement of playing multi-channel audio 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 development of economy 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 method, in the left and right channels of each I2S audio channel, the audio data of one channel is transmitted, that is, one I2S audio channel of the existing television equipment can transmit the audio data of two channels, so the core end of the television equipment can transmit the audio data of six channels at most, which cannot meet the requirement 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 sound channel, so that the transmission of the audio data of more than eight sound channels can be supported on the core end of the television equipment, and the requirement of playing the multi-channel sound 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 of 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 of the working principle of data acquisition in the 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 implicitly indicating 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 encoded data, and audio data of a right surround SR, a left sky TOPL, and a right sky TOPR are integrated into another audio channel I2S1 to obtain another audio encoded 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 coded 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.
The frequency of BCLK 2 × sampling frequency × sampling bit number 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 used to better synchronize the systems, and its frequency is 256 or 384 times the sampling frequency, and 48KHz 256 is 12.288 MHz. Regardless of how many bits of valid data there is in the signal in I2S format, 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.
As technology evolves, a variety of different data formats emerge under a unified I2S interface. Based on the position of the SDATA data relative to WS and BCLK, there are left alignment, I2S format, and right alignment. 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 indicates that data of the left channel is being transmitted.
WS is 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 symmetrical. 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 I2S0, and then the 16bit of the front end of the left channel of I2S0 is intercepted, so that the audio data of the left channel L can be obtained.
Because the internal I2S architecture mode of different chip schemes is different, there are four groups of signals MCLK, BCLK, WS and Data in the I2S protocol, wherein MCLK is the master clock signal. The BCLK clock signal, WS channel selection, and 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 form of edge folding and edge splitting.
The output channels of different chips I2S are different, when 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 single 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 single path of CLK, the sampling rates of the audio data are different, and the audio coprocessor chip receives the audio data and simultaneously sends the audio data to the receiving end, so the audio coprocessor chip is disassembled 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, there may be a situation that, during data transmission, once the CLK shared by I2S goes wrong, the received data of the 3 paths of I2S data transmission will be wrong, and there may be a sound abnormality, where the source of the CLK error: 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, while the output of 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 8-channel audio data, namely respectively recording the number of the audio data in the cache 1: l (16bit), cache 2: r (16bit), cache 3: LS (16bit), cache 4: RS (16bit), cache 5: FTL (16bit), cache 6: FTR (16bit), cache 7: SWH (8 bit high) Cache 8: SWL (low 8 bit), cache 9: CH (8 bit high), cache 10: 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 channels with the appropriate number in one audio coding data; the method comprises the following steps: the original path 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 24 bit; taking an I2S 2ch path as an example, left channel data is collected when WS (lrck) is 0, right channel data is collected when WS (lrck) is 1, and since an I2S audio channel can support a bit width of 32bit at most, WS can collect left and right channel data 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 divided into 2 8-bit parts, and then the 2 parts are respectively placed in a left sound channel and a right sound channel in the I2S 0; the left and right channels in I2S0 are both 24 bits 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 3-path I2S chip internal structure of the output is that each group I2S has separate MCLK, WS, BCK and Data, but more importantly, the MCLK synchronization of the 3-path I2S is ensured.
In this embodiment, a waiting-to-send working mode is adopted, that is, after all the 3 paths of I2S data are processed, the data are sent 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 24bit data in the 3 paths of I2S audio channels to the audio coprocessor chip, the audio coprocessor chip does not perform simultaneous folding and dismounting, and the audio coprocessor chip caches the 24bit 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
The restored data of the original multi-channel 5.1.2 is transmitted to a power amplifier end through 4 paths of I2S, and the aim of multi-channel sound effect is achieved.
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 one I2S audio channel may transmit audio signals of 4 channels, the encoding may ensure that 2I 2S channels support audio data of 8 channels at most, 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 method, the co-audio processor recovers the audio data input by the 2I 2S channels, and the audio data are respectively transmitted to corresponding power amplifier chips through its own multiple I2S channels, and sound with 5.1.2 sound effects is output. In the present embodiment, only the 2-way I2S audio channel needs 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, 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.
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 increased to 96KHz, and the corresponding BCLK frequency is increased to: the 2 x 96KHz x 16Bit is 3.072MHz, the data collected by each BCLK rising edge becomes 32Bit, taking 2-channel audio data of one path of I2S as an example, collecting left channel data when WS (lrck) is 0, collecting right channel data when WS (lrck) is 1, the WS can collect left and right channel data of 32Bit at most, there are two ways to change sampling frequency, one is to change frequency single edge collection of BCLK, one BCLK frequency is not changed, adopting double edge collection, the data L channel collected by this way collects 32Bit data, the R channel collects 32Bit data, the collection rate is 96 KHz.
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 3-path I2S chip internal structure of the output is that each group I2S has separate MCLK, WS, BCK and Data, but more importantly, the MCLK synchronization of the 3-path I2S is ensured.
In this embodiment, a waiting-to-send working mode is adopted, that is, after all the 3 paths of I2S data are processed, the data are sent 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 method IS still 16-bit data 48KHZ, compression sampling IS carried out on a multi-channel at a machine core end, the 16-bit 48HKZ IS changed into a 16-bit @96KHZ signal, 4ch data can be transmitted out through 1 path of I2S in the method, and the output of 3 paths of IS can maximally support the output of 12-channel 16-bit 48KHZ data; the method specifically comprises the following steps:
the core end transmits all the 3 paths of I2S data to the audio coprocessor chip, the audio coprocessor chip does not perform simultaneous folding and dismounting, 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 valid data of the 3 paths of I2S as a reference MCLK, and the sampling frequency is set to be 48 KHZ; simultaneously putting 3 paths of I2S data into a stack, setting the sampling frequency to be 48KHz, and adopting a double-edge sampling mode; 16bit data of ch1 and ch 2-ch 12 are respectively sampled; the 12-channel 16bit data are subjected to spontaneous tone waiting in a 6-channel I2S channel audio coprocessor chip according to the original data distribution format, and the CLK synchronization of a 6-channel I2S is adjusted; after the CLK is synchronized, the CLK is simultaneously sent to the 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 x 96KHz 24Bit is 4.608MHz, the data collected by each BCLK rising edge becomes 32Bit, taking one path of I2S 2 sound track as an example, WS (LRCK) collects left sound track data when 0, WS (LRCK) collects right sound track data when 1, the WS can collect 32Bit left and right sound track data at most, there are two ways to change sampling frequency, one way is to change BCLK frequency single edge collection, one kind of BCLK frequency is not changed, double edge collection is adopted, the data collected by this way is L channel, collects 24Bit data, R channel collects 24Bit data, collection rate is 96KHz, this way coding can ensure 2 paths of I2S support 8 sound track at most, all multi-path audio data are transmitted to audio processor, the core end informs the coding mode to audio processor, the audio data at the auxiliary audio processor are recovered, multi-path I2 is transmitted to power amplifier chip through its own multi-path I2S, and outputting the sound with 5.1.2 sound effect effects.
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 analyze 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; 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;
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 I2S0, and then the 16bit of the front end of the left channel of 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 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;
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 information according to the combination, decoding and restoring the received audio data to obtain the audio data of the plurality of 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 encoding 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 method for transmitting audio data for a multi-channel platform according to claim 5, wherein said receiving audio data in all audio channels further comprises:
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 placing the audio data of more than two sound channels into one audio channel according to a preset combination arrangement mode to generate audio encoding data;
the number of the audio channels is more than two, and each audio channel is connected with the recoder and used for outputting all audio coding data and combined arrangement information;
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 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.
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/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
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

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 true CN112218020A (en) 2021-01-12
CN112218020B 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)

Cited By (3)

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

Citations (4)

* 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
US20140133661A1 (en) * 2011-06-24 2014-05-15 Koninklijke Philips N.V. Audio signal processor for processing encoded mult-channel audio signals and method therefor
CN108076306A (en) * 2017-12-29 2018-05-25 中兴通讯股份有限公司 Meeting implementation method, device, equipment and system, computer readable storage medium

Patent Citations (4)

* 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
US20140133661A1 (en) * 2011-06-24 2014-05-15 Koninklijke Philips N.V. Audio signal processor for processing encoded mult-channel audio signals and method therefor
CN108076306A (en) * 2017-12-29 2018-05-25 中兴通讯股份有限公司 Meeting implementation method, device, equipment and system, computer readable storage medium

Cited By (3)

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

Also Published As

Publication number Publication date
CN112218020B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN112218020B (en) Audio data transmission method and device for multi-channel platform
US8208653B2 (en) Method and apparatus for reproducing multi-channel sound using cable/wireless device
CN101479786B (en) Method for encoding and decoding object-based audio signal and apparatus thereof
CN101385077B (en) Apparatus and method for encoding/decoding signal
CN101542597B (en) Methods and apparatuses for encoding and decoding object-based audio signals
TW447193B (en) Signal processing device
CN101178921B (en) Method and system for processing audio signal
CN101253553B (en) Method for decoding an audio signal
CN110248285B (en) Multi-channel audio equipment
CN107277691B (en) Multi-channel audio playing method and system based on cloud and audio gateway device
KR20080039488A (en) Method and apparatus for decoding an audio signal
KR101427756B1 (en) A method and an apparatus for transferring multi-channel audio signal
CN103237259A (en) Audio-channel processing device and audio-channel processing method for video
US5815583A (en) Audio serial digital interconnect
CN112218019A (en) Audio data transmission method and device
JP5629429B2 (en) Audio playback apparatus and audio playback method
CN112218210B (en) Display device, audio playing method and device
US11696075B2 (en) Optimized audio forwarding
JPH0583206A (en) Transmission system and receiver used in transmission system
US20120275277A1 (en) Audio mixing method and audio mixing apparatus capable of processing and/or mixing audio inputs individually
CN101635857A (en) Multi-path audio collecting system
EP0877371B1 (en) Recording and playback of multi-channel digital audio having channels of different sampling rates
JPH05227112A (en) Digital audio signal transmitting method and device therefor
US20220131916A1 (en) Host communication circuit, client communication circuit, communication system, sound reproducing device and communication method
US20050107900A1 (en) Portable computer adapted for use with a loudspeaker unit to reproduce audio playback information with surround sound effects

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