Graphics processing system, data transmission method, graphics card and electronic equipment
By designing the application processor and audio data transmission module in the graphics processing system, the audio data is cached and transmitted according to the audio data transmission protocol, which solves the problem of audio data transmission occupying bandwidth and affecting video data transmission, and achieves complete playback of video data.
Patent Information
- Application Number
- CN202310231589.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, after the audio data is transmitted to the graphics card, the playback device may not be able to play the video data normally. The reason is that the low-speed protocol of the audio data transmission protocol occupies the bandwidth of the application processor and affects the transmission of video data.
Design a graphics processing system, including an application processor, an audio data transmission module and a display controller. The application processor caches the audio data into the cache space of the audio data transmission module, and when detecting the predefined transmission start information, performs the The transmission rate of the audio data transmission protocol transmits audio data to the display controller to avoid long-term bandwidth occupation and ensure complete transmission of video data.
By decoupling the transmission of audio data and video data, it avoids audio data occupying bandwidth for a long time, ensures that video data can be completely transmitted to the playback device, and solves the problem of the video playback device not being able to play normally.
Smart Images

Figure CN118626032A
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a graphics processing system, a data transmission method, a graphics card, and an electronic device. Background Technology
[0002] With the development of graphics card technology, not only video data but also audio data is now transmitted to the graphics card for processing. Specifically, the host computer first transmits audio and video data to the graphics card via the PCIe bus. The graphics card then processes the audio and video data and transmits it to the playback device for playback. However, transmitting audio data to the graphics card as well can sometimes cause playback devices to fail to play video data correctly. Summary of the Invention
[0003] The purpose of this disclosure is to provide a graphics processing system, a data transmission method, a graphics card, and an electronic device.
[0004] According to a first aspect of this disclosure, a graphics processing system is provided, deployed on a graphics card, the graphics card further including video memory, the graphics processing system comprising:
[0005] An application processor is configured to retrieve audio data from video memory and transfer the audio data to the cache space of an audio data transfer module; the transmission rate of the audio data to the audio data transfer module is greater than the transmission rate of the audio data transfer protocol; the audio data is pre-transmitted from the host to the video memory.
[0006] The audio data transmission module is configured to transmit audio data to the display controller according to the transmission rate of the audio data transmission protocol when a predefined transmission start information is detected.
[0007] The display controller is configured to transmit received audio data to the playback device in accordance with an audio data transmission protocol.
[0008] In one implementation, the predefined transmission start information includes one or more of the following: locally stored audio data reaching a preset data amount, a preset start signal sent by the application processor, and the local transmission start register being set.
[0009] In one embodiment, the audio data transmission module is configured with a transmission start register; the predefined transmission start information includes setting the transmission start register.
[0010] The application processor is configured to set the transmission start register after determining that a preset amount of audio data will be transmitted to the audio data transmission module;
[0011] The audio data transmission module is configured to transmit audio data to the display controller according to the transmission rate of the audio data transmission protocol when the transmission start register is detected to be set.
[0012] In one implementation, when the amount of audio data to be transmitted is less than the buffer space of the audio data transmission module, the preset data amount is the amount of audio data to be transmitted; when the amount of audio data to be transmitted is greater than the buffer space of the audio data transmission module, the preset data amount is any value greater than 0; the audio data to be transmitted is all the audio data that the application processor wants to transmit to the audio data transmission module.
[0013] In one embodiment, the graphics processing system further includes a DMA controller;
[0014] The application processor is configured to obtain the source address, storage length, and destination address of the audio data in the video memory;
[0015] The source address, storage length, and destination address are encapsulated into a DMA structure, and the DMA controller is invoked to cache the audio data into the audio data transmission module based on the DMA structure.
[0016] In one embodiment, the audio data in the video memory is encoded digital audio data;
[0017] The application processor is specifically configured to retrieve encoded digital audio data from video memory and transfer the encoded digital audio data to the cache space of the audio data transmission module.
[0018] The audio data transmission module is specifically configured to decode and perform digital-to-analog conversion on the encoded digital audio data to obtain the audio data processing result, and transmit the audio data processing result to the display controller according to the transmission rate of the audio data transmission protocol. The audio data processing result is the decoded analog audio data.
[0019] In one embodiment, the video memory also stores video data related to the audio data, which is pre-transmitted from the host to the video memory from the local machine.
[0020] The application processor is also configured to retrieve video data related to the audio data from the video memory, and transmit the retrieved video data to the display controller at the rate of the video data transmission protocol.
[0021] The display controller is also configured to transmit the received video data to the playback device in accordance with a video data transmission protocol.
[0022] In one implementation, the application processor is further configured to timestamp the acquired audio data and the video data associated with the audio data.
[0023] The display controller is further configured to synchronize video and audio data according to timestamps, and output the audio and video data to the playback device according to the synchronization result, so that the playback device can play the audio and video data synchronously.
[0024] According to two aspects of this disclosure, a data transmission method is provided, applied to a graphics processing system in a graphics card, wherein the graphics card further includes video memory, and the graphics processing system includes an application processor, an audio data transmission module, and a display controller. The method includes:
[0025] The application processor retrieves audio data from the video memory and transfers the audio data to the cache space of the audio data transmission module; the transmission rate of the audio data to the audio data transmission module is greater than the transmission rate of the audio data transmission protocol; the audio data is pre-transmitted from the host to the video memory.
[0026] When the audio data transmission module detects predefined transmission start information, it transmits the audio data to the display controller according to the transmission rate of the audio data transmission protocol.
[0027] The display controller transmits the received audio data to the playback device according to the audio data transmission protocol.
[0028] In one implementation, the predefined transmission start information includes one or more of the following: locally stored audio data reaching a preset data amount, a preset start signal sent by the application processor, and the local transmission start register being set.
[0029] In one embodiment, the audio data transmission module is configured with a transmission start register; the predefined transmission start information includes setting the transmission start register; the method further includes:
[0030] After determining that the preset amount of audio data will be transmitted to the audio data transmission module, the application processor sets the transmission start register.
[0031] The audio data transmission module, upon detecting predefined transmission start information, transmits audio data to the display controller according to the transmission rate of the audio data transmission protocol, including:
[0032] When the audio data transmission module detects that the transmission start register is set, it transmits the audio data to the display controller according to the transmission rate of the audio data transmission protocol.
[0033] In one implementation, when the amount of audio data to be transmitted is less than the buffer space of the audio data transmission module, the preset data amount is the amount of audio data to be transmitted; when the amount of audio data to be transmitted is greater than the buffer space of the audio data transmission module, the preset data amount is any value greater than 0; the audio data to be transmitted is all the audio data that the application processor wants to transmit to the audio data transmission module.
[0034] In one embodiment, the graphics processing system further includes a DMA controller;
[0035] The application processor retrieves audio data from video memory, including:
[0036] The application processor obtains the source address, storage length, and destination address of the audio data in the video memory;
[0037] The application processor transmits audio data to the cache space of the audio data transmission module, including:
[0038] The application processor encapsulates the obtained source address, storage length, and destination address into a DMA structure, and calls the DMA controller to cache the audio data into the audio data transmission module based on the DMA structure.
[0039] In one embodiment, the audio data in the video memory is encoded digital audio data; the application processor retrieves the audio data from the video memory and transmits the audio data to the audio data transmission module cache space, including:
[0040] The application processor retrieves the encoded digital audio data from the video memory and transfers the encoded digital audio data to the cache space of the audio data transmission module.
[0041] The audio data transmission module transmits audio data to the display controller according to the transmission rate of the audio data transmission protocol, including:
[0042] The audio data transmission module decodes and performs digital-to-analog conversion on the encoded digital audio data to obtain the audio data processing result. The audio data processing result is transmitted to the display controller according to the transmission rate of the audio data transmission protocol. The audio data processing result is the decoded analog audio data.
[0043] In one embodiment, the video memory also stores video data related to the audio data, the video data being pre-transmitted from the host to the video memory from the local machine; the method further includes:
[0044] The application processor retrieves video data related to the audio data from the video memory and transmits the retrieved video data to the display controller at the rate of the video data transmission protocol.
[0045] The display controller transmits the received video data to the playback device according to the video data transmission protocol.
[0046] In one implementation, the method further includes: the application processor timestamps the acquired audio data and the video data associated with the audio data;
[0047] The display controller processes video and audio data synchronously based on timestamps, and outputs the audio and video data to the playback device according to the synchronization result, so that the playback device can play the audio and video data synchronously.
[0048] According to a third aspect of this disclosure, a graphics card is provided, comprising the graphics processing system described in any embodiment of the first aspect above.
[0049] According to a fourth aspect of this disclosure, an electronic device is provided, including a graphics card as described in any embodiment of the third aspect above.
[0050] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0051] Figure 1 This is a schematic diagram illustrating an audio / video data transmission process according to an embodiment of this disclosure;
[0052] Figure 2 This is a schematic diagram of the structure of a graphics processing system provided in one embodiment of the present disclosure;
[0053] Figure 3 A flowchart illustrating an audio data transmission method according to an embodiment of this disclosure;
[0054] Figure 4 This is a schematic diagram illustrating another audio and video data transmission process provided in one embodiment of the present disclosure;
[0055] Figure 5 This is a schematic diagram of the structure of a specific graphics processing system provided in one embodiment of the present disclosure. Detailed Implementation
[0056] Before introducing the embodiments of this disclosure, it should be noted that:
[0057] Some embodiments of this disclosure are described as processing flows. Although the various operational steps of the flow may be numbered sequentially, the operational steps may be performed in parallel, concurrently, or simultaneously.
[0058] The embodiments disclosed herein may use terms such as "first," "second," etc., to describe various features, but these features should not be limited by these terms. These terms are used merely to distinguish one feature from another.
[0059] The term “and / or” may be used in embodiments of this disclosure, and “and / or” includes any and all combinations of one or more of the associated features listed.
[0060] It should be understood that when describing the connection or communication relationship between two components, unless it is explicitly stated that the two components are directly connected or communicate directly, the connection or communication between the two components can be understood as a direct connection or communication, or it can be understood as an indirect connection or communication through an intermediate component.
[0061] To make the technical solutions and advantages of the embodiments of this disclosure clearer, the exemplary embodiments of this disclosure will be described in further detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not an exhaustive list of all embodiments. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this disclosure can be combined with each other.
[0062] Before graphics card technology matured, dedicated processing modules were typically configured on the host computer to process audio and video data before sending the processed data to the playback device. However, with the development of graphics card technology, the host computer began to delegate video data processing to the graphics card to reduce its processing load. Furthermore, since many scenarios require simultaneous playback of video and audio data, and these two types of data are highly correlated, delegating audio data processing to the graphics card as well has become increasingly necessary for achieving better audio and video playback. Currently, the process of graphics cards processing audio and video data is as follows: Figure 1 As shown.
[0063] like Figure 1As shown, the host computer uses the PCIe controller to transfer audio and video data to the graphics card's memory via the PCIe bus. The ACPU (Application Central Processing Unit) on the graphics card, hereinafter referred to as the application processor, processes the audio and video data and then transmits the processed data together to the HDMI / DP display controller, hereinafter referred to as the display controller. The display controller then transmits the audio data to the audio playback device according to the audio data transmission protocol and the video data to the video playback device according to the video data transmission protocol. The video data transmission protocol has a faster transmission rate, while the audio data transmission protocol is a slower protocol. If the application processor transmits audio data to the display controller at a speed exceeding the display controller's audio data transmission speed, some audio data will not be received by the display controller and will be discarded. This prevents the display controller from transmitting complete audio data to the audio playback device, thus preventing the audio playback device from playing the audio data effectively. Since the display controller's audio data transmission speed follows the audio data transmission protocol, the application processor must also transmit audio data to the display controller according to the audio data transmission protocol's speed.
[0064] However, using the above method to transmit audio and video data to the graphics card for processing and then playback can sometimes cause video playback devices to be unable to effectively play the video data.
[0065] Through further experiments and research, the inventor discovered that the cause of this phenomenon is:
[0066] Because audio data transmission protocols are low-speed protocols, audio data transmission can consume the application processor's bandwidth for extended periods. In addition to transmitting audio data to the display controller, the application processor also needs to transmit video data to it. Video data transmission requires transmitting frame by frame, and since a single video frame is often quite large, the application processor's bandwidth can become overwhelmed by audio transmission, sometimes preventing it from using its remaining bandwidth to transmit a complete video frame to the display controller simultaneously. This, in turn, prevents the display controller from sending the complete video data to the video playback device, ultimately hindering the device's ability to play the video.
[0067] To address the aforementioned issues, this disclosure proposes a graphics processing system deployed on a graphics card. It is understood that the graphics card typically also has video memory (VRAM) deployed on it, which is used to store data before and after processing by the graphics processing system.
[0068] The graphics processing system is as follows Figure 2 As shown, the system includes an application processor 210, an audio data transmission module 220, and a display controller 230. Based on the above-described graphics processing system, this disclosure also proposes a data transmission method, such as... Figure 3 As shown, the method includes:
[0069] S301, the application processor obtains audio data from the video memory and transmits the audio data to the cache space of the audio data transmission module;
[0070] In this process, audio data is pre-transferred from the host to the video memory. Specifically, the host calls the PCIe controller located on the host to transfer the audio data to the video memory on the graphics card via the bus between the host and the graphics card, allowing the graphics processing system to process and transmit the audio data. To improve transfer speed, the host can also use its local DMA controller to move the audio data to video memory. This involves encapsulating the source address in host memory, the destination address in video memory, and the data length of the audio data into a DMA structure, and then calling the DMA controller to transfer the audio data to video memory based on this encapsulated DMA structure. Compared to the host manually transferring the data, this method significantly improves transfer speed. Alternatively, the host can compress or encode the audio data before transferring it to video memory, reducing the amount of data transferred and thus reducing transfer time.
[0071] In this step, the application processor can retrieve the audio data pre-transmitted by the host from the video memory and cache the audio data transmission module. This module has a pre-defined cache size specifically for receiving and caching the audio data transmitted by the application processor. Therefore, the application processor does not need to transmit the audio data to the audio data transmission module according to the audio data transmission protocol's rate. Furthermore, since the audio data transmission protocol is a low-speed protocol, the application processor can transmit the audio data to the audio data transmission module much faster. Because the transmission rate at which the application processor caches the audio data to the audio data transmission module is much higher than the transmission rate of the audio data transmission protocol, the operation of transmitting the audio data to the audio data transmission module will not occupy the application processor's bandwidth for an extended period.
[0072] If the video memory stores compressed audio data, the application processor can decompress or decode the compressed audio data to obtain the decompressed audio data, and then cache the decompressed audio data in the audio data transmission module.
[0073] S302, when the audio data transmission module detects the predefined transmission start information, it transmits the audio data to the display controller according to the transmission rate of the audio data transmission protocol;
[0074] In one implementation, the audio data transmission module detects that a preset amount of audio data is stored locally. That is, when the locally stored audio data reaches the preset amount, it begins transmitting audio data to the display controller. In this implementation, the predefined transmission start information is that the locally stored audio data has reached the preset amount.
[0075] In another implementation, to simplify the decision-making logic of the audio data transmission module, the application processor can cache a preset amount of audio data in the audio data transmission module and then send a preset start signal to the audio data transmission module. Upon detecting this preset start signal, the audio data transmission module begins transmitting audio data to the display memory. That is, in this implementation, the predefined transmission start information is the preset start signal sent by the application processor.
[0076] In another implementation, the audio data transmission module can also be configured with a local transmission start register. This register may include one bit. When the bit of the transmission start register is set to 0, the audio data transmission module does not transmit audio data to the display controller; when the bit of the transmission start register is set to 1, it transmits audio data to the display controller. In this implementation, the application processor can set the transmission start register after determining that a preset amount of audio data will be transmitted to the buffer space of the audio data transmission module. This allows the audio data transmission module to start transmitting audio data to the display controller upon detecting that the transmission start register is set. That is, in this implementation, the predefined transmission start information is the setting of the local transmission start register.
[0077] It is understood that the predefined transmission information can be one or more of the above methods. When multiple methods are included, the audio data transmission module can transmit the audio data to the display controller according to the transmission rate of the audio data transmission protocol when it detects any of the predefined transmission start information.
[0078] In the above implementations, the audio data transmission module begins transmitting audio data only after the application processor has transferred a preset amount of audio data to it. The preset amount of audio data can be the amount of audio data to be transmitted, provided the amount of audio data to be transmitted is less than the buffer space of the audio data transmission module (i.e., the buffer space is large enough to store the audio data). After all the audio data to be transmitted has been transferred to the audio data transmission module, the module begins transmitting audio data to the display controller. The audio data to be transmitted refers to all the audio data that the application processor intends to transfer to the audio data transmission module.
[0079] Furthermore, since the buffer space of the audio data transmission module is fixed, while the playback requirements for audio data are different each time (meaning the audio data involved in each playback is dynamically changing), the buffer space of the audio data transmission module may not be sufficient to store all the audio data to be transmitted. Therefore, the preset data amount can also be the size of the buffer space of the audio data transmission module. That is, when the buffer space of the audio data transmission module is full, the audio data transmission module begins to transmit audio data to the display controller. At this point, since the audio data transmission module has no free storage space, the application processor needs to stop transmitting audio data to the audio data transmission module. When the audio data transmission module has free buffer space, the application processor then transmits audio data to the audio data transmission module again until the complete audio data is transmitted to the audio data transmission module.
[0080] Considering that when the audio data transmission module's storage space is full, the application processor needs to stop transmitting audio data to the audio data transmission module and then transmit the remaining audio data again when the audio data transmission module has free space, this process requires the application processor to perform multiple transmissions and check the storage space of the audio data transmission module, consuming considerable resources. Therefore, this disclosure proposes that the preset data volume can be any value greater than 0. That is, when the audio data transmission module receives audio data, it begins transmitting audio data to the display controller, so as to enable the application processor to transmit all audio data to the audio data transmission module without interruption, thereby reducing the application processor's resource consumption.
[0081] In this step, to prevent the display controller from dropping audio data due to failure to transmit it in time, the audio data transmission module can transmit the audio data cached locally to the display controller according to the transmission rate of the audio data transmission protocol.
[0082] S303, the display controller transmits the received audio data to the playback device according to the audio data transmission protocol.
[0083] After receiving audio data, the display controller can immediately transmit the received audio data to the playback device according to the audio data transmission protocol. Since the speed at which the display controller receives audio data locally is the same as the speed at which the local device transmits audio data outward, no local audio data loss will occur.
[0084] By employing the aforementioned graphics processor and audio data transmission method, the transmission of audio data is decoupled from the transmission of video data. That is, instead of the application processor transmitting audio data to the display controller, a dedicated audio data transmission module transmits the audio data to the display controller. This avoids the problem of audio data occupying the application processor's transmission bandwidth for a long time, thus preventing the effective transmission of video data. In this way, the transmission of audio data does not interfere with the transmission of video data, thereby ensuring that the video data is transmitted completely to the display controller and ultimately played completely by the playback device.
[0085] Understandably, the host may transmit video data along with audio data to the video memory. This video data can be related to the audio data or unrelated to it. The two types of data are related when they must be played together to provide the user with an audiovisual experience; otherwise, they are unrelated. Both related and unrelated video data can be transmitted and stored in the video memory along with the audio data.
[0086] If video and audio data are related, then the application processor needs to process or move the video data while simultaneously moving the audio data.
[0087] The application processor can retrieve video data related to the audio data from the video memory. Similarly, in order to prevent the display controller from discarding the video data, the application processor also needs to transmit the retrieved video data to the display controller at the rate of the video data transmission protocol. The display controller then transmits the received video data to the playback device according to the video data transmission protocol.
[0088] like Figure 4 The diagram shown is a schematic of an audio and video data transmission process proposed in this disclosure. It can be seen that although both audio and video data are stored in the video memory, the application processor does not need to transmit the audio data from the video memory to the display controller according to the transmission rate of the audio data transmission protocol. That is, the transmission of audio data will not occupy the transmission bandwidth of the application processor for a long time, and thus will not affect the transmission of video data by the application processor. When playing video data related to audio data, it will not cause a situation where the video data cannot be played normally.
[0089] In addition, in practical applications, video data and audio data are sometimes played together, but they are unrelated. For example, when a user is watching certain images on the same computer device, they can also play music using a music player. In this case, the audio data being played is unrelated to the video data being played. This solution can also ensure that the transmission of audio data does not affect the unrelated video data being played at the same time.
[0090] Considering that audio and video data need to be played synchronously when they are related, the application processor can timestamp the acquired audio data and the video data associated with the audio data.
[0091] The display controller processes video and audio data synchronously based on timestamps, and outputs the audio and video data to the playback device according to the synchronization result, so that the playback device can play the audio and video data synchronously.
[0092] Considering that humans are more sensitive to sound than video, frequent audio adjustments can lead to a poor viewing experience. Furthermore, the audio playback clock increases linearly. Therefore, the application processor can use the audio clock as a reference clock to set timestamps, synchronizing video with audio to ensure audio-video synchronization. For example, after timestamping the audio and video data separately, the display controller can determine whether the audio and video data are synchronized based on their timestamps. If one data is faster than the other, it needs to wait for the other until both are received simultaneously before outputting them to the playback device. For details on how to set audio and video timestamps and how to perform audio-video synchronization based on timestamps, please refer to relevant technologies; this disclosure will not elaborate further.
[0093] As described above, the application processor needs to cache audio data from video memory to the audio data transmission module. The application processor can transmit audio data to the audio data transmission module without adhering to the audio data transmission protocol's rate, allowing for faster transmission. Therefore, audio data transmission typically does not consume the application processor's bandwidth for extended periods. However, when the audio data volume is large, the application processor's transmission of large amounts of audio data may still slightly affect the transmission of video data. Therefore, this embodiment proposes configuring a DMA controller in the graphics processing system. The application processor can obtain the source address and storage length of the audio data in video memory, then encapsulate the obtained source address, storage length, and destination address in the audio data transmission module into a DMA structure. It then calls the DMA controller to cache the audio data to the audio data transmission module based on this DMA structure. In other words, the transmission of audio data is entirely handled by the DMA controller, minimizing the consumption of the application processor's bandwidth. Using this method, even with a large amount of audio data, the application processor's transmission of video data will not be affected, thus enabling effective video playback.
[0094] Typically, the audio data generated by the host is digital audio data that the computer can recognize, rather than analog audio data that a playback device can play. The host stores the digital audio data in video memory; that is, the audio data in video memory is digital audio data. Furthermore, as mentioned above, to reduce the host's audio data transmission time, the host can also compress, i.e., encode, the audio data. Therefore, the audio data in video memory is encoded digital audio data. In the above S301, the application processor decodes (decompresses) the encoded digital audio data and then caches the decoded digital audio data in the audio data transmission module.
[0095] Considering that the application processor on the graphics processing system may also handle other tasks, such as scheduling tasks for various modules on the graphics processing system, in order to reduce the processing burden on the application processor, in S301, the application processor does not need to decode the encoded digital audio data. Instead, it directly caches the encoded digital audio data in the audio data transmission module, which then decodes and performs digital-to-analog conversion to obtain the audio data processing result. This means the audio data transmission module can first decode the data to obtain the decoded digital audio data, and then perform digital-to-analog conversion to obtain analog audio data. The audio data processing result is the decoded analog audio data. Therefore, S302 can specifically involve the audio data transmission module transmitting the audio data processing result to the display controller according to the transmission rate of the audio data transmission protocol.
[0096] By adopting this method, the digital-to-analog conversion and decoding operations of audio data are all moved to a dedicated audio data transmission module, which can effectively reduce the processing pressure on the application processor.
[0097] Based on the same inventive concept, corresponding to the aforementioned data transmission method, this disclosure also proposes a graphics processing system deployed on a graphics card, the graphics card further including video memory, the graphics processing system comprising:
[0098] An application processor is configured to retrieve audio data from video memory and transfer the audio data to the cache space of an audio data transfer module; the transmission rate of the audio data to the audio data transfer module is greater than the transmission rate of the audio data transfer protocol; the audio data is pre-transmitted from the host to the video memory.
[0099] The audio data transmission module is configured to transmit audio data to the display controller according to the transmission rate of the audio data transmission protocol when a predefined transmission start information is detected.
[0100] The display controller is configured to transmit received audio data to the playback device in accordance with an audio data transmission protocol.
[0101] In one implementation, the predefined transmission start information includes one or more of the following: locally stored audio data reaching a preset data amount, a preset start signal sent by the application processor, and the local transmission start register being set.
[0102] In one embodiment, the audio data transmission module is configured with a transmission start register; the predefined transmission start information includes setting the transmission start register.
[0103] The application processor is configured to set the transmission start register after determining that a preset amount of audio data will be transmitted to the audio data transmission module;
[0104] The audio data transmission module is configured to transmit audio data to the display controller according to the transmission rate of the audio data transmission protocol when the transmission start register is detected to be set.
[0105] In one implementation, when the amount of audio data to be transmitted is less than the buffer space of the audio data transmission module, the preset data amount is the amount of audio data to be transmitted; when the amount of audio data to be transmitted is greater than the buffer space of the audio data transmission module, the preset data amount is any value greater than 0; the audio data to be transmitted is all the audio data that the application processor wants to transmit to the audio data transmission module.
[0106] In one embodiment, the graphics processing system further includes a DMA controller;
[0107] The application processor is configured to obtain the source address, storage length, and destination address of the audio data in the video memory;
[0108] The source address, storage length, and destination address are encapsulated into a DMA structure, and the DMA controller is invoked to cache the audio data into the audio data transmission module based on the DMA structure.
[0109] In one embodiment, the audio data in the video memory is encoded digital audio data;
[0110] The application processor is specifically configured to retrieve encoded digital audio data from video memory and transfer the encoded digital audio data to the cache space of the audio data transmission module.
[0111] The audio data transmission module is specifically configured to decode and perform digital-to-analog conversion on the encoded digital audio data to obtain the audio data processing result, and transmit the audio data processing result to the display controller according to the transmission rate of the audio data transmission protocol. The audio data processing result is the decoded analog audio data.
[0112] In one embodiment, the video memory also stores video data related to the audio data, which is pre-transmitted from the host to the video memory from the local machine.
[0113] The application processor is also configured to retrieve video data related to the audio data from the video memory, and transmit the retrieved video data to the display controller at the rate of the video data transmission protocol.
[0114] The display controller is also configured to transmit the received video data to the playback device in accordance with a video data transmission protocol.
[0115] In one implementation, the application processor is further configured to timestamp the acquired audio data and the video data associated with the audio data.
[0116] The display controller is further configured to synchronize video and audio data according to timestamps, and output the audio and video data to the playback device according to the synchronization result, so that the playback device can play the audio and video data synchronously.
[0117] In one specific embodiment, this disclosure also proposes a specific graphics processing system, such as... Figure 5 As shown, it includes at least:
[0118] A GPU core is used to process commands, such as drawing commands, and executes the image rendering pipeline based on these commands. Within a GPU core, there are primarily computing units that execute compiled shader instructions; these are programmable modules composed of numerous ALUs; a cache (memory) used to buffer GPU core data to reduce memory access; and a controller (not shown in the diagram). In addition, a GPU core also has various functional modules, such as rasterization (a fixed stage in the 3D rendering pipeline), tilling (slicing a frame in TBR and TBDR GPU architectures), clipping (a fixed stage in the 3D rendering pipeline that clips primitives outside the viewing area or those not displayed on the back), and post-processing (scaling, clipping, rotating, etc., of the drawn image).
[0119] The DMA controller is used to perform data transfer between host memory and GPU memory. For example, for vertex data used in 3D drawing, general DMA moves vertex data from host memory to GPU memory. In addition, the DMA controller is also used to move audio data in video memory to the audio data transfer module.
[0120] On-chip network is used for data exchange between various masters and slaves on the SOC;
[0121] The application processor is used for scheduling tasks of various modules on the SOC. For example, after the GPU finishes rendering a frame, it notifies the application processor, which then starts the display controller to display the image drawn by the GPU on the screen. In addition, the application processor is also used to execute the steps performed by the application processor in any of the above embodiments.
[0122] The PCIe controller is the interface used for communication with the host computer. It implements the PCIe protocol, allowing the GPU (graphics card) to connect to the host computer via the PCIe interface. The host computer runs graphics APIs and graphics card drivers, among other programs.
[0123] The memory controller is used to connect memory devices and store data on the SOC.
[0124] The display controller is used to control the output of the frame buffer in memory to the display via a display interface (HDMI, DP, etc.). In addition, the display controller is also used to perform the steps performed by the display controller in any of the above embodiments.
[0125] A video decoder is used to decode encoded video on the host hard drive into a displayable image.
[0126] A video encoder is used to encode the raw video stream on the host hard drive into a specified format and return it to the host.
[0127] An audio data transmission module is used to perform the steps executed by the audio data transmission module in any of the above embodiments.
[0128] Based on the same inventive concept, this disclosure also provides a graphics card that includes the graphics processing system described in any of the above embodiments.
[0129] This disclosure also provides an electronic device, which includes the aforementioned graphics processing system or graphics card. In some usage scenarios, the electronic device is in the form of a portable electronic device, such as a smartphone, tablet computer, or VR device; in other usage scenarios, the electronic device is in the form of a personal computer or game console.
[0130] While preferred embodiments of this disclosure have been described above, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this disclosure. Changes and modifications made by those skilled in the art without departing from the spirit and scope of this disclosure should also be considered within the protection scope of the embodiments of this disclosure.
Claims
1. A graphics processing system, deployed on a graphics card, the graphics card also includes a video memory, the graphics processing system comprising: The application processor is configured to obtain audio data from the video memory and transmit the audio data to a cache space of the audio data transmission module; The transmission rate of transmitting the audio data to the audio data transmission module is greater than the transmission rate of the audio data transmission protocol; the audio data is pre-transmitted from the local to the video memory by the host; an audio data transmission module, configured to transmit the audio data to the display controller according to a transmission rate of the audio data transmission protocol when predefined transmission start information is detected; The display controller is configured to transmit the received audio data to the playback device according to the audio data transmission protocol.
2. The graphics processing system according to claim 1, wherein the predefined transmission start information comprises: The locally stored audio data reaches a preset data amount, a preset start signal is sent by the application processor, and a local transmission start register is set.
3. The graphics processing system according to claim 2, wherein the audio data transmission module is configured with a transmission start register; the predefined transmission start information comprises a transmission start register setting; The application processor is configured to set the transmission start register after determining to transmit the audio data with a preset data amount to the audio data transmission module; The audio data transmission module is configured to transmit the audio data to the display controller according to the transmission rate of the audio data transmission protocol when detecting that the transmission start register is set.
4. According to the graphics processing system of claim 2, when the data amount of the audio data to be transmitted is smaller than the cache space of the audio data transmission module, the preset data amount is the data amount of the audio data to be transmitted; when the data amount of the audio data to be transmitted is larger than the cache space of the audio data transmission module, the preset data amount is any value greater than 0; the audio data to be transmitted is all the audio data to be transmitted by the application processor to the audio data transmission module.
5. The graphics processing system according to claim 1, further comprising a DMA controller; The application processor is configured to obtain a source address and a storage length of the audio data stored in the video memory and a destination address in the audio data transmission module; The acquired source address, storage length and destination address are encapsulated into a DMA structure, and the DMA controller is called to cache the audio data to the audio data transmission module based on the DMA structure.
6. The graphics processing system according to claim 1, wherein the audio data in the video memory is encoded digital audio data; The application processor is specifically configured to obtain the encoded digital audio data from the video memory and transmit the encoded digital audio data to the cache space of the audio data transmission module; The audio data transmission module is specifically configured to decode the encoded digital audio data and perform digital-to-analog conversion to obtain an audio data processing result, and transmit the audio data processing result to the display controller at the transmission rate of the audio data transmission protocol. The audio data processing result is the decoded analog audio data.
7. The graphics processing system according to claim 1, wherein the video memory further stores video data related to the audio data, and the video data is pre-transmitted from a local device to the video memory by a host; The application processor is further configured to obtain video data related to the audio data from the video memory, and transmit the obtained video data to the display controller at a rate of the video data transmission protocol. ; The display controller is further configured to transmit the received video data to the playback device according to the video data transmission protocol.
8. The graphics processing system according to claim 7, The application processor is further configured to mark a timestamp on the acquired audio data and video data related to the audio data; The display controller is further configured to synchronously process the video data and the audio data according to the timestamp, and output the audio data and the video data to the playback device according to the synchronization result, so that the playback device plays the audio data and the video data synchronously.
9. A data transmission method, applied to a graphics processing system in a graphics card, wherein the graphics card also includes a video memory, and the graphics processing system includes an application processor, an audio data transmission module, and a display controller, the method comprising: The application processor obtains the audio data from the video memory and transmits the audio data to the cache space of the audio data transmission module; The transmission rate of transmitting the audio data to the audio data transmission module is greater than the transmission rate of the audio data transmission protocol; the audio data is pre-transmitted from the local to the video memory by the host; The audio data transmission module transmits the audio data to the display controller according to the transmission rate of the audio data transmission protocol when the predefined transmission start information is detected; The display controller transmits the received audio data to the playback device according to the audio data transmission protocol.
10. The method according to claim 9, wherein the predefined transmission start information comprises: The locally stored audio data reaches a preset data amount, a preset start signal is sent by the application processor, and a local transmission start register is set.
11. The method according to claim 10, wherein the audio data transmission module is configured with a transmission start register; the predefined transmission start information comprises a transmission start register setting; the method further comprises: After determining to transmit the audio data of a preset data amount to the audio data transmission module, the application processor sets the transmission start register; The audio data transmission module transmits the audio data to the display controller according to the transmission rate of the audio data transmission protocol when the predefined transmission start information is detected, including: The audio data transmission module transmits the audio data to the display controller according to the transmission rate of the audio data transmission protocol when detecting that the transmission start register is set.
12. According to the method described in claim 10, when the amount of audio data to be transmitted is smaller than the cache space of the audio data transmission module, the preset data amount is the amount of audio data to be transmitted; when the amount of audio data to be transmitted is larger than the cache space of the audio data transmission module, the preset data amount is any value greater than 0; the audio data to be transmitted is all audio data to be transmitted by the application processor to the audio data transmission module.
13. The method according to claim 9, wherein the graphics processing system further comprises a DMA controller; The application processor obtains audio data from the video memory, including: The application processor obtains the source address and storage length of the audio data stored in the video memory and the destination address in the audio data transmission module; The application processor transmits the audio data to the buffer space of the audio data transmission module, including: The application processor encapsulates the acquired source address, storage length and destination address into a DMA structure, and calls the DMA controller to cache the audio data to the audio data transmission module based on the DMA structure.
14. The method according to claim 9, wherein the audio data in the video memory is encoded digital audio data; The application processor obtains audio data from the video memory and transmits the audio data to the audio data transmission module cache space, including: The application processor obtains the encoded digital audio data from the video memory and transmits the encoded digital audio data to the cache space of the audio data transmission module; The audio data transmission module transmits the audio data to the display controller according to the transmission rate of the audio data transmission protocol, including: The audio data transmission module decodes the encoded digital audio data and performs digital-to-analog conversion to obtain an audio data processing result, and transmits the audio data processing result to the display controller at the transmission rate of the audio data transmission protocol. The audio data processing result is the decoded analog audio data.
15. The method according to claim 9, wherein the video memory further stores video data related to the audio data, and the video data is pre-transmitted from a local host to the video memory; the method further comprises: The application processor obtains video data related to the audio data from the video memory, and transmits the obtained video data to the display controller at the rate of the video data transmission protocol ; The display controller transmits the received video data to the playback device according to the video data transmission protocol.
16. The method according to claim 15, further comprising: The application processor timestamps the acquired audio data and video data associated with the audio data; The display controller synchronously processes the video data and the audio data according to the timestamp, and outputs the audio data and the video data to the playback device according to the synchronization result, so that the playback device plays the audio data and the video data synchronously.
17. A graphics card, comprising the graphics processing system according to any one of claims 1 to 8.
18. An electronic device comprising the graphics card according to claim 17.
