Data processing method and electronic equipment

By automatically updating the parameter information of the audio component in electronic devices, the problem of users requiring professional tools and knowledge after replacing the component is solved, and efficient and automated audio data processing is achieved to ensure the output effect of the audio component.

CN120335874APending Publication Date: 2025-07-18LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510398091.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, when the parameter information needs to be updated after the electronic device component is replaced, the user needs to have professional tools and knowledge, or need to remove the SSD during the update process to protect privacy, but both methods are inconvenient.

Method used

By implementing an automated data processing method in the electronic device, the first parameter information is obtained by triggering the first file using the target signal, the first component is updated to process the audio data, and the target audio data is generated without user expertise and the device power-on state.

Benefits of technology

It realizes automation and updates of parameter information without professional tools and knowledge, improves update efficiency and automation of equipment, and ensures the output effect of audio components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335874A_ABST
    Figure CN120335874A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and electronic equipment, and the data processing method comprises the steps: obtaining first parameter information based on a first file in response to a target signal obtained by the electronic equipment, so as to enable a first part to process audio data based on the first parameter information to obtain target audio data; the first drive file of the first component comprises the first file, and the first parameter information is parameter information of a second component; and the second part is used for outputting based on the target audio data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data processing, and particularly to a data processing method and an electronic device. Background Art

[0002] As users' requirements for the flexibility of electronic devices are getting higher and higher, more and more components on electronic devices adopt Customer Replaceable Units (CRUs) to meet users' flexibility requirements. For some components on electronic devices such as speakers, once replaced, the corresponding parameter information of the speaker such as the calibration value needs to be updated, otherwise, the speaker cannot be used.

[0003] Currently, after a user replaces a component by themselves, one way to update the parameter information is that the user manually completes the setting of the parameter information, which requires the user to have professional tools and professional knowledge, that is, the requirements for the user's professionalism are relatively high; another way is that the user seeks after-sales service, but when updating the parameter information, the electronic device needs to be powered on. In order to protect the user's privacy, the Solid State Drives (SSDs) are often removed when updating the calibration value, but without the SSDs, the device cannot be powered on to run professional calibration tools. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a data processing method and an electronic device.

[0005] In a first aspect, the embodiments of this application provide a data processing method, including:

[0006] Responding to the electronic device obtaining a target signal, obtaining first parameter information based on a first file, so that a first component can process audio data based on the first parameter information to obtain target audio data;

[0007] The first driver file of the first component includes the first file, and the first parameter information is the parameter information of a second component;

[0008] The second component is used to output based on the target audio data.

[0009] In a possible implementation manner, the target signal is generated by a replacement operation for the second component and / or is generated by the output effect of the second component not meeting a first condition.

[0010] In a possible implementation manner, the data processing method further includes:

[0011] Responding to obtaining a first signal and a second signal, determining that a replacement operation for the second component is obtained;

[0012] The first signal indicates that the housing of the electronic device changes from being closed to being opened, and the second signal indicates that the housing of the electronic device changes from being opened to being closed.

[0013] In a possible implementation manner, in response to the electronic device obtaining a target signal, obtaining first parameter information based on a first file includes:

[0014] When the electronic device is in a first mode, generating the target signal;

[0015] When the electronic device is in a second mode, detecting the target signal and obtaining first parameter information based on the first file; the power consumption of the first mode is lower than that of the second mode.

[0016] In a possible implementation manner, before obtaining the first parameter information based on the first file or before generating the target signal, it further includes:

[0017] Obtaining environmental information where the electronic device is located;

[0018] In response to the environmental information satisfying a second condition, obtaining the first parameter information based on the first file or generating the target signal.

[0019] In a possible implementation manner, the data processing method further includes:

[0020] In response to obtaining target input information of an input device, starting to detect the target signal.

[0021] And / or, after detecting the target signal, outputting a prompt message for prompting that the second component is replaced or the output effect of the second component does not satisfy a first condition.

[0022] In a possible implementation manner, in response to the electronic device obtaining a target signal, obtaining first parameter information based on a first file includes:

[0023] In response to the electronic device obtaining a target signal, when the first component is in an initialization stage, controlling a target driver to write the first file into the first component so that the first component can obtain the first parameter information based on the first file; the target driver includes the first driver file.

[0024] In a possible implementation manner, the method further includes one of the following:

[0025] When the electronic device is in a first system operation stage, initializing the first component; the target driver is stored in the first system; the first system is used to guide the operation of a second system;

[0026] When the electronic device is in the second system operation stage, initialize the first component; the target driver is stored in the second system;

[0027] When the electronic device is in the first system operation stage, initialize the first component for the first time. When the electronic device is in the second system operation stage, initialize the first component for the second time. During the second initialization, control the target driver to write the first file into the first component; the program of the target driver for the first initialization is stored in the first system, and the program of the target driver for the second initialization is stored in the second system.

[0028] In a possible implementation manner, the data processing method further includes:

[0029] Before the electronic device enters the first mode, control the first component to write the first parameter information into the target driver, so that when the electronic device is in the second mode next time, the first component can process audio data based on the first parameter information to obtain target audio data.

[0030] In a second aspect, an embodiment of the present application further provides an electronic device, including:

[0031] Including at least one memory, at least one processor, a first component and a second component, where:

[0032] The memory is used to store multiple computer instructions;

[0033] The processor is used to load and execute the computer instructions to implement the following method:

[0034] In response to the electronic device obtaining a target signal, obtain first parameter information based on a first file;

[0035] The first component is used to process audio data based on the first parameter information to obtain target audio data;

[0036] The second component is used to output based on the target audio data. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings required for the embodiments or the prior art descriptions. Obviously, the drawings in the following descriptions are only some embodiments recorded in the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0038] Figure 1 Shows a flowchart of a data processing method provided by the present application;

[0039] Figure 2 The flowchart shows how to obtain the first parameter information based on the first file in a data processing method provided by this application;

[0040] Figure 3 The interface shows how to display the prompt information provided by this application;

[0041] Figure 4 The schematic diagram shows the structure of an electronic device provided by this application. Detailed implementation manners

[0042] Reference is made herein to the various solutions and features of this application with reference to the accompanying drawings.

[0043] It should be understood that various modifications can be made to the embodiments applied herein. Therefore, the above description should not be regarded as a limitation, but only as an example of the embodiments. Those skilled in the art will think of other modifications within the scope and spirit of this application.

[0044] The drawings included in the specification and forming a part of the specification show the embodiments of this application, and are used together with the general description of this application given above and the detailed description of the embodiments given below to explain the principles of this application.

[0045] These and other features of this application will become apparent from the following description of the preferred forms of the embodiments given by way of non-limiting example with reference to the accompanying drawings.

[0046] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can surely implement many other equivalent forms of this application, which have the features as described in the claims and thus are all within the protection scope defined thereby.

[0047] When combined with the accompanying drawings, the above and other aspects, features and advantages of this application will become more apparent in view of the following detailed description.

[0048] Hereinafter, specific embodiments of this application will be described with reference to the accompanying drawings; however, it should be understood that the embodiments applied are only examples of this application, and it can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details from obscuring this application. Therefore, the specific structural and functional details applied herein are not intended to be limiting, but only as a basis and representative basis for the claims to teach those skilled in the art to use this application in substantially any suitable detailed structure in various ways.

[0049] This specification may use phrases such as "in one embodiment", "in another embodiment", "in yet another embodiment", or "in other embodiments", all of which may refer to one or more of the same or different embodiments according to the present application.

[0050] Currently, as electronic devices have more and more functions, the integrated functional components are correspondingly increasing. Based on this, users have put forward higher requirements for electronic devices to meet the Customer Replaceable Unit (CRU), so that only some functional components can be replaced when needed to continue using the electronic device. Among them, the scenarios where electronic devices need to replace some functional components include, but are not limited to: aging of some functional components (different components have different aging speeds), damage of some functional components (due to high temperature, high usage frequency, etc.), upgrading of some functional components, etc.

[0051] The data processing method provided in the embodiments of the present application can automatically complete the update of the first parameter information in the first component, ensuring that the first component can process audio data based on the first parameter information to obtain the target audio data that the second component can output. This process does not require the user to have professional tools and professional knowledge, that is, it does not require the user's professionalism, and the degree of automation and update efficiency are both relatively high.

[0052] To facilitate the understanding of the present application, a data processing method provided by the present application will be introduced in detail first. Optionally, the embodiments of the present application are for data processing after the audio components of the electronic device are replaced, including responding to the electronic device obtaining a target signal, and obtaining first parameter information based on a first file, so that the first component can process audio data based on the first parameter information to obtain target audio data.

[0053] Among them, the target signal is used to trigger the first file to obtain the first parameter information, and this target signal is used to indicate that the parameter information of the second component needs to be updated or the second component has been replaced. Here, the first file is the file included in the first driver file of the first component on the electronic device. That is to say, after the electronic device obtains the target signal, it responds to this target signal, identifies various hardware components on or connected to the electronic device through the first driver file of the first component, and obtains the first parameter information through the first file. Optionally, the first file may include a computer program for verification to obtain the first parameter information by executing the computer program for verification through the first file; the first file may include a computer program for testing to obtain the first parameter information by executing the test program through the first file, etc.

[0054] Exemplarily, the first parameter information is the parameter information of the second component, and the first parameter information at least includes the impedance of the second component. Of course, it may also include the power, voltage, current, etc. of the second component.

[0055] As described above, the embodiments of the present application are for data processing after the audio components of the electronic device are updated. In this scenario, the second component is used to output based on the target audio data, and the second component is an audio load such as a speaker, a radio frequency modulator, and a headset, etc. Correspondingly, the first component is a power amplifier chip or other audio processing devices, etc. The following will elaborate in detail with the first component being a power amplifier chip and the second component being a speaker.

[0056] In a specific implementation, after obtaining the first parameter information based on the first file, that is, after the power amplifier chip obtains the impedance of the speaker, the first component can process the audio data based on the first parameter information to obtain the target audio data. That is, the power amplifier chip can output an output impedance that matches the impedance of the speaker based on the impedance of the speaker, so as to perform processing such as amplifying, filtering, and stabilizing the voltage on the audio data, and convert it into the target audio data that the speaker can output, avoiding the situation that the second component such as the speaker cannot output the target audio data or the output effect of the target audio data is poor.

[0057] In the process of updating the parameter information of the above-mentioned second component, no human participation is required, and furthermore, no professional tools and professional knowledge are required for the user. That is, the professionalism of the user is not required. It can automatically complete the update of the first parameter information in the first component, ensuring that the first component can process the audio data based on the first parameter information to obtain the target audio data. That is, it ensures that the power amplifier chip processes the audio data based on the impedance of the speaker to obtain the target audio data that the speaker can output. The automation degree and update efficiency of this process are both relatively high.

[0058] Optionally, the target signal in the embodiments of the present application is generated by a replacement operation for the second component and / or is generated by the output effect of the second component not meeting the first condition. Wherein, the second component in the embodiments of the present application is a CRU, that is, the user can replace the second component according to actual needs. For example, when the second component is damaged or the aging degree exceeds 85%, the user can replace the second component by himself.

[0059] It should be noted that after the user replaces the second component, there may be a situation where the second component cannot be used or the output effect of the second component does not meet the first condition. At this time, the target information is generated so that the electronic device obtains the target signal and responds. Preferably, after determining that the replacement operation of the second component occurs, the target signal is directly generated, which can ensure the efficiency of obtaining the first and parameter information to a certain extent.

[0060] In specific implementations, there are cases where the parameter information before the replacement of the second component is the same as the parameter information after the replacement. At the same time, there are also cases where the parameter information before the replacement of the second component is different from the parameter information after the replacement. In the case where the parameter information before the replacement of the second component is different from the parameter information after the replacement, after determining that the replacement operation of the second component has occurred, it is also possible to first determine whether the output effect of the replaced second component meets the first condition. And when it is determined that the output effect of the replaced second component does not meet the first condition, a target signal is generated. Here, the fact that the output effect of the replaced second component does not meet the first condition indicates that the parameter information used by the first component to process audio data does not match the parameter information of the second component. Correspondingly, if the output effect of the second component meets the first condition, it indicates that the parameter information used by the first component matches the parameter information of the second component, that is, there is no need to update the parameter information of the second component in the first file, and in this case, the target signal may not be generated. In this scenario, the target signal can be generated only when the first parameter information needs to be obtained, effectively preventing resource waste caused by generating and responding to the target signal when the first parameter information does not need to be obtained.

[0061] In another example, there is a situation where no replacement operation is performed on the second component, but the parameter information of the second component changes due to aging. Therefore, in the embodiments of the present application, the output effect of the second component can also be periodically evaluated to determine whether the output effect of the second component meets the first condition, and a target signal is generated when it is determined that the output effect of the second component does not meet the first condition. This scenario can ensure to a certain extent that the aging second component also has a good output effect.

[0062] In practical applications, the functional components of an electronic device are usually arranged inside the housing of the electronic device to protect the functional components from being damaged by the outside world using the housing. Correspondingly, when it is necessary to replace the functional components of the electronic device, the housing of the electronic device needs to be opened for replacement. Based on this, in response to obtaining the first signal and the second signal, it is determined that a replacement operation for the second component is obtained, where the first signal indicates that the housing of the electronic device changes from closed to open, and the second signal indicates that the housing of the electronic device changes from open to closed.

[0063] Optionally, a line position switch corresponding to the housing is provided on the electronic device, and this line position switch is used to monitor the morphological change of the housing. In one example, when the line position switch is in the conducting state, it indicates that the housing of the electronic device is closed, and when the line position switch is in the disconnected state, it indicates that the housing of the electronic device is open. Among them, the operation of replacing the second component may be performed when the electronic device is in the shutdown state. Therefore, the state of the line position switch can be monitored in real time through the embedded controller of the electronic device to determine the morphological change of the housing according to the state of the line position switch.

[0064] If it is detected that the state of the line position switch changes from the conducting state to the off state, it indicates that the housing of the electronic device changes from being closed to being open. At this time, a first signal is generated; if it is detected that the state of the line position switch changes from the off state to the conducting state, it indicates that the housing of the electronic device changes from being open to being closed. At this time, a second signal is generated. Moreover, when the first signal and the second signal are obtained, it is determined that there is a replacement operation for the second component, and then a target signal is generated.

[0065] Accordingly, the embodiment of the present application also correspondingly provides a flowchart of a data processing method, and the specific steps are referred to Figure 1 S101 - S103 shown.

[0066] S101, in response to obtaining the first signal and the second signal, determine that a replacement operation for the second component is obtained.

[0067] S102, based on the replacement operation for the second component and / or the output effect of the second component not satisfying the first condition, generate a target signal.

[0068] S103, in response to the electronic device obtaining the target signal, obtain first parameter information based on the first file, so that the first component can process audio data based on the first parameter information to obtain target audio data.

[0069] Regarding the above steps S101 - S103, specific reference can be made to the above description, and no further elaboration will be made here.

[0070] Optionally, for different dimensions of the electronic device, different response methods can be set to respond to the electronic device obtaining the target signal through different response methods, so as to obtain first parameter information based on the first file.

[0071] Exemplarily, Figure 2 A flowchart of a method for obtaining first parameter information based on the first file in response to the electronic device obtaining the target signal is shown, where the specific steps include S201 and S202.

[0072] S201, the electronic device generates a target signal in the first mode.

[0073] S202, the electronic device detects the target signal in the second mode and obtains first parameter information based on the first file.

[0074] Here, the power consumption of the electronic device in the first mode is lower than the power consumption of the electronic device in the second mode. That is, for the dimension of the power consumption of the electronic device, it can be set to generate a target signal in the first mode and obtain first parameter information based on the first file in the second mode.

[0075] Among them, the first mode of the electronic device can be that the electronic device is in a shutdown state. At this time, only some components such as the power management chip, the embedded controller, and some sensors (such as the row position switch in the embodiments of the present application) are in an operating state, and thus the power consumption of the electronic device is relatively low. Correspondingly, the second mode of the electronic device can be that the electronic device is in a powered-on state. At this time, not only the power management chip and the embedded controller are in an operating state, but also the operating system, the central processing unit, the graphics card, the sound card, the motherboard, the memory, etc. of the electronic device are in an operating state, which makes the power consumption of the electronic device relatively high.

[0076] In the embodiments of the present application, in the first mode, the row position switch for monitoring the housing of the electronic device is in a powered-on operating state, so as to achieve the purpose that the electronic device in the shutdown state can also detect the morphological change of the housing of the electronic device. Therefore, in the first mode of the electronic device, if the embedded controller obtains the first signal and the second signal, that is, monitors that the housing of the electronic device changes from closed to open and the housing of the electronic device changes from open to closed, a target signal is generated.

[0077] In the second mode of the electronic device, that is, the operating system, the central processing unit, the graphics card, the sound card, the motherboard, the memory, etc. of the electronic device are started and run. At this time, the embedded controller transmits the target signal to the central processing unit (CPU). After detecting the target signal, the CPU controls the power amplifier chip to obtain the first parameter information based on the first file. Optionally, the embedded controller can also transmit the target signal to the power amplifier chip, so that after detecting the target signal, the power amplifier chip obtains the first parameter information based on the first file. The embodiments of the present application do not make any limitation on this.

[0078] Among them, the trigger condition for detecting the target signal can be automatic, such as setting to detect the target signal in real time or detecting the target signal periodically; it can also be manual, such as responding to obtaining the target input information of the input device to start detecting the target signal. For example, for the scenario where the user clearly knows that the replacement operation for the second component has been performed, when the electronic device is in the second mode, the user can operate the input device such as a mouse, a keyboard, a physical button, and a virtual button, etc. to determine the target input information, and the CPU or the power amplifier chip responds to the target input information to start detecting the target signal.

[0079] Optionally, after detecting the target signal, a prompt message is output, for example, the prompt message is displayed in the form of a pop-up window through the display component of the electronic device, or the prompt message is broadcast in the form of voice through the audio component, that is to say, the prompt message is generated and output after the electronic device starts and runs the OS. Among them, the prompt message is used to prompt that the second component is replaced or the output effect of the second component does not meet the first condition, so that after the user obtains the prompt message, it can be determined whether to execute the step of obtaining the first parameter information based on the first file. As Figure 3 FIG. Figure 3 shows an interface for displaying a prompt message, which is generated and displayed after detecting the target signal. The interface at least includes: 1. The housing of the electronic device changes from closed to open and then from open to closed; 2. The sub-components that may have replacement operations include the second component, the third component, and the fourth component; 3. The output effect of the second component does not meet the first condition; Whether to obtain the first parameter information? The instruction button corresponding to "Yes", when this instruction button is triggered, the step of obtaining the first parameter information is executed, and the instruction button corresponding to "No", when this instruction button is triggered, the step of obtaining the first parameter information is not executed. Thus, the user can determine whether to obtain the first parameter information, avoiding the waste of resources caused by executing the first file when there is no need to obtain the first parameter information.

[0080] In another example, considering the attributes of the electronic device and its configured functional components, there are some functional components that are set with their corresponding usage limiting conditions, and the usage limiting conditions are used to limit the environmental information allowed for the functional components. For example, functional component A needs to be used within the first temperature range, functional component B needs to be used within the first pressure range, functional component C needs to be used within the first humidity range, etc. That is to say, in order to avoid the situation that the functional component is damaged when operating outside the usage limiting conditions, when the environmental information of the current usage environment of the second component does not meet the usage limiting conditions, even if the first signal and the second signal are obtained, the target signal is no longer generated, and thus the step of obtaining the first parameter information based on the first file is not executed.

[0081] Based on this, before obtaining the first parameter information based on the first file or before generating the target signal, first obtain the environmental information where the electronic device is located through the sensors set on the electronic device. The sensors can include temperature sensors, pressure sensors, humidity sensors, light sensors, noise sensors, etc. Correspondingly, the environmental information includes the temperature, humidity, light intensity, noise of the environment where the electronic device is located, and the pressure borne by the electronic device.

[0082] After obtaining the environmental information of the electronic device, it is determined whether the environmental information meets the second condition, which is the usage limitation condition corresponding to the second component. If it is determined that the environmental information meets the second condition, it indicates that the environmental information falls within the range of environmental information allowed for the second component. At this time, in response to the environmental information meeting the second condition, the first parameter information is obtained based on the first file or the target signal is generated. Correspondingly, if it is determined that the environmental information does not meet the second condition, it indicates that the environmental information does not fall within the range of environmental information allowed for the second component. At this time, the target signal is not generated or the first parameter information is not obtained, so as to avoid damaging the second component.

[0083] In another example, the first component can be initialized during the operation stage of the first system, or during the operation stage of the second system, or during the operation stages of both the first system and the second system. Based on this, the embodiments of the present application can also set different operation stages in terms of the operation stage dimension of the electronic device to obtain the first parameter information. It should be noted that the first system in the embodiments of the present application is the Basic Input Output System (BIOS) of the electronic device, and the second system is the Operating System (OS) of the electronic device. Moreover, during the operation stage of the first system BIOS, only some components such as the power management chip, the embedded controller, and some sensors are powered on and running; during the operation stage of the second system OS, the power management chip, the embedded controller, the operating system, the central processing unit, the graphics card, the sound card, the motherboard, the memory, etc. of the electronic device are all powered on and running.

[0084] Optionally, when the target signal is obtained by the electronic device and the first parameter information is obtained based on the first file, after the first component is in the initialization stage, that is, after the first component is powered on, the target driver is controlled to write the first file into the first component, so that the first component can obtain the first parameter information based on the first file. Among them, the target driver includes the first driver file, and the target driver is used to achieve the purpose of the OS identifying various hardware components connected to the system.

[0085] After the first component is powered on, the target driver writes the first file into the first component, that is, injects the first file into the first driver file of the first component, so that the first component can run the first file and thus obtain the first parameter information.

[0086] Optionally, the first component can be initialized during the operation stage of the first system, or during the operation stage of the second system, or can be initialized twice during the operation stages of the first system and the second system, so as to achieve the purpose that the target driver can write the first file into the first component in different scenarios. Optionally, the embodiments of the present application are respectively elaborated for the following three scenarios:

[0087] The first scenario

[0088] When the electronic device is in the first system operation stage, i.e., the BIOS operation stage, the first component is initialized. Correspondingly, the target driver is stored in the first system. Thus, in the first system operation stage, after powering on the first component, the embedded controller controls the target driver to write the first file to the first component, so that the first component can obtain the first parameter information based on the first file, that is, the first component can run and execute the program corresponding to the first file to obtain the first parameter information. It should be noted that when the target driver writes the first file to the first component, it also writes the original parameter information of the second component to the first component.

[0089] That is to say, when the electronic device is in the first system operation stage, the first component can obtain the first parameter information, i.e., the parameter information of the second component, based on the first file, and write the first parameter information to the target driver or the first driver file stored in the first system, so that after the electronic device is in the second system operation stage and starts the first component to run, the first component can process the audio data based on the first parameter information, thereby obtaining the target audio data that the second component can output and the output effect meets the first condition.

[0090] Here, the first system is used to boot the operation of the second system. For example, the BIOS boots the OS to run.

[0091] The second scenario

[0092] When the electronic device is in the second system operation stage, i.e., the OS operation stage, the first component is initialized. Correspondingly, the target driver is stored in the second system. Thus, when the first system boots the second system to run and starts the first component to run, the central processing unit can control the target driver to write the first file to the first component, so that the first component can obtain the first parameter information based on the first file, that is, the first component can run and execute the program corresponding to the first file to obtain the first parameter information. Similarly, the target driver can also write the original parameter information of the second component to the first component.

[0093] That is to say, when the electronic device is in the second system operation stage, the first component obtains the first parameter information, i.e., the parameter information of the second component, based on the first file, and then writes the first parameter information to the target driver or the first driver file stored in the second system, so that when the first component starts and runs, it processes the audio data based on the first parameter information, thereby obtaining the target audio data that the second component can output and the output effect meets the first condition.

[0094] The third scenario

[0095] When the electronic device is in the first system operation stage, i.e., the BIOS operation stage, the first component is initialized for the first time. Among them, the target driver for the first initialization program is stored in the first system, so that when the electronic device is in the first system operation stage, the first component is initialized for the first time based on the program for the first initialization. Among them, the first initialization includes writing the original parameter information of the second component into the first component and generating an instruction for injecting the first file based on the target signal. That is to say, after the first component is initialized for the first time, it can be determined that there may be a replacement operation for the second component, and the first file needs to be injected into the first component so that the first component can verify the second component based on the first file to obtain the parameter information of the second component.

[0096] When the electronic device is in the second system operation stage, i.e., the OS operation stage, the first component is initialized for the second time. Among them, the target driver for the second initialization program is stored in the second system, so that when the electronic device is in the second system operation stage, the first component is initialized for the second time based on the program for the second initialization. Among them, during the second initialization, the target driver is controlled to write the first file into the first component. That is to say, after the first component is initialized for the second time, the first file is stored in the first component, and then the first file can be executed to process the audio data based on the first parameter information to obtain the target audio data.

[0097] The implementation methods in the above three scenarios can all realize the initialization of the first component so that the first component can obtain the first parameter information based on the first file. In practical applications, the implementation method can be determined according to actual needs.

[0098] In another example, after the electronic device is shut down, i.e., switched from the second mode to the first mode, the first driver file of the first component may be erased. Based on this, before the electronic device enters the first mode, the first component is controlled to write the first parameter information into the target driver, where the target driver is stored in the non-volatile memory of the electronic device and will not erase data and files after the electronic device enters the first mode. Thus, when the electronic device is in the second mode next time, the first component can process the audio data based on the first parameter information to obtain the target audio data, effectively improving the efficiency of the collaborative operation between the first component and the second component, that is, the first component can process the audio data into the target audio data that the second component can output and the output effect is better.

[0099] The second aspect of this application also provides an electronic device corresponding to the data processing method. Since the principle of solving problems by the electronic device in this application is similar to the above data processing method of this application, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be elaborated.

[0100] Figure 4The figure shows a schematic diagram of an electronic device provided by an embodiment of the present application. Referring to Figure 4 it can be seen that the electronic device includes at least one memory, at least one processor, a first component, and a second component, where:

[0101] The memory is used to store multiple computer instructions;

[0102] The processor is used to load and execute the computer instructions to implement the following method:

[0103] In response to the electronic device obtaining a target signal, obtain first parameter information based on a first file;

[0104] The first component is used to process audio data based on the first parameter information to obtain target audio data;

[0105] The second component is used to perform output based on the target audio data.

[0106] In another example, the target signal is generated by a replacement operation for the second component and / or is generated by the output effect of the second component not meeting a first condition.

[0107] In another example, the processor is further used for:

[0108] In response to obtaining a first signal and a second signal, determine that a replacement operation for the second component is obtained;

[0109] The first signal indicates that the housing of the electronic device changes from closed to open, and the second signal indicates that the housing of the electronic device changes from open to closed.

[0110] In another example, when the processor obtains the first parameter information based on the first file in response to the electronic device obtaining the target signal, it includes:

[0111] The electronic device generates the target signal in a first mode;

[0112] The electronic device detects the target signal in a second mode and obtains the first parameter information based on the first file; the power consumption of the first mode is lower than that of the second mode.

[0113] In another example, before obtaining the first parameter information based on the first file or before generating the target signal, the processor is further used for:

[0114] Obtain the environmental information of the electronic device;

[0115] In response to the environmental information meeting a second condition, obtain the first parameter information based on the first file or generate the target signal.

[0116] In another example, the processor is further configured to:

[0117] In response to obtaining target input information of an input device, start detecting the target signal.

[0118] And / or, after detecting the target signal, output a prompt message for prompting that the second component is replaced or the output effect of the second component does not meet the first condition.

[0119] In another example, when the processor responds to the electronic device obtaining a target signal and obtains first parameter information based on a first file, it includes:

[0120] In response to the electronic device obtaining a target signal, when the first component is in the initialization stage, control the target driver to write the first file into the first component, so that the first component can obtain the first parameter information based on the first file; the target driver includes the first driver file.

[0121] In another example, the processor is further configured to:

[0122] Initialize the first component when the electronic device is in the first system operation stage; the target driver is stored in the first system; the first system is used to boot the operation of the second system;

[0123] Initialize the first component when the electronic device is in the second system operation stage; the target driver is stored in the second system;

[0124] When the electronic device is in the first system operation stage, initialize the first component for the first time. When the electronic device is in the second system operation stage, initialize the first component for the second time. During the second initialization, control the target driver to write the first file into the first component; the program of the target driver for the first initialization is stored in the first system, and the program of the target driver for the second initialization is stored in the second system.

[0125] In another example, the processor is further configured to:

[0126] Before the electronic device enters the first mode, control the first component to write the first parameter information into the target driver, so that when the electronic device is in the second mode next time, the first component can process audio data based on the first parameter information to obtain target audio data.

[0127] Optionally, in this embodiment, the above storage medium may include, but is not limited to: various media that can store program codes such as USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs. Optionally, in this embodiment, the processor executes the method steps described in the above embodiment according to the program codes stored in the storage medium. Optionally, specific examples in this embodiment may refer to the examples described in the above embodiment and optional implementation manners, and will not be elaborated herein. Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.

[0128] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application having equivalent elements, modifications, omissions, combinations (e.g., schemes of cross-combination of various embodiments), adaptations, or alterations. The elements in the claims will be broadly interpreted based on the language employed in the claims and are not limited to the examples described in this specification or during the implementation of the present application. The examples will be interpreted as non-exclusive. Thus, this specification and the examples are intended to be considered only as examples, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.

[0129] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of their aspects) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. Additionally, in the above specific implementation manners, various features can be grouped together to simplify the present application. This should not be construed as an intention that the disclosed features not claimed are necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are hereby incorporated into the specific implementation manners as examples or embodiments, where each claim independently serves as a separate embodiment, and considering these embodiments, they can be combined with each other in various combinations or permutations. The scope of the present application should be determined with reference to the appended claims and the full scope of the equivalent forms empowered by these claims.

[0130] The above has described multiple embodiments of the present application in detail, but the present application is not limited to these specific embodiments. Based on the concept of the present application, those skilled in the art can make various variations and modifications to the embodiments, and these variations and modifications should all fall within the scope of protection required by the present application.

Claims

1. A data processing method, comprising: In response to the electronic device obtaining a target signal, obtaining first parameter information based on a first file, so that a first component can process audio data based on the first parameter information to obtain target audio data; A first driver file of the first component includes the first file, and the first parameter information is parameter information of a second component; The second component is configured to output based on the target audio data.

2. The data processing method according to claim 1, wherein the target signal is generated by a replacement operation for the second component and / or is generated by the output effect of the second component not satisfying a first condition.

3. The data processing method according to claim 2, the method further comprising: In response to obtaining a first signal and a second signal, determining that a replacement operation for the second component is obtained; The first signal indicates that the housing of the electronic device changes from closed to open, and the second signal indicates that the housing of the electronic device changes from open to closed.

4. The data processing method according to claim 1 or 2, in response to the electronic device obtaining a target signal, obtaining first parameter information based on a first file, comprising: In a first mode of the electronic device, generating the target signal; In a second mode of the electronic device, detecting the target signal and obtaining first parameter information based on the first file; The power consumption of the first mode is lower than the power consumption of the second mode.

5. The data processing method according to claim 4, before obtaining the first parameter information based on the first file or before generating the target signal, further comprising: Obtaining environmental information of the electronic device; In response to the environmental information satisfying a second condition, obtaining the first parameter information based on the first file or generating the target signal.

6. The data processing method according to claim 4, the method further comprising: In response to obtaining target input information of an input device, starting to detect the target signal. And / or, after detecting the target signal, outputting a prompt message, where the prompt message is used to prompt that the second component is replaced or the output effect of the second component does not satisfy the first condition.

7. The data processing method according to claim 1, in response to the electronic device obtaining a target signal, obtaining first parameter information based on a first file, comprising: In response to the electronic device obtaining a target signal, when the first component is in an initialization stage, controlling a target driver to write the first file into the first component, so that the first component can obtain the first parameter information based on the first file; The target driver includes the first driver file.

8. The data processing method according to claim 7, the method further includes one of the following: When the electronic device is in a first system operation stage, initializing the first component; the target driver is stored in the first system; the first system is used to guide the operation of a second system; When the electronic device is in a second system operation stage, initializing the first component; The target driver is stored in the second system; When the electronic device is in the first system operation stage, the first component is initialized for the first time. When the electronic device is in the second system operation stage, the first component is initialized for the second time. During the second initialization, the target driver is controlled to write the first file into the first component; the program of the target driver for the first initialization is stored in the first system, and the program of the target driver for the second initialization is stored in the second system.

9. The data processing method according to claim 7, wherein the method further comprises: Before the electronic device enters the first mode, controlling the first component to write the first parameter information into the target driver, so that when the electronic device is in the second mode next time, the first component can process audio data based on the first parameter information to obtain target audio data.

10. An electronic device, comprising: At least one memory, at least one processor, a first component and a second component, wherein: The memory is used for storing a plurality of computer instructions; The processor is configured to load and execute the computer instructions to implement the following method: In response to the electronic device obtaining a target signal, obtaining first parameter information based on a first file; The first component is used for processing audio data based on the first parameter information to obtain target audio data; The second component is used for outputting based on the target audio data.