Electronic device and control method
By setting up processors, controllers, audio codecs and switch modules in electronic devices, combined with input buttons, the problem of sound cannot be output after the notebook is connected is solved, and the intelligent control and synchronous display of sound signals are realized, improving the user experience.
Patent Information
- Application Number
- CN202110599206.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-31
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2041-05-31
AI Technical Summary
In the prior art, after the notebook is connected to the electronic device through a multimedia data cable, when the display module of the electronic device is used as an external display, the sound of the notebook cannot be intelligently output and control, resulting in the user being unable to completely leave the notebook.
By setting up a processor, a controller, an audio codec, a first switch module and a first output module in the electronic device, and through the cooperation of the first input button and the controller, the audio signal of the notebook is automatically transmitted to the output module of the electronic device after the multimedia data cable is connected, such as a headphone output module.
It is realized that when an electronic device is an external display, the user can control the transmission of sound signals to the output module by inputting buttons, improving the user experience, and the user can completely leave the notebook and watch the displayed content and listen to the sound synchronously.
Smart Images

Figure CN113360126B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to, but is not limited to, the field of control, and in particular to an electronic device and a control method. Background Art
[0002] When a laptop is connected to an electronic device via a multimedia data cable, the display module of the electronic device becomes an external display of the laptop. The user can see the content displayed on the laptop through the display module of the electronic device, but the sound output by the laptop cannot be intelligently controlled. Summary of the Invention
[0003] The technical solution of this application is achieved as follows:
[0004] An electronic device includes: a processor, a controller, an audio codec, a first switch module, a first output module and a first input button; wherein,
[0005] The processor is connected to the controller, the audio codec and the first input button respectively;
[0006] The audio codec is connected to the first output module via the first switch module;
[0007] The controller is connected to the first output module via the first switch module;
[0008] the processor being configured to, upon detecting that a multimedia data cable is connected to the multimedia data interface of the electronic device and obtaining a first touch operation of touching the first input button, generate a first switching instruction based on the first touch operation and send the instruction to the controller;
[0009] The controller is configured to respond to the first switching instruction, connect the path between the first interface in the multimedia data interface and the audio codec, and drive the first switch module to connect the audio codec and the first output module.
[0010] A control method is applied to the above-mentioned electronic device, and the method includes:
[0011] If the processor detects that a multimedia data cable is connected to the multimedia data interface of the electronic device and obtains a first touch operation of touching the first input button, it generates a first switching instruction based on the first touch operation and sends the instruction to the controller;
[0012] The controller responds to the first switching instruction, connects the path between the first interface in the multimedia data interface and the audio codec, and drives the first switch module of the electronic device to connect the audio codec of the electronic device and the first output module of the electronic device.
[0013] A computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps in the above control method.
[0014] The present application provides an electronic device and a control method, the electronic device comprising: a processor, a controller, an audio codec, a first switch module, a first output module and a first input button; the processor is respectively connected to the controller, the audio codec and the first input button; the audio codec is connected to the first output module via the first switch module; the controller is connected to the first output module via the first switch module; the processor is configured to, if it detects that a multimedia data cable is connected to the multimedia data interface of the electronic device and obtains a first touch operation of touching the first input button, generate a first switching instruction based on the first touch operation and send it to the controller; the controller is configured to respond to the first switching instruction, connect the path between the first interface in the multimedia data interface and the audio codec, and drive the first switch module to connect the audio codec The connection between the encoder and the first output module; that is, the present application changes the hardware circuit of the electronic device, and by setting the first input button, the controller and the first switch module, and setting the connection structure between the first input button, the controller and the first switch module and other hardware in the electronic device, it is ensured that when a multimedia data cable is connected to the multimedia data interface of the electronic device and a first touch operation of touching the first input button is obtained, the sound signal is transmitted to the first output module through the cooperation of the controller and the first switch module. In this way, when the electronic device is used as an external display for other devices, the sound signal of the other device controlled by the first input button can be transmitted to the first output module of the electronic device, such as the headphone output module, thereby improving the user experience of using the external electronic device as a display. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0016] Figure 2 A schematic diagram of mode switching of an electronic device provided in an embodiment of the present application;
[0017] Figure 3 A schematic diagram of an electronic device in a split-screen display scenario provided by an embodiment of the present application;
[0018] Figure 4 A schematic diagram of an electronic device in another split-screen display scenario provided by an embodiment of the present application;
[0019] Figure 5 A schematic structural diagram of another electronic device provided in an embodiment of the present application;
[0020] Figure 6 A flowchart of an information processing method provided in an embodiment of the present application;
[0021] Figure 7 A flowchart of another information processing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0024] See also Figure 1 As shown, an embodiment of the present application provides an electronic device 1, which includes: a processor 101, a controller 102, an audio codec 103, a first switch module 104, a first output module 105 and a first input button 21; wherein,
[0025] The processor 101 is connected to the controller 102, the audio codec 103 and the first input button 21 respectively;
[0026] The audio codec 103 is connected to the first output module 105 via the first switch module 104;
[0027] The controller 102 is connected to the first output module 105 via the first switch module 104;
[0028] The processor 101 is configured to, upon detecting that a multimedia data cable is connected to the multimedia data interface of the electronic device 1 and obtaining a first touch operation of touching a first input key, generate a first switching instruction based on the first touch operation and send the instruction to the controller 102;
[0029] The controller 102 is configured to respond to the first switching instruction, connect the path between the first interface of the multimedia data interface and the audio codec, and drive the first switch module 104 to connect the audio codec 103 and the first output module 105 .
[0030] In the embodiment of the present application, the electronic device 1 includes but is not limited to integrated devices such as an integrated computer, mobile terminal devices such as mobile phones, tablet computers, laptops, personal digital assistants (PDAs), cameras, and fixed terminal devices such as desktop computers.
[0031] In the embodiment of the present application, the multimedia data interface includes but is not limited to a High Definition Multimedia Interface (HDMI), a Display Port (DP) cable, and a Type-C interface.
[0032] HDMI is a fully digital video and audio transmission interface that can transmit uncompressed audio and video signals. DP is a digital video interface. Type-C is significantly smaller than Type-A and Type-B and is the latest Universal Serial Bus (USB) interface standard. This interface has no forward or reverse orientation and can be plugged in and out freely.
[0033] In related art, when a laptop is connected to an electronic device via a multimedia data cable, the display module of the electronic device becomes an external display for the laptop. The user can view the content displayed on the laptop through the display module of the electronic device, but the sound output from the laptop cannot be transmitted to the first output module of the electronic device. However, if the sound signal can only be transmitted to the speaker of the electronic device, for example, if the laptop user needs to wear headphones during a meeting, but the headphones still need to be plugged into the laptop, the user cannot completely disconnect from the laptop. As a result, the electronic device, as an external device of the laptop, can only be used as a display module.
[0034] The present application designs the hardware circuit of the electronic device 1. When the electronic device 1 is plugged into an HDMI or DP cable, if the other end of the HDMI or DP cable is connected to a laptop, the electronic device 1 controls the first switch 104 through the first input button 21 and the controller 102 to automatically transmit the sound signal played by the laptop to the first output module 105, such as the headphone output module, on the host of the electronic device 1, such as an integrated device. The display screen of the electronic device 1 can display content synchronized with the sound signal. At this time, the user can completely disconnect from the laptop and use the external electronic device 1 to view the display content and listen to the sound signal. When the external electronic device 1 is used as an external device for the laptop, the user can use wireless headphones or wired headphones to connect to the first output module 105 of the electronic device 1.
[0035] The electronic device 1 provided in the embodiment of the present application includes: a processor 101, a controller 102, an audio codec 103, a first switch module 104, and a first output module 105; wherein the processor 101 is connected to the controller 102 and the audio codec 103 respectively; the audio codec 103 is connected to the first output module 105 through the first switch module 104; the controller 102 is connected to the first output module 105 through the first switch module 104; the processor 101 is used to, if it detects that a multimedia data cable is connected to the multimedia data interface of the electronic device 1 and obtains a first touch operation of touching the first input button, generate a first switching instruction based on the first touch operation and send it to the controller 102; the controller 102 is used to respond to the first switching instruction, turn on the path between the first interface in the multimedia data interface and the audio codec, and drive the first switch module 104 to turn on the audio codec The encoder 103 is connected to the first output module 105; that is, the present application changes the hardware circuit of the electronic device 1, and by providing the first input button 21, the controller 102 and the first switch module 104, and providing the connection structure between the first input button 21, the controller 102 and the first switch module 104 and other hardware in the electronic device, it is ensured that when a multimedia data cable is connected to the multimedia data interface of the electronic device 1 and a first touch operation of touching the first input button is obtained, the sound signal is transmitted to the first output module 105 through the cooperation of the controller 102 and the first switch module 104. In this way, when the electronic device 1 is used as an external display for other devices, the sound signal of the other device controlled by the first input button can be transmitted to the first output module 105 of the electronic device 1, such as the headphone output module, thereby improving the user experience of using the external electronic device 1 as a display.
[0036] In other embodiments of this application, see Figure 1 As shown, Figure 1 The processor 101 is further configured to, when the audio codec 103 is connected to the first output module 105, generate a second switching instruction based on the second touch operation and send the instruction to the controller 102 if a second touch operation of touching the first input button 21 is obtained; wherein the touch parameters of the second touch operation are different from those of the first touch operation;
[0037] The controller 102 is configured to, in response to a second switching instruction, disconnect the path between the first interface and the audio codec 103, connect the path between the second interface of the multimedia data interface and the audio codec 103, and drive the first switch module 104 to connect the connection between the audio codec 103 and the first output module 105; wherein the second interface is an interface different from the first interface among the at least two interfaces included in the multimedia data interface. Exemplarily, the first interface and the second interface are any one of an embedded display port (EDP), HDMI, and DP. In other words, by performing different touch operations on the first input button 21, the path between one of the EDP / HDMI / DP interfaces and the audio codec 103 can be flexibly connected. In other words, through the improvement of the hardware circuit, the present application can switch between different modes by touch switching operation of the first input button 21 when the electronic device supports HDMI, EDP, or DP cable, and transmit sound to the speakers and headphones on the AIO host.
[0038] For example, there are three signal sources on the AIO host: EDP / HDMI / DP. The on-screen display (OSD) interface corresponding to each source is as follows: Figure 2 As shown, the default display mode is: all-in-one machine. After pressing the first input button 21 once, the controller 102 receives a signal, and the display output and sound output (speaker and headphone) will switch to wireless projection; after pressing the first input button 21 again, the controller 102 receives a signal, and the display output and sound output (speaker and headphone) will switch to a one-line connection. If you press the switch first input button 21 again, the controller 102 receives a signal, and the display output and sound output (speaker and headphone) will switch to the all-in-one machine. Switching the first input button 21 is a cyclic touch operation, and the display mode and sound output mode of the AIO host are switched in sequence between all-in-one machine → wireless projection → one-line connection.
[0039] In other embodiments of this application, see Figure 1 and Figure 3 As shown, Figure 1 The electronic device further comprises a display screen 23, Figure 3 The display 23 in Figure 1 The controller 102 is connected; wherein,
[0040] The controller 102 is also used to control the display screen 23 to perform split-screen display; and is used to respond to a first switching instruction, connect the path between the first interface corresponding to the first sub-screen after the split screen in the multimedia data interface and the audio codec 103, and drive the first switch module 104 to connect the connection between the audio codec 103 and the first output module 105.
[0041] For example, see Figure 3 The 1:1 split screen switching scenario shown in the figure assumes that the default sound output is on the left side when the screen is split in 1:1. By pressing the first input button 21, the sound output is switched to the right screen. At this time, the sound output corresponding to the second interface will be switched to the right screen when pressed again. At this time, the sound output corresponding to the first interface is switched.
[0042] In other embodiments of this application, see Figure 1 and Figure 4 As shown, Figure 1 The processor is further configured to, when the audio codec 103 is connected to the first output module 105, generate a second switching instruction based on the second touch operation and send it to the controller 102 if a second touch operation of touching the first input button 21 is obtained; wherein the touch parameters of the second touch operation are different from those of the first touch operation;
[0043] The controller 102 is used to respond to the second switching instruction, disconnect the path between the first interface and the audio codec 103, connect the path between the second interface corresponding to the second sub-screen after splitting the screen in the multimedia data interface and the audio codec 103, and drive the first switch module 104 to connect the connection between the audio codec 103 and the first output module 105; wherein the second interface is an interface different from the first interface among the at least two interfaces included in the multimedia data interface, and the second sub-screen is a screen different from the first sub-screen among the multiple sub-screens after splitting the screen.
[0044] For example, see Figure 4 In the 4-split screen switching scenario shown, assuming that the default sound output is on the all-in-one machine when the 4-split screen is on, by pressing Figure 1 The first input button 21 shown, the controller 102 receives a signal and switches the sound to wireless projection. Press it again, the controller 102 receives a signal and switches to a one-line connection. That is to say, in the 4-split screen switching scene, the sound switching is a cycle: all-in-one machine (for example, the sound corresponding to the fifth interface) → wireless projection (for example, the sound corresponding to the fourth interface) → one-line connection (for example, the sound corresponding to the third interface) → all-in-one machine (for example, the sound corresponding to the fifth interface).
[0045] In the examples of this application, see Figure 1 and Figure 5As shown, electronic device 1 further includes a first amplifier 106, which is disposed between first switch module 104 and first output module 105. First amplifier 106 is configured to amplify the audio signal transmitted by audio codec 103 and transmit the amplified audio signal to first output module 105. Disposing first amplifier 106 between first switch module 104 and first output module 105 allows the high-frequency portion of the audio signal output by first output module 105 to be more refined and extended, while also enhancing the layered nature of the low-frequency portion, thereby achieving a better sound output effect.
[0046] In the examples of this application, see Figure 5 As shown, the electronic device 1 further includes: a second input button 22, a second switch module 107 and a second output module 108; wherein,
[0047] The second input button 22 is connected to the processor 101;
[0048] The second switch module 107 is connected to the controller 102;
[0049] The audio codec 103 is connected to the second output module 108 via the second switch module 107;
[0050] The processor 101 is further configured to, if it is detected that a multimedia data cable is connected to the multimedia data interface and a third touch operation of touching the second input key is obtained, generate a second switching instruction based on the third touch operation and send it to the controller 102;
[0051] The controller 102 is configured to respond to the second switching instruction, connect the first interface and the audio codec 103 , drive the first switch module 104 to close, and drive the second switch module 107 to connect the audio codec 103 and the second output module 108 .
[0052] In the embodiment of the present application, through the circuit design of the hardware of the electronic device 1, when the electronic device 1 is plugged into an HDMI or DP cable, if the other end of the HDMI or DP cable is connected to a laptop, the electronic device 1 controls the first switch module 104 and the second switch module 107 through the controller 102 to cooperate with each other, and automatically transmits the sound signal played by the laptop to the second output module 108 on the host of the electronic device 1, such as an integrated device, and the display screen of the electronic device 1 can display content synchronized with the sound signal.
[0053] In the examples of this application, see Figure 5 As shown, the electronic device 1 further includes:
[0054] The second amplifier 109 is disposed between the second switch module 107 and the second output module 108. The second amplifier 109 is used to amplify the audio signal transmitted by the audio codec 103 and transmit the amplified audio signal to the second output module 108. The second amplifier 109 is disposed between the second switch module 107 and the second output module 108 to control the high-frequency portion of the audio signal output by the second output module 108 to be more delicate and extended, while also enhancing the layering of the low-frequency portion, thereby achieving a better sound output effect.
[0055] In the embodiment of the present application, the input buttons included in the electronic device 1, such as the first input button 21 and the second input button 22, can be set on the surface of the electronic device 1 facing the user, or on the side of the electronic device. The present application does not specifically limit the position of the input buttons on the electronic device 1. The input buttons are connected to the processor 101, wherein:
[0056] The processor 101 is also used to generate a switching instruction based on the operation if it detects that a multimedia data cable is connected to the multimedia data interface of the electronic device 1 and receives an operation of the touch input key; wherein the switching instruction includes a first switching instruction corresponding to the operation of the first key on the touch input key, or a second switching instruction corresponding to the operation of the second key on the touch input key.
[0057] The present application designs the hardware circuit of the electronic device 1. When the electronic device 1 is plugged into an HDMI or DP cable, the electronic device 1 can automatically transmit sound to the second output module 108 and the first output module 105 on the host of the electronic device 1 based on the operation of the touch input button.
[0058] Of course, in the embodiment of the present application, the external input buttons of the Type-C interface of the electronic device 1, including the first input button and the second input button, can also be used to make a judgment to add logical judgment, and then the electronic device 1 can choose to transmit the sound to the second output module 108 or the first output module 105 on the host of the electronic device 1 according to the judgment result.
[0059] It should be noted that, for the description of the same components and contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.
[0060] The embodiment of the present application provides a control method, which is applied to the electronic device 1 provided in the above embodiment, referring to Figure 6 As shown, the method includes:
[0061] Step 201: If the processor detects that a multimedia data cable is connected to the multimedia data interface of the electronic device and obtains a first touch operation of touching a first input button, a first switching instruction is generated based on the first touch operation and sent to a controller.
[0062] Step 202: The controller responds to the first switching instruction to connect the first interface of the multimedia data interface to the audio codec, and drives the first switch module of the electronic device to connect the audio codec of the electronic device to the first output module of the electronic device.
[0063] The control method provided in the embodiment of the present application is as follows: if the processor detects that a multimedia data cable is connected to the multimedia data interface of the electronic device and obtains the first touch operation of touching the first input button, a first switching instruction is generated based on the first touch operation and sent to the controller; the controller responds to the first switching instruction, connects the path between the first interface in the multimedia data interface and the audio codec, and drives the first switch module of the electronic device to connect the connection between the audio codec of the electronic device and the first output module of the electronic device; that is, the present application changes the hardware circuit of the electronic device to ensure that when a multimedia data cable is connected to the multimedia data interface of the electronic device, the sound signal is transmitted to the first output module through the cooperation of the controller and the first switch module. In this way, when the electronic device serves as an external display for other devices, the sound signal of the other devices can be transmitted to the first output module of the electronic device, thereby improving the user experience of using the external electronic device as a display.
[0064] The embodiment of the present application provides a control method, which is applied to the electronic device 1 provided in the above embodiment, referring to Figure 7 As shown, the method includes steps 301 to 303 or steps 301, 304 and 305:
[0065] Step 301: The processor detects that a multimedia data cable is connected to a multimedia data interface of an electronic device.
[0066] Step 302: Acquire a first touch operation of touching a first input button, generate a first switching instruction based on the first touch operation, and send the instruction to a controller.
[0067] Step 303: The controller responds to the first switching instruction to connect the first interface of the multimedia data interface to the audio codec, and drives the first switch module of the electronic device to connect the audio codec of the electronic device to the first output module of the electronic device.
[0068] Step 304: Acquire a third touch operation of touching the second input button, generate a second switching instruction based on the third touch operation, and send the second switching instruction to the controller.
[0069] Step 305 : The controller responds to the second switching instruction, connects the path between the first interface and the audio codec, drives the first switch module to close, and drives the second switch module to connect the audio codec and the second output module.
[0070] In an embodiment of the present application, the electronic device may further amplify the audio signal transmitted by the audio codec through a first amplifier, and transmit the amplified audio signal to a first output module; alternatively, the electronic device may further amplify the audio signal transmitted by the audio codec through a second amplifier, and transmit the amplified audio signal to a second output module.
[0071] The present application provides a control method, including: if a processor detects that a multimedia data cable is connected to the multimedia data interface of an electronic device; when a first touch operation of touching a first input button is obtained, a first switching instruction is generated based on the first touch operation and sent to a controller; the controller responds to the first switching instruction, connects the path between the first interface in the multimedia data interface and the audio codec, and drives the first switch module of the electronic device to connect the audio codec of the electronic device and the first output module of the electronic device; when a third touch operation of touching a second input button is obtained, a second switching instruction is generated based on the third touch operation and sent to the controller; the controller responds to the second switching instruction, connects the path between the first interface and the audio codec, drives the first switch module to close, and drives the second switch module to connect the audio codec and the second output module; that is, the present application performs a control on the hardware circuit of the electronic device. The present invention provides a method for changing the configuration of the electronic device by providing a first input button, a second input button, a controller and a first switch module, as well as providing a connection structure between the first input button, the second input button, the controller and the first switch module and other hardware in the electronic device, so as to ensure that when a multimedia data cable is connected to the multimedia data interface of the electronic device and a first touch operation of touching the first input button is obtained, the sound signal is transmitted to the first output module through the cooperation of the controller and the first switch module; when a multimedia data cable is connected to the multimedia data interface of the electronic device and a third touch operation of touching the second input button is obtained, the sound signal is transmitted to the second output module through the cooperation of the controller and the first switch module. In this way, when the electronic device is used as an external display for other devices, the sound signal of the other devices controlled by the first input button can be transmitted to the first output module of the electronic device, such as the headphone output module, thereby improving the user experience of using the external electronic device as a display.
[0072] The description of the above device embodiment is similar to the description of the above method embodiment and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0073] It should be noted that in the embodiment of the present application, if the above-mentioned information processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a terminal device to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0074] An embodiment of the present application provides a computer-readable storage medium storing one or more programs. The one or more programs can be executed by one or more processors to implement the following steps:
[0075] If the processor detects that a multimedia data cable is connected to the multimedia data interface of the electronic device and obtains a first touch operation of touching the first input button, it generates a first switching instruction based on the first touch operation and sends it to the controller;
[0076] The controller responds to the first switching instruction to connect the path between the first interface in the multimedia data interface and the audio codec, and drives the first switch module of the electronic device to connect the audio codec of the electronic device and the first output module of the electronic device.
[0077] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:
[0078] If the processor detects that a multimedia data cable is connected to the multimedia data interface and obtains a third touch operation of touching the second input button, it generates a second switching instruction based on the third touch operation and sends it to the controller;
[0079] The controller responds to the second switching instruction to connect the path between the first interface and the audio codec, drives the first switch module to close, and drives the second switch module to connect the audio codec and the second output module.
[0080] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:
[0081] The audio signal transmitted by the audio codec is amplified, and the amplified audio signal is transmitted to the first output module; or the audio signal transmitted by the audio codec is amplified, and the amplified audio signal is transmitted to the second output module.
[0082] As an example, a processor can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where a general-purpose processor can be a microprocessor or any conventional processor, etc.
[0083] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0084] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0085] It should be understood that the “one embodiment” or “an embodiment” or “an embodiment of the present application” or “the aforementioned embodiment” or “some embodiments” or “some implementation methods” mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, “in one embodiment” or “in an embodiment” or “an embodiment of the present application” or “the aforementioned embodiment” or “some embodiments” or “some implementation methods” appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.
[0086] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0087] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0088] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above-mentioned integrated units can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0089] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0090] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0091] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0092] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.
[0093] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0094] It is worth noting that the drawings in the embodiments of the present application are only for illustrating the schematic positions of the various components on the terminal device and do not represent the actual positions in the terminal device. The actual positions of the various components or areas may be changed or offset accordingly according to actual conditions (for example, the structure of the terminal device), and the proportions of different parts of the terminal device in the drawings do not represent the actual proportions.
[0095] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. An electronic device, comprising: Processor, controller, audio codec, first switch module, first output module, first input button and display screen; wherein, The processor is connected to the controller, the audio codec and the first input button respectively; The audio codec is connected to the first output module via the first switch module; The controller is connected to the first output module via the first switch module; The display screen is connected to the controller for performing split-screen display; the display screen includes at least one sub-screen; The processor is configured to, upon detecting that a multimedia data cable is connected to the multimedia data interface of the electronic device and obtaining a first touch operation of touching the first input button, generate a first switching instruction based on the first touch operation and send the instruction to the controller; the first input button is further configured to trigger a touch switching operation; the touch switching operation is configured to switch between the multiple sub-screens of the display screen, so that the electronic device outputs different sound data corresponding to different sub-screens; The controller is configured to respond to the first switching instruction, connect the path between the first interface in the multimedia data interface and the audio codec, and drive the first switch module to connect the audio codec and the first output module.
2. The electronic device according to claim 1, wherein the processor is further configured to, when the audio codec is connected to the first output module, generate a second switching instruction based on a second touch operation of touching the first input key and send the instruction to the controller; wherein The touch parameters of the second touch operation are different from those of the first touch operation; The controller is configured to respond to the second switching instruction, disconnect the path between the first interface and the audio codec, connect the path between the second interface in the multimedia data interface and the audio codec, and drive the first switch module to connect the audio codec and the first output module; wherein the second interface is one of the at least two interfaces included in the multimedia data interface that is different from the first interface.
3. The electronic device according to claim 1, the controller is further used to control the display screen to perform split-screen display; and is used to respond to the first switching instruction, connect the path between the first interface in the multimedia data interface corresponding to the first sub-screen after splitting the screen and the audio codec, and drive the first switch module to connect the connection between the audio codec and the first output module.
4. The electronic device according to claim 3, wherein the processor is further configured to, when the audio codec is connected to the first output module, generate a second switching instruction based on a second touch operation of touching the first input key and send the instruction to the controller; wherein The touch parameters of the second touch operation are different from those of the first touch operation; The controller is used to respond to the second switching instruction, disconnect the path between the first interface and the audio codec, connect the path between the second interface corresponding to the second sub-screen after splitting the screen in the multimedia data interface and the audio codec, and drive the first switch module to connect the connection between the audio codec and the first output module; wherein, the second interface is an interface different from the first interface among the at least two interfaces included in the multimedia data interface, and the second sub-screen is a screen different from the first sub-screen among the multiple sub-screens after splitting the screen.
5. The electronic device according to claim 1, further comprising: A first amplifier is provided between the first switch module and the first output module, wherein the first amplifier is used to amplify the audio signal transmitted by the audio codec and transmit the amplified audio signal to the first output module.
6. The electronic device according to claim 1, further comprising: A second input button, a second switch module and a second output module; wherein, The second input button is connected to the processor; The second switch module is connected to the controller; The audio codec is connected to the second output module via the second switch module; The processor is further configured to, if detecting that the multimedia data cable is connected to the multimedia data interface and obtaining a third touch operation of touching the second input button, generate a second switching instruction based on the third touch operation and send the instruction to the controller; The controller is configured to respond to the second switching instruction, connect the path between the first interface and the audio codec, drive the first switch module to close, and drive the second switch module to connect the audio codec and the second output module.
7. The electronic device according to claim 6, further comprising: A second amplifier is provided between the second switch module and the second output module, wherein the second amplifier is used to amplify the audio signal transmitted by the audio codec and transmit the amplified audio signal to the second output module.
8. The electronic device according to any one of claims 1 to 7, wherein the electronic device is an integrated device.
9. A control method, applied to the electronic device according to any one of claims 1 to 8, the method comprising: If the processor detects that a multimedia data cable is connected to the multimedia data interface of the electronic device and obtains a first touch operation of touching the first input button, a first switching instruction is generated based on the first touch operation and sent to the controller; the first input button is also used to trigger the touch switching operation; the touch switching operation is used to switch between multiple sub-screens of the display screen, so that the electronic device outputs different sound data corresponding to different sub-screens; the display screen is connected to the controller for split-screen display; the display screen includes at least one sub-screen; The controller responds to the first switching instruction, connects the path between the first interface in the multimedia data interface and the audio codec, and drives the first switch module of the electronic device to connect the audio codec of the electronic device and the first output module of the electronic device.
10. The method according to claim 9, further comprising: If the processor detects that a multimedia data cable is connected to the multimedia data interface and obtains a third touch operation of touching the second input button, it generates a second switching instruction based on the third touch operation and sends the instruction to the controller; The controller responds to the second switching instruction to connect the first interface and the audio codec, drives the first switch module to close, and drives the second switch module to connect the audio codec and the second output module.
Citation Information
Patent Citations
Audio-frequency data processing method and electronic equipment
CN107678728A