Control method for electronic device, electronic device, storage medium and chip
By introducing a second processor into the electronic device to control the state of the audio module components, the noise problem after the blue screen was solved, the noise reduction effect was achieved, and the user experience was improved.
Patent Information
- Application Number
- PCT/CN2025/094966
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-27
- Filing Date
- 2025-05-14
- Publication Date
- 2025-12-04
AI Technical Summary
Electronic devices may emit noise after a blue screen, affecting the user experience.
By introducing a second processor (such as processor B) into the electronic device, when a blue screen occurs, the blue screen message is acquired and the components in the audio module are controlled to switch from a first level state to a second level state to reduce the sound intensity of the audio signal. For example, by controlling the state switching of the mute pin, power pin, and output pin, the noise playback path is cut off or muted.
It effectively reduces the probability of electronic devices emitting noise after a blue screen, thus improving the user experience.
Smart Images

Figure CN2025094966_04122025_PF_FP_ABST
Abstract
Description
A control method of an electronic device, the electronic device, a storage medium and a chip
[0001] The present application claims priority from the Chinese patent application No. 202410669496.5 filed on May 27, 2024, and entitled "A control method of an electronic device, the electronic device, a storage medium and a chip", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of terminals, and in particular to a control method of an electronic device, the electronic device, a storage medium and a chip. BACKGROUND
[0003] Electronic devices such as notebook computers and tablet computers may exhibit a blue screen phenomenon due to unknown reasons. The reasons for the blue screen of the electronic device can be: computer blue screen caused by software compatibility problems of the electronic device, computer blue screen caused by hardware driver compatibility problems of the electronic device, computer blue screen caused by poor contact of the memory bar of the electronic device or damage of the memory, etc. The electronic device may emit noise after the blue screen, which affects the user experience. SUMMARY
[0004] The present application provides a control method of an electronic device, the electronic device, a storage medium and a chip, which can reduce the probability of noise emitted by the electronic device after the blue screen and improve the user experience.
[0005] In a first aspect, a control method of an electronic device is provided, applied to an electronic device, the electronic device comprising a first processor, a second processor and an audio module, the audio module being connected to the first processor, the audio module being configured to process an audio signal from the first processor, the audio module comprising at least one component, the second processor being connected to the at least one component; the method comprising:
[0006] The second processor obtains a blue screen message, the blue screen message being configured to indicate that the electronic device displays a blue screen interface; the second processor controls the at least one component in the audio module to switch from a first level state to a second level state based on the blue screen message, so that the audio signal from the first processor is abnormally output after being processed by the component in the second level state, so as to reduce the sound intensity of the audio signal, wherein the audio signal from the first processor is normally output after being processed by the component in the first level state.
[0007] In the case that the electronic device appears a blue screen phenomenon due to a software crash or a hardware failure of the first processor, the first processor cannot control the components on the noise playing path, so that the electronic device can make noise when the blue screen phenomenon occurs. The embodiment of the present application can acquire the blue screen message through the second processor which can work throughout the life of the electronic device, and then control at least one component in the audio module (which refers to the components on the noise playing path) to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is abnormally output after being processed by the components in the second level state, thereby reducing the sound intensity of the audio signal and reducing the probability of the electronic device making noise, and improving the user experience.
[0008] In combination with the first aspect, in some implementations of the first aspect, before the second processor acquires the blue screen message, the method further includes: in response to the blue screen event, the first processor acquires the blue screen message; and the second processor acquires the blue screen message, including: the second processor receives the blue screen message sent by the first processor.
[0009] In the embodiment of the present application, the electronic device can acquire the blue screen message through the first processor, and then the first processor sends the blue screen message to the second processor. Thus, compared with related solutions, even if the electronic device appears a blue screen phenomenon, the second processor in the hardware layer can perceive this phenomenon and acquire the blue screen message.
[0010] In combination with the first aspect, in some implementations of the first aspect, in response to the blue screen event, the first processor acquires the blue screen message, including: the first processor listens to the blue screen event through the registered callback function; and in response to the blue screen event, the first processor acquires the blue screen message through the callback function.
[0011] In the embodiment of the present application, the electronic device can register the callback function in the first processor, listen to the blue screen event through the callback function, acquire the blue screen message after the first processor listens to the blue screen event, and then send the blue screen message to the second processor. Thus, compared with related solutions, even if the electronic device appears a blue screen phenomenon, the first processor in the hardware layer can perceive this phenomenon through the callback function and send the blue screen message to the second processor, so that the second processor acquires the blue screen message.
[0012] In combination with the first aspect, in some implementations of the first aspect, the electronic device includes a driver layer, the driver layer includes an audio driver module, a graphics card driver module, and a screen menu type adjustment method driver module, and the audio driver module, the graphics card driver module, and the screen menu type adjustment method driver module communicate with the first processor; and before the first processor acquires the blue screen message in response to the blue screen event, the method further includes:
[0013] With reference to the first aspect, in some implementations of the first aspect, the at least one component includes at least one of a mute pin, a power pin, and an output pin.
[0014] With reference to the first aspect, in some implementations of the first aspect, the audio module includes a codec.
[0015] The mute pin includes a mute pin in the codec; and the second processor controls the at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0016] The second processor controls the mute pin in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is muted after being processed by the mute pin in the codec in the second level state, to reduce the sound intensity of the audio signal; and / or,
[0017] The output pin includes a left channel output pin and a right channel output pin of a speaker in the codec; and the second processor controls the at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0018] The second processor controls the left channel output pin and the right channel output pin of the speaker in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when being output by the left channel output pin and the right channel output pin of the speaker in the codec in the second level state, to reduce the sound intensity of the audio signal; and / or,
[0019] The output pin includes a left channel output pin and a right channel output pin of a headphone in the codec; and the second processor controls the at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0020] The second processor controls the left channel output pin and the right channel output pin of the headphone in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when being output by the left channel output pin and the right channel output pin of the headphone in the codec in the second level state, to reduce the sound intensity of the audio signal.
[0021] In the case that the first processor cannot control the components on the noise playing path due to a software crash or a hardware failure of the first processor leading to a blue screen phenomenon of the electronic device, the second processor that can work throughout the life of the electronic device is used to acquire the blue screen message, and then based on the blue screen message, one or more of the mute pin, the left and right channel output pins of the speaker, and the left and right channel output pins of the earphone in the codec (the codec refers to the components on the noise playing path) are switched from the first level state to the second level state, so that in the second level state, the audio signal from the first processor is abnormally output after being processed by the components, and the sound intensity of the audio signal is reduced. Compared with related solutions, the embodiments of the present application can control the state of one or more components in the codec on the noise playing path through the second processor, reduce the probability of noise emission of the electronic device, and improve the user experience.
[0022] With reference to the first aspect, in some implementations of the first aspect, the audio module is a power amplifier.
[0023] The mute pin is a mute pin in the power amplifier; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0024] The second processor controls the mute pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that in the second level state, the audio signal from the first processor is blocked when being output through the left and right channel output pins of the speaker in the power amplifier, so as to reduce the sound intensity of the audio signal; and / or,
[0025] The power supply pin is a power supply pin in the power amplifier; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0026] The second processor controls the power supply pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the power amplifier is not powered, so that in the second level state, the audio signal from the first processor is blocked when being output through the power amplifier, so as to reduce the sound intensity of the audio signal; and / or,
[0027] The output pin is an output pin in the power amplifier; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0028] The second processor controls the output pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when passing through the output pin of the power amplifier in the second level state, to reduce the sound intensity of the audio signal.
[0029] In the case that the first processor cannot control the components on the noise playing path due to the software crash or hardware failure of the first processor leading to the blue screen phenomenon of the electronic device, the second processor which can work throughout the life of the electronic device is used to obtain the blue screen message, and then one or more of the mute pin, the output pin and the power pin in the power amplifier (which refers to the components on the noise playing path) are switched from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is abnormally output after being processed by the components in the second level state, to reduce the sound intensity of the audio signal. Compared with related solutions, the embodiments of the present application can control the state of one or more of the mute pin, the output pin and the power pin in the power amplifier on the noise playing path through the second processor, reduce the probability of the electronic device making noise, and improve the user experience.
[0030] In combination with the first aspect, in some implementations of the first aspect, the second processor includes a general input and output interface; and the second processor is connected with the at least one component, including:
[0031] The second processor is connected with the at least one component through the general input and output interface.
[0032] In combination with the first aspect, in some implementations of the first aspect, the electronic device includes a power management channel; and the second processor receives the blue screen message sent by the first processor, including:
[0033] The second processor receives the blue screen message sent by the first processor through the power management channel.
[0034] The second aspect provides an electronic device for executing the method provided in the first aspect. Specifically, the electronic device can include a processing unit for executing any possible implementation of the first aspect.
[0035] The third aspect provides an electronic device, which includes a first processor, a second processor and an audio module. The audio module is connected with the first processor and is used to process an audio signal from the first processor. The audio module includes at least one component, and the second processor is connected with the at least one component.
[0036] The second processor is configured to acquire a blue screen message, the blue screen message being used to instruct the electronic device to display a blue screen interface; based on the blue screen message, control at least one component in the audio module to switch from a first level state to a second level state, so that in the second level state, the audio signal from the first processor is abnormally output after being processed by the component, so as to reduce the sound intensity of the audio signal, wherein in the first level state, the audio signal from the first processor is normally output after being processed by the component.
[0037] With reference to the third aspect, in some implementations of the third aspect, the at least one component includes at least one of a mute pin, a power pin, and an output pin.
[0038] With reference to the third aspect, in some implementations of the third aspect, the audio module includes a codec.
[0039] The mute pin includes a mute pin in the codec; and the second processor is further configured to, based on the blue screen message, control the mute pin in the codec to switch from the first level state to the second level state, so that in the second level state, the audio signal from the first processor is muted after being processed by the mute pin in the codec, so as to reduce the sound intensity of the audio signal; and / or,
[0040] The output pin includes a left channel output pin and a right channel output pin of a speaker in the codec; and the second processor is further configured to, based on the blue screen message, control the left channel output pin and the right channel output pin of the speaker in the codec to switch from the first level state to the second level state, so that in the second level state, the audio signal from the first processor is blocked when being output by the left channel output pin and the right channel output pin of the speaker in the codec, so as to reduce the sound intensity of the audio signal; and / or,
[0041] The output pin includes a left channel output pin and a right channel output pin of a speaker in the codec; and the second processor is further configured to, based on the blue screen message, control the left channel output pin and the right channel output pin of the speaker in the codec to switch from the first level state to the second level state, so that in the second level state, the audio signal from the first processor is blocked when being output by the left channel output pin and the right channel output pin of the speaker in the codec, so as to reduce the sound intensity of the audio signal.
[0042] With reference to the third aspect, in some implementations of the third aspect, the audio module is a power amplifier.
[0043] The mute pin is a mute pin in the power amplifier; and the second processor is further configured to, based on the blue screen message, control the mute pin in the power amplifier to switch from the first level state to the second level state, so that in the second level state, the audio signal from the first processor is blocked when being output by the left channel output pin and the right channel output pin of the speaker in the power amplifier, so as to reduce the sound intensity of the audio signal; and / or,
[0044] The power pin is a power pin in the power amplifier; and the second processor is further configured to control the power pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the power amplifier is not powered on to reduce the sound intensity of the audio signal when the audio signal from the first processor passes through the power amplifier output in the second level state; and / or,
[0045] The output pin is an output pin in the power amplifier; and the second processor is further configured to control the output pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when passing through the output pin of the power amplifier in the second level state to reduce the sound intensity of the audio signal.
[0046] In a fourth aspect, a computer readable storage medium is provided, including computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method of the first aspect.
[0047] In a fifth aspect, a chip is provided, including a memory for storing instructions; and a processor for calling and executing the instructions from the memory, so that the electronic device installed with the chip performs the method of the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0048] FIG. 1 is an example diagram of a noise playing path of an electronic device after a blue screen is provided.
[0049] FIG. 2 is a structural schematic diagram of an electronic device 100 provided by an embodiment of the present application.
[0050] FIG. 3 is a schematic diagram of the software structure of the electronic device 100 of the embodiment of the present application.
[0051] FIG. 4 is an example diagram of a related scheme compared with the scheme provided by the embodiment of the present application.
[0052] FIG. 5 is an example diagram of a control method of an electronic device provided by an embodiment of the present application.
[0053] FIG. 6 is an example diagram of the hardware structure of a processor B provided by an embodiment of the present application.
[0054] FIG. 7 is an example diagram of the hardware structure of a Codec provided by an embodiment of the present application.
[0055] FIG. 8 is an example diagram of the hardware structure of a PA provided by an embodiment of the present application.
[0056] FIG. 9 is a timing diagram of the control method of the electronic device provided by an embodiment of the present application. Detailed Implementation
[0057] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0058] Electronic devices (such as laptops) may experience blue screen errors for unknown reasons. These errors can be caused by: software incompatibility issues, hardware driver incompatibility issues, poor contact or damage to the memory modules, etc. A blue screen may also produce noise, affecting the user experience.
[0059] For example, please refer to Figure 1, which is an example diagram of the playback path of noise after a blue screen in an electronic device. As shown in Figure 1, after a blue screen occurs in an electronic device due to the above reasons, the System on Chip (SOC) may emit noise (for example, some components in the SOC emit noise due to malfunction, or the cooling fan emits noise due to a system crash in the SOC). For ease of description, the noise generated by the SOC is referred to as noise 1. Noise 1 can be encoded and decoded by a codec to generate noise 2. Noise 2 is then amplified to a sufficiently high level by a power amplifier (PA) to generate noise 3. Noise 3 is then played to the outside world through a speaker.
[0060] A blue screen is a forced display of an image on an electronic device to protect its data files from corruption when the operating system is unable to recover from a system error. A blue screen can indicate that the operating system has crashed or that a hardware malfunction has occurred.
[0061] To address the issue of noise that may occur after an electronic device experiences a blue screen, this application proposes a control method for such devices. After a blue screen occurs, a callback mechanism enables the hardware layer to receive the blue screen message, and then the state of the hardware (such as a codec, power amplifier, speaker, etc.) is controlled based on this message. For example, controlling the entire codec component shown in Figure 1 to be in a non-operating state prevents noise processing and prevents it from being played to the outside, effectively cutting off the noise transmission path from the inside of the electronic device to the outside, thus achieving a silent effect. Alternatively, controlling the mute pin in the codec shown in Figure 1 to be in an active state ensures that noise is muted during processing by the codec, achieving a silent effect for the electronic device.
[0062] The control method of the electronic device provided in the embodiments of the present application is applied to an electronic device that can have a blue screen phenomenon. The electronic device can also be referred to as a terminal, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), and the like. The electronic device can be a mobile phone, a smart television, a tablet computer (Pad), a notebook computer, a desktop computer, a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, and the like. The embodiments of the present application do not limit the specific technology and specific device form of the electronic device.
[0063] In order to better understand the embodiments of the present application, the structure of the electronic device of the embodiments of the present application is introduced below.
[0064] For example, FIG. 1 shows a structural schematic diagram of an electronic device 100. The electronic device 100 can include a processor A 110, a mobile communication module 120, a wireless communication module 130, an audio module 140, wherein the audio module 140 includes a loudspeaker 140A, a codec 140B and a microphone 140C, a power amplifier 140D, a display screen 150, a sensor module 160, a power management module 170 and a processor B 180.
[0065] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software or a combination of software and hardware.
[0066] The processor A110 can include one or more processing units, for example: the processor A110 can include a system on chip (SOC), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent components or integrated in one or more processors.
[0067] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.
[0068] The processor A110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor A110 is a cache memory. The memory can save instructions or data that the processor A110 has just used or repeatedly uses. If the processor A110 needs to use the instructions or data again, it can directly call from the memory. This avoids repeated access and reduces the waiting time of the processor A110, thereby improving the efficiency of the system.
[0069] In some embodiments, the processor A110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0070] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a limitation on the structure of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
[0071] Specifically, in the embodiments of the present application, when the electronic device 100 appears a blue screen phenomenon, it represents that the system of the processor A110 crashes or the hardware of the processor A110 fails, etc. The embodiments of the present application can register a callback function in the processor A110, and after the electronic device 100 appears a blue screen phenomenon, the processor A110 obtains the blue screen message through the callback function.
[0072] The antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0073] The mobile communication module 120 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. In some embodiments, at least part of the functional modules of the mobile communication module 120 can be arranged in the same component as at least part of the modules of the processor A110.
[0074] The wireless communication module 130 can provide a solution for wireless communication including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied to the electronic device 100.
[0075] The electronic device 100 can realize audio functions through the audio module 140, the speaker 140A, the codec 140B, the microphone 140C, and the application processor, etc. For example, music playing, recording, etc.
[0076] The audio module 140 is configured to convert digital audio information into an analog audio signal output, and is also configured to convert an analog audio input into a digital audio signal. The audio module 140 can also be configured to encode and decode audio signals, and is also configured to amplify audio signals, etc. In some embodiments, the audio module 140 can encode and decode audio signals through a built-in codec, and the audio module 140 can amplify audio signals through a built-in PA, etc. In some embodiments, the audio module 140 can be disposed in the processor A 110, or some functional modules of the audio module 140 can be disposed in the processor A 110.
[0077] The speaker 140A, also referred to as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 140A.
[0078] The codec 140B is configured to encode and decode audio signals. In embodiments of the present application, the codec 140B can be disposed in the audio module 140, or can be separately disposed from the audio module 140, and embodiments of the present application do not limit this.
[0079] The microphone 140C, also referred to as a "microphone", "microphone", is configured to convert a sound signal into an electrical signal.
[0080] The power amplifier (PA) 140D is configured to amplify the power of an input signal to a level suitable for a load. In embodiments of the present application, the power amplifier 140D can be disposed in the audio module 140, or can be separately disposed from the audio module 140, and embodiments of the present application do not limit this.
[0081] In embodiments of the present application, when the electronic device appears a blue screen phenomenon, the noise is encoded and decoded by the codec 140B, and then the power of the noise is amplified to a level suitable for a load by the power amplifier (PA) 140D, and then played to the outside world by the speaker 140A.
[0082] The display 150 is configured to display images, videos, and the like. The display 150 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N displays 150, where N is a positive integer greater than 1.
[0083] In some embodiments, when the electronic device 100 is in a blue screen state, the display 150 displays a blue screen image.
[0084] The sensor module 160 includes various sensors, such as a pressure sensor, a gyroscope sensor, a barometric pressure sensor, and the like.
[0085] The power management module 170 is configured to connect the battery and the processor A 110. The power management module 170 receives input from the battery and / or the charging management module, and provides power to the processor A 110, the internal memory, the external memory, the display 150, the camera, and the wireless communication module 130. The power management module 170 can also be configured to monitor parameters such as battery capacity, battery cycle count, battery health (leakage, impedance), and the like. In some other embodiments, the power management module 170 can also be disposed in the processor A 110.
[0086] The processor B 180, which can also be referred to as a single-chip microcomputer, an embedded controller (EC), an input / output chip (I / O chip), or the like, has functions such as keyboard control, touchpad control, power management, fan control, and battery management. The processor B 180 can work throughout the life of the electronic device 100, even if the electronic device 100 is powered off, the software of the processor A 110 in the electronic device 100 crashes, or the hardware of the processor A 110 fails.
[0087] Specific to the embodiments of the present application, the electronic device 100 appears a blue screen phenomenon, which represents that the software of the processor A 110 crashes or the hardware fails. The processor A 110 can obtain the blue screen message through the callback mechanism, and then send the blue screen message to the processor B 180. The processor B 180 controls the state of the hardware (such as the Codec, PA, etc. shown in FIG. 2) based on the blue screen message, so as to cut off the noise playing path or make the noise be muted by the components in the noise playing path. In this way, after the electronic device appears a blue screen phenomenon, the probability of the electronic device emitting noise can be reduced, and the user experience can be improved.
[0088] It should be understood that the processor B 180 can be configured alone or integrated into a processor with the processor A 110, and the embodiments of the present application do not limit this.
[0089] As to the hardware structure of the electronic device 100, it is understood that the components included in the hardware structure shown in FIG. 2 do not constitute a specific limitation on the electronic device 100. The electronic device 100 can have more or fewer components than those shown in the figure, can combine two or more components, or can have a different component configuration. The various components shown in FIG. 2 can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0090] In addition, an operating system runs on the above components. For example, the iOS operating system developed by Apple Inc., the Android open source operating system developed by Google Inc., the Windows operating system developed by Microsoft Corporation, etc. Application programs can be installed and run on the operating system.
[0091] The operating system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take the Windows operating system with a layered architecture as an example to exemplarily illustrate the operating system of the electronic device 100.
[0092] FIG. 3 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Windows operating system is divided into four layers, from top to bottom, which are an application layer, an operating system layer, a driver layer, and a hardware layer.
[0093] As shown in FIG. 3, the application layer includes at least music, video, and other application programs. The music, video, and other application programs can play audio.
[0094] The operating system layer is an intermediate bridge connecting hardware and software, which is composed of machine instructions and generalized instructions. Among them, the machine instruction refers to the instruction that can be directly recognized and executed by the CPU, and the generalized instruction refers to the software instruction defined and interpreted by the system. Exemplarily, the operating system layer includes a content management module, a process management module, a file management module, a device management module, a driver management module, and the like.
[0095] The memory management module is mainly used for the management of memory, and the main tasks are to allocate memory space, ensure that the storage space occupied by each job does not conflict, and make each job in its own storage area not interfere with each other.
[0096] The essence of the process management module is to manage the central processing unit, so the process management module is often also called the processor management module. The process management module can be used for the management of process control, process synchronization, inter-process communication and process scheduling. Among them, process control mainly handles the creation state conversion of the process, process revocation, and allocation and recovery of related process resources; process synchronization mainly handles the relationship between inheritance, including process synchronization and mutual exclusion, inter-process communication mainly handles the exchange of information between mutually cooperative processes, and process scheduling is to select a process from the ready queue according to a certain algorithm and really execute it in the processor.
[0097] The file management module is used to manage various hardware resources, such as U disk, network disk, keyboard, etc.
[0098] The device management module is mainly used to manage various peripheral devices (referred to as peripherals), including allocation, start and fault handling, etc., and the main tasks are: when the user uses external devices, the user must make a request, and after the operating system is allocated uniformly, the user can use it. When the user's program runs to use a certain peripheral, the operating system is responsible for driving the peripheral.
[0099] The driver management module is used to provide the connection between programs and hardware, and provide various system services and interfaces.
[0100] The driving layer is a layer between hardware and software, and various driving modules are included in the driving layer. The driving modules can drive the programs of the software in the computer. The driving program, full name device driving program, is a special program added to the operating system, which contains information about the hardware device. This information enables the computer to communicate with the corresponding device. For example, the driving layer can include driving module A and driving module B. Driving module A can communicate and coordinate with processor A in the hardware layer, so that the operating system layer can correctly interact with processor A. It should be understood that driving module A can also include an audio driving module, a graphics card driving module, an on-screen display (OSD) driving module, and the like, which are not limited in the embodiments of the present application. Driving module B can communicate and coordinate with processor B in the hardware layer, so that the operating system layer can correctly interact with processor B. It should be understood that driving module A and driving module B are illustrated as separate modules in the embodiments of the present application, and in other embodiments, the above driving modules can be combined, or a single driving module can be integrated into another driving module, which is not limited in the embodiments of the present application.
[0101] The hardware layer, as the lowest module in the device, can include processor A, processor B, codec, speaker, power amplifier, and the like shown in FIG. 3.
[0102] It should be understood that the software and hardware architecture diagram shown in FIG. 3 is only illustrative and should not be limited to the embodiments of the present application.
[0103] The above embodiments introduce the hardware structure and software architecture of the electronic device 100, and the following embodiments introduce the application scenarios of the control method of the electronic device provided in the embodiments of the present application.
[0104] Please refer to FIG. 4, which is an example diagram provided to compare the related scheme with the scheme provided in the embodiments of the present application.
[0105] As shown in (a) of FIG. 4, when the electronic device (such as a notebook computer) appears a blue screen phenomenon, the display screen of the electronic device will display a blue interface 401, and the blue interface displays the words 402 such as “Your computer has encountered a problem, we collect some error information, and then you can restart”, and the speaker will emit “tata” or “zizi” noise.
[0106] After the control method of the electronic device provided in the embodiments of the present application is applied to the electronic device, as shown in (b) of FIG. 4, when the electronic device displays the blue interface 403, the display screen of the electronic device will still display the words 404 such as "Your PC ran into problems and needs to restart. Please save your work first, and don't turn off your computer", but the probability of the speaker emitting noises such as "tata" or "zizi" will be reduced, and in some embodiments, the speaker of the electronic device will not emit noises, thus improving the user experience.
[0107] The above embodiments introduce the application scenarios of the control method of the electronic device provided in the embodiments of the present application. The following embodiments introduce the implementation process of the control method of the electronic device provided in the embodiments of the present application.
[0108] Please refer to FIG. 5, which is an example diagram of a control method of an electronic device provided in the embodiments of the present application. The numbers in the circles shown in FIG. 5 represent steps, for example, the control method shown in FIG. 5 includes steps 501 to 504.
[0109] In step 501, the processor B is connected with the component 1 in the Codec, or the processor B is connected with the component 2 in the PA.
[0110] It should be understood that the role of the processor B is that the processor B can work throughout the life of the electronic device 100, that is, even if the electronic device is powered off, or the software of the processor A in the electronic device crashes or the hardware fails, causing the electronic device to appear a blue screen phenomenon, the processor B can still work. The processor B can be an EC, and the type of the processor B is not limited in the embodiments of the present application.
[0111] It should also be understood that after the electronic device appears a blue screen phenomenon, that is, the software of the processor A in the electronic device crashes or the hardware fails, the processor A cannot control the state of the components on the noise playing path of the electronic device after the electronic device appears a blue screen, causing the electronic device A to emit noises. In the embodiments of the present application, in the case that the software of the processor A crashes or the hardware fails, the electronic device can control the state of the components on the noise playing path of the electronic device after the electronic device appears a blue screen based on the role of the processor B, so as to cut off the noise playing path or make the noises be muted.
[0112] For example, please refer to FIG. 6, which is an example diagram of a hardware structure of a processor B provided in the embodiments of the present application.
[0113] The processor B can include two buses, an internal bus and an EC dedicated bus. The internal bus is used for the processor A to access the logic devices (power management channel (PMC), keyboard controller (KBC)) hung below the internal bus, and can also be used for communication between the logic devices. The EC dedicated bus is used for communication between the functional modules hung below the EC dedicated bus, and communication between the functional modules hung below the EC dedicated bus and the logic devices hung below the internal bus. The functional modules hung below the EC dedicated bus can include an analog-to-digital converter (ADC) and general-purpose input / output ports (GPIO) 601.
[0114] The processor B can also include a single-chip microcomputer. The processor B can realize keyboard control, touchpad control, power management, fan control, battery management, and the like through the single-chip microcomputer.
[0115] The hardware structure of the processor B is introduced as above. It can be understood that the components included in the hardware structure shown in FIG. 6 do not constitute a specific limitation on the processor B. The processor B can have more or fewer components than those shown in the figure, can combine two or more components, or can have a different component configuration. The various components shown in FIG. 6 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0116] In the embodiment of the present application, the GPIO 601 in the processor B shown in FIG. 6 can be connected to the component 1 in the Codec, or the GPIO 601 in the processor B can be connected to the component 2 in the PA. The above hardware connection is used for the processor B to control the component 1 in the Codec or the component 2 in the PA. For example, the processor B controls the component 1 in the Codec to switch from high level to low level, or controls the component 2 in the PA to switch from high level to low level, so as to mute the electronic device or cut off the noise playing path.
[0117] The following embodiment introduces the component 1 in the Codec.
[0118] For example, refer to FIG. 7, which is a hardware structure example diagram of a Codec provided by an embodiment of the present application.
[0119] As shown in FIG. 7, the Codec includes a digital audio interface (DAI) for inputting a digital signal of a specific sampling frequency to a Codec input processor A.
[0120] Digital filters (DF) are used to convert the digital signal of the specific sampling frequency into a multi-bit oversampled digital signal.
[0121] A digital to analog converter (DAC) is used to convert the digital signal into an analog signal.
[0122] A mute pin A (MUTE) 701 is used to set mute, cutting off the output of the digital to analog converter.
[0123] A side tone pin (SIDTONE) is used to select whether to mix the analog signals of the sound signal collected through a microphone (MIC) and the audio signal collected through other audio devices (LINEIN).
[0124] Left and right channel output pins 702 of a speaker are used to connect the left and right channels of the speaker.
[0125] A volume pin is used to set the volume, and a mute pin B (MUTE) 703 is used to set mute.
[0126] A driver pin (DRIVER) is used to maintain the driving current of the earphone, avoiding noise when mute or standby.
[0127] Left and right channel output pins 704 of an earphone are used to connect the left and right channels of the earphone.
[0128] It should be noted that in some embodiments, the above-mentioned name "pin" can also be referred to as "leg", etc., and the embodiments of the present application do not limit this.
[0129] As for the hardware structure of the Codec, it is understood that the components included in the hardware structure shown in FIG. 7 do not constitute a specific limitation on the Codec. The Codec can have more or fewer components than those shown in the figure, can combine two or more components, or can have a different component configuration. The various components shown in FIG. 7 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0130] It should be understood that the noise generated by the processor A can be played to the outside world through the components shown in FIG. 7. The noise generated by the processor A can be played to the outside world through the speaker after being processed by the Codec, or can be played to the outside world through the earphone after being processed by the Codec. The following describes an audio playing path A in which the noise is played to the outside world through the speaker, and an audio playing path B in which the noise is played to the outside world through the earphone.
[0131] The audio playing path A:
[0132] As shown in FIG. 7, the noise can be processed by the digital audio interface, the digital filter, the analog-digital converter, the mute pin A 701, the side tone pin, and the left and right channel output pins 702 of the speaker in sequence, and then played to the outside world through the speaker.
[0133] The audio playing path B:
[0134] As shown in FIG. 7, the noise can be processed by the digital audio interface, the digital filter, the analog-digital converter, the mute pin A 701, the side tone pin, the volume pin, the mute pin B 703, the driving pin, and the left and right channel output pins 704 of the earphone in sequence, and then played to the outside world through the speaker.
[0135] In the embodiment of the present application, the component 1 can be the mute pin A 701 shown in FIG. 7, or the left and right channel output pins 702 of the speaker, or the mute pin B 703, or the left and right channel output pins 704 of the earphone, etc. Of course, in other embodiments, the component 2 can also be other components in the Codec, which is not limited in the embodiment of the present application.
[0136] In the implementation, the electronic device can connect the GPIO in the processor B shown in FIG. 6 with the mute pin A 701, or the left and right channel output pins 702, or the mute pin B 703, or the left and right channel output pins 704 of the earphone in the Codec shown in FIG. 7.
[0137] The following embodiment describes the component 2 in the PA.
[0138] For example, please refer to FIG. 8, which is an example diagram of the hardware structure of a PA provided in the embodiment of the present application.
[0139] As shown in FIG. 8, the power amplifier (PA) at least includes the following pins: a mute pin C 801, a power supply pin 802, an output pin 803, and the like. Among them, the PA is used to amplify the power of the input signal to a level suitable for the load. The mute pin C is used to set the mute. The power supply pin is used to connect the power supply module in the electronic device with the PA. The output pin is used to output the audio signal. Of course, the PA can also include other pins, such as the power supply H-bridge of the left channel and the power supply H-bridge of the right channel shown in FIG. 8, the power limit pin (LIMIT), and the like. The power supply H-bridge of the left channel and the power supply H-bridge of the right channel are used for internal connection of the left channel and the right channel power supply input. LIMIT is used to limit or adjust the power of the PA.
[0140] Among them, the output pin 803 can be an H-bridge right channel output pin, a left channel output pin, and the like.
[0141] As for the hardware structure of the PA, it can be understood that the components included in the hardware structure shown in FIG. 8 do not constitute a specific limitation on the PA. The PA can have more or fewer components than those shown in the figure, can combine two or more components, or can have a different component configuration. The various components shown in FIG. 8 can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0142] In the embodiment of the application, the component 2 can be the mute pin C 801 shown in FIG. 8, or the power supply pin 802, or the output pin 803. Of course, in other embodiments, the component 2 can also be other components in the power amplifier, which is not limited in the embodiment of the application.
[0143] In the implementation, the electronic device can connect the GPIO in the processor B shown in FIG. 6 with the mute pin C 801, or the power supply pin 802, or the output pin 803, and the like in the PA shown in FIG. 8.
[0144] It should be understood that the mute pin in the above embodiment can be a hard mute pin or a soft mute pin, which is not limited in the embodiment of the application.
[0145] In other embodiments, in addition to connecting the processor B with the component 1 in the Codec in step 501, or connecting the processor B with the component 2 in the PA, the processor B can also be connected with other components on the playing path of the noise from the inside of the electronic device to the outside, such as the mute pin, the power supply pin, the output pin, the input pin, and the like in the speaker, which is not limited in the embodiment of the application.
[0146] At step 502, the electronic device registers the callback function in the processor A, and in the case that the electronic device appears the blue screen phenomenon, the processor A acquires the blue screen message through the callback function.
[0147] It should be understood that the callback function is an application of the function pointer, in common parlance, the callback function is to call a function by using the function pointer, and the callback function registration is a process of passing the function pointer as a parameter to facilitate the use of other modules.
[0148] It should also be understood that the blue screen event is an event that causes the electronic device to appear the blue screen phenomenon, such as system crash of the processor A, hardware failure, etc. The blue screen message can refer to the dump file collected by the processor A after the blue screen event occurs. The dump file refers to the dynamic (or volatile) data dumped into a static (such as a file) form after the blue screen event occurs.
[0149] For example, the callback function can be the KeRegisterBugCheckReasonCallback() function, and the embodiments of the present application do not limit the type of function. The callback function can include input, output parameters, etc., and the embodiments of the present application do not limit this.
[0150] It can also be understood that in order to read the blue screen message after the electronic device appears the blue screen phenomenon due to system crash of the processor A, hardware failure, etc., the processor A can register a callback function in the processor A, and the electronic device can fill the blue screen message into the callback function in real time when the blue screen event occurs, and the processor A can acquire the blue screen message through the callback function.
[0151] At step 503, the processor A sends the blue screen message to the processor B.
[0152] It should be understood that the processor A can send the blue screen message to the processor B through the power management channel (PMC).
[0153] It should also be understood that the PMC can be used as a communication channel between the host processor (such as the processor A) and the embedded controller (such as the processor B). The PMC can provide four registers, namely the power management data register (PMDIR), the power management data output register (PMDAT), the power management data input register (PMDIN) and the power management data control register (PMDCR).
[0154] (Power Management Data Output Register, PMDOR), a Power Management Channel Memory Data Register (PMCMDR), and a Power Management State Register (PMSTR). These four registers are used for communication between the host processor (e.g., processor A) and the embedded controller (e.g., processor B). The PMDIR register can be written by the host processor and read by the embedded controller. The PMDOR register can be written by the embedded controller and read by the host processor. Both the host processor and the embedded controller can read the PMCMDR or the PMSTR register.
[0155] It is also understood that the embedded controller (e.g., processor B) also includes three registers, namely, an EC State Register, an EC Command Register, and an EC Data Register. The EC State Register is used for reading data, the EC Command Register is used for writing data, and the EC Data Register is used for transferring data between processor A and processor B.
[0156] In implementation, processor A sends read and write commands to processor B through the PMC to transfer data. For example, processor A can send a read EC register command (e.g., the command can be 0x80) to processor B through the PMC, where the address offset of an EC Random Access Memory (RAM) resource is immediately after 0x80. Processor A can read the content in the EC Data Register when an Output Buffer Full (OBF) signal of the EC State Register is set. The OBF signal being set indicates that the EC has transferred data to the EC Data Register. For another example, processor A can send a write EC register command (e.g., the command can be 0x81) to processor B through the PMC, where the address offset of an EC RAM resource is immediately after 0x81. Processor A can write data (e.g., a blue screen message) in the EC Data Register when an Input Buffer Full (IBF) signal of the EC State Register is zero. The IBF signal being zero indicates that the data in the EC Data Register has been emptied.
[0157] At step 504, processor B controls component 1 in the Codec or component 2 in the PA based on the blue screen message to mute the electronic device.
[0158] It is understood that the meanings of component 1 and component 2 can refer to the above embodiments and will not be repeated here.
[0159] In an implementation, after receiving the blue screen message, the processor B can send a control instruction to the component 1 in the codec or the component 2 in the PA to control the component 1 to switch from the high level state to the low level state or to control the component 2 to switch from the high level state to the low level state, so as to mute the electronic device.
[0160] It should be understood that, referring to FIG. 1, after the electronic device appears the blue screen phenomenon, the processor A (such as the SOC) can generate noise 1. The noise 1 can be coded and decoded by the codec to generate noise 2, at this time, the component 1 in the codec is in the high level state, and the component 1 in the high level state is used to indicate that the component 1 can work normally. For example, when the component 1 is the mute pin shown in FIG. 7, the mute pin in the high level state is used to indicate that the audio signal output is not muted, and for another example, when the component 1 is the left and right channel output pins of the speaker shown in FIG. 7, the left and right channel output pins in the high level state are used to indicate that the left and right channel output pins can normally output the audio signal. Then, the noise 2 is amplified in power by the power amplifier (PA) to a high enough level to generate noise 3, at this time, the component 2 in the PA is in the high level state, and the component 2 in the high level state is used to indicate that the component 2 can work normally. For example, when the component 2 is the mute pin shown in FIG. 8, the mute pin in the high level state is used to indicate that the audio signal output is not muted, and for another example, when the component 2 is the power pin shown in FIG. 8, the power pin in the high level state is used to indicate that the PA can be normally powered, and for another example, when the component 2 is the output pin shown in FIG. 8, the output pin in the high level state is used to indicate that the audio signal can be normally output. Then, the noise 3 is played to the outside through the speaker.
[0161] By the step 504 provided in the embodiments of the present application, the processor B can change the state of the component 1 in the Codec or the component 2 in the PA. For example, when the component 1 is the mute pin shown in FIG. 7, the processor B can control the mute pin to switch from the high level state to the low level state, and the low level state of the mute pin is used to indicate that the output of the audio signal is muted. For another example, when the component 1 is the left and right channel output pin of the speaker, the processor B can control the left and right channel output pin to switch from the high level state to the low level state, and the low level state of the left and right channel output pin is used to indicate that the noise cannot be output through the left and right channel output pin. For another example, when the component 2 is the mute pin shown in FIG. 8, the processor B can control the mute pin to switch from the high level state to the low level state, and the low level state of the mute pin is used to indicate that the output of the audio signal is muted. For another example, when the component 2 is the power pin shown in FIG. 8, the processor B can control the power pin to switch from the high level state to the low level state, and the low level state of the power pin is used to indicate that the PA is powered off, i.e., the PA cannot work normally (it can also be understood as that the PA cannot output the audio signal). For another example, when the component 2 is the output pin shown in FIG. 8, the processor B can control the output pin to switch from the high level state to the low level state, and the low level state of the output pin is used to indicate that the audio signal cannot be output.
[0162] In some embodiments, the mute pin mentioned in the above embodiments (such as the mute pin A and the mute pin B shown in FIG. 7, and the mute pin C shown in FIG. 8) is in the high level state, which can indicate that the output of the audio signal is muted, and the mute pin is in the low level state, which can indicate that the output of the audio signal is not muted. In this case, in the step 504, the processor B can control the mute pin to switch from the low level state to the high level state based on the blue screen message.
[0163] In some embodiments, the output pin mentioned in the above embodiments (such as the left and right channel output pin of the speaker, the left and right channel output pin of the earphone, the output pin shown in FIG. 8, etc.) is in the high level state, which can indicate that the audio signal cannot be output, and the output pin is in the low level state, which can indicate that the audio signal can be normally output. In this case, in the step 504, the processor B can control the output pin to switch from the low level state to the high level state based on the blue screen message.
[0164] In some embodiments, the step 501 is to connect the processor B with other components on the playing path of the noise from the inside of the electronic device to the outside, such as the mute pin, the power pin, the output pin, the input pin, etc. in the speaker, and the present application does not limit this. In the step 504, the processor B can control other components on the playing path of the noise based on the blue screen message to mute the electronic device.
[0165] Step 505, after the electronic device is restarted, the processor B controls the component 1 in the Codec or the component 2 in the PA to reset, so that the audio signal can be normally output.
[0166] It should be understood that after the electronic device appears the blue screen phenomenon, the processor B can control the component 1 in the Codec or the component 2 in the PA to reset, that is, control the component 1 in the Codec or the component 2 in the PA to switch from the low level state to the high level state, so that the audio signal can be normally output.
[0167] In the implementation, after the electronic device is restarted, the processor B can determine the state of the component 1 or the component 2 in the Codec, that is, determine whether the component 1 or the component 2 is in the high level state or the low level state, when the component 1 or the component 2 is in the high level state, there is no need to switch the state of the component 1 or the component 2. When the component 1 or the component 2 is in the low level state, the component 1 in the Codec or the component 2 in the PA needs to be controlled to switch from the low level state to the high level state, so that the audio signal can be normally output.
[0168] In some embodiments, the Codec or the PA can also include a reset pin, and the processor B can perform reset processing through the reset pin to control the component 1 in the Codec or the component 2 in the PA to switch from the low level state to the high level state.
[0169] In some embodiments, step 505 can also be that after the electronic device is restarted, the processor B controls other components on the noise playing path to reset, so that the audio signal can be normally output.
[0170] In related schemes, in the case that the electronic device appears the blue screen phenomenon, the electronic device can emit noise. Through analysis, the applicant finds that the reason why the electronic device emits noise is that: when the electronic device appears the blue screen phenomenon, it means that the operating system of the electronic device has crashed, or the hardware (such as the SOC) of the electronic device has failed (for example, the operating system corresponding to the SOC crashes, or the hardware of the SOC fails), the SOC in the electronic device can emit noise, but the hardware (such as the SOC) in the hardware layer of the electronic device cannot perceive whether the upper layer (such as the application layer shown in FIG. 3) appears the blue screen phenomenon, so that the hardware layer cannot control the components (such as the Codec and the PA) on the noise playing path shown in FIG. 1 after the upper layer appears the blue screen phenomenon, resulting in that the noise can be played through the playing path shown in FIG. 1.
[0171] In the embodiment of the present application, at the software level, the electronic device can register a callback function in the processor A, acquire the blue screen message through the callback function, and then the processor A sends the blue screen message to the processor B. Thus, compared with the related solution, even if the electronic device appears the blue screen phenomenon, the hardware layer (such as the processor B in the hardware layer) can perceive the phenomenon through the callback function and acquire the blue screen message. Subsequently, the processor B controls the component 1 in the Codec or the component 2 in the PA based on the blue screen message, so as to mute the electronic device or cut off the noise playing path, which can reduce the probability of the electronic device emitting noise or eliminate the noise emitted by the electronic device, thereby improving the user experience.
[0172] At the hardware level, the processor B can be connected with the component 1 in the Codec or connected with the component 2 in the PA. Thus, in the case that the software of the processor A crashes or the hardware fails, the processor B which can work throughout the life of the electronic device can be used to control the state of the components (such as the Codec and the PA) in the playing path shown in FIG. 1, and the processor B in the hardware layer can be used to control the state of the components in the playing path.
[0173] The above embodiment introduces the implementation process of the control method of the electronic device provided in the embodiment of the present application in combination with FIGS. 5 to 8. The following embodiment introduces the implementation process of the control method of the electronic device provided in the embodiment of the present application again in combination with the software structure in FIG. 3.
[0174] Please refer to FIG. 9, which is a timing diagram of the control method of the electronic device provided in the embodiment of the present application. The method shown in FIG. 9 includes steps 901 to 907.
[0175] In step 901, a callback function is registered in the driver module A in the driver layer, and the callback function is used to monitor the blue screen event.
[0176] The meanings of the driver module A, the callback function and the blue screen event can be referred to the above embodiments.
[0177] The implementation process of the embodiment has been described in the above embodiments, and will not be described here again.
[0178] In step 902, the application layer displays a blue screen interface.
[0179] It should be understood that the displayed blue screen interface can be the interface shown in (a) or (b) of FIG. 4.
[0180] In step 903, after the application layer displays the blue screen interface, the callback function in the driver module A can monitor the blue screen event.
[0181] In step 904, the driver module A sends a blue screen message to the processor A.
[0182] At step 905, after receiving the blue screen message, the processor A can send the blue screen message to the processor B in the hardware layer through the driver module B.
[0183] The implementation process of the processor A sending the blue screen message to the processor B can refer to the above embodiment, and details are not described herein.
[0184] At step 906, after receiving the blue screen message, the processor B can send a control instruction to the codec or the power amplifier in the hardware layer.
[0185] At step 907, the processor B controls the component 1 in the codec or the component 2 in the power amplifier to switch the level state of the component 1 and the component 2 through the control instruction.
[0186] The implementation process of the embodiment can refer to step 504 in the above embodiment, and details are not described herein.
[0187] The above embodiment introduces the implementation process of the control method of the electronic device provided in the embodiment of the application in combination with the software structure in FIG. 3. The following embodiment introduces the scheme of the control method of the electronic device involved in the claims.
[0188] The embodiment of the application provides a control method of an electronic device, which is applied to the electronic device, the electronic device comprising a first processor, a second processor and an audio module, the audio module being connected with the first processor, the audio module being used for processing an audio signal from the first processor, the audio module comprising at least one component, the second processor being connected with the at least one component; the method comprising:
[0189] The second processor acquires a blue screen message, the blue screen message being used for instructing the electronic device to display a blue screen interface; and the second processor controls the at least one component in the audio module to switch from a first level state to a second level state based on the blue screen message, so that the audio signal from the first processor is abnormally output after being processed by the component in the second level state, so as to reduce the sound intensity of the audio signal, wherein the audio signal from the first processor is normally output after being processed by the component in the first level state.
[0190] It should be understood that the electronic device can refer to the electronic device 100 shown in FIG. 2, the first processor can refer to the processor A 110 shown in FIG. 2, and the first processor can specifically be a system on chip (SOC). The second processor can refer to the processor B 180 shown in FIG. 2, and the second processor can specifically be an embedded controller (EC). The role of the second processor can refer to the role of the processor B mentioned in the above embodiments, and details are not described herein. The audio module can be one or more of the audio module 140, the speaker 140A, the codec 140B, and the power amplifier 140D shown in FIG. 2. The audio module connected to the first processor can refer to FIG. 1, in which the first processor (SOC) is electrically connected to the codec. After the electronic device appears a blue screen phenomenon, the audio signal (such as a noise signal) from the first processor is processed by the codec, the power amplifier, and the speaker, and is propagated to the outside.
[0191] The audio module includes at least one component, which can be understood as follows: for example, when the audio module is the codec shown in FIG. 7, the audio module including at least one component can include one or more of the mute pin A, the mute pin B, the left and right channel output pins of the speaker, and the left and right channel output pins of the earphone in the codec. For another example, when the audio module is the power amplifier shown in FIG. 8, the audio module including at least one component can include one or more of the mute pin C, the power supply pin, and the output pin in the power amplifier. For another example, when the audio module is the speaker, the audio module including at least one component can include one or more of the mute pin, the power supply pin, the output pin, and the input pin in the speaker. Of course, the audio module can also be other components on a playing path through which noise is played from the inside of the electronic device to the outside, and the embodiments of the present application do not limit this.
[0192] The second processor connected to the at least one component means that the second processor is electrically connected to one or more components in the audio module, so that at least one component in the audio module can receive a control signal of the second processor.
[0193] It should also be understood that the blue screen message can refer to the dump collected by the first processor after the blue screen event occurs, and the explanation of the dump can refer to the above embodiments. The blue screen interface can refer to the interface 401 or 403 shown in FIG. 4. The blue screen event can refer to an event that causes the electronic device to display the blue screen interface.
[0194] In an implementation, the second processor obtains the blue screen message. The first processor can send the blue screen message to the second processor after obtaining the blue screen message after the blue screen event occurs. The second processor can directly obtain the blue screen message after the blue screen event occurs, and the embodiments of the present application do not limit this.
[0195] The audio signal being abnormally output in the embodiments of the present application can refer to the audio signal being muted, the output of the audio signal being blocked, the audio signal being unable to be output, and the like, which are not limited in the embodiments of the present application. The audio signal being normally output can refer to the audio signal not being muted, the audio signal being able to be normally output, and the like, which are not limited in the embodiments of the present application.
[0196] It should also be understood that the first level state can refer to a high level state, and the second level state can refer to a low level state. In some embodiments, the first level state can also refer to a low level state, and the second level state can refer to a high level state. The embodiments of the present application are not limited to this. For the implementation process of the second processor controlling at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is abnormally output after being processed by the component in the second level state, to reduce the sound intensity of the audio signal, the implementation process of step 504 shown in FIG. 5 can be referred to, and details are not repeated here.
[0197] Since the software crash or hardware failure of the first processor causes the electronic device to appear the blue screen phenomenon, the first processor cannot control the components on the noise playing path to make the electronic device emit noise when the electronic device is in the blue screen state. The second processor which can work throughout the life of the electronic device can obtain the blue screen message, and then based on the blue screen message, at least one component in the audio module (which refers to the components on the noise playing path) is controlled to switch from the first level state to the second level state, so that the audio signal from the first processor is abnormally output after being processed by the component in the second level state, to reduce the sound intensity of the audio signal, thereby reducing the probability of the electronic device emitting noise, and improving the user experience.
[0198] In some embodiments, before the second processor obtains the blue screen message, the method further includes: in response to the blue screen event, the first processor obtains the blue screen message; and the second processor obtaining the blue screen message includes: the second processor receiving the blue screen message sent by the first processor.
[0199] It should be understood that the first processor can obtain the blue screen message through a registered callback function. The explanation of the callback function can be referred to the above embodiments, and details are not repeated here. The first processor can also obtain the blue screen message through other ways, such as through a crash tool, which is not limited in the embodiments of the present application.
[0200] In the embodiments of the present application, the electronic device can obtain the blue screen message through the first processor, and then the first processor sends the blue screen message to the second processor. Therefore, compared with related solutions, even if the electronic device appears the blue screen phenomenon, the second processor in the hardware layer can also perceive this phenomenon and obtain the blue screen message.
[0201] In some embodiments, in response to the blue screen event, the first processor acquires the blue screen message, including: the first processor listens to the blue screen event through the registered callback function; and in response to the blue screen event, the first processor acquires the blue screen message through the callback function.
[0202] For the implementation of the first processor acquiring the blue screen message through the registered callback function, reference can be made to the foregoing embodiments, and details are not described herein.
[0203] According to the embodiments, the electronic device can register the callback function in the first processor, listen to the blue screen event through the callback function, acquire the blue screen message after the first processor listens to the blue screen event, and then send the blue screen message to the second processor. Thus, compared with related solutions, even if the electronic device appears the blue screen phenomenon, the first processor in the hardware layer can perceive the phenomenon through the callback function, and can send the blue screen message to the second processor to enable the second processor to acquire the blue screen message.
[0204] In some embodiments, the electronic device includes a driver layer, the driver layer includes an audio driver module, a graphics card driver module, and a screen menu adjustment mode driver module, the audio driver module, the graphics card driver module, and the screen menu adjustment mode driver module are in communication with the first processor; and before the first processor acquires the blue screen message in response to the blue screen event, the method further includes:
[0205] Registering the callback function in the audio driver module, the graphics card driver module, or the screen menu adjustment mode driver module.
[0206] It should be understood that the audio driver module, the graphics card driver module, and the screen menu adjustment mode driver module can refer to the driver modules shown in the driver module A shown in FIG. 3.
[0207] In the implementation, the callback function can be registered in one or more of the audio driver module, the graphics card driver module, or the screen menu adjustment mode driver module, and the blue screen event can be listened to through the callback function.
[0208] In some embodiments, the at least one component includes at least one of a mute pin, a power pin, and an output pin.
[0209] It should be understood that the mute pin can refer to the mute pin A and the mute pin B shown in FIG. 7, and can also refer to the mute pin C shown in FIG. 8. The power pin can refer to the power pin shown in FIG. 8. The output pin can refer to the left and right channel output pins of the speaker and the left and right channel output pins of the earphone shown in FIG. 7, and can also refer to the output pin shown in FIG. 8.
[0210] In some embodiments, the audio module includes a codec;
[0211] The mute pin comprises a mute pin in the codec; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, comprising:
[0212] The second processor controls the mute pin in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is muted after being processed by the mute pin in the codec in the second level state, to reduce the sound intensity of the audio signal; and / or,
[0213] The output pin comprises a left and right channel output pin of a speaker in the codec; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, comprising:
[0214] The second processor controls the left and right channel output pin of the speaker in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when being output by the left and right channel output pin of the speaker in the codec in the second level state, to reduce the sound intensity of the audio signal; and / or,
[0215] The output pin comprises a left and right channel output pin of a headphone in the codec; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, comprising:
[0216] The second processor controls the left and right channel output pin of the headphone in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when being output by the left and right channel output pin of the headphone in the codec in the second level state, to reduce the sound intensity of the audio signal.
[0217] It should be understood that the codec in the embodiments of the present application can refer to the codec shown in FIG. 5. The mute pin can refer to the mute pin A or the mute pin B shown in FIG. 7, the left and right channel output pin of the speaker can refer to the left and right channel output pin of the speaker shown in FIG. 7, and the left and right channel output pin of the headphone can refer to the left and right channel output pin of the headphone shown in FIG. 7.
[0218] The implementation manners of the embodiments of the present application have been described in the above embodiments, which will not be repeated here.
[0219] In the case that the first processor cannot control the components on the noise playing path due to the software crash or hardware failure of the first processor leading to the blue screen phenomenon of the electronic device, the second processor which can work throughout the life of the electronic device is used to acquire the blue screen message, and then one or more of the mute pin, the left and right channel output pins of the speaker and the left and right channel output pins of the earphone in the codec (the codec refers to the components on the noise playing path) are switched from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is abnormally output after being processed by the components in the second level state, and the sound intensity of the audio signal is reduced. Compared with related solutions, the embodiments of the present application can control the state of one or more components of the mute pin, the left and right channel output pins of the speaker and the left and right channel output pins of the earphone in the codec on the noise playing path through the second processor, reduce the probability of noise emission of the electronic device, and improve the user experience.
[0220] In some embodiments, the audio module is a power amplifier;
[0221] The mute pin is a mute pin in the power amplifier; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0222] The second processor controls the mute pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when being output through the left and right channel output pins of the speaker in the power amplifier in the second level state, so as to reduce the sound intensity of the audio signal; and / or,
[0223] The power pin is a power pin in the power amplifier; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0224] The second processor controls the power pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the power amplifier is not powered, so that the audio signal from the first processor is blocked when being output through the power amplifier in the second level state, so as to reduce the sound intensity of the audio signal; and / or,
[0225] The output pin is an output pin in the power amplifier; and the second processor controls at least one component in the audio module to switch from the first level state to the second level state based on the blue screen message, including:
[0226] The second processor controls the output pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when passing through the output pin of the power amplifier in the second level state, to reduce the sound intensity of the audio signal.
[0227] It should be understood that the power amplifier in the embodiments of the present application can refer to the power amplifier shown in FIG. 5. The mute pin can refer to the mute pin C shown in FIG. 8, the output pin can refer to the output pin shown in FIG. 8, and the power supply pin can refer to the power supply pin shown in FIG. 8.
[0228] The implementation of the embodiments of the present application has been described in the above embodiments, and will not be repeated here.
[0229] In the embodiments of the present application, when the first processor cannot control the components on the noise playing path due to software crash or hardware failure of the first processor, the second processor that can work throughout the life of the electronic device is used to obtain the blue screen message, and then based on the blue screen message, one or more of the mute pin, the output pin and the power supply pin in the power amplifier (which refers to the components on the noise playing path) are controlled to switch from the first level state to the second level state, so that the audio signal from the first processor is abnormally output after being processed by the above components in the second level state, to reduce the sound intensity of the audio signal. Compared with related solutions, the embodiments of the present application can control the state of one or more components of the mute pin, the output pin and the power supply pin in the power amplifier on the noise playing path through the second processor, reduce the probability of the electronic device emitting noise, and improve the user experience.
[0230] In some embodiments, the second processor includes a general input and output interface; and the second processor is connected with at least one component, including:
[0231] The second processor is connected with at least one component through the general input and output interface.
[0232] It should be understood that the general input and output interface can refer to the general input and output interface 601 shown in FIG. 6. In some embodiments, the second processor can also be connected with at least one component through other interfaces, which are not limited in the embodiments of the present application.
[0233] In some embodiments, the electronic device includes a power management channel; and the second processor receives the blue screen message sent by the first processor, including:
[0234] The second processor receives the blue screen message sent by the first processor through the power management channel.
[0235] It should be understood that the power management channel refers to the PMC mentioned in the above embodiments. In some embodiments, the second processor may also receive blue screen messages sent by the first processor through other channels or interfaces, which is not limited in this application embodiment.
[0236] It should be noted that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0237] This application provides an electronic device, which includes a first processor, a second processor, and an audio module. The audio module is connected to the first processor and is used to process audio signals from the first processor. The audio module includes at least one component, and the second processor is connected to at least one component.
[0238] The second processor is used to acquire a blue screen message, which indicates that the electronic device displays a blue screen interface. Based on the blue screen message, it controls at least one component in the audio module to switch from a first level state to a second level state, so that the audio signal from the first processor is abnormally output after being processed by the component in the second level state, thereby reducing the sound intensity of the audio signal. In the first level state, the audio signal from the first processor is normally output after being processed by the component.
[0239] In some embodiments, at least one component includes at least one of a mute pin, a power pin, and an output pin.
[0240] In some embodiments, at least one component includes at least one of a mute pin, a power pin, and an output pin.
[0241] In some embodiments, the audio module includes a codec;
[0242] The mute pin includes a mute pin in the codec; and the second processor is further configured to, based on a blue screen message, control the mute pin in the codec to switch from a first level state to a second level state, so that in the second level state the audio signal from the first processor is muted after being processed by the mute pin in the codec, thereby reducing the sound intensity of the audio signal; and / or,
[0243] The output pins include the left and right channel output pins of the speaker in the codec; and the second processor is further configured to, based on a blue screen message, control the left and right channel output pins of the speaker in the codec to switch from a first level state to a second level state, so that in the second level state, the audio signal from the first processor is blocked when it is output through the left and right channel output pins of the speaker in the codec, thereby reducing the sound intensity of the audio signal; and / or,
[0244] The output pins include the left and right channel output pins of the headphones in the codec; and the second processor is also configured to control the left and right channel output pins of the headphones in the codec to switch from a first level state to a second level state based on a blue screen message, so that when the audio signal from the first processor is output through the left and right channel output pins of the headphones in the codec in the second level state, the audio signal is blocked to reduce the sound intensity of the audio signal.
[0245] In some embodiments, the audio module is a power amplifier;
[0246] The mute pin is a mute pin in the power amplifier; and the second processor is further configured to, based on a blue screen message, control the mute pin in the power amplifier to switch from a first level state to a second level state, so that in the second level state, the audio signal from the first processor is blocked when it is output through the left and right channel output pins of the speaker in the power amplifier, thereby reducing the sound intensity of the audio signal; and / or,
[0247] The power supply pin is a power supply pin in the power amplifier; and the second processor is further configured to, based on a blue screen message, control the power supply pin in the power amplifier to switch from a first level state to a second level state, so that the power amplifier is not powered on, so that in the second level state the audio signal from the first processor is blocked when it passes through the power amplifier output, thereby reducing the sound intensity of the audio signal; and / or,
[0248] The output pin is the output pin in the power amplifier; and the second processor is also used to control the output pin in the power amplifier to switch from a first level state to a second level state based on the blue screen message, so that the audio signal from the first processor is blocked when it is output through the output pin of the power amplifier in the second level state, so as to reduce the sound intensity of the audio signal.
[0249] In some embodiments, the second processor is connected to at least one component via a general purpose input / output interface.
[0250] In some embodiments, the second processor receives a blue screen message sent by the first processor via a power management channel.
[0251] In some embodiments, the first processor is a system-on-a-chip and the second processor is an embedded controller.
[0252] This application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.
[0253] This application provides a readable storage medium containing instructions that, when executed by an electronic device, cause the electronic device to perform the technical solution described in the above embodiments. The implementation principle and technical effects are similar and will not be repeated here.
[0254] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0255] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0256] It should be understood that the term "embodiment" used throughout the specification means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, various embodiments throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0257] Those skilled in the art will understand that the various numerical designations such as "first," "second," etc., involved in this application are merely for the convenience of description and are not intended to limit the scope of the embodiments of this application, nor do they indicate the order of sequence.
[0258] In this application, the use of singular pronouns to denote "one or more" rather than "one and only one," unless otherwise specified. In this application, unless otherwise specified, "at least one" is intended to mean "one or more," and "more than" is intended to mean "two or more."
[0259] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three cases: A exists alone, A and B exist simultaneously, and B exists alone. Here, A can be singular or plural, and B can be singular or plural.
[0260] In this document, the term "at least one of..." means all or any combination of the listed items. For example, "at least one of A, B and C" can mean: A exists alone, B exists alone, C exists alone, A and B exist simultaneously, B and C exist simultaneously, and A, B and C exist simultaneously. A can be singular or plural, B can be singular or plural, and C can be singular or plural.
[0261] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0262] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to related solutions, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0263] The same or similar parts between the various embodiments in this application can be referred to mutually. In the various embodiments of this application, and in the various implementation methods / methods / implementations within each embodiment, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments and between the various implementation methods / methods / implementations within each embodiment are consistent and can be mutually referenced. The technical features in different embodiments and the various implementation methods / methods / implementations within each embodiment can be combined according to their inherent logical relationships to form new embodiments, implementation methods, methods, or implementation approaches. The above-described embodiments of this application do not constitute a limitation on the scope of protection of this application.
[0264] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims. In conclusion, the above description is merely a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A control method of an electronic device, characterized by, The application is applied to an electronic device, the electronic device comprising a first processor, a second processor and an audio module, the audio module being connected with the first processor, the audio module being used for processing an audio signal from the first processor, the audio module comprising at least one component, the second processor being connected with at least one component; the method comprising: The second processor acquires a blue screen message, the blue screen message being used for indicating that the electronic device displays a blue screen interface; The second processor controls at least one component in the audio module to switch from a first level state to a second level state based on the blue screen message, so that the audio signal from the first processor is abnormally output after being processed by the component in the second level state, thereby reducing the sound intensity of the audio signal, wherein the audio signal from the first processor is normally output after being processed by the component in the first level state.
2. The method of claim 1, wherein, Before the second processor acquires the blue screen message, the method further comprises: In response to a blue screen event, the first processor acquires the blue screen message; and the second processor acquires the blue screen message, comprising: The second processor receives the blue screen message sent by the first processor.
3. The method of claim 2, wherein, The first processor acquires the blue screen message in response to a blue screen event, comprising: The first processor listens to a blue screen event through a registered callback function; In response to the blue screen event, the first processor acquires the blue screen message through the callback function.
4. The method according to claim 2 or 3, characterized in that, The electronic device comprises a driver layer, the driver layer comprising an audio driver module, a graphics card driver module and a screen menu type adjustment mode driver module, the audio driver module, the graphics card driver module and the screen menu type adjustment mode driver module being in communication with the first processor; And before the first processor acquires the blue screen message in response to a blue screen event, the method further comprises: Registering a callback function in the audio driver module, the graphics card driver module or the screen menu type adjustment mode driver module.
5. The method according to any one of claims 1 to 4, characterized in that, At least one component comprises at least one of a mute pin, a power supply pin and an output pin.
6. The method of claim 5, wherein, The audio module comprises a codec; The mute pin comprises a mute pin in the codec; and the second processor controls at least one component in the audio module to switch from a first level state to a second level state based on the blue screen message, comprising: The second processor controls a mute pin in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is muted after being processed by the mute pin in the codec in the second level state, thereby reducing the sound intensity of the audio signal; and / or, The output pin comprises left and right channel output pins of a speaker in the codec; and the second processor controls at least one component in the audio module to switch from a first level state to a second level state based on the blue screen message, comprising: The second processor controls, based on the blue screen message, the left and right channel output pins of the speaker in the codec to switch from the first level state to the second level state, so that the audio signal from the first processor is blocked when output through the left and right channel output pins of the speaker in the codec in the second level state, to reduce the sound intensity of the audio signal; and / or, The output pin includes the left and right channel output pins of the earphone in the codec; and the second processor controls, based on the blue screen message, at least one of the components in the audio module to switch from the first level state to the second level state, including: The second processor controls, based on the blue screen message, the left and right channel output pins of the earphone in the codec to switch from the first level state to the second level state, so that the audio signal from the first processor is blocked when output through the left and right channel output pins of the earphone in the codec in the second level state, to reduce the sound intensity of the audio signal.
7. The method according to claim 5 or 6, characterized in that, The audio module is a power amplifier; The mute pin is a mute pin in the power amplifier; and the second processor controls, based on the blue screen message, at least one of the components in the audio module to switch from the first level state to the second level state, including: The second processor controls, based on the blue screen message, the mute pin in the power amplifier to switch from the first level state to the second level state, so that the audio signal from the first processor is blocked when output through the left and right channel output pins of the speaker in the power amplifier in the second level state, to reduce the sound intensity of the audio signal; and / or, The power supply pin is a power supply pin in the power amplifier; and the second processor controls, based on the blue screen message, at least one of the components in the audio module to switch from the first level state to the second level state, including: The second processor controls, based on the blue screen message, the power supply pin in the power amplifier to switch from the first level state to the second level state, so that the power amplifier is not powered, so that the audio signal from the first processor is blocked when output through the power amplifier in the second level state, to reduce the sound intensity of the audio signal; and / or, The output pin is an output pin in the power amplifier; and the second processor controls, based on the blue screen message, at least one of the components in the audio module to switch from the first level state to the second level state, including: The second processor controls, based on the blue screen message, the output pin in the power amplifier to switch from the first level state to the second level state, so that the audio signal from the first processor is blocked when output through the output pin of the power amplifier in the second level state, to reduce the sound intensity of the audio signal.
8. The method according to any one of claims 1 to 7, characterized in that, The second processor comprises a general input-output interface; The second processor is connected with at least one component, comprising: The second processor is connected with at least one component through the general input-output interface.
9. The method according to any one of claims 2 to 8, characterized in that, The electronic device comprises a power management channel; The second processor receives the blue screen message sent by the first processor, comprising: The second processor receives the blue screen message sent by the first processor through the power management channel.
10. The method according to any one of claims 1 to 9, characterized in that, The first processor is a system on chip, and the second processor is an embedded controller.
11. An electronic device, comprising: The electronic device comprises a first processor, a second processor and an audio module, the audio module is connected with the first processor, the audio module is used for processing an audio signal from the first processor, the audio module comprises at least one component, and the second processor is connected with at least one component; The second processor is used for obtaining a blue screen message, the blue screen message is used for indicating that the electronic device displays a blue screen interface; Based on the blue screen message, at least one component in the audio module is controlled to switch from a first level state to a second level state, so that the audio signal from the first processor is abnormally output after being processed by the component in the second level state, so as to reduce the sound intensity of the audio signal, wherein the audio signal from the first processor is normally output after being processed by the component in the first level state.
12. The electronic device of claim 11, wherein, At least one component comprises at least one of a mute pin, a power pin and an output pin.
13. The electronic device of claim 12, wherein, The audio module comprises a codec; The mute pin comprises a mute pin in the codec; and the second processor is further used for controlling the mute pin in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is muted after being processed by the mute pin in the codec in the second level state, so as to reduce the sound intensity of the audio signal; and / or The output pin comprises left and right channel output pins of a speaker in the codec; and the second processor is further used for controlling the left and right channel output pins of the speaker in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when being output through the left and right channel output pins of the speaker in the codec in the second level state, so as to reduce the sound intensity of the audio signal; and / or The output pin comprises left and right channel output pins of a headset in the codec; and the second processor is further configured to control the left and right channel output pins of the headset in the codec to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when passing through the left and right channel output pins of the headset in the codec in the second level state, thereby reducing the sound intensity of the audio signal.
14. The electronic device of claim 12 or 13, wherein, The audio module is a power amplifier. The mute pin is a mute pin in the power amplifier; and the second processor is further configured to control the mute pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when passing through the left and right channel output pins of the speaker in the power amplifier in the second level state, thereby reducing the sound intensity of the audio signal; and / or, The power pin is a power pin in the power amplifier; and the second processor is further configured to control the power pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the power amplifier is not powered, and the audio signal from the first processor is blocked when passing through the power amplifier in the second level state, thereby reducing the sound intensity of the audio signal; and / or, The output pin is an output pin in the power amplifier; and the second processor is further configured to control the output pin in the power amplifier to switch from the first level state to the second level state based on the blue screen message, so that the audio signal from the first processor is blocked when passing through the output pin of the power amplifier in the second level state, thereby reducing the sound intensity of the audio signal.
15. A computer readable storage medium, characterized in that, The computer program product comprises computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method of any one of claims 1 to 10.
16. A chip, characterized by The chip comprises: a memory for storing instructions; a processor for calling and running the instructions from the memory, so that an electronic device installed with the chip performs the method of any one of claims 1 to 10. The chip comprises: a memory for storing instructions; a processor for calling and running the instructions from the memory, so that an electronic device installed with the chip performs the method of any one of claims 1 to 10.
Citation Information
Patent Citations
Computer crash monitoring and resetting device
CN103049347A
Audio processing method and mobile terminal
CN110087170A
Noise reduction method and device of electronic equipment, equipment and storage medium
CN116208888A
Sound processing device and method and electronic equipment
CN116456441A
Abnormal sound detection method, electronic equipment and storage medium
CN116989884A