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 PDF

Info

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
Application number
CN201811179250.0A
Other languages
Chinese (zh)
Other versions
CN109558072A (en
Inventor
符运河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Buildwin International Zhuhai Ltd
Original Assignee
建荣半导体(深圳)有限公司
建荣集成电路科技(珠海)有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 建荣半导体(深圳)有限公司, 建荣集成电路科技(珠海)有限公司 filed Critical 建荣半导体(深圳)有限公司
Priority to CN201811179250.0A priority Critical patent/CN109558072B/en
Publication of CN109558072A publication Critical patent/CN109558072A/en
Application granted granted Critical
Publication of CN109558072B publication Critical patent/CN109558072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management

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

Storage space expansion method and system of audio playing chip, audio playing chip and storage device
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.
CN201811179250.0A 2018-10-10 2018-10-10 Storage space expansion method and system of audio playing chip, audio playing chip and storage device Active CN109558072B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0658863A3 (en) * 1990-07-11 1995-06-28 Hitachi, Ltd. Memory card for use with a 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
CN102100076B (en) * 2008-07-24 2013-06-12 松下电器产业株式会社 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

Patent Citations (13)

* Cited by examiner, † Cited by third party
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
TWI515561B (en) Data tree storage methods, systems and computer program products using page structure of flash memory
US11176100B2 (en) Systems and methods for fail-safe operations of storage devices
US20140223089A1 (en) Method and device for storing data in a flash memory using address mapping for supporting various block sizes
CN109902034B (en) Snapshot creating method and device, electronic equipment and machine-readable storage medium
CN101983376B (en) Access device, information recording device, information recording system, file management method, and program
US20070156778A1 (en) File indexer
US10198352B2 (en) Efficient pointer swizzling for persistent objects
CN105260139B (en) A kind of disk management method and system
KR100425678B1 (en) Memory card to adapt digital player and file write/read method thereof
US20120191962A1 (en) System and method for simulating bios rom of computing device into virtual disk
CN109558072B (en) Storage space expansion method and system of audio playing chip, audio playing chip and storage device
CN104657471B (en) Method and system for establishing pre-allocated file of FAT file system
US9535796B2 (en) Method, apparatus and computer for data operation
CN111008233A (en) Method, device and equipment for accessing KV database
CN105573862B (en) Method and equipment for recovering file system
CN114816247A (en) Logic data acquisition method and device
CN111435331B (en) Data writing method and device for storage volume, electronic equipment and machine-readable storage medium
CN112015672A (en) Data processing method, device, equipment and storage medium in storage system
CN106991021B (en) Method and system for constructing new data file from existing data file
CN100405330C (en) Method and device for getting residual space for FAT file system
US9880857B2 (en) System file management on a storage device
WO2015102670A1 (en) Systems and methods for fail-safe operations of storage devices
CN111435285B (en) Data writing method and device for storage volume, electronic equipment and machine-readable storage medium
KR100818993B1 (en) Apparatus and method for file management using assignment of virtual blocks

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.