CN107506212A - A kind of method of the dynamic load driver of sound card in real time operating system - Google Patents
A kind of method of the dynamic load driver of sound card in real time operating system Download PDFInfo
- Publication number
- CN107506212A CN107506212A CN201710751264.4A CN201710751264A CN107506212A CN 107506212 A CN107506212 A CN 107506212A CN 201710751264 A CN201710751264 A CN 201710751264A CN 107506212 A CN107506212 A CN 107506212A
- Authority
- CN
- China
- Prior art keywords
- sound card
- multimedia digital
- coder
- digital signal
- subsequently
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000003068 static effect Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to a kind of method of the dynamic load driver of sound card in real time operating system.A kind of method of the dynamic load driver of sound card in real time operating system, comprises the following steps:(1) driving of multimedia digital signal coder is registered, subsequently into step (2);(2) in sound card controller table is enlivened match query sound card controller, step (3) is entered if finding, on the contrary terminate this operation;(3) check that multimedia digital signal coder hardware whether there is, if it does not, terminate this operation, conversely, into step (4);(4) driving of multimedia digital signal coder is initialized, subsequently into step (5);(5) start multimedia digital signal coder, then terminate this operation.
Description
Technical field
The present invention relates to a kind of method of the dynamic load driver of sound card in real time operating system.
Background technology
Real time operating system (RTOS) refers to, when extraneous event or data generation, to receive and with sufficiently fast speed
Handled, its result and can handled controls production process within the defined time or quick sound is made to processing system
Should, dispatch all available resources and complete real-time task, and control the operating system of the harmonious operation of all real-time tasks.
It is its main feature that offer, which is timely responded to high reliability,.
The mode of the most frequently used loading driver of sound card is static loading in real time operating system.Static loading is exactly drive
Dynamic program direct compilation enters kernel, and adjoint system starts automatic loading, but static loading has the disadvantage that:
A. be inconvenient to debug, kernel will be recompilated by changing a place every time, less efficient;
B. it is more using the driving of static loading, kernel capacity can be caused very big, waste memory space.
The content of the invention
Goal of the invention:The present invention has made improvements in view of the above-mentioned problems of the prior art, i.e., the invention discloses one kind
The method of dynamic load driver of sound card in real time operating system.The dynamic load that this method uses, make use of modular spy
Property, kernel module can be added after real time operating system startup, the Unload module unwanted when is added using this dynamic
The mode of load is easy to the debugging of driver, while can be directed to the functional requirement of product, carries out the cutting of kernel, need not
Driving remove, substantially reduce the memory capacity of kernel.
Technical scheme:A kind of method of the dynamic load driver of sound card in real time operating system, comprises the following steps:
(1) driving of multimedia digital signal coder is registered, subsequently into step (2);
(2) in sound card controller table is enlivened match query sound card controller, step (3) is entered if finding, instead
End this operation;
(3) check that multimedia digital signal coder hardware whether there is, if it does not, terminating this operation, instead
It, into step (4);
(4) driving of multimedia digital signal coder is initialized, subsequently into step (5);
(5) start multimedia digital signal coder, then terminate this operation.
A kind of method of the dynamic load driver of sound card in real time operating system, comprises the following steps:
(1) driving of sound card controller is registered, subsequently into step (2);
(2) check that sound card controller hardware whether there is, if it does not, terminating this operation, otherwise enter step
(3);
(3) sound card controller is initialized, subsequently into step (4);
(4) all multimedia digital coder hardware informations on sound card controller are inquired about, subsequently into step (5);
(5) check that multimedia digital coder hardware whether there is, if it does not, terminating this operation, otherwise enter
Enter step (6);
(6) check whether the driving of multimedia digital coder has registered, if unregistered, terminate this operation,
Otherwise enter step (7);
(7) inquired about in multimedia digital coder registration table and match driver, into step (8);
(8) check whether and find driver corresponding to multimedia digital coder hardware, if do not found, terminate this
Secondary operation, on the contrary enter step (9);
(9) driving of multimedia digital signal coder is initialized, subsequently into step (10);
(10) start multimedia digital signal coder, terminate this operation.
Beneficial effect:A kind of method of dynamic load driver of sound card in real time operating system disclosed by the invention have with
Lower beneficial effect:
1. make use of the dynamic load characteristic of kernel module, the driver of sound card of many various criterions can be pre-installed simultaneously;
2. dynamic supports new hardware, kernel need not be recompilated when changing hardware;
3. can load off-loadable, it is easy to the debugging of driver, while kernel can be allowed to keep the size of very little, is easy to move
Plant.
Brief description of the drawings
Fig. 1 is sound card controller and multimedia digital signal coder connection diagram;
Fig. 2 is a kind of flow chart of the method for dynamic load driver of sound card in real time operating system disclosed by the invention;
Fig. 3 is the flow of another method of dynamic load driver of sound card in real time operating system disclosed by the invention
Figure.
Embodiment:
The embodiment of the present invention is described in detail below.
Method disclosed in this method supports the sound card using all kinds of audio standards, including but not limited to AC ' 97, HD
The specifications such as Audio, I2S.
The real time operating system data structure good at managing for safeguarding sound card controller and multimedia digital signal coder, this
Data structure includes but is not limited to the forms such as chained list, queue.Hereinafter referred to as the data structure is sound card controller registration table, more matchmakers
Body data signal coder registration table.
As shown in figure 1, can mount several sound card controllers on CPU, sound card controller is further through bus and multiple multimedias
Data signal coder connects.Therefore need that the driving of sound card controller and multimedia digital signal are installed during loading driver of sound card
Coder drives.And point of the no sequencing of installation of both drivings.Therefore, this method has two kinds of dynamic load sound cards
The mode of driving.It is illustrated separately below with two specific embodiments.
Specific embodiment 1
As shown in Fig. 2 a kind of method of the dynamic load driver of sound card in real time operating system, comprises the following steps:
(1) driving of multimedia digital signal coder is registered, subsequently into step (2);
(2) in sound card controller table is enlivened match query sound card controller, step (3) is entered if finding, instead
End this operation;
(3) check that multimedia digital signal coder hardware whether there is, if it does not, terminating this operation, instead
It, into step (4);
(4) driving of multimedia digital signal coder is initialized, subsequently into step (5);
(5) start multimedia digital signal coder, then terminate this operation.
Specific embodiment 2
As shown in figure 3, a kind of method of the dynamic load driver of sound card in real time operating system, comprises the following steps:
(1) driving of sound card controller is registered, subsequently into step (2);
(2) check that sound card controller hardware whether there is, if it does not, terminating this operation, otherwise enter step
(3);
(3) sound card controller is initialized, subsequently into step (4);
(4) all multimedia digital coder hardware informations on sound card controller are inquired about, subsequently into step (5);
(5) check that multimedia digital coder hardware whether there is, if it does not, terminating this operation, otherwise enter
Enter step (6);
(6) check whether the driving of multimedia digital coder has registered, if unregistered, terminate this operation,
Otherwise enter step (7);
(7) inquired about in multimedia digital coder registration table and match driver, into step (8);
(8) check whether and find driver corresponding to multimedia digital coder hardware, if do not found, terminate this
Secondary operation, on the contrary enter step (9);
(9) driving of multimedia digital signal coder is initialized, subsequently into step (10);
(10) start multimedia digital signal coder, terminate this operation.
Embodiments of the present invention are elaborated above.But the present invention is not limited to above-mentioned embodiment,
In art those of ordinary skill's possessed knowledge, it can also be done on the premise of present inventive concept is not departed from
Go out various change.
Claims (2)
- A kind of 1. method of the dynamic load driver of sound card in real time operating system, it is characterised in that comprise the following steps:(1) driving of multimedia digital signal coder is registered, subsequently into step (2);(2) in sound card controller table is enlivened match query sound card controller, step (3) is entered if finding, on the contrary knot Shu Benci is operated;(3) check that multimedia digital signal coder hardware whether there is, if it does not, terminating this operation, conversely, entering Enter step (4);(4) driving of multimedia digital signal coder is initialized, subsequently into step (5);(5) start multimedia digital signal coder, then terminate this operation.
- A kind of 2. method of the dynamic load driver of sound card in real time operating system, it is characterised in that comprise the following steps:(1) driving of sound card controller is registered, subsequently into step (2);(2) check that sound card controller hardware whether there is, if it does not, terminating this operation, otherwise enter step (3);(3) sound card controller is initialized, subsequently into step (4);(4) all multimedia digital coder hardware informations on sound card controller are inquired about, subsequently into step (5);(5) check that multimedia digital coder hardware whether there is, if it does not, terminating this operation, otherwise enter step Suddenly (6);(6) check whether the driving of multimedia digital coder has registered, if unregistered, terminate this operation, it is on the contrary Into step (7);(7) inquired about in multimedia digital coder registration table and match driver, into step (8);(8) check whether and find driver corresponding to multimedia digital coder hardware, if do not found, terminate this behaviour Make, otherwise enter step (9);(9) driving of multimedia digital signal coder is initialized, subsequently into step (10);(10) start multimedia digital signal coder, terminate this operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710751264.4A CN107506212B (en) | 2017-08-28 | 2017-08-28 | Method for dynamically loading sound card drive on real-time operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710751264.4A CN107506212B (en) | 2017-08-28 | 2017-08-28 | Method for dynamically loading sound card drive on real-time operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107506212A true CN107506212A (en) | 2017-12-22 |
CN107506212B CN107506212B (en) | 2021-08-17 |
Family
ID=60693771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710751264.4A Active CN107506212B (en) | 2017-08-28 | 2017-08-28 | Method for dynamically loading sound card drive on real-time operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107506212B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988249A (en) * | 2021-03-23 | 2021-06-18 | 上海摩勤智能技术有限公司 | Method and device for creating sound card, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512335A (en) * | 2002-12-31 | 2004-07-14 | 北京科泰世纪科技有限公司 | Drive method based on structure operation system dynamic equipment |
CN102082969A (en) * | 2010-10-29 | 2011-06-01 | 广东星海数字家庭产业技术研究院有限公司 | External Bluetooth equipment driving system for set-top box |
CN103942078A (en) * | 2014-04-30 | 2014-07-23 | 华为技术有限公司 | Method for loading driver and embedded device |
-
2017
- 2017-08-28 CN CN201710751264.4A patent/CN107506212B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512335A (en) * | 2002-12-31 | 2004-07-14 | 北京科泰世纪科技有限公司 | Drive method based on structure operation system dynamic equipment |
CN102082969A (en) * | 2010-10-29 | 2011-06-01 | 广东星海数字家庭产业技术研究院有限公司 | External Bluetooth equipment driving system for set-top box |
CN103942078A (en) * | 2014-04-30 | 2014-07-23 | 华为技术有限公司 | Method for loading driver and embedded device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988249A (en) * | 2021-03-23 | 2021-06-18 | 上海摩勤智能技术有限公司 | Method and device for creating sound card, electronic equipment and storage medium |
CN112988249B (en) * | 2021-03-23 | 2024-05-28 | 上海摩勤智能技术有限公司 | Method and device for creating sound card, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107506212B (en) | 2021-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN86100690A (en) | Processor I/O and interruption filtrator | |
BR0007976A (en) | Process implemented by computer to manage launchable exceptions during execution of methods in one or more classes by a machine, a method that minimizes the amount of storage required for a stack in time of operation when executing a program, and, system implemented by computer to manage exceptions launchable during execution of methods in one or more classes by a machine | |
CN101739305A (en) | Operating system kernel level real-time dongle monitoring device and monitoring method thereof | |
CN107291510A (en) | A kind of Linux inter-vehicle information systems quick start method | |
US20120131371A1 (en) | Method for obtaining power states of a computer | |
CN204302727U (en) | A kind of real-time control system based on ARM and FPGA | |
CN107506212A (en) | A kind of method of the dynamic load driver of sound card in real time operating system | |
WO2023221753A1 (en) | Serial port communication method and related apparatus | |
CN101667378B (en) | Broadcasting method, broadcasting equipment and broadcasting system of computer multi-media advertising | |
DE102010054774A1 (en) | Virtualization of a shut down input / output device | |
CN103729219A (en) | Method and system for framing UEFI BIOS (unified extensible firmware interface basic input/output system) | |
CN106970778A (en) | A kind of Configuration Online method and system of the embedded device based on FPGA | |
CN109683470A (en) | A kind of software and hardware self-adaptive matching method, device and driving device | |
CN102736908A (en) | System, device and method for remotely setting CMOS (Complementary Metal-Oxide-Semiconductor Transistor) parameters | |
CN102141915A (en) | Equipment real-time control method based on RTLinux | |
WO2010013459A1 (en) | Control device, control method, and computer program | |
CN103064358A (en) | Injection molding machine disconnect-type HMI controller and injection molding machine control system based on Android system | |
US6920513B2 (en) | Bus management techniques | |
CN108614732B (en) | Method for quickly mapping hardware equipment of operating system under dynamic foreground of Loongson platform | |
CN101364183B (en) | Virtual machine monitor, virtual machine system and method for accessing true physical equipment | |
US8065547B2 (en) | Control method and computer system for advanced configuration and power interface | |
CN112764822A (en) | Operating system starting method, device, equipment and medium | |
CN103309704A (en) | Android driving program loading method | |
CN117408060B (en) | Whole vehicle model simulation performance optimization method, storage medium and electronic equipment | |
JP7649065B1 (en) | Method and system for optimizing simulation performance of vehicle model, storage medium, and electronic device |
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 |