Data processing method of audio system, audio system and electronic equipment

By detecting whether the input data frame contains response data in the audio controller, reducing invalid interrupt requests, the problems of high power consumption and poor processing timeliness are solved, and lower power consumption and faster interrupt processing are achieved.

CN119065627APending Publication Date: 2024-12-03CHENGDU HAIGUANG INTEGRATED CIRCUIT DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411052466.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing audio systems have high power consumption and poor timeliness of processing interrupts, mainly due to the increased power consumption and processing delay caused by a large number of invalid interrupt requests.

Method used

When the audio controller detects that the input data frame does not contain response data, it does not send an interrupt request to the interrupt processing module until the next input data frame contains response data, thereby reducing the number of interrupts; if the input data frame contains response data , then the interrupt request is sent directly to the interrupt processing module without waiting for the number of response data to exceed the threshold value N.

Benefits of technology

By reducing invalid interrupt requests, the power consumption of the audio system is reduced, and the timeliness of interrupt processing is improved, simplifying the interrupt processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065627A_ABST
    Figure CN119065627A_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method of an audio system, the audio system and electronic equipment, and belongs to the field of electronic circuits. The method comprises the following steps: an audio controller in the audio system receives a current input data frame sent by a codec in the audio system; the audio controller detects whether the current input data frame contains response data or not, and the response data is a reply made by the codec in response to a command sent by the audio controller; and if the current input data frame does not contain the response data, the audio controller receives and detects a next input data frame of the current input data frame under the condition that an interrupt request is not sent to an interrupt processing module in the audio system. According to the invention, the power consumption of the current audio system can be reduced and the interruption processing timeliness can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic circuits, and specifically relates to a data processing method for an audio system, an audio system, and an electronic device. Background Art

[0002] Audio systems are involved in many scenarios, and their structure usually includes an interrupt processing module, an audio controller, and a codec. The interrupt processing module can receive interrupt requests from the audio controller and can read and write buffers in the audio controller. The audio controller can send audio data and commands to the codec and receive input data frames from the codec.

[0003] The interrupt processing module needs to process the target interrupt request among all interrupt requests from the audio controller. Before that, it needs to identify the target interrupt request (interrupt request triggered by a specific reason) from a large number of interrupt requests, which will result in high power consumption and poor timeliness of interrupt processing in the current audio system. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a data processing method for an audio system, an audio system and an electronic device, so as to improve the problems of high power consumption and poor timeliness of processing interrupts in the current audio system.

[0005] The embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a data processing method for an audio system, the method comprising: an audio controller in the audio system receives a current input data frame sent from a codec in the audio system; the audio controller detects whether the current input data frame contains response data, wherein the response data is a reply made by the codec in response to a command sent by the audio controller; if the current input data frame does not contain the response data, the audio controller receives and detects the next input data frame of the current input data frame without sending an interrupt request to an interrupt processing module in the audio system.

[0007] In the above embodiment, when the audio controller detects that the current input data frame does not contain response data, it no longer sends an interrupt request to the interrupt processing module, but continues to receive and detect the next input data frame of the current input data frame. Since when the input data frame does not contain response data, the interrupt request is no longer sent to the interrupt processing module, the number of interrupts is greatly reduced, thereby reducing the power consumption of the current audio system and improving the timeliness of interrupt processing.

[0008] In combination with a possible implementation manner of the embodiment of the first aspect, the method further includes: if the current input data frame includes the response data, directly sending an interrupt request to the interrupt processing module.

[0009] In the above embodiment, if the current input data frame contains response data, an interrupt request is directly sent to the interrupt processing module without waiting until the amount of response data exceeds the threshold N, thereby greatly improving the real-time processing.

[0010] In combination with a possible implementation manner of the first aspect, the detecting whether the current input data frame contains response data includes: detecting whether the data in the target position segment of the current input data frame are all target values, or whether the target bit in the target position segment is the target value; if the data in the target position segment are all target values, or the target bit in the target position segment is the target value, it indicates that the current input data frame does not contain the response data.

[0011] In the above embodiment, by detecting whether the data in the target position segment of the current input data frame are all target values, or whether the target bit in the target position segment is the target value, it is possible to quickly determine whether the current input data frame contains response data. For example, if the data in the target position segment are all target values, or the target bit in the target position segment is the target value, it indicates that the current input data frame does not contain response data.

[0012] In a second aspect, an embodiment of the present application also provides a data processing method for an audio system, the method comprising: an interrupt processing module in the audio system receives an interrupt request sent from an audio controller in the audio system, wherein the interrupt request is sent by the audio controller when the audio controller receives an input data frame containing response data sent from a codec in the audio system; the interrupt processing module directly reads the response data in the audio controller without determining the reason for triggering the interrupt request.

[0013] In the above embodiment, when the interrupt processing module receives an interrupt request sent from the audio controller, it directly reads the response data in the audio controller without determining the cause of triggering the interrupt request. Since the interrupt request is triggered when the response data is included in the input data frame, the interrupt processing module does not need to determine the cause of triggering the interrupt request. Since the process of determining the cause of triggering the interrupt request is reduced, not only can power consumption be reduced, but also the interrupt processing process can be improved.

[0014] In combination with a possible implementation manner of the embodiment of the second aspect, a write pointer position of a buffer in the audio controller is used to determine a cause of triggering the interrupt request, and the buffer is used to store the response data.

[0015] In the above embodiment, the interrupt processing module does not need to determine the cause of triggering the interrupt request by judging whether the write pointer position of the buffer has changed. When the interrupt processing module receives an interrupt request sent by the audio controller, it does not need to determine whether the write pointer position of the buffer has changed, and can directly read the response data in the audio controller.

[0016] In the third aspect, an embodiment of the present application also provides an audio system, including: a codec, an interrupt processing module, and an audio controller; the audio controller is connected to the codec and the interrupt processing module, and the audio controller is configured to receive a current input data frame sent from the codec, detect whether the current input data frame contains response data, and if the current input data frame does not contain the response data, receive and detect the next input data frame of the current input data frame without sending an interrupt request to the interrupt processing module, wherein the response data is a reply made by the codec in response to the command sent by the audio controller.

[0017] In combination with a possible implementation manner of the embodiment of the third aspect, if the current input data frame contains the response data, the audio controller is further configured to directly send an interrupt request to the interrupt processing module.

[0018] In combination with a possible implementation manner of the third aspect embodiment, the audio controller is configured to detect whether the data in the target position segment of the current input data frame are all target values, or whether the target bit in the target position segment is the target value; if the data in the target position segment are all target values, or the target bit in the target position segment is the target value, it indicates that the current input data frame does not contain the response data.

[0019] In combination with a possible implementation manner of the third aspect embodiment, the interrupt processing module is used to receive an interrupt request sent from the audio controller, and directly read the response data in the audio controller without determining the cause of triggering the interrupt request.

[0020] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: an audio system provided by the above-mentioned third aspect embodiment and / or any possible implementation method in combination with the third aspect embodiment.

[0021] The beneficial effects of the third to fourth aspects of the embodiments are the same as the beneficial effects of the first to second aspects of the embodiments.

[0022] Other features and advantages of the present application will be described in the following description. The purpose and other advantages of the present application can be realized and obtained through the structures specifically pointed out in the written description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The above and other purposes, features and advantages of the present application will be more clear as shown in the drawings.

[0024] Figure 1 A schematic structural diagram of an audio system provided in an embodiment of the present application is shown.

[0025] Figure 2 A schematic diagram of data interaction between an audio controller and a codec provided in an embodiment of the present application is shown.

[0026] Figure 3 A schematic diagram of the data processing principle of an audio system provided in an embodiment of the present application is shown.

[0027] Figure 4 A flow chart of a data processing method for an audio system provided in an embodiment of the present application is shown.

[0028] Figure 5 A schematic diagram showing a flow chart of another method for processing data of an audio system provided in an embodiment of the present application

[0029] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0030] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The following embodiments can be used as examples to more clearly illustrate the technical solutions of the present application, and cannot be used to limit the scope of protection of the present application. It will be appreciated by those skilled in the art that, in the absence of conflict, the features in the following embodiments and embodiments can be combined with each other.

[0031] It should be noted that similar numbers and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of this application, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0032] Furthermore, the term "and / or" in this application is merely a term used to describe the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone.

[0033] In the description of the embodiments of the present application, unless otherwise clearly specified or limited, the technical term "connection" may refer to a direct connection or an indirect connection through an intermediate medium.

[0034] In order to improve the problems of high power consumption and poor timeliness of interrupt processing in the current audio system, the present application proposes a data processing method, an audio system and an electronic device for the audio system. The present application improves the structure of the audio controller in the audio system, the hardware interrupt triggering principle, the software interrupt processing principle of the interrupt processing module, etc., so as to optimize the problem of high power consumption in the current audio system.

[0035] Combine the following Figure 1 The structure diagram shown in the figure illustrates the audio system provided by the embodiment of the present application. The audio system includes a codec, an interrupt processing module and an audio controller, and the audio controller is connected to the codec and the interrupt processing module respectively.

[0036] The interaction principle between the audio controller and the codec can be described as follows Figure 2 As shown, Figure 2 BCLK in it represents the bit clock (BitClock), SYNC represents the frame synchronization signal, SDO (Serial Data Output) represents the serial data output, SDI (Serial Data Input) represents the serial data input, and RST is the reset signal.

[0037] According to the High Definition Audio Specification Revision 1.0a protocol specification (HD Audio protocol for short), when receiving information from the codec, the audio controller will periodically receive an input data frame (Input Frame) with a length of 20.833us on the SDI line at a frequency of 48kHz. The first 36 bits of this InputFrame are the Response Stream segment. Depending on the application scenario, there are two situations for the Response Stream segment of the Input Frame sent by the codec every 20.833us (48kHz). The first situation is that if a command is sent to the codec on the SDO line, the Response Stream will contain useful data. This data is called Response (response data) in the HD Audio protocol, which is a reply to the Command; the second situation is that if no Command is sent to the codec on the SDO line, the Response Stream will not contain useful data. The HD Audio protocol calls it an empty Response slot. The audio controller includes a buffer for storing response data (ie, Response), which may be a RIRB (Response Inbound RingBuffer).

[0038] The inventor of the present application found that there are two ways to trigger interrupts in the existing audio system when studying the present application: Method 1, as long as an empty Response slot appears on the SDI line of the codec, the audio controller will trigger an interrupt; Method 2, when N (the maximum value of N is 255, taking the Windows system as an example, N is generally set to 192) Responses are received in RIRB, the audio controller will trigger an interrupt. When the interrupt processing module receives these interrupts, since it does not know whether the interrupt is triggered by a Response, the interrupt processing module first reads the write pointer of RIRB. If the write pointer of RIRB changes, it indicates that RIRB has received a new Response, and the interrupt processing module will process these Responses.

[0039] The inventor of the present application has found that the interrupt processing module only needs to process the interrupt triggered by the Response, and can directly ignore the interrupt triggered by the empty Response slot that does not contain useful information.

[0040] In order to reduce the power consumption of the audio system, the audio controller of the present application is configured to receive the current input data frame sent from the codec, detect whether the current input data frame contains response data, and if the current input data frame does not contain response data, then without sending an interrupt request to the interrupt processing module, receive and detect the next input data frame of the current input data frame, wherein the response data is the reply made by the codec in response to the command sent by the audio controller. In the present application, if the current input data frame does not contain response data (Response), the interrupt request is no longer sent to the interrupt processing module, which can reduce the interrupt processing module's response to such invalid interrupt requests, thereby saving power consumption.

[0041] In practical applications, if the command interaction between the audio controller and the codec is observed for a certain period of time, it can be found that the existing audio controller will generate a large number of interrupts triggered by the empty Response slot. For example, in some scenarios, since there is no command interaction between the audio controller and the codec, the interruption triggered by the empty Response slot is actually unnecessary for the interruption processing module to respond, because the empty Response slot does not contain useful information. In the actual application of HD Audio, this situation often occurs. For example, when playing a 3-minute long music, in fact, only at the moment of clicking the start button and the end button of the player, there will be dozens or hundreds of commands interacting between the audio controller and the codec (depending on the implementation of the codec), and the rest of the time there is only the transmission of audio data, and each time an interruption is triggered, the interruption processing module will execute the interruption processing program, which will greatly increase the power consumption of the audio system. After adopting the method shown in the present application, the interruption is no longer triggered for the empty Response slot, which can reduce a large number of invalid interruptions.

[0042] If the next input data frame also does not include response data, then without sending an interrupt request to the interrupt processing module, the next input data frame is directly received and detected, and this process is repeated until the input data frame includes response data or there is no input data frame.

[0043] When the input data frame does not contain response data (Response), and when the interrupt request is not sent to the interrupt processing module, the case where the input data frame contains response data can be: if the current input data frame contains response data, the audio controller is also configured to directly send an interrupt request to the interrupt processing module. In this implementation, as long as the input data frame contains response data, the audio controller will immediately send an interrupt request to the interrupt processing module without waiting until the number of response data exceeds the threshold N before sending the interrupt request to the interrupt processing module, which can improve the timeliness of processing the interrupt request. At the same time, the storage space of the buffer in the audio controller can also be reduced. According to the HD Audio protocol, the number of Responses that trigger the interrupt must exceed N (the maximum can be set to 255) before sending an interrupt request to the interrupt processing module. Therefore, when N is set to 255, the depth of RIRB must be no less than 255, and the depth of RIRB will be greatly shortened by adopting the method shown in this application.

[0044] When the input data frame does not contain response data, the interrupt request is not sent to the interrupt processing module. For the case where the input data frame contains response data, the interrupt request is sent to the interrupt processing module only when the amount of response data exceeds the threshold value N. In this implementation manner, the interrupt request is still sent to the interrupt processing module only when the amount of response data exceeds the threshold value N.

[0045] In one implementation, the audio controller is configured to detect whether the data in the target position segment (the first 36 bits) of the current input data frame are all target values ​​(such as 0), or whether the target bits in the target position segment (part of the bits in the first 36 bits) are target values ​​(such as 0). In this way, it can be detected whether the current input data frame contains response data. For example, if the data in the target position segment are all target values, or the target bits in the target position segment are the target values, it indicates that the current input data frame does not contain response data. Otherwise, it is considered to contain response data.

[0046] The data processing method of the audio system shown in the present application, when the input data frame from the codec does not contain response data, no interrupt request is sent to the interrupt processing module, and when the input data frame from the codec contains response data, an interrupt request can be sent to the interrupt processing module without obtaining the number of response data exceeding a threshold value N. This not only reduces a large number of interrupts triggered by empty Response slots, but also improves the response speed to interrupts triggered by Response.

[0047] Since the interrupt request sent by the audio controller to the interrupt processing module no longer includes the interrupt triggered by the empty Responseslot, the interrupt processing module does not need to determine the cause of the interrupt request when processing the interrupt request, that is, it does not need to identify which interrupts are interrupts triggered by Response. At this time, the interrupt processing module receives the interrupt request sent by the audio controller, wherein the interrupt request is sent by the audio controller when the input data frame sent by the codec contains response data; the interrupt processing module directly reads the response data in the audio controller for subsequent processing without determining the cause of the interrupt request. Since the interrupt processing module reduces the process of determining the cause of the interrupt request, that is, the process of identifying which interrupts are interrupts triggered by Response is reduced, power consumption can be reduced.

[0048] In one possible implementation, the write pointer position of the buffer in the audio controller can be used to determine the cause of triggering the interrupt request, wherein the buffer is used to store response data. In this implementation, the interrupt processing module does not need to determine the cause of triggering the interrupt request by judging whether the write pointer position of the buffer has changed, wherein if the write pointer position of the buffer has changed, it is determined that the interrupt is triggered by the Response, otherwise, it is not triggered by the Response. In this implementation, when the interrupt processing module receives an interrupt request sent from the audio controller, it does not need to determine whether the write pointer position of the buffer has changed, and can directly read the response data in the audio controller.

[0049] The data processing principle of the audio system provided in the embodiment of the present application can be as follows Figure 3 As shown. When the audio controller receives the input data frame, it obtains the content of the Response Stream and still first detects it to determine whether it is a Response or an empty Response slot. The detection method can be implemented by detecting whether the Response Stream is all 0 or whether its specific bit is 0. If the Response Stream segment is a Response, it is stored in RIRB and then an interrupt is triggered immediately. If an empty Response slot is received, the audio controller ignores the Response Stream and continues to receive the next Response Stream from the SDI line.

[0050] After the interrupt processing module receives the interrupt, it will enter the interrupt processing flow in the dotted box in the figure. In this flow, the interrupt processing module directly takes the Response from RIRB. Because there is only one Response in RIRB, the interrupt processing program will not have a loop, such as judging whether the Response is the last one. If it is not the last one, it will continue to read the Response, so the interrupt processing program can be simplified.

[0051] After adopting the data processing method shown in the present application, an empty Response slot no longer triggers an interrupt, and only a Response can trigger an interrupt, so the number of interrupts is greatly reduced. Secondly, the audio controller immediately triggers an interrupt each time it receives a Response. In any case, RIRB only needs to store one Response. Compared with the need to store N Responses under the existing protocol, the complexity of RIRB can be greatly reduced. At the same time, an interrupt is immediately triggered each time a Response is received, so that the real-time processing of the interrupt processing module is greatly improved. Since an interrupt is immediately triggered each time a Response is received, RIRB has only one Response in any case. For the interrupt processing module, there is no need to identify the cause of the interrupt by judging whether the position of the write pointer of RIRB has changed as in the existing protocol, nor is there a need to use a loop to process the Responses one by one. In this way, the interrupt processing program can be simplified, thereby reducing the power consumption of the audio system and the timeliness of interrupt processing.

[0052] The above audio system can be applied to various scenarios, such as personal computers and laptops, mobile devices, workstations, home theater systems, game consoles, in-vehicle infotainment systems, smart speakers and smart home devices, professional audio equipment, conference systems, etc. In different scenarios, the interrupt processing module can have different structures. In some possible implementations, the interrupt processing module can be a processor, for example, a central processing unit CPU.

[0053] The present application also provides a data processing method for an audio system. Figure 4 As shown below, combined Figure 4 The principle is explained.

[0054] S1: The audio controller in the audio system receives a current input data frame sent from a codec in the audio system.

[0055] The audio controller receives the current input data frame sent by the codec over the SDI line.

[0056] S2: The audio controller detects whether the current input data frame contains response data.

[0057] The response data is the reply made by the codec in response to the command sent by the audio controller. The audio controller detects whether the Response Stream in the current input data frame contains the response data, and if so, executes S4, and if not, executes S3.

[0058] In one possible implementation, the process of detecting whether the current input data frame contains response data may include: detecting whether the data in the target position segment of the current input data frame are all target values, or whether the target bit in the target position segment is the target value; if the data in the target position segment are all target values, or the target bit in the target position segment is the target value, it indicates that the current input data frame does not contain response data.

[0059] S3: The audio controller receives and detects a next input data frame of the current input data frame without sending an interrupt request to an interrupt processing module in the audio system.

[0060] If the current input data frame does not include response data, then the next input data frame of the current input data frame is received and detected without sending an interrupt request to an interrupt processing module in the audio system.

[0061] S4: Send an interrupt request directly to the interrupt processing module.

[0062] If the current input data frame contains response data, an interrupt request is directly sent to the interrupt processing module without waiting until the amount of response data exceeds the threshold N.

[0063] The present application also provides a data processing method for an audio system. Figure 5 As shown below, combined Figure 5 The principle is explained.

[0064] S10: The interrupt processing module in the audio system receives an interrupt request sent from the audio controller in the audio system.

[0065] The interrupt request is sent by the audio controller when the audio controller receives response data contained in an input data frame sent by a codec in the audio system.

[0066] S20: The interrupt processing module directly reads the response data in the audio controller without determining the cause of triggering the interrupt request.

[0067] Since in this application, the audio controller will not send an interrupt request to the interrupt processing module when the received input data frame does not contain response data, after receiving the interrupt request, there is no need to determine the reason for triggering the interrupt request, but the response data in the audio controller can be directly read.

[0068] The data processing method provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned audio system embodiment. For the sake of brief description, for matters not mentioned in the method embodiment, reference may be made to the corresponding contents in the aforementioned audio system embodiment.

[0069] The embodiment of the present application further provides an electronic device, which includes the above-mentioned audio system. The electronic device can be a workstation, a desktop, a notebook, a smart phone, a tablet, and the like.

[0070] In one implementation mode, when the interrupt processing module is a processor, the structure of the electronic device can be as follows: Figure 6 The electronic device comprises: a transceiver, a memory, a communication bus, a processor, an audio controller and a codec.

[0071] The transceiver, the memory, and the processor are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines. Among them, the transceiver is used to send and receive data. The memory is used to store a computer program, wherein the computer program includes at least one software function module that can be stored in the memory in the form of software or firmware or solidified in the operating system (OS) of the electronic device. The processor is used to execute the software function module or computer program stored in the memory.

[0072] Among them, the memory can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0073] The processor may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a graphics processor (GPU), an accelerated processing unit (Accelerated Processing Unit), a multimedia application processor (MAP), a microprocessor, etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application may be implemented or executed. Or the processor may also be any conventional processor, etc.

[0074] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0075] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0076] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0077] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method for an audio system, characterized in that: The method comprises: The audio controller in the audio system receives a current input data frame sent from a codec in the audio system; The audio controller detects whether the current input data frame contains response data, wherein the response data is a reply made by the codec in response to a command sent by the audio controller; If the current input data frame does not include the response data, the audio controller receives and detects the next input data frame of the current input data frame without sending an interrupt request to an interrupt processing module in the audio system.

2. The method according to claim 1, characterized in that: The method further comprises: If the current input data frame includes the response data, an interrupt request is directly sent to the interrupt processing module.

3. The method according to claim 1, characterized in that The detecting whether the current input data frame contains response data comprises: Detecting whether all data in the target position segment of the current input data frame are target values, or whether the target bit in the target position segment is the target value; If all the data in the target position segment are target values, or the target bit in the target position segment is the target value, it indicates that the current input data frame does not contain the response data.

4. A data processing method for an audio system, characterized in that: The method comprises: The interrupt processing module in the audio system receives an interrupt request sent from the audio controller in the audio system, wherein the interrupt request is sent by the audio controller when receiving an input data frame sent from the codec in the audio system that includes response data; The interrupt processing module directly reads the response data in the audio controller without determining the cause of triggering the interrupt request.

5. The method according to claim 4, characterized in that The write pointer position of the buffer in the audio controller is used to determine the cause of triggering the interrupt request, and the buffer is used to store the response data.

6. An audio system, characterized in that: include: Codec, interrupt handling module; An audio controller is connected to the codec and the interrupt processing module. The audio controller is configured to receive a current input data frame sent from the codec, detect whether the current input data frame contains response data, and if the current input data frame does not contain the response data, receive and detect the next input data frame of the current input data frame without sending an interrupt request to the interrupt processing module, wherein the response data is a reply made by the codec in response to the command sent by the audio controller.

7. The audio system according to claim 6, characterized in that If the current input data frame includes the response data, the audio controller is further configured to directly send an interrupt request to the interrupt processing module.

8. The audio system according to claim 6, characterized in that The audio controller is configured to detect whether all data in the target position segment of the current input data frame are target values, or whether the target bit in the target position segment is the target value; If all the data in the target position segment are target values, or the target bit in the target position segment is the target value, it indicates that the current input data frame does not contain the response data.

9. The audio system according to claim 6, characterized in that The interrupt processing module is used to receive an interrupt request sent from the audio controller, and directly read the response data in the audio controller without determining the cause of triggering the interrupt request.

10. An electronic device, characterized in that: include: An audio system as claimed in any one of claims 6 to 9.