WO2022222292A1 - 功放适配方法、终端设备、存储介质及计算机程序产品 - Google Patents

功放适配方法、终端设备、存储介质及计算机程序产品 Download PDF

Info

Publication number
WO2022222292A1
WO2022222292A1 PCT/CN2021/107981 CN2021107981W WO2022222292A1 WO 2022222292 A1 WO2022222292 A1 WO 2022222292A1 CN 2021107981 W CN2021107981 W CN 2021107981W WO 2022222292 A1 WO2022222292 A1 WO 2022222292A1
Authority
WO
WIPO (PCT)
Prior art keywords
power amplifier
terminal device
file
initialization
adaptation
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.)
Ceased
Application number
PCT/CN2021/107981
Other languages
English (en)
French (fr)
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
Publication of WO2022222292A1 publication Critical patent/WO2022222292A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present application relates to the technical field of power amplifier adaptation, and in particular, to a power amplifier adaptation method, a terminal device, a storage medium, and a computer program product.
  • TV products are not only for functions, but also for experience, including picture quality and sound quality.
  • sound quality if it is necessary to improve the sound quality, it is fundamentally necessary to adapt to a power amplifier with higher performance.
  • some TV products not only adapt to one power amplifier, but also adapt to multiple power amplifiers, or even Adapt to a variety of power amplifiers, including subwoofer amplifiers, etc.
  • the way of adapting power amplifiers in TV software is to directly rely on the underlying driver software, and initialize different power amplifiers according to different movement-models.
  • the software to adapt the power amplifier according to the movement and the model it is bound to add a lot of macro definitions to distinguish them, which not only increases the redundancy of the code, but also is not conducive to maintenance.
  • the main purpose of this application is to propose a power amplifier adaptation method, terminal equipment, storage medium and computer program product, aiming to solve the problem of complicated power amplifier software adaptation work, improve power amplifier adaptation compatibility and efficiency, and improve code consistency.
  • an embodiment of the present application provides a power amplifier adaptation method, the method includes the following steps:
  • the power amplifier configuration parameters are transmitted to the terminal device, and the corresponding power amplifier address is written, and the power amplifier initialization operation is performed on the terminal device.
  • the method further includes:
  • the step of acquiring power amplifier configuration parameters adapted to the terminal device includes:
  • the power amplifier configuration file is parsed, and power amplifier configuration parameters adapted to the terminal device are obtained from the power amplifier configuration file.
  • the step of acquiring the power amplifier configuration parameters adapted to the terminal device when receiving a power amplifier initialization instruction for performing a power amplifier initialization operation on the terminal device, before the step of acquiring the power amplifier configuration parameters adapted to the terminal device further includes:
  • the corresponding power amplifier configuration parameters are configured for the cores or models of different terminal devices, and the power amplifier configuration file is generated.
  • the step of generating the power amplifier configuration file further includes:
  • the step of calling a preset power amplifier configuration file includes:
  • the power amplifier configuration file is called from the system-specified path of the terminal device to parse the power amplifier configuration file.
  • the power amplifier configuration parameters include one or more of the following: power amplifier type, I2C bus ID where the power amplifier hardware is located, power amplifier device address, power amplifier reset pin, power amplifier initialization bin file storage path; and/or all The power amplifier configuration file is an ini file.
  • the power amplifier is a single power amplifier, or multiple power amplifiers of the same type, or multiple power amplifiers of different types.
  • an embodiment of the present application also proposes a terminal device, where the terminal device includes a memory, a processor, and a power amplifier adaptation program stored on the processor, when the power amplifier adaptation program is called by the processor Perform the steps of the method as described above.
  • the embodiment of the present application further proposes 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 above-mentioned when called by the processor. steps of the method.
  • an embodiment of the present application further proposes a computer program product, the computer program product includes a power amplifier adaptation program, and the power amplifier adaptation program executes the steps of the above-mentioned method when the power amplifier adaptation program is called by a processor.
  • the power amplifier adaptation method, terminal device, storage medium, and computer program product proposed in the embodiments of the present application acquire power amplifier configuration parameters adapted to the terminal device when receiving a power amplifier initialization instruction for performing a power amplifier initialization operation on the terminal device;
  • the power amplifier configuration parameters are passed into the terminal device, and the corresponding power amplifier address is written, and the power amplifier initialization operation is performed on the terminal device.
  • the power amplifier configuration parameters enable different core-models to perform different power-amplifier initialization operations, which solves the problem of complicated adaptation of the current power-amplifier software, and is compatible with different core-models under the condition that the operation codes such as power-amplifier initialization are common. Equipped with different power amplifiers, which simplifies the steps of adapting power amplifiers for different movement-models, improves the efficiency of power amplifier adaptation, improves code consistency and quality, and unifies the adaptation specifications of different power amplifiers.
  • Fig. 1 is the functional module schematic diagram of the power amplifier adaptation terminal equipment of the present application
  • FIG. 2 is a schematic flowchart of the first embodiment of the power amplifier adaptation method of the present application
  • FIG. 3 is a schematic flowchart of the second embodiment of the power amplifier adaptation method of the present application.
  • FIG. 4 is a schematic flowchart of a third embodiment of a power amplifier adaptation method of the present application.
  • FIG. 5 is a schematic diagram of a refinement process of an embodiment of a power amplifier adaptation method of the present application.
  • the main solutions of the embodiments of the present application are: when receiving a power amplifier initialization instruction for performing a power amplifier initialization operation on a terminal device, obtain power amplifier configuration parameters adapted to the terminal device; and transmit the power amplifier configuration parameters to the terminal device, and write the corresponding power amplifier address, and perform power amplifier initialization operation on the terminal device.
  • the matching power amplifier configuration parameters can be input to the terminal device, so as to realize different core-models.
  • Perform the initialization operation of different power amplifiers which solves the problem of complicated adaptation of the current power amplifier software.
  • the operation codes such as power amplifier initialization are common
  • it is compatible with different cores - models can be adapted to different power amplifiers, thus simplifying different cores.
  • the steps of adapting the model to the power amplifier improve the efficiency of the power amplifier adaptation, improve the code consistency and quality, and unify the adaptation specifications of different power amplifiers
  • ini file ini is the abbreviation of English " initialization " (initialization).
  • the ini file format is an informal standard for configuration files on some platforms or software, consisting of sections and keys, and is commonly used in Microsoft Windows operating systems.
  • the file extension of this configuration file is mostly ini, and the ini file is used to initialize or set parameters for the operating system or a specific program.
  • mute/unmute mute/unmute.
  • the embodiments of the present application consider that, in the existing related solutions, the way of adapting the power amplifier in terms of TV software is to directly rely on the underlying driver software, and initialize different power amplifiers according to different core-models.
  • the software to adapt the power amplifier according to the movement and the model it is bound to add a lot of macro definitions to distinguish them, which not only increases the redundancy of the code, but also is not conducive to maintenance.
  • the solutions proposed in the embodiments of the present application can solve the problem of complicated adaptation of the current power amplifier software.
  • Under the condition of ensuring that the operation codes such as power amplifier initialization are common it is compatible with different cores and models to adapt to different power amplifiers, and at the same time, it simplifies the different The steps of the movement-model adaptation of the power amplifier, improve the efficiency of the power amplifier adaptation, and improve the code consistency.
  • the power amplifier adaptation mainly involves parameters such as the power amplifier type, the I2C bus ID where the power amplifier hardware is located, the power amplifier device address, the power amplifier initialization bin file path and other parameters.
  • the actual power amplifier adaptation of the core-model, and the correct parameters can be passed in to complete the correct initialization of the power amplifier.
  • the present application can complete the work of adapting different core-models to different power amplifiers with the least amount of work under the condition of ensuring the consistency of the software codes, which not only improves the work efficiency, but also improves the quality of the software codes, unifying the different Amplifier adaptation specification.
  • FIG. 1 is a schematic diagram of functional modules of a power amplifier adapted to a terminal device of the present application.
  • the power amplifier adaptation terminal device may be an electronic device such as a TV set, a computer, etc. that realizes the power amplification effect.
  • a TV set is used as an example.
  • the power amplifier adaptation terminal device includes at least 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 adaptation program; the output module 110 may be a display screen, a speaker, and the like.
  • the communication module 140 may include a WIFI module, a Bluetooth module, etc., and communicate with an external device or a server through the communication module 140 .
  • the power amplifier configuration parameters are transmitted to the terminal device, and the corresponding power amplifier address is written, and the power amplifier initialization operation is performed on the terminal device.
  • the power amplifier configuration file is parsed, and power amplifier configuration parameters adapted to the terminal device are obtained from the power amplifier configuration file.
  • the corresponding power amplifier configuration parameters are configured for the cores or models of different terminal devices, and the power amplifier configuration file is generated.
  • the power amplifier configuration file is called from the system-specified path of the terminal device to parse the power amplifier configuration file.
  • the power amplifier configuration parameters adapted to the terminal device are obtained; the power amplifier configuration parameters are transmitted to the terminal device, and Write the corresponding power amplifier address, and perform the power amplifier initialization operation on the terminal device.
  • the corresponding power amplifier configuration parameters can be imported to the terminal device, so that different cores and models can be used for different power amplifiers.
  • the initialization operation solves the complicated problem of the current power amplifier software adaptation work. In the case of ensuring that the operation codes such as power amplifier initialization are common, it is compatible with different core-models to adapt to different power amplifiers, thus simplifying the adaptation of different core-models.
  • the steps of matching power amplifiers improve the efficiency of power amplifier adaptation, improve code consistency and quality, and unify different power amplifier adaptation specifications.
  • the first embodiment of the present application proposes a power amplifier adaptation method, and the power amplifier adaptation method includes:
  • Step S10 when receiving a power amplifier initialization instruction for performing a power amplifier initialization operation on the terminal device, acquiring power amplifier configuration parameters adapted to the terminal device;
  • the terminal device in this embodiment includes, but is not limited to, electronic devices configured with power amplifiers, such as a television, a computer, and a music player.
  • a television is used as an example, but this does not constitute a limitation.
  • the terminal device When receiving a power amplifier initialization instruction for performing a power amplifier initialization operation on the terminal device, the terminal device acquires power amplifier configuration parameters adapted to the terminal device.
  • the power amplifier configuration parameters include one or more parameters in the power amplifier type, the I2C bus ID where the power amplifier hardware is located, the power amplifier device address, the power amplifier reset pin, and the storage path of the power amplifier initialization data bin file.
  • the terminal device may be adapted to a single power amplifier, or multiple power amplifiers of the same type, or multiple power amplifiers of different types.
  • the solution of this embodiment mainly solves the problem of complicated adaptation of the existing power amplifier software. Under the condition of ensuring that the operation codes such as power amplifier initialization are common, it is compatible with the core-model of different terminal equipment, and can be adapted to different power amplifiers, while simplifying different types of power amplifiers.
  • the steps of the movement-model adaptation of the power amplifier can improve the efficiency of the power amplifier adaptation and improve the consistency of the software code.
  • the power amplifier adaptation mainly involves the power amplifier type, the I2C bus ID where the power amplifier hardware is located, the power amplifier device address, the power amplifier reset pin, the power amplifier initialization bin file path and other parameters.
  • the parameters can be based on the actual power amplifier adaptation of different cores and models, and the correct parameters can be imported to complete the correct initialization of the power amplifier. In this way, it is possible to complete the work of adapting different core-models to different power amplifiers with the least amount of work under the condition that the software codes are consistent, which not only improves work efficiency, but also improves the quality of software codes and unifies different power amplifiers.
  • Adaptation specification is based on the actual power amplifier adaptation of different cores and models, and the correct parameters can be imported to complete the correct initialization of the power amplifier.
  • this embodiment mainly solves the problem that when different cores and models are initializing different power amplifiers, the related parameters of the power amplifier can be passed in, and then the software will send the corresponding power amplifier address according to the type of parameters passed in. Write the correct data, and then complete the operations such as stage initialization.
  • the power amplifier configuration parameters can be written into different configuration files in advance, and then the software can parse the configuration files to obtain the correct power amplifier configuration parameters, and then initialize the corresponding power amplifiers.
  • the parameters of the power amplifier can be stored in the ini file, and the relevant parameters can be obtained by parsing the ini file through software, so as to realize the operation of the power amplifier.
  • parse the power amplifier configuration file and obtain the power amplifier type suitable for the terminal device, the I2C bus ID where the power amplifier hardware is located, the power amplifier device address, the power amplifier reset pin, and the power amplifier initialization bin file path from the power amplifier configuration file. and other power amplifier configuration parameters.
  • Step S20 the power amplifier configuration parameters are transferred to the terminal device, and the corresponding power amplifier address is written, and the power amplifier initialization operation is performed on the terminal device.
  • the power amplifier configuration parameters such as the power amplifier type suitable for the terminal device, the I2C bus ID where the power amplifier hardware is located, the power amplifier device address, the power amplifier reset pin, the power amplifier initialization bin file path and other power amplifier configuration parameters
  • the power amplifier configuration parameters are passed in the terminal device, and write the corresponding power amplifier address, and perform the power amplifier initialization operation on the terminal device.
  • the corresponding power amplifier configuration parameters can be configured for the cores or models of different terminal devices in advance.
  • the power amplifier configuration parameters such as the I2C bus ID where the hardware is located, the power amplifier device address, the power amplifier reset pin, and the power amplifier initialization bin file path are transferred to the terminal device, and the corresponding power amplifier address is written to perform the power amplifier initialization operation on the terminal device.
  • the corresponding power amplifier configuration parameters can be configured for the cores or models of different terminal equipment, and a power amplifier configuration file can be generated, that is, the power amplifier type, the I2C bus ID where the power amplifier hardware is located, and the power amplifier device address can be configured. , power amplifier reset pin, power amplifier initialization bin file path and other power amplifier configuration parameters, according to the movement or model of different terminal equipment to configure the corresponding power amplifier configuration file.
  • the power amplifier configuration file can be loaded, and the power amplifier configuration file can be compiled to the system-specified path of the terminal device;
  • the power amplifier configuration file is called from the system-specified path of the terminal device to parse the power amplifier configuration file.
  • the power amplifier configuration parameters adapted to the terminal device are obtained; the power amplifier configuration parameters are transmitted to the terminal device, and Write the corresponding power amplifier address, and perform the power amplifier initialization operation on the terminal device.
  • the corresponding power amplifier configuration parameters can be imported to the terminal device, so that different cores and models can be used for different power amplifiers.
  • the initialization operation solves the complicated problem of the current power amplifier software adaptation work. In the case of ensuring that the operation codes such as power amplifier initialization are common, it is compatible with different core-models to adapt to different power amplifiers, thus simplifying the adaptation of different core-models.
  • the steps of matching power amplifiers improve the efficiency of power amplifier adaptation, improve code consistency and quality, and unify different power amplifier adaptation specifications.
  • a second embodiment of the present application proposes a power amplifier adaptation method. Based on the embodiment shown in FIG. 2 , the power amplifier adaptation method further includes:
  • Step S30 in response to the power amplifier control instruction for controlling the power amplifier of the terminal device, write fixed power amplifier data information to the mute control pin designated by the power amplifier device of the terminal device, so as to perform a power amplifier control operation on the terminal device.
  • a power amplifier control operation can be performed on the terminal device, for example, a Mute/UnMute operation is performed, and fixed data information is written to the Mute control pin designated by the power amplifier device of the terminal device. , in order to realize the power amplifier Mute/UnMute control operation.
  • the power amplifier configuration parameters adapted to the terminal device are obtained; the power amplifier configuration parameters are transmitted to the terminal device, and Write a corresponding power amplifier address, and perform a power amplifier initialization operation on the terminal device; in response to a power amplifier control instruction for performing power amplifier control on the terminal device, write a fixed power amplifier to the mute control pin designated by the power amplifier device of the terminal device data information to perform power amplifier control operation on the terminal device.
  • the scheme can transmit the power amplifier configuration parameters that are adapted to it to the terminal device, so as to realize the initialization operation of different power amplifiers for different cores and models, which solves the complicated problem of the current power amplifier software adaptation work.
  • common operation codes such as power amplifier initialization
  • it is compatible with different core models and different power amplifiers, which simplifies the steps of adapting power amplifiers between different core models and models, improves power amplifier adaptation efficiency, and improves code consistency. and quality, and unify the adaptation specifications of different power amplifiers.
  • a third embodiment of the present application proposes a method for adapting a power amplifier.
  • the power amplifier adaptation method further includes:
  • Step S101 configure corresponding power amplifier configuration parameters for the cores or models of different terminal devices, and generate 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 device;
  • step S10 when receiving a power amplifier initialization instruction for performing a power amplifier initialization operation on the terminal device, invoking a preset power amplifier configuration file includes:
  • Step S100 when receiving a power amplifier initialization instruction for performing a power amplifier initialization operation on a terminal device, calling the power amplifier configuration file from a system-specified path of the terminal device to parse the power amplifier configuration file.
  • the power amplifier adaptation mainly involves the power amplifier type, the I2C bus ID where the power amplifier hardware is located, the power amplifier device address, the power amplifier reset pin, the power amplifier initialization bin file path and other parameters.
  • the software is initializing the power amplifier, only It is necessary to ensure that the above parameters can be correctly initialized by inputting the correct parameters according to the actual power amplifier adaptation of different cores and models. In this way, it is possible to complete the work of adapting different core-models to different power amplifiers with the least amount of work under the condition that the software codes are consistent, which not only improves work efficiency, but also improves the quality of software codes and unifies different power amplifiers.
  • Adaptation specification is the software initializing the power amplifier.
  • This embodiment mainly solves the problem that when different core-models are initializing different power amplifiers, the related parameters of the power amplifier can be passed in, and then the software will write the correct data to the corresponding power amplifier address according to the type of parameters passed in. Then, operations such as the power amplifier initialization are completed.
  • the corresponding power amplifier configuration parameters can be configured for the cores or models of different terminal devices, and a power amplifier configuration file can be generated, that is, the power amplifier type, the I2C bus ID where the power amplifier hardware is located, the Power amplifier configuration parameters, such as power amplifier device address, power amplifier reset pin, and power amplifier initialization bin file path, are configured into corresponding power amplifier configuration files according to the movement or model of different terminal equipment.
  • the power amplifier configuration file can be loaded, and the power amplifier configuration file can be compiled to the system-specified path of the terminal device;
  • the power amplifier configuration file is called from the system-specified path of the terminal device to parse the power amplifier configuration file.
  • the power amplifier configuration parameters can be written into different configuration files in advance, and then the software can parse the configuration files to obtain the correct power amplifier configuration parameters, and then perform operations such as initialization of the corresponding power amplifier.
  • the power amplifier configuration file is an ini file.
  • the configuration parameters of the power amplifier can be stored in the ini file, and the relevant parameters can be obtained by parsing the ini file through software, so as to realize the operation of the power amplifier.
  • parse the power amplifier configuration file and obtain the power amplifier type suitable for the terminal device, the I2C bus ID where the power amplifier hardware is located, the power amplifier device address, the power amplifier reset pin, and the power amplifier initialization bin file path from the power amplifier configuration file. Wait for the power amplifier configuration parameters, and perform power amplifier initialization operation on the terminal equipment.
  • FIG. 5 is a detailed flow chart of the power amplifier control in this embodiment, and the system control architecture mainly involves the upper and lower calling modules of the power amplifier control module.
  • the SKYHAL_AMP module parses the content of the power amplifier ini configuration file, and then continues to operate the corresponding power amplifier driver of the SkyHal Common Amp module according to the configuration information.
  • the power amplifier adaptation method in this embodiment is common to all platforms. This method is simple in configuration, common in software codes, and easy to maintain. The advantages of this method can be better reflected when the same platform needs to be adapted to multiple power amplifiers or multiple power amplifiers. And the implementation process is shown in the power amplifier control flow chart in Figure 5, and the specific process is as follows:
  • the configuration content mainly includes the power amplifier type, the I2C bus ID where the power amplifier hardware is located, the power amplifier device address, the power amplifier reset pin, and the power amplifier initialization data bin storage path according to the hardware circuit diagram.
  • the ini configuration file varies according to the actual functional requirements of different products, for example, it can be a single power amplifier, multiple power amplifiers of the same type, or multiple power amplifiers of different types;
  • the ini amplifier configuration file will compile the amp.ini file to the specified path when the software is compiled and integrated. This path is different for different machines with different screens. In this embodiment, the path of the amp.ini is obtained through the software. , in order to perform normal parsing of the amp.ini configuration file;
  • S3 Parse the amp.ini file.
  • the software obtains the correct information of the power amplifier configuration by matching the name strings of different configuration items in the amp.ini, so that the correct data information can be written into the power amplifier later;
  • S4 Initialize the power amplifier operation. According to the relevant configuration information obtained by parsing the ini power amplifier configuration file, write all the data information in the bin file to the corresponding address, and complete the power amplifier initialization operation.
  • the written data is mainly written through I2C;
  • the solution of this embodiment mainly obtains the configuration information related to the power amplifier by parsing the ini power amplifier configuration file, including the power amplifier type, device address, I2C bus ID and other information, and writes the correct data information to the specified address through the I2C read and write operation.
  • the solution of this embodiment can meet the requirements of adapting multiple or even multiple power amplifiers for different cores and models only by changing the configuration parameters in the ini file.
  • the software compatible with the power amplifier adaptation of different movement-models, but also compatible with the power amplifier adaptation of different solution platforms (such as HISI, MTK, Amlogic, etc.)
  • the first-level power amplifier operation interface can be encapsulated below the layer, thereby realizing the standardization and unity of the code.
  • the solution of this embodiment is applicable to all relevant platforms to perform power amplifier related operations, and the software operates the corresponding power amplifier by parsing the configuration content of the ini file.
  • This method can not only be applied to power amplifier adaptation, but also can be used in different TV lighting effects, such as breathing light effects, flickering effects, etc. All requirements can be configured through ini files.
  • the software uses the same set of codes to achieve differentiated requirements management through ini file configuration. This solution is not only conducive to software code maintenance, but also makes the adaptation of customized functions easier.
  • the solution in this embodiment mainly optimizes and improves the software design, improves code versatility and inheritability, improves software maintainability, and simplifies power amplifier adaptation work.
  • the power amplifier adaptation work of different products can be realized only by modifying the information of different configuration items of the power amplifier ini file, thereby realizing the self-adaptation of the power amplifier adaptation.
  • an embodiment of the present application also proposes a terminal device, where the terminal device includes a memory, a processor, and a power amplifier adaptation program stored on the processor, when the power amplifier adaptation program is called by the processor
  • the terminal device includes a memory, a processor, and a power amplifier adaptation program stored on the processor, when the power amplifier adaptation program is called by the processor
  • an embodiment of the present application also proposes a computer-readable storage medium, where a power amplifier adaptation program is stored on the computer-readable storage medium, and when the power amplifier adaptation program is called by a processor, the above-mentioned embodiment is executed.
  • a power amplifier adaptation program is stored on the computer-readable storage medium, and when the power amplifier adaptation program is called by a processor, the above-mentioned embodiment is executed.
  • an embodiment of the present application also proposes a computer program product, where the computer program product includes a power amplifier adaptation program, and when the power amplifier adaptation program is invoked by a processor, the steps of the methods described in the above embodiments are executed, and the functions of the power amplifier adaptation program are executed.
  • the computer program product includes a power amplifier adaptation program, and when the power amplifier adaptation program is invoked by a processor, the steps of the methods described in the above embodiments are executed, and the functions of the power amplifier adaptation program are executed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Amplifiers (AREA)

Abstract

本申请公开了一种功放适配方法、终端设备、存储介质及计算机程序产品,该方法包括:在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作。

Description

功放适配方法、终端设备、存储介质及计算机程序产品
本申请要求于2021年4月23日申请的、申请号为202110442380.4的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及功放适配技术领域,尤其涉及一种功放适配方法、终端设备、存储介质及计算机程序产品。
背景技术
随着生活水平的提高,人们对生活刚需产品的要求也逐渐提升,例如电视机产品不仅仅只是针对功能,在体验感方面要求也不断提升,包括画质和音质。在音质方面,若需要提升音质效果,从根本上需要适配性能较高的功放,部分电视机产品为了提升音质效果和性能,不仅仅只适配一个功放,有些会适配多个功放,甚至适配多种功放,包括重低音功放等。
目前,电视机软件方面适配功放的方式是直接依赖底层驱动软件,根据不同的机芯-机型,初始化不同的功放。然而,在软件中根据机芯-机型做功放适配,势必会增加很多宏定义来加以区分,这样不仅增加了代码的冗余性,而且不利于维护。
技术问题
本申请的主要目的在于提出一种功放适配方法、终端设备、存储介质及计算机程序产品,旨在解决功放软件适配工作繁杂的问题,提升功放适配兼容性及效率,提高代码一致性。
技术解决方案
为实现上述目的,本申请实施例提供一种功放适配方法,所述方法包括以下步骤:
在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;
将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作。
在一实施例中,所述方法还包括:
响应对所述终端设备进行功放控制的功放控制指令,向所述终端设备的功放器件指定的静音控制引脚写入固定的功放数据信息,以对所述终端设备进行功放控制操作。
在一实施例中,所述在接收到对终端设备的功放进行初始化的功放初始化指令时,获取与所述终端设备适配的功放配置参数的步骤包括:
在接收到对终端设备进行功放初始化操作的功放初始化指令时,调用预设的功放配置文件;
解析所述功放配置文件,从所述功放配置文件中获取与所述终端设备适配的功放配置参数。
在一实施例中,所述在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数的步骤之前还包括:
为不同的终端设备的机芯或机型配置对应的功放配置参数,生成所述功放配置文件。
在一实施例中,所述为不同的终端设备的机芯或机型配置对应的功放配置参数,生成所述功放配置文件的步骤之后还包括:
加载所述功放配置文件,将所述功放配置文件编译到所述终端设备的系统指定路径;
所述在接收到对终端设备进行功放初始化操作的功放初始化指令时,调用预设的功放配置文件的步骤包括:
在接收到对终端设备进行功放初始化操作的功放初始化指令时,从所述终端设备的系统指定路径调用所述功放配置文件,以对所述功放配置文件进行解析。
在一实施例中,所述功放配置参数包括以下一种或多种:功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚,功放初始化bin文件存放路径;和/或所述功放配置文件为ini文件。
在一实施例中,所述功放为单个功放、或者多个相同类型的功放、或者多个不同类型的功放。
此外,本申请实施例还提出一种终端设备,所述终端设备包括存储器、处理器、以及存储在所述处理器上的功放适配程序,所述功放适配程序被所述处理器调用时执行如上所述的方法的步骤。
为实现上述目的,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有功放适配程序,所述功放适配程序被处理器调用时执行如上所述的方法的步骤。
为实现上述目的,本申请实施例还提出一种计算机程序产品,所述计算机程序产品包括功放适配程序,所述功放适配程序被处理器调用时执行如上所述的方法的步骤。
有益效果
本申请实施例提出的功放适配方法、终端设备、存储介质及计算机程序产品,在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作,该方案在进行功放初始化时,可以向终端设备传入与之适配的功放配置参数,实现不同机芯-机型进行不同功放初始化操作,解决了目前功放软件适配工作繁杂的问题,在确保功放初始化等操作代码通用的情况下,兼容不同机芯-机型可以适配不同的功放,从而简化了不同机芯-机型适配功放的步骤,提升了功放适配效率,提高了代码一致性和质量,统一了不同功放适配规范。
附图说明
图1是本申请功放适配终端设备的功能模块示意图;
图2是本申请功放适配方法第一实施例的流程示意图;
图3是本申请功放适配方法第二实施例的流程示意图;
图4是本申请功放适配方法第三实施例的流程示意图;
图5是本申请功放适配方法实施例的细化流程示意图。
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例的主要解决方案是:在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作,该方案在进行功放初始化时,可以向终端设备传入与之适配的功放配置参数,实现不同机芯-机型进行不同功放初始化操作,解决了目前功放软件适配工作繁杂的问题,在确保功放初始化等操作代码通用的情况下,兼容不同机芯-机型可以适配不同的功放,从而简化了不同机芯-机型适配功放的步骤,提升了功放适配效率,提高了代码一致性和质量,统一了不同功放适配规范
本申请实施例涉及的技术术语:
ini文件,ini是英文“ initialization”(初始化)的缩写。ini文件格式是某些平台或软件上的配置文件的非正式标准,以节(section)和键(key)构成,常用于微软Windows操作系统中。这种配置文件的文件扩展名多为ini,ini文件被用来对操作系统或特定程序初始化或进行参数设置。
mute/unmute:静音/取消静音。
本申请实施例考虑到,现有相关方案中,电视机软件方面适配功放的方式是直接依赖底层驱动软件,根据不同的机芯-机型,初始化不同的功放。然而,在软件中根据机芯-机型做功放适配,势必会增加很多宏定义来加以区分,这样不仅增加了代码的冗余性,而且不利于维护。
因此,本申请实施例提出解决方案,可以解决目前功放软件适配工作繁杂的问题,在确保功放初始化等操作代码通用的情况下,兼容不同机芯-机型适配不同的功放,同时简化不同机芯-机型适配功放的步骤,提升功放适配效率,提高代码一致性。
其中,功放适配主要涉及功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放初始化bin文件路径等等参数,本申请方案通过软件进行功放初始化时,只需要确保上述参数可以根据不同机芯-机型实际功放适配情况,传入正确的参数,即可完成功放正确初始化。如此,本申请可以在确保软件代码一致的情况下,以最少工作量完成不同机芯-机型适配不同功放的工作,不仅仅提升了工作效率,同时也提高了软件代码质量,统一了不同功放适配规范。
具体地,参照图1,图1为本申请功放适配终端设备的功能模块示意图。该功放适配终端设备可以为电视机、电脑等实现功放效果的电子设备,本实施例以电视机进行举例。
在本实施例中,该功放适配终端设备至少包括输出模块110、处理器120、存储器130、以及通信模块140等。
存储器130中存储有操作系统以及功放适配程序;输出模块110可为显示屏、扬声器等。通信模块140可以包括WIFI模块以及蓝牙模块等,通过通信模块140与外部设备或服务器进行通信。
其中,作为一种实施例方式,存储器130中的功放适配程序被处理器执行时实现以下步骤:
在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;
将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作。
进一步地,存储器130中的功放适配程序被处理器执行时还实现以下步骤:
响应对所述终端设备进行功放控制的功放控制指令,向所述终端设备的功放器件指定的静音控制引脚写入固定的功放数据信息,以对所述终端设备进行功放控制操作。
进一步地,存储器130中的功放适配程序被处理器执行时还实现以下步骤:
在接收到对终端设备进行功放初始化操作的功放初始化指令时,调用预设的功放配置文件;
解析所述功放配置文件,从所述功放配置文件中获取与所述终端设备适配的功放配置参数。
进一步地,存储器130中的功放适配程序被处理器执行时还实现以下步骤:
为不同的终端设备的机芯或机型配置对应的功放配置参数,生成所述功放配置文件。
进一步地,存储器130中的功放适配程序被处理器执行时还实现以下步骤:
加载所述功放配置文件,将所述功放配置文件编译到所述终端设备的系统指定路径;
在接收到对终端设备进行功放初始化操作的功放初始化指令时,从所述终端设备的系统指定路径调用所述功放配置文件,以对所述功放配置文件进行解析。
本实施例通过上述方案,在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作,该方案在进行功放初始化时,可以向终端设备传入与之适配的功放配置参数,实现不同机芯-机型进行不同功放初始化操作,解决了目前功放软件适配工作繁杂的问题,在确保功放初始化等操作代码通用的情况下,兼容不同机芯-机型适配不同的功放,从而简化了不同机芯-机型适配功放的步骤,提升了功放适配效率,提高了代码一致性和质量,统一了不同功放适配规范。
基于上述终端设备架构,提出本申请功放适配方法实施例。
具体地,如图2所示,本申请第一实施例提出一种功放适配方法,该功放适配方法包括:
步骤S10,在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;
其中,本实施例终端设备包括但不限于电视机、电脑、音乐播放器等配置功放的电子设备,本实施例以电视机进行举例,但并不对此构成限制。
在终端设备上安装功放适配应用软件,在需要对终端设备进行功放初始化操作时,在终端设备的放适配应用软件上触发功放初始化指令。
终端设备在接收到对该终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数。
其中,功放配置参数包括功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化数据bin文件存放路径中的一种或多种参数。
其中,终端设备可以适配单个功放、或者多个相同类型的功放、或者多个不同类型的功放。
本实施例方案主要解决现有功放软件适配工作繁杂的问题,在确保功放初始化等操作代码通用的情况下,兼容不同终端设备的机芯-机型,可以适配不同的功放,同时简化不同机芯-机型适配功放的步骤,提升功放适配效率,也提高软件代码一致性。
如前所述,功放适配主要涉及功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件路径等等参数,软件在做功放初始化时,只需要确保上述参数可以根据不同机芯-机型实际功放适配情况,传入正确的参数,即可完成功放正确初始化。如此,则可以在确保软件代码一致的情况下,以最少工作量完成不同机芯-机型适配不同功放的工作,不仅仅提升了工作效率,同时也提高了软件代码质量,统一了不同功放适配规范。
结合以上的设计思路,本实施例主要解决不同机芯-机型在做不同功放初始化时,可以传入与之匹配的功放相关参数,然后软件会根据传入的参数类型,向对应的功放地址写入正确的数据,进而完成功放初始化等操作。
在传入功放配置参数时,可以预先将功放配置参数写入不同的配置文件,然后通过软件解析配置文件来获取正确的功放配置参数,进而对相应的功放进行初始化等操作。
作为一种实施方式,在本实施例方案中,可以将功放参数存放到ini文件里面,通过软件解析ini文件来获取相关参数,实现对功放进行操作。
具体地,在接收到对终端设备进行功放初始化操作的功放初始化指令时,调用预设的功放配置文件;
然后,解析所述功放配置文件,从所述功放配置文件中获取与所述终端设备适配的功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件路径等功放配置参数。
步骤S20,将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作。
在获取到与所述终端设备适配的功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件路径等功放配置参数后,将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作。
具体地,作为一种实施例方式,可以预先为不同的终端设备的机芯或机型配置对应的功放配置参数,在进行功放初始化操作时,将与所述终端设备适配的功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件路径等功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作。
作为另一种实施例方式,可以为不同的终端设备的机芯或机型配置对应的功放配置参数,并生成功放配置文件,即可以将功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件路径等功放配置参数,根据不同的终端设备的机芯或机型配置成相应的功放配置文件。
然后,可以加载所述功放配置文件,将所述功放配置文件编译到所述终端设备的系统指定路径;
在接收到对终端设备进行功放初始化操作的功放初始化指令时,从所述终端设备的系统指定路径调用所述功放配置文件,以对所述功放配置文件进行解析。
本实施例通过上述方案,在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作,该方案在进行功放初始化时,可以向终端设备传入与之适配的功放配置参数,实现不同机芯-机型进行不同功放初始化操作,解决了目前功放软件适配工作繁杂的问题,在确保功放初始化等操作代码通用的情况下,兼容不同机芯-机型适配不同的功放,从而简化了不同机芯-机型适配功放的步骤,提升了功放适配效率,提高了代码一致性和质量,统一了不同功放适配规范。
如图3所示,本申请第二实施例提出一种功放适配方法,基于上述图2所示的实施例,该功放适配方法还包括:
步骤S30,响应对所述终端设备进行功放控制的功放控制指令,向所述终端设备的功放器件指定的静音控制引脚写入固定的功放数据信息,以对所述终端设备进行功放控制操作。
具体地,在完成对终端设备的功放初始化操作后,可以对所述终端设备进行功放控制操作,比如进行Mute/UnMute操作,向终端设备的功放器件指定的Mute控制引脚写入固定的数据信息,以实现功放Mute/UnMute控制操作。
本实施例通过上述方案,在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作;响应对所述终端设备进行功放控制的功放控制指令,向所述终端设备的功放器件指定的静音控制引脚写入固定的功放数据信息,以对所述终端设备进行功放控制操作。该方案在进行功放初始化时,可以向终端设备传入与之适配的功放配置参数,实现不同机芯-机型进行不同功放初始化操作,解决了目前功放软件适配工作繁杂的问题,在确保功放初始化等操作代码通用的情况下,兼容不同机芯-机型适配不同的功放,从而简化了不同机芯-机型适配功放的步骤,提升了功放适配效率,提高了代码一致性和质量,统一了不同功放适配规范。
如图4所示,本申请第三实施例提出一种功放适配方法,基于上述图3所示的实施例,在上述步骤S10,在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数之前,该功放适配方法还包括:
步骤S101,为不同的终端设备的机芯或机型配置对应的功放配置参数,生成所述功放配置文件。
步骤S102,加载所述功放配置文件,将所述功放配置文件编译到所述终端设备的系统指定路径;
所述步骤S10,在接收到对终端设备进行功放初始化操作的功放初始化指令时,调用预设的功放配置文件包括:
步骤S100,在接收到对终端设备进行功放初始化操作的功放初始化指令时,从所述终端设备的系统指定路径调用所述功放配置文件,以对所述功放配置文件进行解析。
具体地,如前所述,功放适配主要涉及功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件路径等等参数,软件在做功放初始化时,只需要确保上述参数可以根据不同机芯-机型实际功放适配情况,传入正确的参数,即可完成功放正确初始化。如此,则可以在确保软件代码一致的情况下,以最少工作量完成不同机芯-机型适配不同功放的工作,不仅仅提升了工作效率,同时也提高了软件代码质量,统一了不同功放适配规范。
本实施例主要解决不同机芯-机型在做不同功放初始化时,可以传入与之匹配的功放相关参数,然后软件会根据传入的参数类型,向对应的功放地址写入正确的数据,进而完成功放初始化等操作。
具体实现时,作为一种实施例方式,可以为不同的终端设备的机芯或机型配置对应的功放配置参数,并生成功放配置文件,即可以将功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件路径等功放配置参数,根据不同的终端设备的机芯或机型配置成相应的功放配置文件。
然后,可以加载所述功放配置文件,将所述功放配置文件编译到所述终端设备的系统指定路径;
在接收到对终端设备进行功放初始化操作的功放初始化指令时,从所述终端设备的系统指定路径调用所述功放配置文件,以对所述功放配置文件进行解析。
因此,在传入功放配置参数时,可以预先将功放配置参数写入不同的配置文件,然后通过软件解析配置文件来获取正确的功放配置参数,进而对相应的功放进行初始化等操作。
其中,所述功放配置文件为ini文件。
作为一种实施方式,可以将功放配置参数存放到ini文件里面,通过软件解析ini文件来获取相关参数,实现对功放进行操作。
具体地,在接收到对终端设备进行功放初始化操作的功放初始化指令时,从所述终端设备的系统指定路径调用所述功放配置文件;
然后,解析所述功放配置文件,从所述功放配置文件中获取与所述终端设备适配的功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件路径等功放配置参数,对终端设备进行功放初始化操作。
以下以电视机及功放配置文件为ini文件,实现电视机适配对应的功放配置参数为例,对本实施例方案进行详细阐述:
参照图5所示,图5为本实施例功放控制细化流程图,系统控制架构主要涉及功放控制模块的上下调用模块。由应用层向下调用,在SKYHAL_AMP模块解析功放ini配置文件内容,然后根据配置信息向下继续操作SkyHal Common Amp模块的相应功放驱动。
本实施例功放适配方法通用于所有平台,此方式配置简单、软件代码通用、便于维护,针对同一平台需要适配多个功放或者多种功放的情况更加能够体现此方法的优势,其实现方法及实现过程具体如图5功放控制流程图所示,具体过程如下:
S1:配置amp.ini文件,得到ini功放配置文件,配置内容根据硬件电路图主要包括功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化数据bin存放路径等,功放ini配置文件根据不同产品的实际功能需求存在差异,例如可以是单个功放、多个相同类型功放或者多个不同类型功放等;
S2:加载amp.ini文件,ini功放配置文件会在软件编译集成的时候将amp.ini文件编译到指定路径,不同的机器配屏此路径不同,本实施例通过软件来获取amp.ini的路径,以便进行amp.ini配置文件的正常解析;
S3:解析amp.ini文件,软件通过匹配amp.ini内不同配置项的名称字符串,获取功放配置的正确信息,以便后续向功放里面写入正确的数据信息;
S4:初始化功放操作,根据解析ini功放配置文件获取到的相关配置信息,向对应地址内写入bin文件里面的全部数据信息,完成功放初始化操作,写入数据主要是通过I2C来写入;
S5:Mute/UnMute操作,向功放器件指定的Mute控制引脚写入固定的数据信息,以实现功放Mute/UnMute控制操作。
本实施例方案主要通过解析ini功放配置文件获取功放相关的配置信息,包含功放类型、器件地址、I2C总线ID等信息,向指定的地址内通过I2C读写操作,写入正确的数据信息,以实现功放初始化、Mute、UnMute等操作,实现功放控制。
相比现有技术,本实施例方案,仅通过改变ini文件里面的配置参数,即可实现不同机芯-机型适配多个甚至多种功放的需求。不仅在软件上面兼容了不同机芯-机型的功放适配,而且可以兼容不同方案平台(例如:HISI、MTK和Amlogic等)的功放适配,无需底层驱动做功放相关操作,仅需要在应用层下面封装一级功放操作接口即可,从而实现了代码的规范化和统一性。
需要说明的是,本实施例方案适用所有相关平台进行功放相关操作,通过解析ini文件的配置内容,软件对相应功放进行操作。通过解析ini文件进行软件功能差异化适配以实现软件通用性,此方法不仅可以适用于功放适配,在不同电视机灯效功能上也可以使用,例如呼吸灯效果、闪烁效果等等客制化需求,都可以通过ini文件进行配置,软件使用同一套代码,通过ini文件配置实现差异化需求管理。该方案不仅利于软件代码维护,而且客制化功能适配工作更加简单。
此外,本实施例方案主要针对软件设计进行优化和改善,提升了代码通用性和可继承性,提升了软件的维护性,同时简化功放适配工作。在确保功放软件控制代码统一的情况下,仅通过修改功放ini文件不同配置项信息来实现不同产品的功放适配工作,进而实现功放适配的自适应。
此外,本申请实施例还提出一种终端设备,所述终端设备包括存储器、处理器、以及存储在所述处理器上的功放适配程序,所述功放适配程序被所述处理器调用时执行如上述实施例所述的方法的步骤,其功能原理,请参照上述各实施例,在此不再赘述。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有功放适配程序,所述功放适配程序被处理器调用时执行如上述实施例所述的方法的步骤,其功能原理,请参照上述各实施例,在此不再赘述。
此外,本申请实施例还提出一种计算机程序产品,所述计算机程序产品包括功放适配程序,所述功放适配程序被处理器调用时执行如上述实施例所述的方法的步骤,其功能原理,请参照上述各实施例,在此不再赘述。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (13)

  1. 一种功放适配方法,其中,所述方法包括以下步骤:
    在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数;
    将所述功放配置参数传入所述终端设备,并写入对应的功放地址,对所述终端设备进行功放初始化操作。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    响应对所述终端设备进行功放控制的功放控制指令,向所述终端设备的功放器件指定的静音控制引脚写入固定的功放数据信息,以对所述终端设备进行功放控制操作。
  3. 根据权利要求1所述的方法,其中,所述在接收到对终端设备的功放进行初始化的功放初始化指令时,获取与所述终端设备适配的功放配置参数的步骤包括:
    在接收到对终端设备进行功放初始化操作的功放初始化指令时,调用预设的功放配置文件;
    解析所述功放配置文件,从所述功放配置文件中获取与所述终端设备适配的功放配置参数。
  4. 根据权利要求3所述的方法,其中,所述在接收到对终端设备进行功放初始化操作的功放初始化指令时,获取与所述终端设备适配的功放配置参数的步骤之前还包括:
    为不同的终端设备的机芯或机型配置对应的功放配置参数,生成所述功放配置文件。
  5. 根据权利要求4所述的方法,其中,所述为不同的终端设备的机芯或机型配置对应的功放配置参数,生成所述功放配置文件的步骤之后还包括:
    加载所述功放配置文件,将所述功放配置文件编译到所述终端设备的系统指定路径。
  6. 根据权利要求5所述的方法,其中,所述在接收到对终端设备进行功放初始化操作的功放初始化指令时,调用预设的功放配置文件的步骤包括:
    在接收到对终端设备进行功放初始化操作的功放初始化指令时,从所述终端设备的系统指定路径调用所述功放配置文件,以对所述功放配置文件进行解析。
  7. 根据权利要求3所述的方法,其中,所述功放配置参数包括以下一种或多种:功放类型、功放硬件所在的I2C总线ID、功放器件地址、功放复位引脚、功放初始化bin文件存放路径。
  8. 根据权利要求3所述的方法,其中,所述功放配置文件为ini文件。
  9. 根据权利要求8所述的方法,其中,所述方法还包括:
    将功放的参数信息写入amp.ini文件,配置所述amp.ini文件;
    将所述amp.ini文件编译到指定路径,加载所述amp.ini文件;
    解析所述amp.ini文件,获得功放的相关配置信息;
    根据所述功放的相关配置信息,向对应地址内写入bin文件里面的全部数据信息,完成功放初始化操作;以及
    向功放器件指定的Mute控制引脚写入固定的数据信息,以实现功放Mute/UnMute控制操作。
  10. 根据权利要求4所述的方法,其中,所述功放为单个功放、或者多个相同类型的功放、或者多个不同类型的功放。
  11. 一种终端设备,其中,所述终端设备包括存储器、处理器、以及存储在所述处理器上的功放适配程序,所述功放适配程序被所述处理器调用时执行如权利要求1至10任意一项所述的方法的步骤。
  12. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有功放适配程序,所述功放适配程序被处理器调用时执行如权利要求1至10任意一项所述的方法的步骤。
  13. 一种计算机程序产品,其中,所述计算机程序产品包括功放适配程序,所述功放适配程序被处理器调用时执行如权利要求1至10任意一项所述的方法的步骤。
PCT/CN2021/107981 2021-04-23 2021-07-22 功放适配方法、终端设备、存储介质及计算机程序产品 Ceased WO2022222292A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110442380.4 2021-04-23
CN202110442380.4A CN113076144A (zh) 2021-04-23 2021-04-23 功放适配方法、终端设备、存储介质及计算机程序产品

Publications (1)

Publication Number Publication Date
WO2022222292A1 true WO2022222292A1 (zh) 2022-10-27

Family

ID=76618482

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107981 Ceased WO2022222292A1 (zh) 2021-04-23 2021-07-22 功放适配方法、终端设备、存储介质及计算机程序产品

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665350A (zh) * 2022-10-28 2023-01-31 四川长虹电器股份有限公司 智能电视软件适配多个数字功放硬件平台的处理方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076144A (zh) * 2021-04-23 2021-07-06 深圳创维-Rgb电子有限公司 功放适配方法、终端设备、存储介质及计算机程序产品
CN113590208A (zh) * 2021-09-26 2021-11-02 广州朗国电子科技股份有限公司 一种变更终端数字功放驱动参数的方法及系统、电子设备
CN114090093B (zh) * 2021-11-30 2024-02-06 深圳创维-Rgb电子有限公司 高频头自适应的方法、装置、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070009108A1 (en) * 2005-07-07 2007-01-11 Furge Kenneth C Update system for an audio amplifier
CN104994459A (zh) * 2015-06-17 2015-10-21 Tcl海外电子(惠州)有限公司 终端数字功放配置方法及装置
CN105338448A (zh) * 2015-11-18 2016-02-17 深圳创维-Rgb电子有限公司 音响控制方法和装置
CN110502283A (zh) * 2019-08-19 2019-11-26 深圳大趋智能科技有限公司 一种产品外设兼容方法及系统
CN111935622A (zh) * 2020-08-03 2020-11-13 深圳创维-Rgb电子有限公司 带数字功放电子设备的调试方法、装置、设备及存储介质
CN113076144A (zh) * 2021-04-23 2021-07-06 深圳创维-Rgb电子有限公司 功放适配方法、终端设备、存储介质及计算机程序产品

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5326934B2 (ja) * 2009-01-23 2013-10-30 株式会社Jvcケンウッド 電子機器
CN103916732A (zh) * 2012-12-31 2014-07-09 广州励丰文化科技股份有限公司 具有多数字信号处理器系统的有源一体化音箱的控制方法
CN105812919A (zh) * 2014-12-30 2016-07-27 深圳Tcl数字技术有限公司 音频多功放处理的方法及装置
KR20180072389A (ko) * 2016-12-21 2018-06-29 삼성전자주식회사 액세서리에 대응하는 콘텐트를 제공하기 위한 방법 및 그 전자 장치
US10867603B2 (en) * 2018-10-24 2020-12-15 Sony Corporation Audio-video reproduction device setup using interview-based voice control
CN110545576B (zh) * 2019-09-24 2024-02-23 京信网络系统股份有限公司 一种功放模块、功率调整方法及射频拉远单元
CN111949323B (zh) * 2020-08-31 2024-06-11 深圳市欧瑞博科技股份有限公司 智能设备唤醒的优化方法、装置、智能设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070009108A1 (en) * 2005-07-07 2007-01-11 Furge Kenneth C Update system for an audio amplifier
CN104994459A (zh) * 2015-06-17 2015-10-21 Tcl海外电子(惠州)有限公司 终端数字功放配置方法及装置
CN105338448A (zh) * 2015-11-18 2016-02-17 深圳创维-Rgb电子有限公司 音响控制方法和装置
CN110502283A (zh) * 2019-08-19 2019-11-26 深圳大趋智能科技有限公司 一种产品外设兼容方法及系统
CN111935622A (zh) * 2020-08-03 2020-11-13 深圳创维-Rgb电子有限公司 带数字功放电子设备的调试方法、装置、设备及存储介质
CN113076144A (zh) * 2021-04-23 2021-07-06 深圳创维-Rgb电子有限公司 功放适配方法、终端设备、存储介质及计算机程序产品

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665350A (zh) * 2022-10-28 2023-01-31 四川长虹电器股份有限公司 智能电视软件适配多个数字功放硬件平台的处理方法
CN115665350B (zh) * 2022-10-28 2024-08-30 四川长虹电器股份有限公司 智能电视软件适配多个数字功放硬件平台的处理方法

Also Published As

Publication number Publication date
CN113076144A (zh) 2021-07-06

Similar Documents

Publication Publication Date Title
WO2022222292A1 (zh) 功放适配方法、终端设备、存储介质及计算机程序产品
CN110531962B (zh) 小程序的开发处理方法、设备及计算机可读存储介质
CN114461478B (zh) 模拟器,驱动测试方法,电子设备及计算机可读存储介质
CN102057654A (zh) 移动装置的应用程序框架
CN111506291A (zh) 音频数据采集方法、装置、计算机设备及存储介质
CN108762761A (zh) 目标渠道包的生成方法、装置、服务器及存储介质
CN102999371B (zh) 基于Lua脚本的人机界面开发方法及系统
JP4943650B2 (ja) ポータブルデバイスにおけるマルチメディアレンダリングのためのシステム
CN110221840B (zh) 应用程序的功能实现方法及装置、设备及存储介质
CN112559264B (zh) 基于uvm的验证平台实现fpga通用串口的仿真测试方法
WO2024055757A1 (zh) 驱动程序的硬件资源自动配置方法、装置、系统及介质
CN116055538A (zh) 一种物联网设备的控制方法、装置、终端设备及存储介质
CN116011426A (zh) 基于模板的文件解析方法、装置、电子设备及存储介质
CN107729264B (zh) 一种控制外围串口设备的方法
RU2316907C2 (ru) Система воспроизведения мультимедиа в портативном устройстве
CN115437615A (zh) 一种数据上报方法、装置、计算机设备和存储介质
CN113703339A (zh) 一种自动驾驶仿真方法、装置、设备及存储介质
CN102063113A (zh) 基于m模块的lxi设备标准化软件架构
CN114168226B (zh) 一种解码数据结构方法及相关装置
CN116800854A (zh) 一种信息处理方法、装置、设备及存储介质
CN114385163A (zh) 一种mvvm架构的应用的开发方法及终端
CN121092471A (zh) 一种实现跨平台自适应的自助终端硬件服务驱动方法、系统、设备及介质
US12107725B2 (en) Method and apparatus for remote customization of function, device, and storage medium
CN114064148B (zh) 数据处理方法、装置、电子设备及存储介质
CN116204210A (zh) 固件更新方法、处理单元、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21937516

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21937516

Country of ref document: EP

Kind code of ref document: A1