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 PDF

Info

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
Application number
CN201710751264.4A
Other languages
Chinese (zh)
Other versions
CN107506212B (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.)
Beijing Wing Hui Information Technology Co Ltd
Original Assignee
Beijing Wing Hui Information Technology Co Ltd
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 Beijing Wing Hui Information Technology Co Ltd filed Critical Beijing Wing Hui Information Technology Co Ltd
Priority to CN201710751264.4A priority Critical patent/CN107506212B/en
Publication of CN107506212A publication Critical patent/CN107506212A/en
Application granted granted Critical
Publication of CN107506212B publication Critical patent/CN107506212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

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

A kind of method of the dynamic load driver of sound card in real time operating system
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)

  1. 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.
  2. 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.
CN201710751264.4A 2017-08-28 2017-08-28 Method for dynamically loading sound card drive on real-time operating system Active CN107506212B (en)

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)

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

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

Patent Citations (3)

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

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

Also Published As

Publication number Publication date
CN107506212B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
DE69727407T2 (en) Distributed execution of mode-unsuitable instructions in multiprocessor systems
CN1008484B (en) Processor i/o and interrupt filters
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
EP1046989A3 (en) Method and system for transferring job between computers
CN104778066B (en) The quick start method and its device of a kind of embedded OS
US20120131371A1 (en) Method for obtaining power states of a computer
CN107291510A (en) A kind of Linux inter-vehicle information systems quick start method
CN102999413A (en) Chip, display, computer and fault message display method
WO2023221753A1 (en) Serial port communication method and related apparatus
CN103064812A (en) Method and device for quick connection of mobile device and computer
CN107506212A (en) A kind of method of the dynamic load driver of sound card in real time operating system
CN111858038A (en) Method, device and medium for reading memory data of FPGA (field programmable Gate array) board card
CN103729219A (en) Method and system for framing UEFI BIOS (unified extensible firmware interface basic input/output system)
CN101667378A (en) Broadcasting method, broadcasting equipment and broadcasting system of computer multi-media advertising
CN108198582B (en) NAND Flash control method and device and SSD
CN102902638A (en) Hardware equipment control method and driving module
CN104965749A (en) Kernel-based virtual machine (kvm) snapshot recovery optimization method and system
CN103902268A (en) ETL process execution system and method
US6920513B2 (en) Bus management techniques
CN1508715A (en) Method for automatically changing start sequence of computer
CN101364183B (en) Virtual machine monitor, virtual machine system and method for accessing true physical equipment
CN101000559A (en) Method and system for exchange controlling data between power supply management unit and terminal opening master control unit
CN111638965A (en) Command queue inter-fence synchronization method and system based on fence replication and handshake
US8065547B2 (en) Control method and computer system for advanced configuration and power interface
CN103309704A (en) Android driving program loading method

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