# US 2021/0286613 A1 · Method and Apparatus for Processing Audio Processing Chip, and Electronic Device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286613 A1
- Document ID: US20210286613A1
- Status: Published application
- Kind: A1
- Application number: 17/030,525
- Filed: 2020-09-24
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Lei Geng
- Web page: https://patentgrep.com/patent/US20210286613A1

## CPC

- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 8/654: using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
- G06F 11/1433: {during software upgrading}
- G06F 3/162: {Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method and apparatus for processing an audio processing chip, and an electronic device are provided. A specific implementation of the method includes: controlling the audio processing chip to perform firmware updating, the firmware updating including: updating second firmware stored in a second storage area of the audio processing chip to target firmware, or storing the target firmware to an empty second storage area in the audio processing chip; in response to an abnormality being not present in the firmware updating, determining the target firmware as firmware to be run in the audio processing chip; and in response to an abnormality being present in the firmware updating, determining the first firmware as the firmware to be run in the audio processing chip.

## Claims

### Claim 1

A method for processing an audio processing chip, applied to an electronic device including the audio processing chip, wherein a first storage area of the audio processing chip stores first firmware, and the method comprises:
controlling the audio processing chip to perform firmware updating, the firmware updating comprising: updating second firmware stored in a second storage area of the audio processing chip to target firmware, or storing the target firmware to an empty second storage area in the audio processing chip;
in response to an abnormality being not present in the firmware updating, determining the target firmware as firmware to be run in the audio processing chip; and
in response to an abnormality being present in the firmware updating, determining the first firmware as the firmware to be run in the audio processing chip.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the controlling the audio processing chip to perform the firmware updating comprises:
performing erase processing on the second storage area;
wherein after controlling the audio processing chip to perform the firmware updating, the method further comprises:
in response to the erase processing being successful, determining an abnormality being not present in the firmware updating of the audio processing chip; and
in response to the erase processing being not successful, determining an abnormality being present in the firmware updating of the audio processing chip.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the determining an abnormality being not present in the firmware updating of the audio processing chip in response to the erase processing being successful, comprises:
in response to the erase processing being successful, writing the target firmware into the second storage area;
in response to the writing for the target firmware being successful, validating the target firmware written into the second storage area; and
in response to the target firmware passing the validation, determining an abnormality being not present in the firmware updating of the audio processing chip,
wherein after the controlling the audio processing chip to perform the firmware updating, the method further comprises:
in response to the writing for the target firmware failing or the target firmware not passing the validation, determining an abnormality being present in the firmware updating of the audio processing chip.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the audio processing chip comprises a flash storage device, the flash storage device being set with the first storage area and the second storage area.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the controlling the audio processing chip to perform the firmware updating comprises:
determining whether a version number of the target firmware is higher than version numbers of all firmware stored in the audio processing chip; and
in response to the version number of the target firmware being higher than the version numbers of all the firmware stored in the audio processing chip, controlling the audio processing chip to perform the firmware updating.

### Claim 6

An electronic device, comprising:
at least one processor; and
a storage device, communicated with the at least one processor,
wherein the storage device stores an instruction executable by the at least one processor, and the instruction is executed by the at least one processor, to enable the at least one processor to perform operations, the operations comprising:
controlling the audio processing chip to perform firmware updating, the firmware updating comprising: updating second firmware stored in a second storage area of the audio processing chip to target firmware, or storing the target firmware to an empty second storage area in the audio processing chip;
in response to an abnormality being not present in the firmware updating, determining the target firmware as firmware to be run in the audio processing chip; and
in response to an abnormality being present in the firmware updating, determining the first firmware as the firmware to be run in the audio processing chip.

### Claim 7 (depends on 6)

The electronic device according to claim 6, wherein the controlling the audio processing chip to perform the firmware updating comprises:
performing erase processing on the second storage area;
wherein after controlling the audio processing chip to perform the firmware updating, the operations further comprise:
in response to the erase processing being successful, determining an abnormality being not present in the firmware updating of the audio processing chip; and
in response to the erase processing being not successful, determining an abnormality being present in the firmware updating of the audio processing chip.

### Claim 8 (depends on 7)

The electronic device according to claim 7, wherein the determining an abnormality being not present in the firmware updating of the audio processing chip in response to the erase processing being successful, comprises:
in response to the erase processing being successful, writing the target firmware into the second storage area;
in response to the writing for the target firmware being successful, validating the target firmware written into the second storage area; and
in response to the target firmware passing the validation, determining an abnormality being not present in the firmware updating of the audio processing chip,
wherein after the controlling the audio processing chip to perform the firmware updating, the operations further comprise:
in response to the writing for the target firmware failing or the target firmware not passing the validation, determining an abnormality being present in the firmware updating of the audio processing chip.

### Claim 9 (depends on 6)

The electronic device according to claim 6, wherein the audio processing chip comprises a flash storage device, the flash storage device being set with the first storage area and the second storage area.

### Claim 10 (depends on 6)

The electronic device according to claim 6, wherein the controlling the audio processing chip to perform the firmware updating comprises:
determining whether a version number of the target firmware is higher than version numbers of all firmware stored in the audio processing chip; and
in response to the version number of the target firmware being higher than the version numbers of all the firmware stored in the audio processing chip, controlling the audio processing chip to perform the firmware updating.

### Claim 11

A non-transitory computer readable storage medium, storing a computer instruction, wherein the computer instruction is used to cause a computer to perform operations, the operations comprising:
controlling the audio processing chip to perform firmware updating, the firmware updating comprising: updating second firmware stored in a second storage area of the audio processing chip to target firmware, or storing the target firmware to an empty second storage area in the audio processing chip;
in response to an abnormality being not present in the firmware updating, determining the target firmware as firmware to be run in the audio processing chip; and
in response to an abnormality being present in the firmware updating, determining the first firmware as the firmware to be run in the audio processing chip.

### Claim 12 (depends on 11)

The storage medium according to claim 11, wherein the controlling the audio processing chip to perform the firmware updating comprises:
performing erase processing on the second storage area;
wherein after controlling the audio processing chip to perform the firmware updating, the operations further comprise:
in response to the erase processing being successful, determining an abnormality being not present in the firmware updating of the audio processing chip; and
in response to the erase processing being not successful, determining an abnormality being present in the firmware updating of the audio processing chip.

### Claim 13 (depends on 12)

The storage medium according to claim 12, wherein the determining an abnormality being not present in the firmware updating of the audio processing chip in response to the erase processing being successful, comprises:
in response to the erase processing being successful, writing the target firmware into the second storage area;
in response to the writing for the target firmware being successful, validating the target firmware written into the second storage area; and
in response to the target firmware passing the validation, determining an abnormality being not present in the firmware updating of the audio processing chip,
wherein after the controlling the audio processing chip to perform the firmware updating, the operations further comprise:
in response to the writing for the target firmware failing or the target firmware not passing the validation, determining an abnormality being present in the firmware updating of the audio processing chip.

### Claim 14 (depends on 11)

The storage medium according to claim 11, wherein the audio processing chip comprises a flash storage device, the flash storage device being set with the first storage area and the second storage area.

### Claim 15 (depends on 11)

The storage medium according to claim 11, wherein the controlling the audio processing chip to perform the firmware updating comprises:
determining whether a version number of the target firmware is higher than version numbers of all firmware stored in the audio processing chip; and
in response to the version number of the target firmware being higher than the version numbers of all the firmware stored in the audio processing chip, controlling the audio processing chip to perform the firmware updating.
