IP Library Granted Patent US 10,171,868
Granted Patent B2
US 10,171,868 · App. 15/869,433 · Granted Jan 1, 2019

Method for processing audio data, terminal and television

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,171,868
App. No.
15/869,433
Granted
Jan 1, 2019
Kind
B2
Abstract

A method for processing audio data includes: setting a first queue for managing at least one configured information control node of audio data to be played and a second queue for managing at least one configured information control node of played audio data, wherein each of the at least one configured information control node contains attribute information for the audio data to be played; unchaining a unit of the at least one configured information control node from the first queue; reading audio data to be played corresponding to the unit of the at least one configured information control node according to the attribute information for the audio data to be played in the unit of the at least one configured information control node; and chaining the unit of the at least one configured information control node to the second queue.

Claims (101)

1. A method for processing audio data, comprising:

setting a first queue for managing at least one configured information control node of audio data to be played, wherein each of the at least one configured information control node contains attribute information for the audio data to be played;

unchaining a unit of the at least one configured information control node from the first queue;

reading audio data to be played corresponding to the unit of the at least one configured information control node according to the attribute information for the audio data to be played in the unit of the at least one configured information control node; and

chaining the unit of the at least one configured information control node to a second queue which is used for managing at least one configured information control node of played audio data.

2. The method of claim 1 , wherein, the audio data to be played corresponding to the unit of the at least one configured information control node is audio data from a first channel;

after reading audio data to be played corresponding to the unit of the at least one configured information control node according to the attribute information for the audio data to be played in the unit of the at least one configured information control node, the method further comprises:

detecting whether a switching is performed from the first channel to a second channel; and

in response to the switching from the first channel to the second channel, unchaining and releasing at least one remaining configured information control node of the at least one configured information control node in the first queue.

3. The method of claim 1 , wherein, before unchaining the unit of the at least one configured information control node from the first queue, the method further comprises:

setting a third queue which is used for managing at least one information control node to be configured, and includes the at least one information control node to be configured;

capturing audio data to be played using a Write Direct Memory Access (WDMA), wherein the WDMA is corresponding to a first buffer including a first read pointer and a first write pointer;

detecting whether a difference between the first write pointer and the first read pointer in the first buffer is greater than or equal to a first preset threshold;

triggering a threshold interrupt to generate a trigger instruction in response to that the difference between the first write pointer and the first read pointer in the first buffer is greater than or equal to the first preset threshold;

unchaining a unit of the at least one information control node to be configured from the third queue upon receiving the trigger instruction, and configuring the unit of the at least one information control node to be configured; and

chaining the configured information control node to the first queue.

4. The method of claim 3 , wherein, said unchaining a unit of the at least one information control node to be configured from the third queue upon receiving the trigger instruction and configuring the unit of the least one information control node to be configured, comprise:

unchaining a unit of the at least one information control node to be configured from the third queue according to the trigger instruction; and

configuring a start address and a length of the audio data to be played into the unit of the at least one information control node to be configured according to the audio data to be played between the first read pointer and the first write pointer in the first buffer.

5. The method of claim 4 , wherein, before reading audio data to be played corresponding to the unit of the at least one configured information control node according to the attribute information for the audio data to be played in the unit of the at least one configured information control node, the method further comprises:

based on the unit of the at least one configured information control node, configuring a configuration item of a plurality of configuration items included in a second buffer which is corresponding to a RDMA, wherein,

the second buffer further includes a second write pointer and a second read pointer and a configuration item has configuration information including a starting address parameter and a length parameter,

said based on the unit of the at least one configured information control node, configuring a configuration item of a plurality of configuration items included in a second buffer which is corresponding to a RDMA, comprises:

determining a target configuration item of the plurality of configuration items pointed by the second write pointer in the second buffer;

setting a starting address parameter of the target configuration item as a start address of the audio data to be played; and

setting a length parameter of the target configuration item as a data length of the audio data to be played.

6. The method of claim 5 , wherein, said reading audio data to be played corresponding to the unit of the at least one configured information control node according to the attribute information for the audio data to be played in the unit of the plurality of configured information control node, comprises:

updating the second writer pointer in the second buffer;

calculating a difference between the second write pointer and the second read pointer in the second buffer; and

in response to that the difference between the second write pointer and the second read pointer in the second buffer is greater than or equal to a second preset threshold, reading audio data to be played corresponding to a configuration item of the plurality of configuration items pointed by the second read pointer in the second buffer.

7. The method of claim 6 , wherein, the second buffer is a ring buffer, said updating the second writer pointer in the second buffer comprises:

determining whether the target configuration item is a last configuration item of the plurality configuration items of the ring buffer;

in response to that the target configuration item is a last configuration item of the plurality configuration items of the ring buffer, configuring the second write pointer in the ring buffer to be at a position of a first configuration item of the plurality of configuration items corresponding to a start address of the ring buffer; and

in response to that the target configuration item is not a last configuration item of the plurality configuration items of the ring buffer, configuring the second write pointer in the ring buffer to be at a position of a configuration item of the plurality of configuration items next to the target configuration item in the ring buffer.

8. The method of claim 5 , wherein, the method further comprises:

determining a position of the second read pointer in the second buffer;

calculating a difference between a first marker pointer and a second marker pointer in the second buffer, wherein, the first marker pointer points to a previous position of the position of the second read pointer in the second buffer and the second marker pointer points to a position of the first marker pointer at the time of a last release;

in response to that the difference between the first marker pointer and the second marker pointer in the second buffer is greater than or equal to a third preset threshold, unchaining and releasing at least one unit of the at least one configuration control node in the second queue corresponding to at least one configuration item of the plurality of configuration items between the first marker pointer and the second marker pointer in the second buffer; and

chaining the at least one unit of the at least one configuration node in the second buffer to the third queue.

9. A terminal, comprising:

a memory configured to store instructions; and

a processor coupled to the memory, wherein,

the instructions, when executed by the processor, cause the terminal to:

setting a first queue for managing at least one configured information control node of audio data to be played, wherein each of the at least one configured information control node contains attribute information for the audio data to be played;

unchaining a unit of the at least one configured information control node from the first queue;

reading audio data to be played corresponding to the unit of the at least one configured information control node according to the attribute information for the audio data to be played in the unit of the at least one configured information control node; and

chaining the unit of the at least one configured information control node to a second queue which is used for managing at least one configured information control node of played audio data.

10. The terminal of claim 9 , further comprises a first controller, wherein,

the instructions, when executed by the processor, cause the terminal to:

reading, by the first controller, audio data to be played corresponding to the unit of the at least one configured information control node according to the attribute information for the audio data to be played in the unit of the at least one configured information control node.

11. The terminal of claim 9 , wherein, the audio data to be played corresponding to the unit of the at least one configured information control node is audio data from a first channel,

the terminal further comprises detector,

the instructions, when executed by the processor, cause the terminal to:

detecting, by the detector, whether a switching is performed from the first channel to a second channel; and

in response to the switching from the first channel to the second channel, unchaining and releasing, by the processor, at least one remaining configured information control node of the at least one configured information control node in the first queue.

12. The terminal of claim 10 , wherein, further comprises a second controller, wherein,

the instructions, when executed by the processor, cause the terminal to:

setting, by the processor, a third queue which is used for managing at least one information control node to be configured, and includes the at least one information control code to be configured;

capturing, by the second controller, audio data to be played using a Write Direct Memory Access (WDMA), wherein the WDMA is corresponding to a first buffer including a first read pointer and a first write pointer;

detecting, by the processor, whether a difference between the first write pointer and the first read pointer in the first buffer is greater than or equal to a first preset threshold;

triggering, by the processor, a threshold interrupt to generate a trigger instruction in response to that the difference between the first write pointer and the first read pointer in the first buffer is greater than or equal to the first preset threshold;

unchaining, by the processor, a unit of the at least one information control node to be configured from the third queue upon receiving the trigger instruction,

configuring, by the processor, the unit of the at least one information control node to be configured; and

chaining, by the processor, the configured information control node to the first queue.

13. The terminal of claim 12 , wherein, the instructions, when executed by the processor, cause the terminal to:

configuring, by the processor, a start address and a length of the audio data to be played into the unit of the at least one information control node to be configured according to the audio data to be played between the first read pointer and the first write pointer in the first buffer.

14. The terminal of claim 13 , wherein, the instructions, when executed by the processor, cause the terminal to:

based on the unit of the at least one configured information control node, configuring, by the processor, a configuration item of a plurality of configuration items included in a second buffer which is corresponding to a RDMA, wherein, the second buffer further includes a second write pointer and a second read pointer and a configuration item has configuration information including a starting address parameter and a length parameter;

determining, by the processor, a target configuration item of the plurality of configuration items pointed by the second write pointer in the second buffer;

setting, by the processor, a starting address parameter of the target configuration item as a start address of the audio data to be played; and

setting, by the processor, a length parameter of the target configuration node as a data length of the audio data to be played.

15. The terminal of claim 14 , wherein, the instructions, when executed by the processor, cause the terminal to:

updating, by the processor, the second writer pointer in the second buffer;

calculating, a by the processor, difference between the second write pointer and the second read pointer in the second buffer; and

in response to that the difference between the second write pointer and the second read pointer in the second buffer is greater than or equal to a second preset threshold, reading, by the processor, audio data to be played corresponding to a configuration item of the plurality of configuration items pointed by the second read pointer in the second buffer.

16. The terminal of claim 15 , wherein, the second buffer is a ring buffer,

the instructions, when executed by the processor, cause the terminal to:

determining, by the processor, whether the target configuration item is a last configuration item of the plurality of configuration items of the ring buffer;

in response to that the target configuration item is a last configuration item of the plurality of configuration items of the ring buffer, configuring, by the processor, the second write pointer in the ring buffer to be at a position of a first configuration item of the plurality of configuration items corresponding to a start address of the ring buffer; and

in response to that the target configuration item is not a last configuration item of the plurality of configuration items of the ring buffer, configuring, by the processor, the second write pointer in the ring buffer to be at a position of a configuration item of the plurality of configuration items next to the target configuration item in the ring buffer.

17. The terminal of claim 14 , wherein, the instructions, when executed by the processor, cause the terminal to:

determining, by the processor, a position of the second read pointer in the second buffer;

calculating, by the processor, a difference between a first marker pointer and a second marker pointer in the second buffer, wherein, the first marker pointer points to previous position of the position of the second read pointer in the second buffer and the second marker pointer points to the position of the first marker pointer at the time of a last release;

in response to that the difference between the first marker pointer and the second marker pointer in the second buffer is greater than or equal to a third preset threshold, unchaining and releasing, by the processor, at least one unit of the at least one configured information control node in the second queue according to at least one configuration item of the plurality of configuration items between the first marker pointer and the second marker pointer in the second buffer; and

chaining, by the processor, the at least one unit of at least one configured information control node in the second queue to the third queue.

18. A television, comprising:

an input interface configured to receiving audio data from a plurality of television channels;

a channel switcher configured to switching the plurality of television channels;

an audio capturer configured to capture audio data of the plurality of television channels;

a buffer configured to buffer the audio data captured by the audio capturer; and

a control reader configured to control to read the audio data in the buffer,

an audio post-processor configured to perform a preset sound processing to the audio data read by the control reader; and

an audio player configured to play the audio data processed by the audio post-processor,

wherein, the control reader is configured to:

set a first queue for managing at least one configured information control node of audio data to be played, wherein each of the at least one configured information control node contains attribute information for the audio data to be played;

unchain a unit of the at least one configured information control node from the first queue;

read audio data to be played corresponding to the unit of the at least one configured information control node according to the attribute information for the audio data to be played in the unit of the at least one configured information control node; and

chain the unit of the at least one configured information control node to a second queue which is used for managing at least one configured information control node of played audio data.

19. The television of claim 18 , further comprising:

a file storage configured to store the audio data captured by the audio capturer to a file, wherein,

the audio player configured to play the audio data stored in the file.

Assignments (6)
CHANGE OF NAME Recorded Dec 3, 2021
From: MAXELL HOLDINGS, LTD.
To: MAXELL, LTD.
Reel/Frame 058666/0407 →
MERGER Recorded Nov 29, 2021
From: MAXELL, LTD.
To: MAXELL HOLDINGS, LTD.
Reel/Frame 058255/0579 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 25, 2021
From: HISENSE VISUAL TECHNOLOGY CO., LTD.
To: MAXELL, LTD.
Reel/Frame 056681/0441 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 27, 2021
From: HISENSE USA CORP.; HISENSE INTERNATIONAL CO., LTD.
To: HISENSE VISUAL TECHNOLOGY CO., LTD.
Reel/Frame 056371/0391 →
CHANGE OF NAME Recorded May 27, 2021
From: QINGDAO HISENSE ELECTRONICS CO., LTD.
To: HISENSE VISUAL TECHNOLOGY CO., LTD.
Reel/Frame 056408/0381 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 12, 2018
From: LU, ZHONGHUI; LI, SHURONG; WANG, QIANG
To: QINGDAO HISENSE ELECTRONICS CO.,LTD.; HISENSE INTERNATIONAL CO., LTD.; HISENSE USA CORP.
Reel/Frame 044607/0489 →