CN117812314A - Display device and volume adjusting method - Google Patents

Display device and volume adjusting method Download PDF

Info

Publication number
CN117812314A
CN117812314A CN202311605471.0A CN202311605471A CN117812314A CN 117812314 A CN117812314 A CN 117812314A CN 202311605471 A CN202311605471 A CN 202311605471A CN 117812314 A CN117812314 A CN 117812314A
Authority
CN
China
Prior art keywords
audio
display device
gain
strategy
sound output
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.)
Pending
Application number
CN202311605471.0A
Other languages
Chinese (zh)
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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN202311605471.0A priority Critical patent/CN117812314A/en
Publication of CN117812314A publication Critical patent/CN117812314A/en
Pending legal-status Critical Current

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The application provides a display device and a volume adjusting method, wherein the display device comprises: a display; a controller connected to the display and to the sound output device via an optical fiber, the controller configured to: receiving a volume adjustment instruction; responding to the volume adjustment instruction, and calculating a target gain value of the display device according to the volume adjustment instruction; determining an audio strategy according to the audio format of the audio stream output to the sound output device by the display device and the audio output mode of the display device; and updating the track gain of the audio stream or the gain of a port of the display device connected with the sound output device to the target gain value according to the audio strategy. The volume adjustment experience when the sound output equipment is connected through the optical fiber is improved.

Description

Display device and volume adjusting method
Technical Field
The application relates to the technical field of volume adjustment, in particular to a display device and a volume adjustment method.
Background
Because the power amplifier has the advantages of clear tone quality, superior multichannel capability and the like, the power amplifier is often accessed into terminals such as display equipment by users to replace the loudspeaker of the terminal to play audio streams. The power amplifier access terminal can generally adopt four access modes of HDMI (High Definition Multimedia Interface, high-definition digital multimedia interface), bluetooth, coaxial and optical fiber, wherein the power amplifier has the advantage of strong anti-interference capability through the optical fiber access terminal, and is widely applied to home theatres or places with large space. However, since the optical fiber can only transmit audio stream data and cannot transmit a control instruction, a volume adjustment instruction input by a user to the terminal cannot be transmitted to the power amplifier through the optical fiber, CEC (Consumer Electronics Control, consumer electronic control) control of the power amplifier is realized, the user needs to input the volume adjustment instruction to the power amplifier through a remote controller of the power amplifier to adjust the volume of the power amplifier, the operation is complex, and the user experience is poor.
Disclosure of Invention
In order to improve user experience of volume adjustment, the application provides display equipment and a volume adjustment method.
In a first aspect, the present application provides a display device comprising:
a display;
a controller connected to the display and to the sound output device via an optical fiber, the controller configured to:
receiving a volume adjustment instruction;
responding to the volume adjustment instruction, and calculating a target gain value of the display device according to the volume adjustment instruction;
determining an audio strategy according to the audio format of the audio stream output to the sound output device by the display device and the audio output mode of the display device;
and updating the track gain of the audio stream or the gain of a port of the display device connected with the sound output device to the target gain value according to the audio strategy.
In some embodiments, the controller is configured to: determining an audio strategy according to the audio format and the audio output mode of the audio stream, wherein the audio strategy comprises the following steps:
determining an audio strategy as a first strategy according to the fact that the audio format of the audio stream is a non-PCM format and the audio output mode of the display device is transparent, wherein the first strategy is used for updating the track gain of the audio stream;
And determining an audio strategy as a second strategy according to the fact that the audio format of the audio stream is a PCM format or the audio output mode of the display device is non-transparent, wherein the second strategy is used for updating the gain of the port, connected with the sound output device, of the display device to the target gain value.
In some embodiments, the controller is configured to: updating the audio track gain of the audio stream or the gain of the port of the display device connected to the sound output device to the target gain value according to the audio strategy, including:
when the audio strategy is the first strategy, updating the track gain of the audio stream to the target gain value through an audio playing service, so that the volume of the sound output device changes along with the gain update of the input audio stream.
In some embodiments, the controller is configured to: updating, by an audio playback service, an audio track gain of the audio stream to the target gain value when the audio policy is a first policy, previously configured to: and judging whether the audio stream is in an active state or not.
In some embodiments, the controller is configured to: updating, by an audio playback service, an audio track gain of the audio stream to the target gain value when the audio policy is a first policy, previously configured to: it is determined whether the track gain of the audio stream is a variable gain.
In some embodiments, the controller is configured to: updating the audio track gain of the audio stream or the gain of the port of the display device connected to the sound output device to the target gain value according to the audio strategy, including:
and when the audio strategy is the second strategy, updating the gain of the port of the display device connected with the sound output device to the target gain value through an audio hardware interface layer, so that the volume of the sound output device changes along with the gain update of the port connected with the display device.
In a second aspect, the present application provides a method for adjusting volume, the method comprising:
receiving a volume adjustment instruction input to a display device, wherein the display device is connected with a sound output device through an optical fiber;
responding to the volume adjustment instruction, and calculating a target gain value of the display device according to the volume adjustment instruction;
determining an audio strategy according to the audio format of the audio stream output to the sound output device by the display device and the audio output mode of the display device;
and updating the track gain of the audio stream or the gain of a port of the display device connected with the sound output device to the target gain value according to the audio strategy.
In some embodiments, determining an audio policy from an audio format and an audio output mode of the audio stream comprises:
determining an audio strategy as a first strategy according to the fact that the audio format of the audio stream is a non-PCM format and the audio output mode of the display device is transparent, wherein the first strategy is used for updating the track gain of the audio stream;
and determining an audio strategy as a second strategy according to the fact that the audio format of the audio stream is a PCM format or the audio output mode of the display device is non-transparent, wherein the second strategy is used for updating the gain of the port, connected with the sound output device, of the display device to the target gain value.
In some embodiments, updating the track gain of the audio stream or the gain of the port of the display device to which the sound output device is connected to the target gain value according to the audio policy comprises:
when the audio strategy is the first strategy, updating the track gain of the audio stream to the target gain value through an audio playing service, so that the volume of the sound output device changes along with the gain update of the input audio stream.
In some embodiments, updating the track gain of the audio stream or the gain of the port of the display device to which the sound output device is connected to the target gain value according to the audio policy comprises:
And when the audio strategy is the second strategy, updating the gain of the port of the display device connected with the sound output device to the target gain value through an audio hardware interface layer, so that the volume of the sound output device changes along with the gain update of the port connected with the display device.
The display device and the volume adjusting method have the beneficial effects that:
according to the method and the device, after the volume adjustment instruction input by the user to the display device is received, the volume of the sound output device changes along with the gain update of the input audio stream or along with the gain update of the port connected with the display device by adjusting the audio track gain of the audio stream or the gain of the port connected with the display device, the sound output device does not need to be subjected to gain update, the problem that the display device cannot transmit the volume adjustment instruction to the sound output device when the sound output device is connected with the display device through the optical fiber, the sound output device can adjust the volume gain is solved, the user can realize volume control of the sound output device by inputting the volume adjustment instruction to the display device, the user operation is simple, and the volume adjustment experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the implementation in the related art, a brief description will be given below of the drawings required for the embodiments or the related art descriptions, and it is apparent that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings for those of ordinary skill in the art.
A schematic diagram of an operational scenario between a display device and a control apparatus according to some embodiments is schematically shown in fig. 1;
a hardware configuration block diagram of the control apparatus 100 according to some embodiments is exemplarily shown in fig. 2;
a hardware configuration block diagram of a display device 200 according to some embodiments is exemplarily shown in fig. 3;
a schematic diagram of the software configuration in a display device 200 according to some embodiments is exemplarily shown in fig. 4;
a flow diagram of a method of volume adjustment according to some embodiments is shown schematically in fig. 5;
a flow diagram of an audio stream playing method according to some embodiments is schematically shown in fig. 6;
a schematic flow diagram of processing of an audio stream by a display device according to some embodiments is shown schematically in fig. 7;
a flow diagram of a method of responding to a volume adjustment command by a display device according to some embodiments is schematically shown in fig. 8;
A schematic flow diagram of volume adjustment according to a first policy or a second policy according to some embodiments is exemplarily shown in fig. 9;
an interactive schematic diagram of the various layers within the operating system of a display device according to some embodiments is illustrated in fig. 10.
Detailed Description
For purposes of clarity and implementation of the present application, the following description will make clear and complete descriptions of exemplary implementations of the present application with reference to the accompanying drawings in which exemplary implementations of the present application are illustrated, it being apparent that the exemplary implementations described are only some, but not all, of the examples of the present application.
It should be noted that the brief description of the terms in the present application is only for convenience in understanding the embodiments described below, and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
The terms "first," second, "" third and the like in the description and in the claims and in the above-described figures are used for distinguishing between similar or similar objects or entities and not necessarily for limiting a particular order or sequence, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements explicitly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The display device provided in the embodiment of the application may have various implementation forms, for example, may be a television, an intelligent television, a laser projection device, a display (monitor), an electronic whiteboard (electronic bulletin board), an electronic desktop (electronic table), and the like. Fig. 1 and 2 are specific embodiments of a display device of the present application.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in fig. 1, a user may operate the display device 200 through the smart device 300 or the control apparatus 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or bluetooth protocol communication, and other short-range communication modes, and the display device 200 is controlled by a wireless or wired mode. The user may control the display device 200 by inputting user instructions through keys on a remote control, voice input, control panel input, etc.
In some embodiments, a smart device 300 (e.g., mobile terminal, tablet, computer, notebook, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on a smart device.
In some embodiments, the display device may receive instructions not using the smart device or control device described above, but rather receive control of the user by touch or gesture, or the like.
In some embodiments, the display device 200 may also perform control in a manner other than the control apparatus 100 and the smart device 300, for example, the voice command control of the user may be directly received through a module configured inside the display device 200 device for acquiring voice commands, or the voice command control of the user may be received through a voice control device configured outside the display device 200 device.
In some embodiments, the display device 200 is also in data communication with a server 400. The display device 200 may be permitted to make communication connections via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display device 200. The server 400 may be a cluster, or may be multiple clusters, and may include one or more types of servers.
In some embodiments, the display device 200 is also in data communication with a power amplifier 500. The display device 200 may be connected to the power amplifier 500 through an optical fiber. The display device 200 may send the audio stream to the power amplifier 500, which is played by the power amplifier 500.
Fig. 2 exemplarily shows a block diagram of a configuration of the control apparatus 100 in accordance with an exemplary embodiment. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control apparatus 100 may receive an input operation instruction of a user and convert the operation instruction into an instruction recognizable and responsive to the display device 200, and function as an interaction between the user and the display device 200.
As shown in fig. 3, the display apparatus 200 includes at least one of a modem 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, a first interface for input/output to an nth interface.
The display 260 includes a display screen component for presenting a picture, and a driving component for driving an image display, a component for receiving an image signal from the controller output, displaying video content, image content, and a menu manipulation interface, and a user manipulation UI interface.
The display 260 may be a liquid crystal display, an OLED display, a projection device, or a projection screen.
The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, or other network communication protocol chip or a near field communication protocol chip, and an infrared receiver. The display device 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
A user interface, which may be used to receive control signals from the control device 100 (e.g., an infrared remote control, etc.).
The detector 230 is used to collect signals of the external environment or interaction with the outside. For example, detector 230 includes a light receiver, a sensor for capturing the intensity of ambient light; alternatively, the detector 230 includes an image collector such as a camera, which may be used to collect external environmental scenes, user attributes, or user interaction gestures, or alternatively, the detector 230 includes a sound collector such as a microphone, or the like, which is used to receive external sounds.
The external device interface 240 may include, but is not limited to, the following: any one or more interfaces such as an optical fiber interface, a high-definition multimedia interface (HDMI), an analog or data high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, and the like. The input/output interface may be a composite input/output interface formed by a plurality of interfaces. The optical fiber interface is connected with a sound output device, such as a power amplifier 500, through an optical fiber.
The modem 210 receives broadcast television signals through a wired or wireless reception manner, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, the controller 250 and the modem 210 may be located in separate devices, i.e., the modem 210 may also be located in an external device to the main device in which the controller 250 is located, such as an external set-top box or the like.
The controller 250 controls the operation of the display device and responds to the user's operations through various software control programs stored on the memory. The controller 250 controls the overall operation of the display apparatus 200. For example: in response to receiving a user command to select a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments the controller includes at least one of a central processing unit (Central Processing Unit, CPU), video processor, audio processor, graphics processor (Graphics Processing Unit, GPU), RAM (Random Access Memory, RAM), ROM (Read-Only Memory, ROM), first to nth interfaces for input/output, a communication Bus (Bus), etc.
The user may input a user command through a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
A "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user, which enables conversion between an internal form of information and a user-acceptable form. A commonly used presentation form of the user interface is a graphical user interface (Graphic User Interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in a display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
Referring to FIG. 4, in some embodiments, the system is divided into four layers, from top to bottom, an application layer (referred to as an "application layer"), an application framework layer (Application Framework layer) (referred to as a "framework layer"), a An Zhuoyun row (Android run) and a system library layer (referred to as a "system runtime layer"), and a kernel layer, respectively.
In some embodiments, at least one application program is running in the application program layer, and these application programs may be a Window (Window) program of an operating system, a system setting program, a clock program, or the like; or may be an application developed by a third party developer. In particular implementations, the application packages in the application layer are not limited to the above examples.
The framework layer provides an application programming interface (application programming interface, API) and programming framework for the application. The application framework layer includes a number of predefined functions. The application framework layer corresponds to a processing center that decides to let the applications in the application layer act. Through the API interface, the application program can access the resources in the system and acquire the services of the system in the execution.
As shown in fig. 4, the application framework layer in the embodiment of the present application includes a manager (manager), a Content Provider (Content Provider), and the like, where the manager includes at least one of the following modules: an Activity Manager (Activity Manager) is used to interact with all activities that are running in the system; a Location Manager (Location Manager) is used to provide system services or applications with access to system Location services; a Package Manager (Package Manager) for retrieving various information about an application Package currently installed on the device; a notification manager (Notification Manager) for controlling the display and clearing of notification messages; a Window Manager (Window Manager) is used to manage bracketing icons, windows, toolbars, wallpaper, and desktop components on the user interface.
In some embodiments, the activity manager is used to manage the lifecycle of the individual applications as well as the usual navigation rollback functions, such as controlling the exit, opening, fallback, etc. of the applications. The window manager is used for managing all window programs, such as obtaining the size of the display screen, judging whether a status bar exists or not, locking the screen, intercepting the screen, controlling the change of the display window (for example, reducing the display window to display, dithering display, distorting display, etc.), etc.
In some embodiments, the system runtime layer provides support for the upper layer, the framework layer, and when the framework layer is in use, the android operating system runs the C/C++ libraries contained in the system runtime layer to implement the functions to be implemented by the framework layer.
In some embodiments, the kernel layer is a layer between hardware and software. As shown in fig. 4, the kernel layer contains at least one of the following drivers: audio drive, display drive, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (e.g., fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply drive, etc.
The hardware or software architecture in some embodiments may be based on the description in the foregoing embodiments, and in some embodiments may be based on other similar hardware or software architectures, which may implement the technical solutions of the present application.
In some embodiments, after the display device 200 is connected to the power amplifier 500 through an optical fiber, the audio stream of the media playing on the display device 200 can be transmitted to the power amplifier 500 for playing, so as to achieve an excellent sound playing effect. However, since the optical fiber cannot transmit the manipulation instruction, the volume adjustment instruction input to the display device 200 by the user cannot be transmitted to the power amplifier 500, the user needs to input the volume adjustment instruction to the power amplifier 500 through the remote controller of the power amplifier 500 to adjust the volume of the power amplifier 500, or adjust the volume of the power amplifier 500 through the volume adjustment key provided on the power amplifier 500. When the user needs to control the display device 200, for example, to switch the media to be played, the user needs to control the display device 200 through a remote controller of the display device 200, for example, the control device 100. In the process of using the display device 200, the user needs to switch the remote controller of the display device 200 and the remote controller of the power amplifier 500 back and forth, so that the operation is complex, and the user experience is poor.
In order to solve the above technical problem and improve the volume adjustment experience, an embodiment of the present application provides a volume adjustment method, referring to fig. 5, for a display device, which may include the following steps:
step S101: and receiving a volume adjustment instruction input to the display device, wherein the display device is connected with the sound output device through an optical fiber.
In some embodiments, when the display device is connected to the sound output device, such as the power amplifier, the audio stream of the media asset being played on the display device may be played through the power amplifier. If the user needs to adjust the volume of the power amplifier, a volume adjustment instruction can be input to the display device.
In some embodiments, the manner in which the user inputs the volume adjustment command to the display device may include volume up key input, volume down key input through the remote controller, voice input, input through the mobile terminal, and the like, which is not particularly limited in this embodiment of the present application.
Step S102: and responding to the volume adjustment instruction, and calculating a target gain value of the display device according to the volume adjustment instruction.
In some embodiments, after receiving a voice adjustment command input by a user, the display device may calculate a target gain value of the display device according to the volume adjustment command and the current volume. For example, according to the volume adjustment command being a volume up command, the adjustment step is 1, the current volume gain value is 15, and the target gain value is 16 by calculation.
Step S103: and determining an audio strategy according to the audio format of the audio stream output to the sound output device by the display device and the audio output mode of the display device.
In some embodiments, the audio formats of the audio streams output by the display device to the power amplifier may include PCM (Pulse Code Modulation ) formats and non-PCM formats, and the audio output modes of the audio streams output by the display device may include pass-through and non-pass-through, where for the audio streams in the non-PCM formats, the audio output modes are typically pass-through.
When the audio format of the audio stream is a non-PCM format and the audio output mode of the display device is pass-through, the audio policy may be determined to be a first policy that represents adjusting the track gain of the audio stream.
When the audio format of the audio stream is PCM format, or the audio output mode of the display device is opaque, the audio policy may be determined to be a second policy, the second policy indicating adjusting the gain of the output port of the display device.
Step S104: and updating the track gain of the audio stream or the gain of a port of the display device connected with the sound output device to the target gain value according to the audio strategy.
In some embodiments, when the audio policy is the first policy, the track gain of the audio stream may be updated to the target gain value such that the volume of the sound output device varies with the gain update of the input audio stream.
In some embodiments, when the audio policy is the second policy, the gain of the port to which the display device is connected to the power amplifier may be updated to the target gain value, so that the volume of the sound output device changes according to the gain update of the port to which the display device is connected.
As can be seen from the above embodiments, after receiving a volume adjustment instruction input by a user to a display device, the embodiments of the present application enable the volume of the power amplifier to change along with the gain update of the input audio stream or along with the gain update of the port connected to the display device by adjusting the audio track gain of the audio stream or the gain of the port connected to the display device, without updating the gain of the power amplifier, thereby solving the problem that the display device cannot transmit the volume adjustment instruction to the power amplifier when the power amplifier is connected to the display device through an optical fiber, so that the power amplifier can adjust the volume gain, and the user can realize the volume control of the power amplifier by inputting the volume adjustment instruction to the display device.
To further explain the volume adjustment method provided in the embodiments of the present application, a process of playing an audio stream by a display device is described below.
Referring to fig. 6, which is a flow chart illustrating a method for playing an audio stream according to some embodiments, as shown in fig. 6, the method may include the following steps:
step S201: and responding to the media asset playing instruction, and determining the current sound output equipment.
In some embodiments, after the user connects the display device and the power amplifier through the optical fiber, a setting interface of the display device may be opened, the setting interface is provided with an audio setting control, and the user triggers the audio setting control and may enter the audio setting interface. The audio setting interface sets a sound output device control, after a user triggers the sound output device control, the display device can display a sound output device list, the list can comprise an intelligent television control and a power amplifier control, and if the user triggers the power amplifier control, the display device sets the audio parameters corresponding to the current sound output device as a power amplifier.
In some embodiments, the audio setting interface is provided with an audio output mode control, and upon user activation of the audio output mode control, the display device may present a list of audio output modes, which may include an automatic control, a pass-through control, and a PCM control. If the user triggers the pass-through control, the display device sets the audio parameters corresponding to the current audio output mode as pass-through, if the user triggers the PCM control, the display device sets the audio parameters corresponding to the current audio output mode as PCM, and if the user triggers the automatic control, the display device sets the audio parameters corresponding to the current audio output mode as automatic.
In some embodiments, after a user inputs a media playing instruction on a display device, such as playing a movie, the display device starts a player to play a video stream of the media, and determines a current sound output device according to an audio parameter corresponding to the current sound output device, for example, determines the current sound output device to be a power amplifier according to the audio parameter corresponding to the current sound output device as the power amplifier.
Step S202: and acquiring the audio playing capability parameters of the sound output equipment.
In some embodiments, the display device, upon determining the current sound output device, obtains audio playback capability parameters of the sound output device, which may include the audio formats and audio output modes supported by the sound output device.
Step S203: it is determined whether the sound output device supports playing the current audio stream.
In some embodiments, the display device compares the audio format supported by the sound output device with the audio format of the audio stream, determines whether the audio format supported by the sound output device includes the audio format of the audio stream, if so, determines that the sound output device supports playing the current audio stream, and if not, determines that the sound output device does not support playing the current audio stream.
Step S204: if not, the playing process is exited.
In some embodiments, if the sound output device does not support playing the current audio stream, the playing process of the audio stream is ended.
Step S205: if so, determining an audio output mode of the audio stream.
In some embodiments, if the audio parameter corresponding to the audio output mode is transparent, the audio output mode of the audio stream is determined to be transparent.
In some embodiments, if the audio parameter corresponding to the audio output mode is PCM, the audio output mode of the audio stream is determined to be PCM.
In some embodiments, if the audio parameters corresponding to the audio output mode are automatic, the display device may automatically determine that the audio output mode of the audio stream is transparent or PCM according to the audio parameters of the audio stream.
Step S206: an output path of the audio stream is opened.
In some embodiments, after determining the audio output mode of the audio stream, the output (output path) of the audio stream of the AudioTrack (audio player) may be opened.
Step S207: the size of the minimum buffer is obtained.
In some embodiments, the minimum buffer size of the AudioTrack may be obtained by a getMinBufferSize function.
Step S208: the buffer size of the audio playback service is set.
In some embodiments, after obtaining the minimum buffer size of the AudioTrack, the size of the buffer of the audio playback service may be set to the minimum buffer size.
Step S209: the audio stream starts to play.
In some embodiments, after the buffer size of the audio playback service is set, a playback function may be performed to begin playing the audio stream.
In some embodiments, after the playing of the audio stream is started by the method shown in fig. 6, the processing flow of the audio stream by the display device may be referred to as fig. 7.
As shown in fig. 7, in the streaming media application of the display device, such as the audio stream in the non-pcm format played by the vod program, the audio playing service is used to reach the audio hardware interface layer, the audio hardware interface layer sends the audio stream to the decoder, for the audio stream in the non-pcm format and with the audio output mode being transparent, the decoder directly sends the audio stream to the digital audio processor unit, and a mixer is disposed in the digital audio processor unit, and the mixer can mix multiple audio channels of the audio stream, and output the mixed audio stream to the spdif (digital audio interface) interface or the ARC (Audio Return Channel, audio feedback channel) interface, where the spdif interface includes an optical fiber interface, and the ARC interface may be connected to the ARC device through an HDMI line, and the ARC device may be an HDMI amplifier connected to the display device through the HDMI line.
As shown in fig. 7, the pcm format audio stream played by the streaming media application end of the display device is sequentially processed by the audio playing service, the audio hardware interface layer and the decoder, and then subjected to audio mixing processing, and the processed audio stream is sent to the digital audio processor unit for processing, then integrated by the encoder and then returned to the digital audio processor unit after being processed by the audio mixer of the digital audio processor unit, and then output to the I2S (Inter-IC Sound) interface or the DAC (direct attach cable) interface.
In some embodiments, after the display device sends the audio stream to the hardware interface, such as the optical fiber interface, through the flow shown in fig. 7, if the volume adjustment command input by the user is received, the response method of the display device may refer to fig. 8.
As shown in fig. 8, the method for responding to the volume adjustment command by the display device may include the steps of:
step S301: the audio service agent receives the volume adjustment event.
In some embodiments, after a user inputs a volume adjustment instruction, the display device generates a volume adjustment event, and sends the volume adjustment event to the audio service agent for processing.
Step S302: and judging whether the volume adjustment authority exists.
In some embodiments, the audio service agent, upon receiving the volume adjustment event, determines whether it has volume adjustment rights.
Step S303: if the volume adjustment authority is not available, the volume adjustment process is exited.
In some embodiments, if the audio service agent determines that the audio service agent does not have the volume adjustment authority, the audio service agent exits the volume adjustment process and does not perform subsequent steps of volume adjustment.
Step S304: if the volume adjustment authority is provided, the volume adjustment event is transmitted to the audio service for processing.
In some embodiments, the audio service agent passes the volume adjustment event to the audio service for processing if it determines that there is volume adjustment authority.
Step S305: the audio service calculates a target gain value for the volume.
In some embodiments, after receiving the volume adjustment event, the audio service obtains an index (gain) value and an adjustment step size of a current sound output device of the display device, and calculates an adjusted index value, that is, a target gain value, according to the current gain value and the adjustment step size.
Step S306: the audio service determines whether the sound output device is a bluetooth device or an ARC device.
In some embodiments, the audio service performs a corresponding volume adjustment procedure according to the type of the sound output device, where when the sound output device is a bluetooth device or an ARC device, the volume of the sound output device may be adjusted to a target gain value through a corresponding drive, and when the sound output device is not a bluetooth device or an ARC device, the volume of the sound output device may not be adjusted to the target gain value through a corresponding drive, so the audio service may determine whether the sound output device is a bluetooth device or an ARC device.
Step S307: if not, the audio service initiates an audio policy service.
In some embodiments, the audio service initiates the audio policy service if the sound output device is not a bluetooth device or an ARC device. The audio policy service may determine the audio policy based on the audio output format and the audio output mode.
Step S308: the audio policy service determines whether the audio stream is in an active state when the audio policy is the first policy.
In some embodiments, if the audio policy service determines that the audio policy is the first policy, it may determine whether the audio stream is active, i.e., whether the display device is currently outputting the audio stream to the sound output device, if the audio stream is being output, the audio stream is active, and if the audio stream is not being output, the audio stream is inactive. If the display device is playing the media asset, the display device outputs the audio stream to the sound output device, and if the display device is not playing the media asset, for example, the current interface of the display device is a setting interface, the display device does not output the audio stream to the sound output device.
Step S309: if the audio track gain is in an active state, updating the audio track gain to a target gain value.
In some embodiments, if the audio policy service updates the track gain of the audio stream to the target gain value when the audio policy is the first policy and the audio stream is active.
In some embodiments, if the audio policy is the first policy and the audio stream is inactive, the process jumps to step S303, and exits the volume adjustment process.
Step S310: the audio policy service updates the target gain value to the audio hardware interface layer when the audio policy is the second policy.
In some embodiments, if the audio policy service determines that the audio policy is a second policy, the target gain value may be updated to the audio hardware interface layer.
Step S311: and the audio hardware interface layer updates the target gain value to the port corresponding to the current sound output device.
In some embodiments, the audio hardware interface layer may determine a port, such as a fiber optic interface, of a display device to which the current sound output device is connected, and update the gain value of the port to the target gain value.
Step S312: the audio driver layer plays the audio stream.
In some embodiments, after updating the gain of the port corresponding to the sound output device to the target gain value, the gain update of the display device at the device level is implemented, so that the gain of the audio stream output by the display device is updated. The display device transmits the audio stream to the audio driving layer, and the audio driving layer transmits the audio stream to the sound output device for playing, so that the volume adjustment of the sound output device is realized.
Step S313: if the audio service is a Bluetooth device or an ARC device, the audio service transmits the target gain value to the Bluetooth service layer or the HDMI CEC service layer.
In some embodiments, if the sound output device is a bluetooth device, the audio service communicates the target gain value to the bluetooth service layer; if the sound output device is an ARC device, the audio service passes the target gain value to the HDMI CEC service layer.
Step S314: the bluetooth service layer passes the target gain value to the bluetooth hardware interface layer.
In some embodiments, after receiving the target gain value, the bluetooth service layer passes the target gain value to the bluetooth hardware interface layer for processing.
Step S315: the bluetooth hardware interface layer passes the target gain value to the bluetooth driver.
In some embodiments, the bluetooth hardware interface layer receives the target gain value and then passes the target gain value to the bluetooth driver for processing.
Step S316: the bluetooth driver adjusts the volume of the bluetooth device according to the target gain value.
In some embodiments, after receiving the target gain value, the bluetooth driver sends the target gain value to a bluetooth device connected to the display device, and the bluetooth device adjusts the volume to the target gain value according to the target gain value.
Step S317: the HDMI CEC service layer passes the target gain value to the HDMI CEC hardware interface layer.
In some embodiments, after receiving the target gain value, the HDMI CEC service layer passes the target gain value to the HDMI CEC hardware interface layer for processing.
Step S318: the HDMI CEC hardware interface layer delivers the target gain value to the HDMI driver.
In some embodiments, the HDMI CEC hardware interface layer receives the target gain value and then passes the target gain value to the HDMI driver for processing.
Step S319: the HDMI driver adjusts the volume of the ARC device according to the target gain value.
In some embodiments, after receiving the target gain value, the HDMI driver sends the target gain value to an ARC device connected to the display device, and the ARC device adjusts the volume to the target gain value according to the target gain value.
To further illustrate the first and second policies of the audio policy service of fig. 8, fig. 9 shows a schematic flow chart of volume adjustment according to the first policy or the second policy, and as shown in fig. 9, the volume adjustment may include the following steps:
step S401: the audio policy service obtains a target gain value.
In some embodiments, the audio service calculates a target gain value for the audio stream and then sends the target gain value to the audio policy service.
Step S402: the audio policy service determines whether the audio format is non-PCM and the output mode is pass-through.
In some embodiments, the audio policy service, upon receiving the target gain value, may determine whether the audio format is non-PCM and the output mode is pass-through to determine the audio policy.
Step S403: if the audio format is non-PCM and the output mode is pass-through, the audio policy service determines if the audio stream is active.
In some embodiments, if the audio format is non-PCM and the output mode is transparent, the audio policy is determined to be the first policy, and since the first policy is to update the track gain of the audio stream in real time, it is necessary to determine whether the audio stream is in an active state.
Step S404: if not, the volume adjustment process is exited.
In some embodiments, the volume adjustment procedure is exited if the audio stream is not active, i.e., the display device is not currently transmitting the audio stream to the sound output device.
Step S405: if so, the audio policy service determines whether the audio stream is of variable gain.
In some embodiments, if the audio stream is active, i.e., the display device is currently transmitting the audio stream to the sound output device, it may be determined whether the audio stream is of variable gain. Since the audio stream is of an invariable gain, i.e. is of a fixed gain, the audio stream cannot be subjected to the audio track gain adjustment, so that whether the audio stream is of a variable gain can be judged first, and when the audio stream is of a variable gain, the audio track gain adjustment is performed.
Step S406: if the variable gain is used, the audio strategy service sets the audio stream gain as a target value-added benefit.
In some embodiments, if a variable gain, the audio policy service may set the audio stream gain to a target value-added benefit.
Step S407: the audio policy service sends the audio stream gain to the audio playback service.
In some embodiments, after the audio policy service sets the audio stream gain, the audio stream gain may be sent to the audio playback service for processing.
Step S408: the audio playback service updates the audio stream gain.
In some embodiments, the audio playback service may further apply the audio track gain of the audio stream to the audiotrack to effect a change in the audio stream gain.
Step S409: if the gain is not variable, the audio policy service sets the audio stream gain to 0db.
In some embodiments, if the gain is not variable, the audio policy service may set the audio stream gain to 0db, i.e. the audio stream gain is not adjusted, and then jump to step S407, and after step S407 and step S408 are sequentially performed, the updated audio stream gain is the same as before the update.
Step S410: if the audio format is PCM or the output mode is opaque, the audio policy service updates the target gain value to the audio hardware interface layer.
In some embodiments, if the audio format is PCM, or the output mode is opaque, the audio policy is determined to be a second-side policy. Based on the second policy, the audio policy service updates the target gain value to the audio hardware interface layer.
Step S411: and the audio hardware interface layer updates the target gain value to the port corresponding to the current sound output device.
In some embodiments, the audio hardware interface layer may determine a port of the display device to which the current sound output device is connected, and update a gain value of the port to a target gain value.
Step S412: the audio driver layer plays the audio stream.
In some embodiments, after updating the gain of the port corresponding to the sound output device to the target gain value, the gain update of the display device at the device level is implemented, so that the gain of the audio stream output by the display device is updated. The display device transmits the audio stream to the audio driving layer, and the audio driving layer transmits the audio stream to the sound output device for playing, so that the volume adjustment of the sound output device is realized.
For further explanation of the volume adjustment method provided in the embodiments of the present application, fig. 10 shows an interaction schematic diagram of each level in the operating system of the display device.
As shown in fig. 10, the streaming media application of the application layer, such as the vod program, can play the media requested by the user. After a user requests a media asset, the streaming media application starts the player through the framework layer. The player initiates an audio playback service that streams audio to the audio hardware interface layer. And the audio hardware interface layer transmits the audio stream to the sound output device for playing through the audio driving layer according to the sound output device connected with the display device.
After the user inputs the volume adjustment instruction, the application layer receives the volume adjustment event and transmits the volume adjustment event to the audio service of the framework layer for processing. The audio service may launch an audio policy service that determines the audio policy as either a first policy or a second policy. When the audio strategy is the first strategy, applying a target gain value to the audio track through the audio playing service to realize gain adjustment of the audio stream; and when the audio strategy is the second strategy, updating the target gain value to the audio hardware interface layer to realize the gain updating of the whole display equipment, and finally transmitting the audio stream after the gain updating to the volume output equipment for playing through the audio driving layer.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A display device, characterized by comprising:
a display;
a controller connected to the display and to the sound output device via an optical fiber, the controller configured to:
Receiving a volume adjustment instruction;
responding to the volume adjustment instruction, and calculating a target gain value of the display device according to the volume adjustment instruction;
determining an audio strategy according to the audio format of the audio stream output to the sound output device by the display device and the audio output mode of the display device;
and updating the track gain of the audio stream or the gain of a port of the display device connected with the sound output device to the target gain value according to the audio strategy.
2. The display device of claim 1, wherein the controller is configured to: determining an audio strategy according to the audio format and the audio output mode of the audio stream, wherein the audio strategy comprises the following steps:
determining an audio strategy as a first strategy according to the fact that the audio format of the audio stream is a non-PCM format and the audio output mode of the display device is transparent, wherein the first strategy is used for updating the track gain of the audio stream;
and determining an audio strategy as a second strategy according to the fact that the audio format of the audio stream is a PCM format or the audio output mode of the display device is non-transparent, wherein the second strategy is used for updating the gain of the port, connected with the sound output device, of the display device to the target gain value.
3. The display device of claim 2, wherein the controller is configured to: updating the audio track gain of the audio stream or the gain of the port of the display device connected to the sound output device to the target gain value according to the audio strategy, including:
when the audio strategy is the first strategy, updating the track gain of the audio stream to the target gain value through an audio playing service, so that the volume of the sound output device changes along with the gain update of the input audio stream.
4. A display device according to claim 3, wherein the controller is configured to: updating, by an audio playback service, an audio track gain of the audio stream to the target gain value when the audio policy is a first policy, previously configured to: and judging whether the audio stream is in an active state or not.
5. A display device according to claim 3, wherein the controller is configured to: updating, by an audio playback service, an audio track gain of the audio stream to the target gain value when the audio policy is a first policy, previously configured to: it is determined whether the track gain of the audio stream is a variable gain.
6. The display device of claim 2, wherein the controller is configured to: updating the audio track gain of the audio stream or the gain of the port of the display device connected to the sound output device to the target gain value according to the audio strategy, including:
and when the audio strategy is the second strategy, updating the gain of the port of the display device connected with the sound output device to the target gain value through an audio hardware interface layer, so that the volume of the sound output device changes along with the gain update of the port connected with the display device.
7. A method of volume adjustment, comprising:
receiving a volume adjustment instruction input to a display device, wherein the display device is connected with a sound output device through an optical fiber;
responding to the volume adjustment instruction, and calculating a target gain value of the display device according to the volume adjustment instruction;
determining an audio strategy according to the audio format of the audio stream output to the sound output device by the display device and the audio output mode of the display device;
and updating the track gain of the audio stream or the gain of a port of the display device connected with the sound output device to the target gain value according to the audio strategy.
8. The method of claim 7, wherein determining an audio strategy based on an audio format and an audio output mode of the audio stream comprises:
determining an audio strategy as a first strategy according to the fact that the audio format of the audio stream is a non-PCM format and the audio output mode of the display device is transparent, wherein the first strategy is used for updating the track gain of the audio stream;
and determining an audio strategy as a second strategy according to the fact that the audio format of the audio stream is a PCM format or the audio output mode of the display device is non-transparent, wherein the second strategy is used for updating the gain of the port, connected with the sound output device, of the display device to the target gain value.
9. The volume adjustment method of claim 8, wherein updating the track gain of the audio stream or the gain of the port of the display device to which the sound output device is connected to the target gain value according to the audio policy comprises:
when the audio strategy is the first strategy, updating the track gain of the audio stream to the target gain value through an audio playing service, so that the volume of the sound output device changes along with the gain update of the input audio stream.
10. The volume adjustment method of claim 8, wherein updating the track gain of the audio stream or the gain of the port of the display device to which the sound output device is connected to the target gain value according to the audio policy comprises:
and when the audio strategy is the second strategy, updating the gain of the port of the display device connected with the sound output device to the target gain value through an audio hardware interface layer, so that the volume of the sound output device changes along with the gain update of the port connected with the display device.
CN202311605471.0A 2023-11-28 2023-11-28 Display device and volume adjusting method Pending CN117812314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311605471.0A CN117812314A (en) 2023-11-28 2023-11-28 Display device and volume adjusting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311605471.0A CN117812314A (en) 2023-11-28 2023-11-28 Display device and volume adjusting method

Publications (1)

Publication Number Publication Date
CN117812314A true CN117812314A (en) 2024-04-02

Family

ID=90430692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311605471.0A Pending CN117812314A (en) 2023-11-28 2023-11-28 Display device and volume adjusting method

Country Status (1)

Country Link
CN (1) CN117812314A (en)

Similar Documents

Publication Publication Date Title
CN114302190B (en) Display equipment and image quality adjusting method
US11288033B2 (en) Method for outputting audio data of applications and display device
CN113014939A (en) Display device and playing method
CN113094142A (en) Page display method and display equipment
CN112752156A (en) Subtitle adjusting method and display device
CN112203154A (en) Display device
CN114302204B (en) Split-screen playing method and display device
CN112351334B (en) File transmission progress display method and display equipment
CN113593488A (en) Backlight adjusting method and display device
CN113490024A (en) Control device key setting method and display equipment
CN112637957A (en) Display device and communication method of display device and wireless sound box
CN113794919B (en) Display device and setting method of sounding device
CN112104950B (en) Volume control method and display device
CN115103144A (en) Display device and volume bar display method
CN117812314A (en) Display device and volume adjusting method
CN114007119A (en) Video playing method and display equipment
CN113971049A (en) Background service management method and display device
CN112363683A (en) Method for supporting multi-layer display of webpage application and display equipment
CN113766164B (en) Display equipment and signal source interface display method
CN113596543B (en) Method for preventing interference of Bluetooth equipment and display equipment
CN115412752B (en) Display device and sound effect processing method
CN114928762B (en) Display device and time zone information display method
CN116567333A (en) Display equipment and multi-window image quality display method
CN117915133A (en) Display device and video playing method
CN117834971A (en) Display equipment and method for displaying spaced play channels

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