CN109558072B - Storage space expansion method and system of audio playing chip, audio playing chip and storage device - Google Patents
Storage space expansion method and system of audio playing chip, audio playing chip and storage device Download PDFInfo
- Publication number
- CN109558072B CN109558072B CN201811179250.0A CN201811179250A CN109558072B CN 109558072 B CN109558072 B CN 109558072B CN 201811179250 A CN201811179250 A CN 201811179250A CN 109558072 B CN109558072 B CN 109558072B
- Authority
- CN
- China
- Prior art keywords
- storage space
- song
- file
- audio playing
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000013507 mapping Methods 0.000 claims abstract description 6
- 238000012163 sequencing technique Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0662—Virtualisation aspects
- G06F3/0665—Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention provides a method and a system for expanding the storage space of an audio playing chip, the audio playing chip and a storage device, wherein the method comprises the following steps: virtual memory step: mapping the residual storage space in the external storage to a virtual memory of the audio playing chip; a file writing step: and writing the song sorting file into the residual storage space in the external storage. By adopting the method, the problem that the storage space of the audio playing chip is limited can be solved.
Description
Technical Field
The invention belongs to the technical field of audio playing, and particularly relates to a method and a system for expanding a storage space of an audio playing chip, the audio playing chip and a storage device.
Background
The source of songs in an audio player generally has 2 ways, 1 is a storage space stored inside, and 1 is an external storage medium (e.g. SD card or U disk, hard disk, etc.). The songs are stored in an external memory, for example, in a device stored on an SD card or a usb disk, the internal storage space of an audio playing chip is small, and is limited when performing operations requiring a large amount of cache or information storage, for example, when performing some file sorting, if there are many songs on the SD card or the usb disk, the internal RAM required for sorting needs to be very large, especially when performing sorting playing according to file names, a certain space is required to store file names and sequence numbers, and when N songs are stored in a device and 1 song stores a name M bytes, a space of about N M bytes is required, and the storage space is very large relative to the audio playing chip (not calculated by an external memory) of an audio player, for thousands of songs.
Disclosure of Invention
The embodiment of the invention provides a method and a system for expanding the storage space of an audio playing chip, the audio playing chip and a storage device, and aims to solve the technical problem that the storage space of the audio playing chip in the audio player in the prior art is limited.
In an embodiment of the present invention, a method for expanding a storage space of an audio playing chip is provided, which includes:
virtual memory step: mapping the residual storage space in the external storage to a virtual memory of the audio playing chip;
a file writing step: and writing the song sorting file into the residual storage space in the external storage.
In the embodiment of the present invention, before the step of virtualizing the memory, the method further includes
An initialization step: initializing the external memory and obtaining the remaining memory space address of the external memory.
In this embodiment of the present invention, in the initializing step, an empty data area pointed by a cluster chain is used as a storage space of the virtual memory. .
In an embodiment of the present invention, the method further comprises:
song sorting step: and sorting the songs according to the song file names and generating a song sorting file.
In an embodiment of the invention, the method further comprises
And a song playing step: and reading the song sorting in the song sorting file from the external memory to sequentially play the songs.
In an embodiment of the present invention, a system for expanding a storage space of an audio playing chip is further provided, which includes:
the virtual memory unit is used for mapping the residual storage space in the external storage into the virtual memory of the audio playing chip;
and the file writing unit is used for writing the song sorting file into the residual storage space in the external storage.
In an embodiment of the invention, the system further comprises
And the initialization unit is used for initializing the external memory and acquiring and recording the residual memory space address of the external memory.
In the embodiment of the present invention, an empty data area pointed by a cluster chain is used as a storage space of the virtual memory. .
In an embodiment of the present invention, the system further includes:
and the song sorting unit is used for sorting the songs according to the song file names and generating a song sorting file.
In an embodiment of the present invention, the system further includes:
and the song playing unit is used for reading the song sequencing in the song sequencing file from the external memory to play the songs in sequence.
In an embodiment of the present invention, an audio playing chip is further provided, where the audio playing chip includes at least one processor, a memory, and an interface, and the at least one processor, the memory, and the interface are all connected through a bus;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory to cause the audio playback chip to perform the method for expanding a storage space of the audio playback chip according to any one of claims 1 to 5.
In an embodiment of the present invention, there is further provided a storage device, on which instructions are stored, and the instructions, when executed by a processor, implement the steps of performing the method for expanding the storage space of an audio playing chip according to any one of claims 1 to 5.
Compared with the prior art, the method and the system for expanding the storage space of the audio playing chip, the audio playing chip and the storage device are adopted, and the spare storage space in the external storage is mapped into the virtual memory of the audio player to be used for storing the song sequencing file, so that the storage space of the audio player is expanded, and the problem that the internal storage space of the audio player is limited is solved; furthermore, the empty data area pointed by the cluster chain in the external memory is used as a cache area for reading and writing, so that the hot plug safety of the external memory is ensured.
Drawings
Fig. 1 is a flowchart illustrating an implementation of a method for expanding a storage space of an audio playing chip according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the structure of the storage space of the external memory;
fig. 3 is a schematic structural diagram of a storage space expansion system of an audio playing chip according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an audio playing chip according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following detailed description of the implementation of the present invention is made with reference to specific embodiments:
example one
FIG. 1 shows a method for expanding storage space of an audio playback chip according to an embodiment of the present invention, which includes steps S1-S5, which are described below.
Step S1, initialization step: initializing the external memory and obtaining the remaining memory space address of the external memory.
It should be noted that, after the audio playing chip is connected to the external storage device, initialization is required when the device is started, and in the initialization process, the audio playing chip obtains the remaining storage space address of the external storage device.
Step S2, the virtual memory step: and mapping the residual storage space in the external storage to the virtual memory of the audio playing chip.
It should be noted that, for an external memory SD card or a usb disk, its file storage system is generally constituted by a file system, and the file system is generally constituted by a Master Boot Record (MBR), a boot sector, and a data area. The file system of each boot sector may be different, and may be FAT32, exFAT, or other formats such as NTFS, and for a mobile storage device, FAT32 and exFAT are mainly used. In the file system, the key is the cluster chain (FAT), which is the location of the data area of the file system, as shown in fig. 2, 0000 is the unused data area, and some values are the used data areas. For a file system, if directory areas in the MBR and the boot sector are lost, the file system of the whole device is disturbed, and in order to ensure that the file system is not affected, the embodiment of the present invention only uses a null data area pointed by a cluster chain as a storage space of the virtual memory.
Step S3, song sorting step: and sorting the songs according to the song file names and generating a song sorting file.
It should be noted that when the audio player plays songs, the songs need to be sorted first, and may be sorted by song names or by other methods, and after the sorting is completed, a corresponding song sorting file is generated, and the audio player plays songs according to the order of the song sorting file.
Step S4, file writing step: and writing the song sorting file into the residual storage space in the external storage.
It should be noted that after the song sorting file is generated, the song sorting file is written into the remaining storage space in the external memory corresponding to the virtual internal pair of the audio playing chip, so that the song sorting file does not need to be stored in the internal storage space of the audio playing chip.
Step S5, song playing step: and reading the song sorting in the song sorting file from the external memory to sequentially play the songs.
It should be noted that, when the audio playing chip plays songs, the song sorting in the song sorting file is read from the external memory, and the songs are played according to the order of the song sorting file.
Example two
Fig. 3 shows a storage space expansion system of an audio playing chip according to a second embodiment of the present invention, which includes:
an initialization unit 201, configured to initialize an external memory and obtain and record a remaining storage space address of the external memory;
a virtual memory unit 202, configured to map a remaining storage space in the external storage into a virtual memory of the audio playing chip;
the song sorting unit 203 is used for sorting songs according to song file names and generating song sorting files;
a file writing unit 204, configured to write the song sorting file into the remaining storage space in the external memory.
A song playing unit 205, configured to read the song sorting in the song sorting file from the external memory to sequentially play the songs.
It should be noted that, in the storage space expansion system of the audio playing chip, the contents of information interaction, execution process, and the like between the modules/units are based on the same concept as the storage space expansion system of the audio playing chip in the first embodiment, and the implementation process and the technical effects thereof are the same as those in the first embodiment, and specific contents may refer to related descriptions in the first embodiment, and are not described herein again.
EXAMPLE III
As shown in fig. 4, in a third embodiment of the present invention, an audio playing chip is provided, which includes at least one processor 310, a memory 320 and an interface 330, where the at least one processor 310, the memory 320 and the interface 330 are all connected by a bus;
the memory 320 stores computer-executable instructions;
the at least one processor 310 executes the computer-executable instructions stored in the memory 320, so that the audio playing chip executes the method for expanding the storage space of the audio playing chip according to the first embodiment.
Further, an embodiment of the present invention further provides a storage device, where the storage device stores instructions, and the instructions, when executed by a processor, implement the method for expanding a storage space of an audio playing chip according to the first embodiment.
In summary, by using the method and system for expanding the storage space of the audio playing chip, the audio playing chip and the storage device, the free storage space in the external storage is mapped to the virtual memory of the audio player for storing the song sequencing file, so that the storage space of the audio player is expanded, and the problem that the internal storage space of the audio player is limited is solved; furthermore, the empty data area pointed by the cluster chain in the external memory is used as a cache area for reading and writing, so that the hot plug safety of the external memory is ensured.
Notably, one of ordinary skill in the art will understand that: the steps or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, the program may be stored in a computer-readable storage medium, and when executed, the program performs the steps including the above method embodiments, and the storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (8)
1. A method for expanding the storage space of an audio playing chip is characterized by comprising the following steps:
virtual memory step: mapping the residual storage space in the external storage to a virtual memory of the audio playing chip; the method specifically comprises the following steps: the external memory comprises a file system, the file system comprises a main guide record, a guide sector and a data area, the cluster chain is the position of the data area of the file system, and a null data area pointed by the cluster chain is used as a storage space of the virtual memory of the audio playing chip for reading and writing;
a file writing step: writing the song sorting file into the remaining storage space in the external memory;
and when the audio playing chip plays songs, reading song sequencing in the song sequencing file from the residual storage space of the external memory, and playing the songs according to the sequence of the song sequencing file.
2. The method for expanding the storage space of the audio playing chip as claimed in claim 1, wherein before the step of storing the virtual memory, the method further comprises:
an initialization step: initializing the external memory and obtaining the remaining memory space address of the external memory.
3. The method for expanding the storage space of an audio playing chip as claimed in claim 1, wherein the method further comprises:
song sorting step: and sorting the songs according to the song file names and generating a song sorting file.
4. A storage space expansion system of an audio playing chip is characterized by comprising:
the virtual memory unit is used for mapping the residual storage space in the external storage into the virtual memory of the audio playing chip; the method specifically comprises the following steps: the external memory comprises a file system, the file system comprises a main guide record, a guide sector and a data area, the cluster chain is the position of the data area of the file system, and a null data area pointed by the cluster chain is used as a storage space of the virtual memory of the audio playing chip for reading and writing;
a file writing unit for writing the song sorting file into the remaining storage space in the external memory;
and the song playing unit is used for reading the song sequencing in the song sequencing file from the residual storage space of the external memory when the audio playing chip plays songs, and playing the songs according to the sequence of the song sequencing file.
5. The system for expanding the storage space of an audio playback chip of claim 4, wherein the system further comprises
And the initialization unit is used for initializing the external memory and acquiring and recording the residual memory space address of the external memory.
6. The system for expanding the storage space of an audio playback chip of claim 4, wherein the system further comprises:
and the song sorting unit is used for sorting the songs according to the song file names and generating a song sorting file.
7. An audio playing chip is characterized in that the audio playing chip comprises at least one processor, a memory and an interface, wherein the at least one processor, the memory and the interface are all connected through a bus;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the audio playback chip to perform the method for expanding a storage space of the audio playback chip according to any one of claims 1 to 3.
8. A storage device, wherein the storage device stores instructions, and the instructions when executed by a processor implement the steps of performing the method for expanding storage space of an audio playing chip according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811179250.0A CN109558072B (en) | 2018-10-10 | 2018-10-10 | Storage space expansion method and system of audio playing chip, audio playing chip and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811179250.0A CN109558072B (en) | 2018-10-10 | 2018-10-10 | Storage space expansion method and system of audio playing chip, audio playing chip and storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109558072A CN109558072A (en) | 2019-04-02 |
CN109558072B true CN109558072B (en) | 2022-03-25 |
Family
ID=65864712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811179250.0A Active CN109558072B (en) | 2018-10-10 | 2018-10-10 | Storage space expansion method and system of audio playing chip, audio playing chip and storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109558072B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1268706A (en) * | 1999-03-03 | 2000-10-04 | 索尼公司 | Non volatile momory and device for reproducing same |
KR20030009701A (en) * | 2001-07-23 | 2003-02-05 | 엘지전자 주식회사 | MP3 player using a wireless communication and replaying method therefore |
CN1832014A (en) * | 2005-03-08 | 2006-09-13 | 索尼株式会社 | Composite memory device, data processing method and data processing program |
CN101110085A (en) * | 2006-07-21 | 2008-01-23 | 索尼株式会社 | Reproducing apparatus, reproducing method, and reproducing program |
CN101334758A (en) * | 2008-07-03 | 2008-12-31 | 深圳市中兴集成电路设计有限责任公司 | Device and method for embedded system expanding memory space |
CN101404741A (en) * | 2008-11-06 | 2009-04-08 | 北京创毅视讯科技有限公司 | Audio playing apparatus and method, and digital television chip |
CN101876956A (en) * | 2009-12-15 | 2010-11-03 | 北京中星微电子有限公司 | File access method and device of SD (Secure Digital) card |
CN101908028A (en) * | 2009-06-02 | 2010-12-08 | 深圳市融创天下科技发展有限公司 | Method and system for realizing input/output (IO) expansion through standard secure digital (SD) memory interface |
CN102262646A (en) * | 2011-05-26 | 2011-11-30 | 深圳市九洲电器有限公司 | Music document classifying method of set-top box |
JP2012079347A (en) * | 2012-01-23 | 2012-04-19 | Hitachi Ltd | Memory module |
CN104183253A (en) * | 2013-05-24 | 2014-12-03 | 富泰华工业(深圳)有限公司 | Music play system, music play device and music play method |
CN107644056A (en) * | 2017-08-04 | 2018-01-30 | 武汉烽火众智数字技术有限责任公司 | A kind of file memory method, apparatus and system |
CN108132909A (en) * | 2016-12-01 | 2018-06-08 | 深圳市三诺数字科技有限公司 | A kind of processing method and processing device of DSP data storage |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE69113153T2 (en) * | 1990-07-11 | 1996-06-13 | Hitachi Ltd | Digital information system. |
US6938258B1 (en) * | 1998-05-26 | 2005-08-30 | Rockwell Collins | Message processor for a passenger entertainment system, method and article of manufacture |
US8732285B2 (en) * | 2006-01-18 | 2014-05-20 | Dell Products L.P. | Upgradeable persistent virtual storage |
US7886045B2 (en) * | 2007-12-26 | 2011-02-08 | International Business Machines Corporation | Media playlist construction for virtual environments |
AU2009275052B2 (en) * | 2008-07-24 | 2014-05-29 | Panasonic Corporation | Playback device capable of stereoscopic playback, playback method, and program |
CN106970816B (en) * | 2017-03-31 | 2021-01-26 | Oppo广东移动通信有限公司 | Software upgrading processing method and device and audio playing equipment |
-
2018
- 2018-10-10 CN CN201811179250.0A patent/CN109558072B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1268706A (en) * | 1999-03-03 | 2000-10-04 | 索尼公司 | Non volatile momory and device for reproducing same |
KR20030009701A (en) * | 2001-07-23 | 2003-02-05 | 엘지전자 주식회사 | MP3 player using a wireless communication and replaying method therefore |
CN1832014A (en) * | 2005-03-08 | 2006-09-13 | 索尼株式会社 | Composite memory device, data processing method and data processing program |
CN101110085A (en) * | 2006-07-21 | 2008-01-23 | 索尼株式会社 | Reproducing apparatus, reproducing method, and reproducing program |
CN101334758A (en) * | 2008-07-03 | 2008-12-31 | 深圳市中兴集成电路设计有限责任公司 | Device and method for embedded system expanding memory space |
CN101404741A (en) * | 2008-11-06 | 2009-04-08 | 北京创毅视讯科技有限公司 | Audio playing apparatus and method, and digital television chip |
CN101908028A (en) * | 2009-06-02 | 2010-12-08 | 深圳市融创天下科技发展有限公司 | Method and system for realizing input/output (IO) expansion through standard secure digital (SD) memory interface |
CN101876956A (en) * | 2009-12-15 | 2010-11-03 | 北京中星微电子有限公司 | File access method and device of SD (Secure Digital) card |
CN102262646A (en) * | 2011-05-26 | 2011-11-30 | 深圳市九洲电器有限公司 | Music document classifying method of set-top box |
JP2012079347A (en) * | 2012-01-23 | 2012-04-19 | Hitachi Ltd | Memory module |
CN104183253A (en) * | 2013-05-24 | 2014-12-03 | 富泰华工业(深圳)有限公司 | Music play system, music play device and music play method |
CN108132909A (en) * | 2016-12-01 | 2018-06-08 | 深圳市三诺数字科技有限公司 | A kind of processing method and processing device of DSP data storage |
CN107644056A (en) * | 2017-08-04 | 2018-01-30 | 武汉烽火众智数字技术有限责任公司 | A kind of file memory method, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN109558072A (en) | 2019-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8312554B2 (en) | Method of hiding file at data protecting mode for non-volatile memory module, memory controller and portable memory storage apparatus | |
US20140223089A1 (en) | Method and device for storing data in a flash memory using address mapping for supporting various block sizes | |
US10846271B2 (en) | Systems and methods for fail-safe operations of storage devices | |
CN101983376B (en) | Access device, information recording device, information recording system, file management method, and program | |
CN109902034B (en) | Snapshot creating method and device, electronic equipment and machine-readable storage medium | |
KR20140060308A (en) | Efficient access to storage devices with usage bitmaps | |
US10198352B2 (en) | Efficient pointer swizzling for persistent objects | |
CN106709014B (en) | File system conversion method and device | |
CN105260139B (en) | A kind of disk management method and system | |
KR100425678B1 (en) | Memory card to adapt digital player and file write/read method thereof | |
CN111008233B (en) | A KV database access method, device and equipment | |
KR20090042570A (en) | File management device and method and storage device | |
US9535796B2 (en) | Method, apparatus and computer for data operation | |
CN110187834A (en) | Data processing method, the device, electronic equipment of copy are deleted again | |
CN109558072B (en) | Storage space expansion method and system of audio playing chip, audio playing chip and storage device | |
US20070156778A1 (en) | File indexer | |
CN100440383C (en) | External storing performance testing method and apparatus | |
CN104657471B (en) | Method and system for establishing pre-allocated file of FAT file system | |
CN110187837B (en) | A file access method, device and file system | |
CN108958657B (en) | A data storage method, storage device and storage system | |
CN111435285B (en) | Data writing method and device for storage volume, electronic equipment and machine-readable storage medium | |
CN111435331B (en) | Data writing method and device for storage volume, electronic equipment and machine-readable storage medium | |
KR20220088274A (en) | Computing System including Per-core journal structure | |
CN106991021B (en) | Method and system for constructing new data file from existing data file | |
CN100447758C (en) | Snapshot management method of logic disk manager |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220506 Address after: Rooms 1306-1309, 13 / F, 19 science Avenue West, Hong Kong Science Park, Shatin, New Territories, China Patentee after: BUILDWIN INTERNATIONAL (ZHUHAI) LTD. Address before: 1302, yuemeite building, 1 Gaoxin South 7th Road, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000 Patentee before: Jianrong semiconductor (Shenzhen) Co.,Ltd. Patentee before: BUILDWIN INTERNATIONAL (ZHUHAI) Ltd. |