Multi-interface protocol audio coding and decoding chip control channel system and method, terminal equipment and storage medium

By setting up protocol interface modules, mapping modules and audio modules in the audio codec chip, compatibility with multiple interface protocols is achieved, and high compatibility and cost problems in the prior art are solved, and audio codec chip design with a smaller area and lower cost is realized.

CN119512493APending Publication Date: 2025-02-25SENARY TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411522396.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

When existing audio codec chips are compatible with multiple interface protocols, multiple sets of control registers need to be designed, resulting in increased chip area and increased cost.

Method used

By setting up the protocol interface module, mapping module and audio module, the protocol interface module parses the access request to generate the protocol address. The mapping module maps the protocol address to the access address of the unified encoding standard and transmits it to the corresponding audio module to achieve compatibility with different interface protocols.

Benefits of technology

Effectively reduce the area overhead of the audio codec chip, while greatly saving costs and avoiding the need to design corresponding registers for each interface protocol.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512493A_ABST
    Figure CN119512493A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-interface protocol audio coding and decoding chip control channel system and method, terminal equipment and a storage medium, the system comprises a mapping module, a plurality of audio modules and a plurality of protocol interface modules, each protocol interface module comprises an interface, and the interface in each protocol interface module has a corresponding interface protocol; wherein the protocol interface module is used for acquiring an access request received by an interface in the module and analyzing the acquired access request based on an interface protocol corresponding to the interface in the module to generate a protocol address; the mapping module is used for mapping the protocol address analyzed and generated by the protocol interface module into an access address with a unified coding standard, and transmitting the access address obtained by mapping to the corresponding audio module; different audio modules have different access addresses; and the audio module is used for receiving the access address transmitted by the mapping module and providing a corresponding access function. Therefore, the area overhead of the audio coding and decoding chip can be effectively reduced, and the cost is greatly saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of audio access technology, and more specifically, to a system, method, terminal equipment and storage medium for controlling channels of a multi-interface protocol audio codec chip. Background Art

[0002] Different types of interfaces on audio codec chips have different interface protocols. Currently, there are multiple interface protocols for audio codec chips. Although different interface protocols have different encoding and decoding methods, the main functional modules of the audio codec chip except the interface can adopt almost the same design. In order to be compatible with different application requirements and reduce design costs, audio codec chips need to be compatible with different interface protocols.

[0003] A commonly used method for being compatible with multiple interface protocols is usually to integrate multiple interfaces and corresponding control registers in an audio codec chip, and to switch different interfaces and corresponding control registers through mode selection to output different control signals; however, this method requires designing multiple sets of control registers for different interface protocols, and selecting the final output through mode switching will result in an increase in the area and cost of the audio codec chip. Summary of the invention

[0004] The purpose of the present invention is to provide a system, method, terminal device and storage medium for controlling channels of a multi-interface protocol audio codec chip, which can effectively reduce the area overhead of the audio codec chip and greatly save costs.

[0005] A system for controlling channels of a multi-interface protocol audio codec chip comprises a mapping module, a plurality of audio modules and a plurality of protocol interface modules respectively including interfaces, wherein the interfaces in each of the protocol interface modules respectively have corresponding interface protocols;

[0006] The protocol interface module is used to: obtain an access request received by an interface in this module, and generate a protocol address based on the access request obtained by parsing the interface protocol corresponding to the interface in this module;

[0007] The mapping module is used to: map the protocol address generated by the protocol interface module to an access address of the unified coding standard, and transmit the mapped access address to the corresponding audio module; different audio modules have different access addresses;

[0008] The audio module is used to receive the access address transmitted by the mapping module and provide a corresponding access function.

[0009] Preferably, there are multiple protocol interface modules containing the same interface; the multiple protocol interface modules containing the same interface can simultaneously implement the reception and analysis of multiple access requests corresponding to the same interface.

[0010] Preferably, the number of protocol interface modules containing the same interface is one; the protocol interface module is specifically used to: receive and parse multiple access requests that need to be processed by this module in order from high to low importance.

[0011] Preferably, the mapping module stores a mapping table corresponding to each interface one by one, and the mapping table contains a mapping relationship between the protocol address of the corresponding interface and the access address of the unified coding standard; the mapping module is specifically used to: based on the corresponding mapping table, map the protocol address parsed and generated by the protocol interface module to the access address of the unified coding standard.

[0012] Preferably, the mapping module is also used for: if this module does not store the mapping table on which the current mapping needs to be based, then analyzing the mapping relationship between the protocol addresses of the corresponding interface of the current mapping and the access addresses of the unified coding standard, obtaining the corresponding mapping table, storing the obtained mapping table, and performing mapping based on the obtained mapping table.

[0013] Preferably, the mapping module includes a logic conversion circuit with a mapping function, and the mapping function is a function capable of mapping any protocol address to an access address of a unified coding standard.

[0014] Preferably, the protocol interface module includes an I2C protocol interface module, an HDA protocol interface module and a Soundwire protocol interface module, and the access address is a physical address.

[0015] A method for controlling channels of a multi-interface protocol audio codec chip is applied to the system as described above; the method comprises:

[0016] The protocol interface module obtains the access request received by the interface in the module, and generates a protocol address based on the access request obtained by parsing the interface protocol corresponding to the interface in the module;

[0017] The mapping module maps the protocol address generated by the protocol interface module to an access address of a unified coding standard, and transmits the mapped access address to the corresponding audio module; different audio modules have different access addresses;

[0018] The audio module receives the access address transmitted by the mapping module and provides a corresponding access function.

[0019] A terminal device includes a memory and a processor. When a program stored in the memory is executed by the processor, the program can implement the steps of the method for controlling a channel of a multi-interface protocol audio codec chip as described above.

[0020] A storage medium, wherein when a program stored on the storage medium is executed by a processor, the program implements the steps of the method for controlling channels of a multi-interface protocol audio codec chip as described above.

[0021] The present invention is provided with a protocol interface module, a mapping module and an audio module. After the protocol interface module receives an access request through its own interface, it parses the access request according to the interface protocol corresponding to its own interface to obtain a corresponding protocol address. The mapping module maps the protocol address obtained by parsing the protocol interface module to an access address with a unified coding standard, and transmits the mapped access address to the audio module corresponding to the access address; the audio module that receives the access address provides a corresponding access function. It can be seen that in the present invention, each interface protocol module only needs to be responsible for the protocol parsing of the interface, and then the mapping module realizes access to the corresponding audio module through the mapping between addresses, without setting corresponding registers for each interface protocol, thereby effectively reducing the area overhead of the audio codec chip and greatly saving costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0023] Figure 1 A schematic diagram of the structure of a system for controlling channels of a multi-interface protocol audio codec chip provided by an embodiment of the present invention;

[0024] Figure 2 A specific example diagram of a system for controlling channels of a multi-interface protocol audio codec chip provided by an embodiment of the present invention;

[0025] Figure 3 The present invention provides a flowchart of a method for controlling channels of a multi-interface protocol audio codec chip. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] See also Figure 1 , which shows a schematic diagram of the structure of a system for controlling channels of a multi-interface protocol audio codec chip provided by an embodiment of the present invention, the system may include a mapping module, multiple audio modules, and multiple protocol interface modules respectively including interfaces, and the interfaces in each protocol interface module respectively have corresponding interface protocols;

[0028] The protocol interface module is used to obtain the access request received by the interface in this module, and generate a protocol address based on the access request obtained by parsing the interface protocol corresponding to the interface in this module;

[0029] A mapping module is used to: map the protocol address generated by the protocol interface module to an access address of a unified coding standard, and transmit the mapped access address to the corresponding audio module; different audio modules have different access addresses;

[0030] The audio module is used to receive the access address transmitted by the mapping module and provide corresponding access functions.

[0031] It should be noted that usually a protocol interface module includes one interface. Of course, it can also be set up as a protocol interface module including multiple interfaces of the same type according to actual needs, all of which are within the protection scope of the present invention; different types of interfaces correspond to different interface protocols, and the type of interface and the interface protocol are in a one-to-one correspondence.

[0032] The system in the embodiment of the present invention can be provided with protocol interface modules respectively including interfaces, and each protocol interface module is only responsible for completing the protocol parsing of the interface and generating the corresponding protocol address, and the protocol addresses generated by different interface protocols are different; the audio module is the module that actually needs to be accessed, and the address of the actual access to the audio module is called the access address. The audio module and the access address are in a one-to-one correspondence, and the access address encoding of the audio module is unique and has a unified standard, independent of the encoding of the protocol address corresponding to each interface protocol; a mapping module is inserted between the interface and the audio module to complete the mapping of the protocol address of each interface protocol to the access address of the audio module actually accessed, and the mapping of the protocol address of each interface protocol to the access address only considers the mapping relationship between the interface protocol and the access address.

[0033] The system working process in the embodiment of the present invention may include: determining that the interface currently receiving the access request is the target interface, the protocol interface module to which the target interface belongs parses the access request according to the interface protocol corresponding to the target interface, obtains the protocol address to be accessed, and receives the protocol address obtained by the analysis to the mapping module; the mapping module maps the received protocol address to an access address with a unified coding standard, and transmits the mapped access address to the audio module corresponding to the access address; the audio module responds to the transmission action of the mapping module and provides corresponding access operations.

[0034] The present invention is provided with a protocol interface module, a mapping module and an audio module. After the protocol interface module receives an access request through its own interface, it parses the access request according to the interface protocol corresponding to its own interface to obtain a corresponding protocol address. The mapping module maps the protocol address obtained by parsing the protocol interface module to an access address with a unified coding standard, and transmits the mapped access address to the audio module corresponding to the access address; the audio module that receives the access address provides a corresponding access function. It can be seen that in the present invention, each interface protocol module only needs to be responsible for the protocol parsing of the interface, and then the mapping module realizes access to the corresponding audio module through the mapping between addresses, without setting corresponding registers for each interface protocol, thereby effectively reducing the area overhead of the audio codec chip and greatly saving costs.

[0035] In a system of a multi-interface protocol audio codec chip control channel provided by an embodiment of the present invention, the number of protocol interface modules containing the same interface can be multiple; the multiple protocol interface modules containing the same interface can simultaneously realize the reception and parsing of multiple access requests of the corresponding same interface; or: the number of protocol interface modules containing the same interface is one; the protocol interface module is specifically used to: receive and parse multiple access requests that need to be processed by this module in order from high to low importance.

[0036] The corresponding relationship between the protocol interface module and the interface in the embodiment of the present invention can be set differently according to actual needs. Specifically, in a specific implementation, the number of protocol interface modules containing the same type of interface can be set to multiple, so that when it is necessary to receive and parse multiple access requests corresponding to the interface of this type, the multiple protocol interface modules belonging to the interface of this type can be used to simultaneously perform operations such as receiving and parsing multiple access requests, thereby effectively improving the efficiency of operations such as receiving and parsing access requests, and then effectively improving the access speed of the audio module; in another specific implementation, the number of protocol interface modules containing the same type of interface can be set to 1, so that when it is necessary to receive and parse multiple access requests corresponding to the interface of this type, according to the principle that the higher the importance level of the multiple access requests, the higher the priority to be processed, the multiple access requests are received and parsed in turn, so that the more important the access requests are, the earlier they are processed, while saving the area of ​​the multi-interface protocol audio codec chip and reducing costs.

[0037] An embodiment of the present invention provides a system for controlling channels of a multi-interface protocol audio codec chip, wherein a mapping module stores a mapping table corresponding to each interface, wherein the mapping table contains a mapping relationship between the protocol address of the corresponding interface and the access address of the unified coding standard; the mapping module is specifically used to: based on the corresponding mapping table, map the protocol address parsed and generated by the protocol interface module to the access address of the unified coding standard.

[0038] The mapping module is also used for: if this module does not store the mapping table on which the current mapping is based, then analyze the mapping relationship between the protocol addresses of the corresponding interface and the access addresses of the unified coding standard, obtain the corresponding mapping table, store the obtained mapping table, and perform mapping based on the obtained mapping table.

[0039] The mapping module includes a logic conversion circuit with a mapping function, and the mapping function is a function capable of mapping any protocol address to an access address of a unified coding standard.

[0040] It should be noted that the mapping module in the embodiment of the present invention can realize address mapping in two ways, namely, based on a mapping table and based on a logic conversion circuit with a mapping function. Among them, when the mapping between addresses is realized based on a mapping table, the mapping table corresponds to the type of interface one by one, and the mapping table contains the mapping relationship between the protocol address of the corresponding interface and the access address, so that when address mapping needs to be realized, the mapping table corresponding to the interface type of the protocol address currently to be mapped is first located, and then the access address with a mapping relationship with the protocol address is quickly determined by looking up the table to realize the mapping between addresses.

[0041] In addition, if when locating the mapping table of a certain interface type, if it is found that this module does not store the mapping table of this interface type, then the mapping relationship between each protocol address and each access address of the interface protocol corresponding to the interface type can be analyzed to establish and store the corresponding mapping table for implementing the corresponding mapping; a prompt can also be issued to wait for the outside world or other functional modules to provide the mapping table of the interface type based on the prompt, and this module will then store the obtained mapping table for implementing the corresponding mapping.

[0042] In a system of a multi-interface protocol audio codec chip control channel provided by an embodiment of the present invention, the protocol interface module may include an I2C (Inter-Integrated Circuit, serial communication bus) protocol interface module, an HDA (High Definition Audio, high-definition audio) protocol interface module and a Soundwire (audio bus) protocol interface module, and the access address is a physical address.

[0043] It should be noted that the interface in the embodiment of the present invention may include I2C, HDA, Soundwire, etc., and the corresponding protocol interface modules are I2C protocol interface module, HDA protocol interface module, Soundwire protocol interface module, etc.; the access address may be a physical address or an address of other unified standard protocols (such as AMBA, etc.). The following is an example of address mapping based on I2C, HDA, and Soundwire, where the interface is an interface device and the register is an audio module, for example:

[0044] 1) A typical I2C write access command format is as follows (read access is not described in detail, the mapping method is similar):

[0045] Start+SLAVE_ADDR[6:0]+W+SUB_ADDR[15:8]+SUB_ADDR[7:0]+WDATA[7:0]+Stop

[0046] Among them: SLAVE_ADDR[6:0] is the device ID address, usually 7 bits or 10 bits; the I2C interface will only further parse the commands sent to this device, SUB_ADDR is the address of the register to be accessed, which can be 8 bits, 16 bits or other.

[0047] What needs to be mapped is SUB_ADDR. This can be achieved through a lookup table. An example of the I2C interface access address mapping relationship is shown in the following table:

[0048]

[0049] 2) HDA defines multiple frame formats. The following only describes one of the write commands. The processing methods for other formats are the same. A typical write operation is as follows:

[0050]

[0051] Among them: CAD is the Device ID to be accessed. The interface will only further parse the commands sent to this device; Node_ID+Verb_ID constitutes the register address to be accessed.

[0052] The following table shows an example of the HDA interface access address mapping relationship:

[0053]

[0054]

[0055] 3) Take a command that complies with the Soundwire SDCA protocol encoding rules as an example. The SCP_AddrPage1 and SCP_AddrPage0 contained in it are page table addresses, which together with the RegAddr contained in it constitute the address that needs to be accessed, and also transmit the data that needs to be controlled. Only the address mapping part is explained here. The HDA interface access address mapping relationship example can be shown in the following table:

[0056]

[0057] like Figure 2 As shown, a system for controlling channels of a multi-interface protocol audio codec chip provided by an embodiment of the present invention can be configured as follows:

[0058] 1. Each protocol interface module (such as I2C, HDA, Soundwire, etc., the corresponding protocol addresses are represented by P_A, P_B, P_C, and the access address is represented by P_D) is only responsible for completing the protocol parsing of the interface and generating the protocol address. Different interface protocols generate different protocol addresses;

[0059] 2. The address that actually accesses the audio module is called the physical address. The physical address is unique and independent of the address encoding of each interface protocol.

[0060] 3. Insert a mapping module between the protocol interface module and the audio module to complete the mapping between each protocol address and the physical address of the audio module actually accessed; for each mapping of protocol address to physical address, only the mapping relationship between the interface protocol and the physical address is considered.

[0061] The present invention does not need to design a set of registers for each interface protocol, thereby reducing area overhead and saving costs; does not need to complete mutual conversion between various protocols, thereby reducing design complexity; does not need to integrate a CPU to complete the solution for the actual physical address, thereby reducing system design complexity and area.

[0062] like Figure 3 As shown, the embodiment of the present invention also provides a method for controlling channels of a multi-interface protocol audio codec chip, which can be applied to the system as described above, and specifically may include:

[0063] S11: The protocol interface module obtains an access request received by an interface in the module, and generates a protocol address based on the access request obtained by parsing the interface protocol corresponding to the interface in the module;

[0064] S12: The mapping module maps the protocol address generated by the protocol interface module into an access address of the unified coding standard, and transmits the mapped access address to the corresponding audio module; different audio modules have different access addresses;

[0065] S13: The audio module receives the access address transmitted by the mapping module and provides a corresponding access function.

[0066] An embodiment of the present invention further provides a terminal device, including a memory and a processor. When the program stored in the memory is executed by the processor, the steps of the method for controlling channels of a multi-interface protocol audio codec chip as described above can be implemented.

[0067] The embodiment of the present invention further provides a storage medium, and when the program stored in the storage medium is executed by a processor, the steps of the method for controlling channels of a multi-interface protocol audio codec chip as described above are implemented.

[0068] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A system for controlling channels of a multi-interface protocol audio codec chip, characterized in that: It includes a mapping module, a plurality of audio modules and a plurality of protocol interface modules each including an interface, wherein the interface in each of the protocol interface modules has a corresponding interface protocol; The protocol interface module is used to: obtain an access request received by an interface in this module, and generate a protocol address based on the access request obtained by parsing the interface protocol corresponding to the interface in this module; The mapping module is used to: map the protocol address generated by the protocol interface module to an access address of the unified coding standard, and transmit the mapped access address to the corresponding audio module; different audio modules have different access addresses; The audio module is used to receive the access address transmitted by the mapping module and provide a corresponding access function.

2. The system according to claim 1, characterized in that There are multiple protocol interface modules containing the same interface; the multiple protocol interface modules containing the same interface can simultaneously implement the reception and analysis of multiple access requests corresponding to the same interface.

3. The system according to claim 1, characterized in that The number of protocol interface modules containing the same interface is one; the protocol interface module is specifically used to: receive and parse multiple access requests that need to be processed by the module in order from high to low importance.

4. The system according to claim 2 or 3, characterized in that: The mapping module stores a mapping table corresponding to each interface one by one, and the mapping table contains the mapping relationship between the protocol address of the corresponding interface and the access address of the unified coding standard; the mapping module is specifically used to: based on the corresponding mapping table, map the protocol address parsed and generated by the protocol interface module to the access address of the unified coding standard.

5. The system according to claim 4, characterized in that The mapping module is also used for: if this module does not store the mapping table on which the current mapping needs to be based, then analyzing the mapping relationship between the protocol addresses of the corresponding interface and the access addresses of the unified coding standard, obtaining the corresponding mapping table, storing the obtained mapping table, and performing mapping based on the obtained mapping table.

6. The system according to claim 2 or 3, characterized in that: The mapping module includes a logic conversion circuit with a mapping function, and the mapping function is a function that can map any protocol address to an access address of the unified coding standard.

7. The system according to claim 2 or 3, characterized in that: The protocol interface module includes an I2C protocol interface module, an HDA protocol interface module and a Soundwire protocol interface module, and the access address is a physical address.

8. A method for controlling channels of a multi-interface protocol audio codec chip, characterized in that: Applied to the system according to any one of claims 1 to 7; the method comprises: The protocol interface module obtains the access request received by the interface in the module, and generates a protocol address based on the access request obtained by parsing the interface protocol corresponding to the interface in the module; The mapping module maps the protocol address generated by the protocol interface module to an access address of a unified coding standard, and transmits the mapped access address to the corresponding audio module; different audio modules have different access addresses; The audio module receives the access address transmitted by the mapping module and provides a corresponding access function.

9. A terminal device, characterized in that: It comprises a memory and a processor, and when the program stored in the memory is executed by the processor, the steps of the method for controlling channels of a multi-interface protocol audio codec chip as claimed in claim 7 can be implemented.

10. A storage medium, characterized in that: When the program stored on the storage medium is executed by the processor, the steps of the method for controlling channels of a multi-interface protocol audio codec chip as described in claim 7 are implemented.