CN113076144A - Power amplifier adaptation method, terminal device, storage medium and computer program product - Google Patents

Power amplifier adaptation method, terminal device, storage medium and computer program product Download PDF

Info

Publication number
CN113076144A
CN113076144A CN202110442380.4A CN202110442380A CN113076144A CN 113076144 A CN113076144 A CN 113076144A CN 202110442380 A CN202110442380 A CN 202110442380A CN 113076144 A CN113076144 A CN 113076144A
Authority
CN
China
Prior art keywords
power amplifier
terminal equipment
initialization
configuration file
configuration parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110442380.4A
Other languages
Chinese (zh)
Inventor
马连群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202110442380.4A priority Critical patent/CN113076144A/en
Publication of CN113076144A publication Critical patent/CN113076144A/en
Priority to PCT/CN2021/107981 priority patent/WO2022222292A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention discloses a power amplifier adaptation method, a terminal device, a storage medium and a computer program product, wherein the method comprises the following steps: when a power amplifier initialization instruction for performing power amplifier initialization operation on terminal equipment is received, acquiring power amplifier configuration parameters adaptive to the terminal equipment; the power amplifier configuration parameters are transmitted into the terminal equipment, corresponding power amplifier addresses are written in, and power amplifier initialization operation is carried out on the terminal equipment.

Description

Power amplifier adaptation method, terminal device, storage medium and computer program product
Technical Field
The present invention relates to the field of power amplifier adaptation technologies, and in particular, to a power amplifier adaptation method, a terminal device, a storage medium, and a computer program product.
Background
With the improvement of living standard, the requirements of people on products just needed in life are gradually improved, for example, television products are not only aiming at functions, but also are required to be improved in the aspect of experience sense, and the requirements comprise image quality and tone quality. In the aspect of tone quality, if need promote the tone quality effect, fundamentally needs the higher power amplifier of adaptation performance, and partial TV set product is in order to promote tone quality effect and performance, and not only power amplifier of adaptation, a bit can a plurality of power amplifiers of adaptation, the multiple power amplifier of adaptation even, including heavy bass power amplifier etc..
At present, the way of adapting power amplifier in the aspect of television software is to directly rely on bottom layer driving software and initialize different power amplifiers according to different machine cores and machine types. However, in software, work is adapted according to a movement-machine type, and a plurality of macro definitions are bound to be added for distinguishing, so that not only is the redundancy of codes increased, but also the maintenance is not facilitated.
Disclosure of Invention
The invention mainly aims to provide a power amplifier adaptation method, terminal equipment, a storage medium and a computer program product, and aims to solve the problem of complicated adaptation work of power amplifier software, improve power amplifier adaptation compatibility and efficiency and improve code consistency.
In order to achieve the above object, an embodiment of the present invention provides a power amplifier adaptation method, where the method includes the following steps:
when a power amplifier initialization instruction for performing power amplifier initialization operation on terminal equipment is received, acquiring power amplifier configuration parameters adaptive to the terminal equipment;
and transmitting the power amplifier configuration parameters into the terminal equipment, writing the corresponding power amplifier address into the terminal equipment, and performing power amplifier initialization operation on the terminal equipment.
Optionally, the method further comprises:
and responding to a power amplifier control instruction for performing power amplifier control on the terminal equipment, and writing fixed power amplifier data information into a mute control pin appointed by a power amplifier device of the terminal equipment so as to perform power amplifier control operation on the terminal equipment.
Optionally, the step of obtaining the power amplifier configuration parameter adapted to the terminal device when receiving a power amplifier initialization instruction for initializing the power amplifier of the terminal device includes:
calling a preset power amplifier configuration file when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received;
and analyzing the power amplifier configuration file, and acquiring power amplifier configuration parameters adaptive to the terminal equipment from the power amplifier configuration file.
Optionally, the step of obtaining the power amplifier configuration parameter adapted to the terminal device when receiving the power amplifier initialization instruction for performing power amplifier initialization operation on the terminal device further includes:
and configuring corresponding power amplifier configuration parameters for the machine cores or machine types of different terminal equipment to generate the power amplifier configuration file.
Optionally, configuring corresponding power amplifier configuration parameters for the cores or models of different terminal devices, and generating the power amplifier configuration file further includes:
loading the power amplifier configuration file, and compiling the power amplifier configuration file to a system-specified path of the terminal equipment;
the step of calling the preset power amplifier configuration file when receiving the power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment comprises the following steps:
and when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, calling the power amplifier configuration file from a system-specified path of the terminal equipment so as to analyze the power amplifier configuration file.
Optionally, the power amplifier configuration parameters include one or more of the following: the method comprises the following steps that the power amplifier type, the I2C bus ID where power amplifier hardware is located, the address of a power amplifier device, a power amplifier reset pin and a power amplifier initialization bin file storage path are stored; and/or the power amplifier configuration file is an ini file.
Optionally, the power amplifier is a single power amplifier, or a plurality of power amplifiers of the same type, or a plurality of power amplifiers of different types.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a power amplifier adaptation program stored on the processor, and the power amplifier adaptation program executes the steps of the method when called by the processor.
In order to achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a power amplifier adaptation program is stored on the computer-readable storage medium, and the power amplifier adaptation program executes the steps of the method when being called by a processor.
In order to achieve the above object, an embodiment of the present invention further provides a computer program product, where the computer program product includes a power amplifier adaptation program, and the power amplifier adaptation program executes the steps of the method when called by a processor.
According to the power amplifier adapting method, the terminal device, the storage medium and the computer program product, when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal device is received, power amplifier configuration parameters adapted to the terminal device are obtained; the power amplifier configuration parameters are transmitted into the terminal equipment and written into corresponding power amplifier addresses, and the terminal equipment is subjected to power amplifier initialization operation.
Drawings
Fig. 1 is a schematic diagram of functional modules of the power amplifier adaptive terminal device of the invention;
fig. 2 is a schematic flow chart of a first embodiment of the power amplifier adaptation method of the present invention;
fig. 3 is a schematic flow chart of a power amplifier adaptation method according to a second embodiment of the present invention;
fig. 4 is a schematic flow chart of a power amplifier adaptation method according to a third embodiment of the present invention;
fig. 5 is a detailed flow diagram of an embodiment of the power amplifier adaptation method of the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when a power amplifier initialization instruction for performing power amplifier initialization operation on terminal equipment is received, acquiring power amplifier configuration parameters adaptive to the terminal equipment; the power amplifier configuration parameters are transmitted into the terminal equipment and written into corresponding power amplifier addresses, and the terminal equipment is subjected to power amplifier initialization operation, the scheme can transmit power amplifier configuration parameters matched with the terminal equipment into the terminal equipment when power amplifier initialization is carried out, different core-type power amplifier initialization operations are carried out, the problem that the current power amplifier software adaptation work is complicated is solved, different cores-type power amplifiers can be matched with different cores under the condition that operation codes such as power amplifier initialization are general, so that the steps of different core-type power amplifier adaptation are simplified, the power amplifier adaptation efficiency is improved, the code consistency and the quality are improved, and different power amplifier adaptation specifications are unified
The technical terms related to the embodiment of the invention are as follows:
an ini file, ini being an abbreviation for "initialization" in the english language. The ini file format is an informal standard for configuration files on some platforms or software, consisting of sections and keys, commonly used in the microsoft Windows operating system. The file extension of such a configuration file is mostly ini, and the ini file is used to initialize or perform parameter setting on an operating system or a specific program.
mute/unmute: mute/unmute.
In the embodiment of the application, the power amplifier is adapted in the aspect of television software in the existing related scheme by directly depending on bottom layer driving software and initializing different power amplifiers according to different machine cores and machine types. However, in software, work is adapted according to a movement-machine type, and a plurality of macro definitions are bound to be added for distinguishing, so that not only is the redundancy of codes increased, but also the maintenance is not facilitated.
Therefore, the power amplifier software adaptation method and device can solve the problem that the existing power amplifier software adaptation work is complicated, and the power amplifier software adaptation method and device are compatible with different power amplifiers adapting to different machine cores and machine types under the condition that operation codes such as power amplifier initialization are general, meanwhile, the steps of adapting to the power amplifiers of different machine cores and machine types are simplified, power amplifier adaptation efficiency is improved, and code consistency is improved.
The scheme of the invention only needs to ensure that the parameters can be transmitted into correct parameters according to the actual power amplifier adaptation conditions of different machine core-machine types, and the correct initialization of the power amplifier can be completed. Therefore, the invention can complete the work of adapting different power amplifiers by different machine cores and machine types with the least workload under the condition of ensuring the consistency of software codes, thereby not only improving the working efficiency, but also improving the quality of the software codes and unifying the adaptation specifications of different power amplifiers.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of a functional module of the power amplifier adapting terminal device of the present invention. The power amplifier adaptive terminal device can be an electronic device for realizing a power amplifier effect, such as a television, a computer and the like, and the embodiment is exemplified by the television.
In this embodiment, the power amplifier adapting terminal device at least includes an output module 110, a processor 120, a memory 130, a communication module 140, and the like.
The memory 130 stores an operating system and a power amplifier adapting program; the output module 110 may be a display screen, a speaker, etc. The communication module 140 may include a WIFI module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
As an embodiment, the power amplifier adaptation program in the memory 130, when executed by the processor, implements the following steps:
when a power amplifier initialization instruction for performing power amplifier initialization operation on terminal equipment is received, acquiring power amplifier configuration parameters adaptive to the terminal equipment;
and transmitting the power amplifier configuration parameters into the terminal equipment, writing the corresponding power amplifier address into the terminal equipment, and performing power amplifier initialization operation on the terminal equipment.
Further, when executed by the processor, the power amplifier adaptation program in the memory 130 further implements the following steps:
and responding to a power amplifier control instruction for performing power amplifier control on the terminal equipment, and writing fixed power amplifier data information into a mute control pin appointed by a power amplifier device of the terminal equipment so as to perform power amplifier control operation on the terminal equipment.
Further, when executed by the processor, the power amplifier adaptation program in the memory 130 further implements the following steps:
calling a preset power amplifier configuration file when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received;
and analyzing the power amplifier configuration file, and acquiring power amplifier configuration parameters adaptive to the terminal equipment from the power amplifier configuration file.
Further, when executed by the processor, the power amplifier adaptation program in the memory 130 further implements the following steps:
and configuring corresponding power amplifier configuration parameters for the machine cores or machine types of different terminal equipment to generate the power amplifier configuration file.
Further, when executed by the processor, the power amplifier adaptation program in the memory 130 further implements the following steps:
loading the power amplifier configuration file, and compiling the power amplifier configuration file to a system-specified path of the terminal equipment;
and when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, calling the power amplifier configuration file from a system-specified path of the terminal equipment so as to analyze the power amplifier configuration file.
According to the scheme, when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, power amplifier configuration parameters adaptive to the terminal equipment are obtained; the power amplifier configuration parameters are transmitted into the terminal equipment and written into corresponding power amplifier addresses, and the terminal equipment is subjected to power amplifier initialization operation.
Based on the terminal equipment architecture, the embodiment of the power amplifier adapting method is provided.
Specifically, as shown in fig. 2, a first embodiment of the present invention provides a power amplifier adapting method, where the power amplifier adapting method includes:
step S10, when receiving a power amplifier initialization instruction for performing power amplifier initialization operation on terminal equipment, acquiring power amplifier configuration parameters adaptive to the terminal equipment;
the terminal device in this embodiment includes, but is not limited to, a television, a computer, a music player, and other electronic devices configured with a power amplifier, and the present embodiment is exemplified by the television, but not limited thereto.
And installing power amplifier adaptive application software on the terminal equipment, and triggering a power amplifier initialization instruction on the power amplifier adaptive application software of the terminal equipment when the power amplifier initialization operation needs to be carried out on the terminal equipment.
The method comprises the steps that when terminal equipment receives a power amplifier initialization instruction for carrying out power amplifier initialization operation on the terminal equipment, power amplifier configuration parameters adaptive to the terminal equipment are obtained.
The power amplifier configuration parameters comprise one or more parameters of the power amplifier type, I2C bus ID where power amplifier hardware is located, the address of a power amplifier device, a power amplifier reset pin and a power amplifier initialization data bin file storage path.
The terminal device can be adapted to a single power amplifier, or a plurality of power amplifiers of the same type, or a plurality of power amplifiers of different types.
The scheme of the embodiment mainly solves the problem of complicated work of the existing power amplifier software adaptation, and is compatible with the machine core-machine types of different terminal equipment under the condition of ensuring the operation codes such as power amplifier initialization and the like to be general, so that different power amplifiers can be adapted, meanwhile, the steps of adapting the power amplifiers by different machine cores-machine types are simplified, the power amplifier adaptation efficiency is improved, and the software code consistency is also improved.
As mentioned above, power amplifier adaptation mainly involves parameters such as power amplifier type, I2C bus ID where power amplifier hardware is located, power amplifier device address, power amplifier reset pin, power amplifier initialization bin file path, etc. when software performs power amplifier initialization, it only needs to ensure that the parameters can be transmitted into correct parameters according to actual power amplifier adaptation conditions of different core-machine types, and then power amplifier can be initialized correctly. Therefore, the work of adapting different power amplifiers by different machine cores and machine types can be completed with the least workload under the condition of ensuring the consistency of software codes, so that the working efficiency is improved, the quality of the software codes is improved, and the adaptation specifications of different power amplifiers are unified.
By combining the above design ideas, this embodiment mainly solves the problem that when different core-machine types perform different power amplifier initializations, power amplifier related parameters matched with the core-machine types can be transmitted, and then software can write correct data into a corresponding power amplifier address according to the transmitted parameter types, thereby completing operations such as power amplifier initialization.
When the power amplifier configuration parameters are transmitted, the power amplifier configuration parameters can be written into different configuration files in advance, then the configuration files are analyzed through software to obtain correct power amplifier configuration parameters, and further the corresponding power amplifier is initialized and the like.
As an implementation manner, in the solution of this embodiment, the power amplifier parameters may be stored in an ini file, and the ini file is analyzed by software to obtain the relevant parameters, so as to implement the operation of the power amplifier.
Specifically, when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal device is received, a preset power amplifier configuration file is called;
and then, analyzing the power amplifier configuration file, and acquiring power amplifier configuration parameters such as the power amplifier type adaptive to the terminal equipment, the I2C bus ID where power amplifier hardware is located, the address of a power amplifier device, a power amplifier reset pin, a power amplifier initialization bin file path and the like from the power amplifier configuration file.
And step S20, transmitting the power amplifier configuration parameters into the terminal equipment, writing the corresponding power amplifier address into the terminal equipment, and performing power amplifier initialization operation on the terminal equipment.
After power amplifier configuration parameters such as the power amplifier type adaptive to the terminal equipment, the I2C bus ID where power amplifier hardware is located, the address of a power amplifier device, a power amplifier reset pin, a power amplifier initialization bin file path and the like are obtained, the power amplifier configuration parameters are transmitted into the terminal equipment, the corresponding power amplifier address is written in, and power amplifier initialization operation is carried out on the terminal equipment.
Specifically, as an embodiment, corresponding power amplifier configuration parameters may be configured in advance for different cores or models of the terminal device, and when performing power amplifier initialization operation, the power amplifier configuration parameters such as a power amplifier type adapted to the terminal device, an I2C bus ID where power amplifier hardware is located, a power amplifier device address, a power amplifier reset pin, and a power amplifier initialization bin file path are transmitted to the terminal device, and the corresponding power amplifier address is written in, so as to perform power amplifier initialization operation on the terminal device.
As another embodiment, corresponding power amplifier configuration parameters may be configured for cores or models of different terminal devices, and a power amplifier configuration file is generated, that is, power amplifier configuration parameters such as a power amplifier type, an I2C bus ID where power amplifier hardware is located, a power amplifier device address, a power amplifier reset pin, a power amplifier initialization bin file path, and the like may be configured into corresponding power amplifier configuration files according to cores or models of different terminal devices.
Then, the power amplifier configuration file can be loaded and compiled to a system-specified path of the terminal equipment;
and when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, calling the power amplifier configuration file from a system-specified path of the terminal equipment so as to analyze the power amplifier configuration file.
According to the scheme, when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, power amplifier configuration parameters adaptive to the terminal equipment are obtained; the power amplifier configuration parameters are transmitted into the terminal equipment and written into corresponding power amplifier addresses, and the terminal equipment is subjected to power amplifier initialization operation.
As shown in fig. 3, a second embodiment of the present invention provides a power amplifier adaptation method, based on the embodiment shown in fig. 2, the power amplifier adaptation method further includes:
and step S30, responding to a power amplifier control instruction for power amplifier control of the terminal equipment, and writing fixed power amplifier data information into a mute control pin appointed by a power amplifier device of the terminal equipment so as to carry out power amplifier control operation on the terminal equipment.
Specifically, after the power amplifier initialization operation of the terminal device is completed, a power amplifier control operation, such as a Mute/unncore operation, may be performed on the terminal device, and fixed data information is written to a Mute control pin specified by a power amplifier device of the terminal device, so as to implement the power amplifier Mute/unncore control operation.
According to the scheme, when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, power amplifier configuration parameters adaptive to the terminal equipment are obtained; transmitting the power amplifier configuration parameters into the terminal equipment, writing the corresponding power amplifier address into the terminal equipment, and performing power amplifier initialization operation on the terminal equipment; and responding to a power amplifier control instruction for performing power amplifier control on the terminal equipment, and writing fixed power amplifier data information into a mute control pin appointed by a power amplifier device of the terminal equipment so as to perform power amplifier control operation on the terminal equipment. According to the scheme, when power amplifier initialization is carried out, power amplifier configuration parameters matched with the terminal equipment can be transmitted into the terminal equipment, different power amplifier initialization operations of different machine cores and different machine types are realized, the problem that the current power amplifier software adaptation work is complicated is solved, different power amplifiers matched with different machine cores and different machine types are compatible under the condition that operation codes such as power amplifier initialization are general, so that the steps of different machine core and machine type adaptive power amplifiers are simplified, the power amplifier adaptation efficiency is improved, the code consistency and the quality are improved, and the adaptation specifications of different power amplifiers are unified.
As shown in fig. 4, a third embodiment of the present invention provides a power amplifier adapting method, based on the embodiment shown in fig. 3, in step S10, before obtaining power amplifier configuration parameters adapted to a terminal device when receiving a power amplifier initialization instruction for performing a power amplifier initialization operation on the terminal device, the power amplifier adapting method further includes:
and S101, configuring corresponding power amplifier configuration parameters for the machine cores or machine types of different terminal equipment, and generating the power amplifier configuration file.
Step S102, loading the power amplifier configuration file, and compiling the power amplifier configuration file to a system-specified path of the terminal equipment;
in step S10, when receiving a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal device, invoking a preset power amplifier configuration file includes:
step S100, when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, the power amplifier configuration file is called from a system-specified path of the terminal equipment so as to analyze the power amplifier configuration file.
Specifically, as mentioned above, the power amplifier adaptation mainly relates to parameters such as the type of the power amplifier, the I2C bus ID where the power amplifier hardware is located, the address of the power amplifier device, the power amplifier reset pin, the power amplifier initialization bin file path, and the like, and when the software performs power amplifier initialization, it is only necessary to ensure that the parameters can be transmitted into correct parameters according to the actual power amplifier adaptation conditions of different core-model types, and then the power amplifier can be initialized correctly. Therefore, the work of adapting different power amplifiers by different machine cores and machine types can be completed with the least workload under the condition of ensuring the consistency of software codes, so that the working efficiency is improved, the quality of the software codes is improved, and the adaptation specifications of different power amplifiers are unified.
The embodiment mainly solves the problems that when different machine core-machine types carry out different power amplifier initialization, relevant parameters of the power amplifier matched with the machine core-machine types can be transmitted, and then software can write correct data into corresponding power amplifier addresses according to the transmitted parameter types, so that the power amplifier initialization and other operations are completed.
In specific implementation, as an embodiment mode, corresponding power amplifier configuration parameters may be configured for cores or models of different terminal devices, and a power amplifier configuration file is generated, that is, power amplifier configuration parameters such as a power amplifier type, an I2C bus ID where power amplifier hardware is located, a power amplifier device address, a power amplifier reset pin, a power amplifier initialization bin file path, and the like may be configured into corresponding power amplifier configuration files according to cores or models of different terminal devices.
Then, the power amplifier configuration file can be loaded and compiled to a system-specified path of the terminal equipment;
and when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, calling the power amplifier configuration file from a system-specified path of the terminal equipment so as to analyze the power amplifier configuration file.
Therefore, when the power amplifier configuration parameters are transmitted, the power amplifier configuration parameters can be written into different configuration files in advance, and then the configuration files are analyzed through software to obtain correct power amplifier configuration parameters, so that the corresponding power amplifiers are initialized and the like.
The power amplifier configuration file is an ini file.
As an implementation manner, the power amplifier configuration parameters may be stored in the ini file, and the ini file is analyzed by software to obtain the relevant parameters, so as to implement the operation of the power amplifier.
Specifically, when a power amplifier initialization instruction for performing power amplifier initialization operation on terminal equipment is received, the power amplifier configuration file is called from a system-specified path of the terminal equipment;
and then, analyzing the power amplifier configuration file, acquiring power amplifier configuration parameters such as the power amplifier type adaptive to the terminal equipment, the I2C bus ID where power amplifier hardware is located, the address of a power amplifier device, a power amplifier reset pin, a power amplifier initialization bin file path and the like from the power amplifier configuration file, and performing power amplifier initialization operation on the terminal equipment.
In the following, the scheme of this embodiment is described in detail by taking a television and a power amplifier configuration file as an ini file to implement the adaptation of the television to the corresponding power amplifier configuration parameters:
referring to fig. 5, fig. 5 is a detailed flowchart of power amplifier control in this embodiment, and the system control architecture mainly relates to an up-down calling module of the power amplifier control module. The application layer calls downwards, the power amplifier ini configuration file content is analyzed in the SKYHAL _ AMP module, and then the corresponding power amplifier driver of the SkyHal Common Amp module is operated downwards continuously according to the configuration information.
The power amplifier adaptation method is universal for all platforms, the configuration of the method is simple, the software codes are universal, the maintenance is convenient, the advantages of the method can be better embodied aiming at the condition that the same platform needs to be adapted with a plurality of power amplifiers or a plurality of power amplifiers, the implementation method and the implementation process are specifically shown in a power amplifier control flow chart of fig. 5, and the specific process is as follows:
s1: the method comprises the steps that an amp.ini file is configured to obtain an ini power amplifier configuration file, the configuration content mainly comprises a power amplifier type, an I2C bus ID where power amplifier hardware is located, a power amplifier device address, a power amplifier reset pin, a power amplifier initialization data bin storage path and the like according to a hardware circuit diagram, and the power amplifier ini configuration file has differences according to actual function requirements of different products, such as a single power amplifier, a plurality of power amplifiers of the same type or a plurality of power amplifiers of different types;
s2: loading an amp.ini file, compiling the amp.ini file to an appointed path when compiling and integrating software, wherein the path is different when different machines are configured with screens, and the embodiment acquires the path of the amp.ini through the software so as to perform normal analysis on the amp.ini configuration file;
s3: analyzing the amp.ini file, and acquiring correct information of power amplifier configuration by software through matching name character strings of different configuration items in the amp.ini so as to write correct data information into the power amplifier subsequently;
s4: initializing power amplifier operation, writing all data information in the bin file into a corresponding address according to related configuration information obtained by analyzing the ini power amplifier configuration file, and completing the power amplifier initialization operation, wherein the written data is mainly written through I2C;
s5: and (4) carrying out Mute/Unroute operation, and writing fixed data information into a Mute control pin appointed by the power amplifier device so as to realize the control operation of the power amplifier Mute/Unroute.
In the scheme of the embodiment, relevant configuration information of the power amplifier is mainly obtained by analyzing an ini power amplifier configuration file, the configuration information comprises information such as the power amplifier type, the device address and the I2C bus ID, correct data information is written into a specified address through I2C read-write operation, so that the operations such as power amplifier initialization, Mute, Unroute and the like are realized, and power amplifier control is realized.
Compared with the prior art, the scheme of the embodiment can meet the requirements of adapting to multiple or even multiple power amplifiers by different machine cores and machine types only by changing the configuration parameters in the ini file. Not only are the power amplifier adaptations of different machine core-machine types compatible on software, but also the power amplifier adaptations of different scheme platforms (such as HISI, MTK, Amplogic and the like) can be compatible, the related operations of the power amplifier are not required to be driven by a bottom layer, and only a first-level power amplifier operation interface is required to be packaged below an application layer, so that the standardization and the uniformity of codes are realized.
It should be noted that, the scheme of this embodiment is applicable to all relevant platforms to perform power amplifier relevant operations, and by analyzing the configuration content of the ini file, software operates the corresponding power amplifier. Software function differentiation and adaptation are carried out by analyzing the ini file so as to achieve software universality, the method can be suitable for power amplifier adaptation and can also be used in different television lamp effect functions, customized requirements such as breathing lamp effects, flickering effects and the like can be configured through the ini file, the software uses the same set of codes, and differentiation requirement management is achieved through the ini file configuration. The scheme is not only beneficial to software code maintenance, but also simpler in customized function adaptation work.
In addition, the scheme of the embodiment is mainly optimized and improved aiming at software design, code universality and inheritability are improved, software maintainability is improved, and power amplifier adaptation work is simplified. Under the condition of ensuring the unification of the control codes of the power amplifier software, the power amplifier adaptation work of different products is realized only by modifying different configuration item information of a power amplifier ini file, and then the self-adaptation of the power amplifier adaptation is realized.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a power amplifier adaptation program stored on the processor, and the power amplifier adaptation program executes the steps of the method according to the above embodiment when being called by the processor.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a power amplifier adaptation program is stored in the computer-readable storage medium, and the power amplifier adaptation program is invoked by a processor to perform the steps of the method according to the foregoing embodiment.
In addition, an embodiment of the present invention further provides a computer program product, where the computer program product includes a power amplifier adaptation program, and the power amplifier adaptation program is invoked by a processor to execute the steps of the method according to the above embodiment.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A power amplifier adapting method is characterized by comprising the following steps:
when a power amplifier initialization instruction for performing power amplifier initialization operation on terminal equipment is received, acquiring power amplifier configuration parameters adaptive to the terminal equipment;
and transmitting the power amplifier configuration parameters into the terminal equipment, writing the corresponding power amplifier address into the terminal equipment, and performing power amplifier initialization operation on the terminal equipment.
2. The method of claim 1, further comprising:
and responding to a power amplifier control instruction for performing power amplifier control on the terminal equipment, and writing fixed power amplifier data information into a mute control pin appointed by a power amplifier device of the terminal equipment so as to perform power amplifier control operation on the terminal equipment.
3. The method of claim 1, wherein the step of obtaining the power amplifier configuration parameters adapted to the terminal device when receiving a power amplifier initialization command for initializing a power amplifier of the terminal device comprises:
calling a preset power amplifier configuration file when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received;
and analyzing the power amplifier configuration file, and acquiring power amplifier configuration parameters adaptive to the terminal equipment from the power amplifier configuration file.
4. The method according to claim 3, wherein the step of obtaining the power amplifier configuration parameters adapted to the terminal device when receiving the power amplifier initialization instruction for performing the power amplifier initialization operation on the terminal device further comprises:
and configuring corresponding power amplifier configuration parameters for the machine cores or machine types of different terminal equipment to generate the power amplifier configuration file.
5. The method according to claim 4, wherein the step of configuring corresponding power amplifier configuration parameters for the core or model of different terminal devices and generating the power amplifier configuration file further comprises:
loading the power amplifier configuration file, and compiling the power amplifier configuration file to a system-specified path of the terminal equipment;
the step of calling the preset power amplifier configuration file when receiving the power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment comprises the following steps:
and when a power amplifier initialization instruction for performing power amplifier initialization operation on the terminal equipment is received, calling the power amplifier configuration file from a system-specified path of the terminal equipment so as to analyze the power amplifier configuration file.
6. The method of claim 3, wherein the power amplifier configuration parameters include one or more of: the method comprises the following steps that the power amplifier type, the I2C bus ID where power amplifier hardware is located, the address of a power amplifier device, a power amplifier reset pin and a power amplifier initialization bin file storage path are stored; and/or the power amplifier configuration file is an ini file.
7. The power amplifier adapting method according to claim 4, wherein the power amplifier is a single power amplifier, or a plurality of power amplifiers of the same type, or a plurality of power amplifiers of different types.
8. A terminal device, characterized in that the terminal device comprises a memory, a processor, and a power amplifier adaptation program stored on the processor, which when invoked by the processor performs the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, having stored thereon a power amplifier adaptation program, which when invoked by a processor performs the steps of the method of any of claims 1 to 7.
10. A computer program product, characterized in that it comprises a power amplifier adaptation program which, when invoked by a processor, performs the steps of the method according to any one of claims 1 to 7.
CN202110442380.4A 2021-04-23 2021-04-23 Power amplifier adaptation method, terminal device, storage medium and computer program product Pending CN113076144A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110442380.4A CN113076144A (en) 2021-04-23 2021-04-23 Power amplifier adaptation method, terminal device, storage medium and computer program product
PCT/CN2021/107981 WO2022222292A1 (en) 2021-04-23 2021-07-22 Power amplifier adaptation method, terminal device, storage medium and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110442380.4A CN113076144A (en) 2021-04-23 2021-04-23 Power amplifier adaptation method, terminal device, storage medium and computer program product

Publications (1)

Publication Number Publication Date
CN113076144A true CN113076144A (en) 2021-07-06

Family

ID=76618482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110442380.4A Pending CN113076144A (en) 2021-04-23 2021-04-23 Power amplifier adaptation method, terminal device, storage medium and computer program product

Country Status (2)

Country Link
CN (1) CN113076144A (en)
WO (1) WO2022222292A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590208A (en) * 2021-09-26 2021-11-02 广州朗国电子科技股份有限公司 Method and system for changing terminal digital power amplifier driving parameters and electronic equipment
CN114090093A (en) * 2021-11-30 2022-02-25 深圳创维-Rgb电子有限公司 Tuner self-adapting method, device, equipment and storage medium
WO2022222292A1 (en) * 2021-04-23 2022-10-27 深圳创维-Rgb电子有限公司 Power amplifier adaptation method, terminal device, storage medium and computer program product
CN115665350A (en) * 2022-10-28 2023-01-31 四川长虹电器股份有限公司 Processing method for adapting intelligent television software to multiple digital power amplifier hardware platforms

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100188929A1 (en) * 2009-01-23 2010-07-29 Victor Company Of Japan, Ltd. Electronic apparatus operable by external sound
CN103916732A (en) * 2012-12-31 2014-07-09 广州励丰文化科技股份有限公司 Control method for active integrated loudspeaker box provided with multi-digital signal processor system
CN104994459A (en) * 2015-06-17 2015-10-21 Tcl海外电子(惠州)有限公司 Terminal digital power amplifier configuration method and device
CN105812919A (en) * 2014-12-30 2016-07-27 深圳Tcl数字技术有限公司 Audio frequency multi-power amplifier processing method and audio frequency multi-power amplifier processing device
US20180176748A1 (en) * 2016-12-21 2018-06-21 Samsung Electronics Co., Ltd. Method for providing content corresponding to accessory and electronic device thereof
CN110502283A (en) * 2019-08-19 2019-11-26 深圳大趋智能科技有限公司 A kind of product peripheral hardware compatibility method and system
CN110545576A (en) * 2019-09-24 2019-12-06 京信通信系统(中国)有限公司 power amplifier module, power adjusting method and radio remote unit
US20200135188A1 (en) * 2018-10-24 2020-04-30 Sony Corporation Audio-video reproduction device setup using interview-based voice control
CN111949323A (en) * 2020-08-31 2020-11-17 深圳市欧瑞博科技股份有限公司 Intelligent device awakening optimization method and device, intelligent device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8050418B2 (en) * 2005-07-07 2011-11-01 Harman International Industries, Incorporated Update system for an audio amplifier
CN105338448B (en) * 2015-11-18 2018-07-31 深圳创维-Rgb电子有限公司 Audio controlling method and device
CN111935622B (en) * 2020-08-03 2022-02-11 深圳创维-Rgb电子有限公司 Debugging method, device, equipment and storage medium for electronic equipment with digital power amplifier
CN113076144A (en) * 2021-04-23 2021-07-06 深圳创维-Rgb电子有限公司 Power amplifier adaptation method, terminal device, storage medium and computer program product

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100188929A1 (en) * 2009-01-23 2010-07-29 Victor Company Of Japan, Ltd. Electronic apparatus operable by external sound
CN103916732A (en) * 2012-12-31 2014-07-09 广州励丰文化科技股份有限公司 Control method for active integrated loudspeaker box provided with multi-digital signal processor system
CN105812919A (en) * 2014-12-30 2016-07-27 深圳Tcl数字技术有限公司 Audio frequency multi-power amplifier processing method and audio frequency multi-power amplifier processing device
CN104994459A (en) * 2015-06-17 2015-10-21 Tcl海外电子(惠州)有限公司 Terminal digital power amplifier configuration method and device
US20180176748A1 (en) * 2016-12-21 2018-06-21 Samsung Electronics Co., Ltd. Method for providing content corresponding to accessory and electronic device thereof
US20200135188A1 (en) * 2018-10-24 2020-04-30 Sony Corporation Audio-video reproduction device setup using interview-based voice control
CN110502283A (en) * 2019-08-19 2019-11-26 深圳大趋智能科技有限公司 A kind of product peripheral hardware compatibility method and system
CN110545576A (en) * 2019-09-24 2019-12-06 京信通信系统(中国)有限公司 power amplifier module, power adjusting method and radio remote unit
CN111949323A (en) * 2020-08-31 2020-11-17 深圳市欧瑞博科技股份有限公司 Intelligent device awakening optimization method and device, intelligent device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222292A1 (en) * 2021-04-23 2022-10-27 深圳创维-Rgb电子有限公司 Power amplifier adaptation method, terminal device, storage medium and computer program product
CN113590208A (en) * 2021-09-26 2021-11-02 广州朗国电子科技股份有限公司 Method and system for changing terminal digital power amplifier driving parameters and electronic equipment
CN114090093A (en) * 2021-11-30 2022-02-25 深圳创维-Rgb电子有限公司 Tuner self-adapting method, device, equipment and storage medium
CN114090093B (en) * 2021-11-30 2024-02-06 深圳创维-Rgb电子有限公司 Tuner adaptive method, apparatus, device and storage medium
CN115665350A (en) * 2022-10-28 2023-01-31 四川长虹电器股份有限公司 Processing method for adapting intelligent television software to multiple digital power amplifier hardware platforms

Also Published As

Publication number Publication date
WO2022222292A1 (en) 2022-10-27

Similar Documents

Publication Publication Date Title
CN113076144A (en) Power amplifier adaptation method, terminal device, storage medium and computer program product
CN109791497B (en) Method, device and terminal for executing hot patch
CN108604200A (en) The method and terminal device of the failure of processing terminal equipment
CN112882772B (en) Configuration method of application interface of mobile terminal, mobile terminal and storage medium
US20070106770A1 (en) Managing a remote device by a communication element that does not specify an identifier for the management object
US7469359B2 (en) Method and apparatus for testing communication software
CN102483709B (en) System and method for injecting run-time programming code in a printing device
CN111723002A (en) Code debugging method and device, electronic equipment and storage medium
CN111026439A (en) Application program compatibility method, device, equipment and computer storage medium
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
US9684610B2 (en) Platform neutral device protocols
CN107315360A (en) The long-range control method and system of measuring instrument
EP1843556A1 (en) A mobile terminal and boot method thereof
CN113626095A (en) Switching method and switching system of configuration center, electronic equipment and storage medium
CN107704277A (en) Plug-in loading method and system
CN101340311B (en) Display control apparatus, display control program and display control method
US7519719B2 (en) Automatic creation of protocol dependent control path for instrument application
US11958511B2 (en) Train signal system and linkage method therefor
CN114721683A (en) Circuit, method, chip and electronic equipment for upgrading firmware
CN109857638B (en) Universal framework for test system software
CN110795154B (en) Cross-platform device driving method, device and computer readable storage medium
CN114090093B (en) Tuner adaptive method, apparatus, device and storage medium
JP2003177882A (en) Wireless printing interface kit and its method
CN111026388B (en) Method for adapting to order receiving application and payment middleware
CN117667033A (en) Hot patching method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210706