CN109982136B - Volume adjusting method and device - Google Patents
Volume adjusting method and device Download PDFInfo
- Publication number
- CN109982136B CN109982136B CN201711461639.XA CN201711461639A CN109982136B CN 109982136 B CN109982136 B CN 109982136B CN 201711461639 A CN201711461639 A CN 201711461639A CN 109982136 B CN109982136 B CN 109982136B
- Authority
- CN
- China
- Prior art keywords
- interrupt
- volume
- program
- received
- volume key
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Stored Programmes (AREA)
Abstract
The invention belongs to the technical field of control, and particularly relates to a volume adjusting method and a volume adjusting device.
Description
Technical Field
The invention belongs to the technical field of control, and particularly relates to a volume adjusting method and device.
Background
At present, the smart television has a starting time of about 10 seconds after being started, interfaces of all functions are gradually started in the time, and after the interfaces of all the functions are started, the smart television can provide multifunctional services for people. However, many functions of the smart television cannot be used within the 10-second startup time, and generally, a manufacturer of the smart television plays an advertisement or a startup picture through the smart television within the time, and the advertisement or the startup picture is usually audio.
However, since many loans may not be started yet in the starting time of the smart tv, which includes the interface with the volume adjustment function, in daily life, a phenomenon is often encountered that the sound of the automatically played start-up picture or advertisement is too large or too small during a period of time after the smart tv is started up, but the volume cannot be adjusted by the remote controller.
Therefore, the problem that the volume of the multimedia file cannot be adjusted in the starting stage of the equipment due to the fact that the volume control interface is not started exists in the current television control technology is solved.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for adjusting a volume, so as to solve the problem in the prior art that the volume of a multimedia file cannot be adjusted at a device start stage because a volume control interface is not started.
A first aspect of an embodiment of the present invention provides a method for adjusting volume, including:
when a terminal device is started, starting a bootstrap program in the terminal device;
loading a sound card driving program and an interrupt processing program through the bootstrap program;
judging whether an operation instruction of a volume key is received or not by using the interrupt processing program;
and if the operating instruction of the volume key is received, analyzing the operating instruction of the volume key through a sound card driving function in the sound card driving program, and adjusting the volume of the terminal equipment.
A second aspect of an embodiment of the present invention provides a device for adjusting volume, including:
the starting module is used for starting a bootstrap program in the terminal equipment when the terminal equipment is started;
the loading module is used for loading a sound card driving program and an interrupt processing program through the bootstrap program;
the judging module is used for judging whether an operation instruction of a volume key is received by using the interrupt processing program;
and the adjusting module is used for analyzing the operation instruction of the volume key through a sound card driving function in the sound card driving program and adjusting the volume of the terminal equipment if the operation instruction of the volume key is received.
A third aspect of the embodiments of the present invention provides a terminal for adjusting volume, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps of a method for adjusting volume when executing the computer program:
when a terminal device is started, starting a bootstrap program in the terminal device; loading a sound card driving program and an interrupt processing program through the bootstrap program; judging whether an operation instruction of a volume key is received or not by using the interrupt processing program; and if the operating instruction of the volume key is received, analyzing the operating instruction of the volume key through a sound card driving function in the sound card driving program, and adjusting the volume of the terminal equipment.
The bootstrap program includes: and a universal Boot loader U-Boot.
The interrupt handler and the sound card driver are added in the local part where the bootstrap program is located in advance.
Further, the determining, by using the interrupt handler, whether an operation instruction of a volume key is received includes: when an interrupt request is received, determining an interrupt source sending the interrupt request through the interrupt processing program; reading the data of the interrupt source in an interrupt state register, and judging whether the interrupt request is used for requesting the interruption of a volume key according to the data of the interrupt source; and if the interruption request is used for requesting the interruption of the volume key, judging that the operation instruction of the volume key is received.
Further, if the interrupt request is received, a flag bit is set to indicate that the interrupt handler is being used.
A fourth aspect of the embodiments of the present invention provides a terminal for adjusting volume, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps of a method for adjusting volume when executing the computer program:
when a terminal device is started, starting a bootstrap program in the terminal device; loading a sound card driving program and an interrupt processing program through the bootstrap program; judging whether an operation instruction of a volume key is received or not by using the interrupt processing program; and if the operating instruction of the volume key is received, analyzing the operating instruction of the volume key through a sound card driving function in the sound card driving program, and adjusting the volume of the terminal equipment.
The bootstrap program includes: and a universal Boot loader U-Boot.
The interrupt handler and the sound card driver are added in the local part where the bootstrap program is located in advance.
Further, the determining, by using the interrupt handler, whether an operation instruction of a volume key is received includes: when an interrupt request is received, determining an interrupt source sending the interrupt request through the interrupt processing program; reading the data of the interrupt source in an interrupt state register, and judging whether the interrupt request is used for requesting the interruption of a volume key according to the data of the interrupt source; and if the interruption request is used for requesting the interruption of the volume key, judging that the operation instruction of the volume key is received.
Further, if the interrupt request is received, a flag bit is set to indicate that the interrupt handler is being used.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: when the terminal equipment is started, a bootstrap program in the terminal equipment is started, a sound card driving program and an interrupt processing program which are added into a part where the bootstrap program is located in advance are loaded through the bootstrap program, whether an operation instruction of a volume button is received or not is judged through the interrupt processing program, if the operation instruction of the volume button is received, the operation instruction of the volume button is analyzed through the sound card driving program, the volume of the terminal equipment is adjusted, the terminal equipment can adjust the volume without an interface used for a volume adjusting function, and the purpose of adjusting the volume of a multimedia file in the starting stage of the terminal equipment is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a method for adjusting volume according to an embodiment of the present invention;
fig. 2 is a flowchart of an implementation of the method S103 for adjusting volume according to the embodiment of the present invention;
fig. 3 is a block diagram of a volume adjusting apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal for volume adjustment according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 shows an implementation process of a method for adjusting volume according to an embodiment of the present invention, which includes steps S101 to S105, and is detailed as follows:
step S101, when the terminal equipment is started, starting a bootstrap program in the terminal equipment.
In the embodiment of the invention, when a terminal device is started, a bootstrap program is started immediately. It is understood that in the art, the boot program refers to a segment of program that is executed by the terminal device after being powered on and before the kernel of the operating system is executed, and the boot program is the first and indispensable program to be executed in the embedded system. The bootstrap program is used for initializing the terminal equipment and establishing a memory space mapping relation, so that the terminal equipment is facilitated to call a kernel of an operating system, and finally various functional interfaces can be normally started.
Optionally, the bootstrap program includes: a Universal Boot Loader (U-Boot). U-Boot is a bootstrap program that follows the General Public License (GPL) open source code. The goal of the U-Boot is to support as many embedded processors and operating systems as possible to reduce the difficulty and effort of developers to develop Boot programs for embedded systems. U-Boot is a multi-stage Boot program, and the Boot flow is divided into two stages. Starting the U-Boot when the terminal equipment is started, firstly starting to execute a first phase of the U-Boot, and in the first phase, the U-Boot configures and initializes the necessary resources in the terminal equipment; and the second stage of the U-Boot is mainly used for finishing initialization work of development board hardware such as reading environment variables, initializing a memory, initializing a console and the like. After all initialization work is completed correctly, the U-Boot can also automatically execute predefined operation.
And step S102, loading a sound card driver and an interrupt processing program through the bootstrap program.
In the embodiment of the invention, the sound card driver and the interrupt processing program are loaded when the bootstrap program runs, namely before the operating system kernel runs.
It is understood that the sound card driver is used in the terminal device to adjust the volume of the device according to the operation instruction of the user.
It is understood that, in the art, an interrupt handler is a program that must be used when the terminal device and the external device perform data interaction in an interrupt manner. Specifically, the interrupt handler of the terminal device is configured to analyze an interrupt request of the external device to determine which external device the interrupt request is specifically initiated by, and determine which function is specifically requested by the interrupt request. Since the data interaction by the interrupt method is the prior art in the field, the principle of data interaction by the interrupt method will not be described herein.
Notably, the interrupt handler and the sound card driver have been previously added within the native device in which the boot program is located.
Optionally, the sound card driver and the interrupt handler are added to the board/TQ210 directory of the U-Boot file in advance, and then the sound card driver and the interrupt handler can be loaded after the U-Boot is started.
In the embodiment of the invention, the interrupt processing program and the sound card driving program are added in the file where the bootstrap program is located in advance, so that the interrupt processing program and the sound card driving program can be loaded after the bootstrap program is started, and therefore, the interrupt device can directly use the sound card driving program and the interrupt processing program through the bootstrap program without waiting for other functional interfaces to be started.
And S103, judging whether an operation instruction of a volume key is received by using the interrupt processing program.
In the embodiment of the present invention, the interrupt handler may parse an interrupt request sent by the external device, and after determining which interrupt source the interrupt request is initiated by, may determine a purpose of the interrupt request.
As an embodiment of the present invention, fig. 2 shows a specific implementation flow of the volume adjusting method S103 provided by the embodiment of the present invention, which is detailed as follows:
step S1031, when receiving an interrupt request, determines an interrupt source that issues the interrupt request by the interrupt handler.
In this embodiment of the present invention, the external device that initiates the interrupt request is the interrupt source in this embodiment of the present invention. For example, a remote control may be used as an interrupt source in embodiments of the present invention.
It is understood that the interrupt handler of the terminal device may recognize which interrupt source issued the interrupt request after receiving the interrupt request.
Further, if the interrupt request is received, a flag bit is set to indicate that the interrupt handler is being used.
It will be appreciated that when the interrupt handler is being used, another interrupt request can no longer be received and processed.
Step S1032, the data of the interrupt source in the interrupt state register is read, and whether the interrupt request is used for requesting the volume key interruption or not is judged according to the data of the interrupt source.
In the embodiment of the present invention, the interrupt status register of the interrupt device stores data of each interrupt source to which an interrupt request can be sent, and the data of each interrupt source includes a correspondence relationship between an interrupt function and interrupt request data. Therefore, after the interrupt source is determined, whether the interrupt request is used for requesting the volume key interrupt can be judged according to the corresponding relation between the interrupt function in the interrupt state register and the interrupt request data.
It is to be understood that, in the embodiment of the present invention, the volume key interrupt is a step necessary for volume adjustment, so that the volume adjustment must be performed after an interrupt request for requesting the volume key interrupt is recognized.
Step S1033, if the interrupt request is for requesting the volume key to interrupt, determining that an operation instruction of the volume key is received.
In step S1034, if the interrupt request is not for requesting the interrupt of the volume key, it is determined that the operation instruction of the volume key is not received.
In the embodiment of the invention, the interrupt function corresponding to the received interrupt request is judged through the data of each interrupt source stored in the interrupt state register, and then whether the terminal equipment receives the operation instruction of the volume key is judged so as to trigger the subsequent volume adjustment.
And S104, if the operation instruction of the volume key is received, analyzing the operation instruction of the volume key through a sound card driving function in the sound card driving program, and adjusting the volume of the terminal equipment.
It is to be understood that, as described in the above embodiment, if the terminal device receives an interrupt request, and the interrupt request is for requesting the volume key to be interrupted, the interrupt request necessarily includes an operation instruction of the volume key.
In the embodiment of the present invention, the sound card driver includes a sound card driver function, and the sound card driver function may be configured to analyze an operation instruction of the volume button, and adjust the volume of the terminal device according to the operation instruction of the volume button.
And S105, if the operation instruction of the volume key is received, ending the volume adjustment operation.
In the embodiment of the invention, when the terminal equipment is started, the bootstrap program in the terminal equipment is started, the sound card driving program and the interrupt processing program which are added into the local part where the bootstrap program is located in advance are loaded through the bootstrap program, the interrupt processing program is used for judging whether the operation instruction of the volume button is received, if the operation instruction of the volume button is received, the operation instruction of the volume button is analyzed through the sound card driving program, and the volume of the terminal equipment is adjusted, so that the terminal equipment can adjust the volume without an interface for a volume adjusting function, and the aim of adjusting the volume of a multimedia file at the starting stage of the terminal equipment is fulfilled.
Fig. 3 is a block diagram illustrating a structure of a volume adjusting apparatus according to an embodiment of the present invention, corresponding to the above volume adjusting method.
Referring to fig. 3, the apparatus includes:
the starting module 301 is configured to start a boot program in the terminal device when the terminal device is started;
a loading module 302, configured to load a sound card driver and an interrupt handler through the boot program;
a judging module 303, configured to judge, by using the interrupt handler, whether an operation instruction of a volume key is received;
the adjusting module 304 is configured to, if the operation instruction of the volume key is received, analyze the operation instruction of the volume key through a sound card driving function in the sound card driving program, and adjust the volume of the terminal device.
Further, the determining module includes:
the determining submodule is used for determining an interrupt source sending the interrupt request through the interrupt processing program when the interrupt request is received;
the analysis submodule is used for reading the data of the interrupt source in the interrupt state register and judging whether the interrupt request is used for requesting the volume key interruption or not according to the data of the interrupt source;
and the judging subunit is used for judging that the operation instruction of the volume key is received if the interruption request is used for requesting the interruption of the volume key.
Further, the apparatus further comprises:
and the setting module is used for setting a flag bit to indicate that the interrupt processing program is being used if the interrupt request is received.
In the embodiment of the invention, when the terminal equipment is started, the bootstrap program in the terminal equipment is started, the sound card driving program and the interrupt processing program which are added into the local part where the bootstrap program is located in advance are loaded through the bootstrap program, the interrupt processing program is used for judging whether the operation instruction of the volume button is received, if the operation instruction of the volume button is received, the operation instruction of the volume button is analyzed through the sound card driving program, and the volume of the terminal equipment is adjusted, so that the terminal equipment can adjust the volume without an interface for a volume adjusting function, and the aim of adjusting the volume of a multimedia file at the starting stage of the terminal equipment is fulfilled.
Fig. 4 is a schematic diagram of a terminal for adjusting volume according to an embodiment of the present invention, which corresponds to the above method for adjusting volume. As shown in fig. 4, the apparatus for volume adjustment of this embodiment includes: a processor 40, a memory 41 and a computer program 42, such as an encryption program of a user key, stored in said memory 41 and executable on said processor 40. The processor 40, when executing the computer program 42, implements the steps in the various volume adjustment method embodiments described above, such as steps S101 to S105 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 301 to 304 shown in fig. 3.
The volume adjusting device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The volume adjusting device may include, but is not limited to, a processor 40 and a memory 41. It will be understood by those skilled in the art that fig. 4 is merely an example of the volume adjusting apparatus 4, and does not constitute a limitation of the volume adjusting apparatus 4, and may include more or less components than those shown, or combine some components, or different components, for example, the volume adjusting apparatus may also include an input-output device, a network access device, a bus, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method for the processor 40 to invoke the volume adjustment performed by the memory are as follows:
when a terminal device is started, starting a bootstrap program in the terminal device; loading a sound card driving program and an interrupt processing program through the bootstrap program; judging whether an operation instruction of a volume key is received or not by using the interrupt processing program; and if the operating instruction of the volume key is received, analyzing the operating instruction of the volume key through a sound card driving function in the sound card driving program, and adjusting the volume of the terminal equipment.
The bootstrap program includes: and a universal Boot loader U-Boot.
The interrupt handler and the sound card driver are added in the local part where the bootstrap program is located in advance.
Further, the determining, by using the interrupt handler, whether an operation instruction of a volume key is received includes: when an interrupt request is received, determining an interrupt source sending the interrupt request through the interrupt processing program; reading the data of the interrupt source in an interrupt state register, and judging whether the interrupt request is used for requesting the interruption of a volume key according to the data of the interrupt source; and if the interruption request is used for requesting the interruption of the volume key, judging that the operation instruction of the volume key is received.
Further, if the interrupt request is received, a flag bit is set to indicate that the interrupt handler is being used.
The memory 41 may be an internal storage unit of the volume adjusting device, such as a hard disk or a memory of the volume adjusting device 4. The memory 41 may also be an external storage device of the volume adjusting apparatus/device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the volume adjusting apparatus/device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the volume adjusting apparatus/device 4. The memory 41 is used to store the computer program and other programs and data required by the volume adjusting means. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/device and method may be implemented in other ways. For example, the above-described apparatus/device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A method of volume adjustment, comprising:
when a terminal device is started, starting a bootstrap program in the terminal device;
loading a sound card driving program and an interrupt processing program through the bootstrap program;
when an interrupt request sent by external equipment is received, judging whether an operation instruction of a volume key is received or not by using the interrupt processing program;
and if the operating instruction of the volume key is received, analyzing the operating instruction of the volume key through a sound card driving function in the sound card driving program, and adjusting the volume of the terminal equipment.
2. The method of volume adjustment as claimed in claim 1, wherein the bootstrap procedure comprises: and a universal Boot loader U-Boot.
3. The method of claim 1, wherein the interrupt handler and the sound card driver have been pre-added to the local device where the boot program is located.
4. The method of adjusting volume according to claim 1, wherein the determining, using the interrupt handler, whether an operation instruction of a volume key is received comprises:
when an interrupt request is received, determining an interrupt source sending the interrupt request through the interrupt processing program;
reading the data of the interrupt source in an interrupt state register, and judging whether the interrupt request is used for requesting the interruption of a volume key according to the data of the interrupt source;
and if the interruption request is used for requesting the interruption of the volume key, judging that the operation instruction of the volume key is received.
5. The method of volume adjustment of claim 4, further comprising:
if the interrupt request is received, a flag bit is set to indicate that the interrupt handler is being used.
6. An apparatus for volume adjustment, comprising:
the starting module is used for starting a bootstrap program in the terminal equipment when the terminal equipment is started;
the loading module is used for loading a sound card driving program and an interrupt processing program through the bootstrap program;
the judging module is used for judging whether an operation instruction of a volume key is received or not by using the interrupt processing program when an interrupt request sent by external equipment is received;
and the adjusting module is used for analyzing the operation instruction of the volume key through a sound card driving function in the sound card driving program and adjusting the volume of the terminal equipment if the operation instruction of the volume key is received.
7. The apparatus for adjusting volume according to claim 6, wherein the determining module comprises:
the determining submodule is used for determining an interrupt source sending the interrupt request through the interrupt processing program when the interrupt request is received;
the analysis submodule is used for reading the data of the interrupt source in the interrupt state register and judging whether the interrupt request is used for requesting the volume key interruption or not according to the data of the interrupt source;
and the judging subunit is used for judging that the operation instruction of the volume key is received if the interruption request is used for requesting the interruption of the volume key.
8. The apparatus for volume adjustment according to claim 6, further comprising:
and the setting module is used for setting a flag bit to indicate that the interrupt processing program is being used if the interrupt request is received.
9. A terminal for volume adjustment, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711461639.XA CN109982136B (en) | 2017-12-28 | 2017-12-28 | Volume adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711461639.XA CN109982136B (en) | 2017-12-28 | 2017-12-28 | Volume adjusting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109982136A CN109982136A (en) | 2019-07-05 |
CN109982136B true CN109982136B (en) | 2020-09-04 |
Family
ID=67074966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711461639.XA Active CN109982136B (en) | 2017-12-28 | 2017-12-28 | Volume adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109982136B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112614322B (en) * | 2020-11-24 | 2021-12-07 | 佳禾智能科技股份有限公司 | Wireless sound box volume control method, computer readable storage medium and wireless sound box |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905755A (en) * | 2014-03-31 | 2014-07-02 | 广州视源电子科技股份有限公司 | Power-on silencing method and television achieving power-on silencing |
CN104503799A (en) * | 2014-12-29 | 2015-04-08 | 长园深瑞继保自动化有限公司 | Method for performing uninterrupted control over peripherals in system starting process |
CN105704553A (en) * | 2014-11-24 | 2016-06-22 | 乐视致新电子科技(天津)有限公司 | Method for adjusting volume of boot-up advisement of smart television and player |
CN106162279A (en) * | 2016-07-01 | 2016-11-23 | 青岛海信电器股份有限公司 | TV remote key response method based on Android operation system and TV |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201248499A (en) * | 2011-05-18 | 2012-12-01 | Asustek Comp Inc | Method of swapping between operating systems applied to computer system |
-
2017
- 2017-12-28 CN CN201711461639.XA patent/CN109982136B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905755A (en) * | 2014-03-31 | 2014-07-02 | 广州视源电子科技股份有限公司 | Power-on silencing method and television achieving power-on silencing |
CN105704553A (en) * | 2014-11-24 | 2016-06-22 | 乐视致新电子科技(天津)有限公司 | Method for adjusting volume of boot-up advisement of smart television and player |
CN104503799A (en) * | 2014-12-29 | 2015-04-08 | 长园深瑞继保自动化有限公司 | Method for performing uninterrupted control over peripherals in system starting process |
CN106162279A (en) * | 2016-07-01 | 2016-11-23 | 青岛海信电器股份有限公司 | TV remote key response method based on Android operation system and TV |
Also Published As
Publication number | Publication date |
---|---|
CN109982136A (en) | 2019-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107608693B (en) | Version upgrading method and terminal equipment | |
WO2023070823A1 (en) | Bootloader loading method, apparatus and system, electronic device and medium | |
US9436828B2 (en) | Systems and methods for command-based entry into basic input/output system setup from operating system | |
US11157264B2 (en) | Electronic device and method for controlling update of electronic device | |
US10802939B2 (en) | Method for scanning cache of application and electronic device | |
KR20200090010A (en) | Method for updating firmware, electronic device and storage medium therefor | |
CN109828774B (en) | Server system and starting method thereof | |
US20050176415A1 (en) | System and method for providing anti-virus program using wireless communication terminal | |
US20060294358A1 (en) | Methods and computers for presenting a graphical user interface during a boot process | |
CN112771489A (en) | Method of controlling execution of heterogeneous operating system and electronic device and storage medium thereof | |
US10115375B2 (en) | Systems and methods for enabling a systems management interface with an alternate frame buffer | |
CN109982136B (en) | Volume adjusting method and device | |
CN109034808B (en) | Operation method and device of payment application program and terminal equipment | |
WO2022171058A1 (en) | Application program processing method and apparatus, and electronic device | |
CN115291951A (en) | UEFI (unified extensible firmware interface) starting method and device, electronic equipment and storage medium | |
TW202001563A (en) | Judgment method for hardware compatibility | |
CN110750408B (en) | Method, device and apparatus for controlling USB debug mode switch, and storage medium | |
CN111352357B (en) | Robot control method and device and terminal equipment | |
CN112188177A (en) | Screen-splash prevention method, terminal device and storage medium | |
CN113515299A (en) | Software development kit SDK hot upgrading method, device, equipment and storage medium | |
CN111375209A (en) | Login method of fishing game application program, computer device and computer readable storage medium | |
KR100673999B1 (en) | Method for booting of mobile | |
CN117742805B (en) | Chip initialization method and device | |
US11080075B2 (en) | Data threshold notification | |
CN109918122B (en) | White list maintenance method and device and terminal equipment |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 516006 TCL technology building, No.17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province Applicant after: TCL Technology Group Co.,Ltd. Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District Applicant before: TCL RESEARCH AMERICA Inc. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |