[go: up one dir, main page]

TWI564790B - Structure for automatically detecting and switching audio sources in display device and determining method thereof - Google Patents

Structure for automatically detecting and switching audio sources in display device and determining method thereof Download PDF

Info

Publication number
TWI564790B
TWI564790B TW105101607A TW105101607A TWI564790B TW I564790 B TWI564790 B TW I564790B TW 105101607 A TW105101607 A TW 105101607A TW 105101607 A TW105101607 A TW 105101607A TW I564790 B TWI564790 B TW I564790B
Authority
TW
Taiwan
Prior art keywords
sound source
source
line input
temporary storage
value
Prior art date
Application number
TW105101607A
Other languages
Chinese (zh)
Other versions
TW201727474A (en
Inventor
張家豪
賴錦泉
Original Assignee
冠捷投資有限公司
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 冠捷投資有限公司 filed Critical 冠捷投資有限公司
Priority to TW105101607A priority Critical patent/TWI564790B/en
Application granted granted Critical
Publication of TWI564790B publication Critical patent/TWI564790B/en
Publication of TW201727474A publication Critical patent/TW201727474A/en

Links

Landscapes

  • Television Receiver Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

顯示器自動偵測及切換音源來源之結構及其判斷方法 Display automatic detection and switching source structure and its judgment method

本發明是有關於一種顯示器,且特別是有關於一種有關自動偵測及切換音源來源之顯示器結構及其判斷方法。 The present invention relates to a display, and more particularly to a display structure for automatically detecting and switching a source of sound and a method for determining the same.

當前的顯示器,除了基礎的顯示功能外,有些還會搭載揚聲器,而根據不同的輸入源,有些是僅有影像的,而有些是包含有影像及音源的。 Current displays, in addition to the basic display functions, some will also be equipped with speakers, and depending on the input source, some are only images, and some contain images and sources.

具體來說,當前VGA與DVI的介面是只有影像而沒有聲音,所以這類型只有類比音源可以搭配;而HDMI與DP介面是包含有影像及聲音,如此音源預設值為訊號本身的音源,但是也可以手動設定來搭配類比輸入的音源。 Specifically, the current VGA and DVI interface is only image and no sound, so this type can only be matched with the analog source; while the HDMI and DP interfaces contain images and sounds, so the default value of the source is the source of the signal itself, but It can also be manually set to match the audio input of the analog input.

由上述可知,顯示器可以連接的訊號來源種類很多,當中包含了有影像沒音源及有影像有音源的兩大種類,而針對音源部份來說,根據不同的訊號來源,使用者就必須要隨時去手動切換音源來源,如此一來,將會造成使用上的不便利性。 As can be seen from the above, there are many types of signal sources that can be connected to the display, including two types of video sources and audio sources. For the audio source, users must always have different signal sources. To manually switch the source of the sound source, this will cause inconvenience in use.

本發明的目的在提出一種讓顯示器能夠自動切換至有聲音輸入的音源,不必使用者頻繁的進行手動設定音源。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a sound source that allows a display to be automatically switched to a sound input without the need for the user to manually set the sound source frequently.

為達到上述目的,本發明提出一種顯示器自動偵測及切換音源來源之結構及其判斷方法。 In order to achieve the above object, the present invention provides a structure for automatically detecting and switching a source of a sound source and a method for determining the same.

其自動偵測及切換音源來源之結構包含:一縮放器;一線路輸入模組,與該縮放器連接,並判斷是否有外部線路連接;一類比數位轉換器,與該縮放器及該線路輸入模組連接;及一音源開關模組,與該縮放器及類比數位轉換器連接,並根據線路輸入的狀況及使用者設定,將音源進行輸出。 The structure for automatically detecting and switching the source of the sound source comprises: a scaler; a line input module connected to the scaler and determining whether there is an external line connection; an analog-to-digital converter, the scaler and the line input The module is connected; and a sound source switch module is connected with the scaler and the analog digital converter, and outputs the sound source according to the line input condition and the user setting.

延續上述,當中顯示器更包含:一顯示模組;一揚聲模組,與該音源開關模組連接;及一屏幕功能選單模組,與該顯示模組及該音源開關模組連接,並作為設定音源輸入優先權或固定音源輸入使用。 Continuing the above, the display further includes: a display module; a speaker module connected to the sound source switch module; and a screen function menu module connected to the display module and the sound source switch module, and Set the source input priority or fixed source input.

延續上述,當中線路輸入模組包含:一線路輸入檢測單元,與該類比數位轉換器連接;及至少一線路輸入連接埠,該線路輸入連接埠與該類比數位轉換器及該線路輸入檢測單元連接。 Continuing the above, the line input module comprises: a line input detecting unit connected to the analog digital converter; and at least one line input port, the line input port is connected to the analog bit converter and the line input detecting unit .

延續上述,當中音源開關模組包含:一第一音源輸入埠,供該縮放器進行連接;一選擇輸入埠,供該縮放器進行連接;一第二音源輸入埠,供該線路輸入連接埠進行連接;及 一音源輸出埠,與該揚聲模組進行連接。 Continuing the above, the intermediate sound source switch module includes: a first sound source input port for the scaler to connect; a selection input port for the scaler to connect; and a second sound source input port for the line input port to perform Connection; and A sound source output port is connected to the speaker module.

而自動偵測及切換音源來源之其判斷方法包含:(S1)進行初始化,將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第一變數暫存區;(S2)將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第二變數暫存區;(S3)判斷第一變數暫存區的值是否等於第二變數暫存區的值;(S4)判斷第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行副判斷程序或使用視頻複合音源輸入;(S5)將第一變數暫存區的值設為第二變數暫存區的值;(S6)判斷第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行屏幕功能選單設定或直接結束。 The method for automatically detecting and switching the source of the sound source includes: (S1) initializing, reading the current state of the line input module, and storing the current state value to the first variable temporary storage area; (S2) reading Taking the current state of the line input module, and storing the value of the current state to the second variable temporary storage area; (S3) determining whether the value of the first variable temporary storage area is equal to the value of the second variable temporary storage area; (S4) determining Whether the value of the first variable temporary storage area is a connection, and selectively performs a secondary determination process or uses a video composite sound source input according to the determination result; (S5) setting the value of the first variable temporary storage area as the second variable temporary storage area (S6) determining whether the value of the first variable temporary storage area is a connection, and selectively performing a screen function menu setting or directly ending according to the determination result.

藉由上述技術手段,根據使用者預設的設定值,可以固定在線路輸入或視頻複合音源,也可以決定同時有線路輸入或視頻複合音源,何者有著較高的優先權,使其自動進行切換,藉此讓使用者不需要進行過度的設定即可快速使用,讓使用上更顯便利。 According to the above technical means, according to the preset value set by the user, the line input or the video composite sound source can be fixed, or the line input or the video composite sound source can be determined at the same time, which has a higher priority, so that it automatically switches. This allows users to quickly use without having to make excessive settings, making it easier to use.

為讓本發明上述和其他目的、特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下。 The above and other objects, features and advantages of the present invention will become more <RTIgt;

1‧‧‧顯示器 1‧‧‧ display

11‧‧‧縮放器 11‧‧‧Scaler

12‧‧‧線路輸入模組 12‧‧‧Line Input Module

121‧‧‧線路輸入檢測單元 121‧‧‧Line input detection unit

122‧‧‧線路輸入連接埠 122‧‧‧Line input port埠

13‧‧‧類比數位轉換器 13‧‧‧ Analog Digital Converter

14‧‧‧音源開關模組 14‧‧‧Source switch module

141‧‧‧第一音源輸入埠 141‧‧‧First source input埠

142‧‧‧選擇輸入埠 142‧‧‧Select input埠

143‧‧‧第二音源輸入埠 143‧‧‧Second audio input 埠

144‧‧‧音源輸出埠 144‧‧‧Source output埠

15‧‧‧顯示模組 15‧‧‧Display module

16‧‧‧揚聲模組 16‧‧‧ Speaker Module

17‧‧‧屏幕功能選單模組 17‧‧‧Screen function menu module

S1‧‧‧進行初始化,將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第一變數暫存區 S1‧‧‧ initialization, will read the current state of the line input module, and store the current state value to the first variable temporary storage area

S11‧‧‧顯示PC畫面 S11‧‧‧Display PC screen

S2‧‧‧將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第二變數暫存區 S2‧‧‧ will read the current state of the line input module and store the current state value to the second variable temporary storage area

S3‧‧‧判斷第一變數暫存區的值是否等於第二變數暫存區的值 S3‧‧‧Review whether the value of the first variable temporary storage area is equal to the value of the second variable temporary storage area

S4‧‧‧判斷第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行副判斷程序或使用視頻複合音源輸入 S4‧‧‧Review whether the value of the first variable temporary storage area is connected, and selectively perform the secondary judgment procedure or use the video composite sound source input according to the judgment result

S5‧‧‧將第一變數暫存區的值設為第二變數暫存區的值 S5‧‧‧ Set the value of the first variable temporary storage area as the value of the second variable temporary storage area

S6‧‧‧判斷第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行屏幕功能選單設定或直接結束 S6‧‧‧Review whether the value of the first variable temporary storage area is connected, and selectively perform the screen function menu setting or directly end according to the judgment result

S1'‧‧‧初始化:讀取線路輸入裝置狀態,並將"接上"或"未接上"儲存至變數線路輸入最終狀態 S1'‧‧‧Initialization: Read the line input device status and store "connected" or "not connected" to the variable line input final state

S2'‧‧‧讀取線路輸入裝置狀態,並將"接上"或"未接上"儲存至變數線路輸入臨時狀態 S2'‧‧‧Read the line input device status and store "connected" or "not connected" to the variable line input temporary status

S3'‧‧‧判斷線路輸入臨時狀態是否等同線路輸入最終狀態? S3'‧‧‧ Is the line input temporary status equal to the line input final state?

S41'‧‧‧判斷線路輸入最終狀態是否為"接上"? S41'‧‧‧ Is it judged whether the final state of the line input is "connected"?

S42‧‧‧進行副判斷程序 S42‧‧‧Sub-judgment procedure

S43‧‧‧使用HDMI/DP為音源 S43‧‧‧Using HDMI/DP as the sound source

S5'‧‧‧將線路輸入最終狀態的值給於線路輸入臨時狀態 S5'‧‧‧ gives the value of the line input final state to the line input temporary status

S6'‧‧‧判斷線路輸入最終狀態是否為"接上"? S6'‧‧‧ Is it judged whether the final state of the line input is "connected"?

S61‧‧‧顯示音源設定選單OSD S61‧‧‧Display source setting menu OSD

S62‧‧‧使用者選擇音源設定並儲存至音頻設置 S62‧‧‧Users select the source settings and save to the audio settings

S63‧‧‧關閉OSD S63‧‧‧Close OSD

S4310‧‧‧音頻設置是否為固定於線路輸入 S4310‧‧‧Is the audio setting fixed to the line input?

S4311‧‧‧音頻設置是否為固定於視頻複合音源 S4311‧‧‧Is the audio setting fixed to the video composite source?

S4312‧‧‧音頻設置是否為自動切換但視頻複合音源有較高優先權 S4312‧‧‧Is the audio setting automatic switching but the video composite source has higher priority

S4313‧‧‧音頻設置是否為自動切換但線路輸入有較高優先權 S4313‧‧‧Is the audio setting automatic switching but the line input has higher priority

S4314、S4319、S4320‧‧‧使用線路輸入為音源 S4314, S4319, S4320‧‧‧ use line input as the sound source

S4315、S4318、S4321‧‧‧使用視頻複合音源為音源 S4315, S4318, S4321‧‧‧ use video composite audio source as the sound source

S4316‧‧‧視頻複合音源是否有收到聲音封包 S4316‧‧‧Whether the video composite audio source has received the sound packet

S4317‧‧‧類比數位轉換器是否偵測到線路輸入有聲音輸入 Does the S4317‧‧‧ analog digital converter detect a line input with an audible input?

圖1為顯示器的結構方塊圖; 圖2為線路輸入檢測單元的硬體電路圖;圖3為自動偵測及切換音源來源判斷方法的流程圖;圖4為自動偵測及切換音源來源判斷方法的主判斷程序流程圖;圖5為自動偵測及切換音源來源判斷方法的副判斷程序流程圖;及圖6為OSD選單中針對音源來源選擇的選單示意圖。 Figure 1 is a block diagram showing the structure of the display; 2 is a hardware circuit diagram of the line input detecting unit; FIG. 3 is a flow chart of the method for automatically detecting and switching the source of the sound source; FIG. 4 is a flowchart of the main determining program for automatically detecting and switching the source source determining method; A flowchart of the sub-determination program for automatically detecting and switching the source source judging method; and FIG. 6 is a schematic diagram of a menu for the source source selection in the OSD menu.

在以下實施例中,相同或相似的元件符號代表相同或相似的元件。此外,以下實施例中所提到的方向用語,例如:上、下、左、右、前或後等,僅是參考附加圖式的方向,因此,使用的方向用語是用來說明的,而並非用來限制本發明。 In the following embodiments, the same or similar component symbols represent the same or similar components. In addition, the directional terms mentioned in the following embodiments, for example, up, down, left, right, front or back, etc., refer only to the direction of the additional drawing, and therefore, the directional term used is used for explanation, and It is not intended to limit the invention.

請參考圖1,為顯示器的結構方塊圖,由圖中可以清楚明瞭的得知本發明的整體架構,顯示器1有著基本的使用端物件如顯示模組15、揚聲模組16及屏幕功能選單模組17,同樣也有一些顯示時必要的功能,如縮放器11、線路輸入模組12、類比數位轉換器13及音源開關模組14,線路輸入模組12包含了線路輸入檢測單元121及線路輸入連接埠122,第一音源輸入埠141及選擇輸入埠142與縮放器11連接,第二音源輸入埠143與線路輸入連接埠122連接,而音源輸出埠144與揚聲模組16連接;當中,視頻複合音源(如HDMI或DP)直接輸入至縮放器11,而類比音源輸入到線路輸入連接埠122。 Please refer to FIG. 1 , which is a structural block diagram of the display. The overall structure of the present invention can be clearly seen from the figure. The display 1 has basic use end objects such as the display module 15 , the speaker module 16 and the screen function menu. The module 17 also has some functions necessary for display, such as a scaler 11, a line input module 12, an analog digital converter 13 and a sound source switch module 14. The line input module 12 includes a line input detecting unit 121 and a line. The input port 122, the first source input port 141 and the selection input port 142 are connected to the scaler 11, the second sound source input port 143 is connected to the line input port 122, and the sound source output port 144 is connected to the speaker module 16; The video composite source (such as HDMI or DP) is directly input to the scaler 11, and the analog source is input to the line input port 122.

請參考圖2,為線路輸入檢測單元的硬體電路圖,由圖中可以清楚明瞭的得知線路輸入檢測單元121的實體電路為何,第一接點為電話連接埠,第二接點及第四接點分別對應第三接點及第五接點,Vcc與接地之間有著一個電 阻與電容,而檢測點則在電阻與電容之間,透過這樣的電路架構,即可得知是否接上類比音源輸入訊號線。 Please refer to FIG. 2 , which is a hardware circuit diagram of the line input detecting unit. It can be clearly seen from the figure that the physical circuit of the line input detecting unit 121 is known. The first contact is a telephone connection, the second contact and the fourth. The contacts correspond to the third contact and the fifth contact respectively, and there is a power between Vcc and ground. The resistance is connected to the capacitor, and the detection point is between the resistor and the capacitor. Through such a circuit structure, it can be known whether the analog input signal line is connected.

請參考圖3,為自動偵測及切換音源來源判斷方法的流程圖,主要包含了步驟S1~S6,其說明如下:步驟S1,主要進行了初始化,讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第一變數暫存區;步驟S2,將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第二變數暫存區;步驟S3,進行判斷,第一變數暫存區的值是否等於第二變數暫存區的值,如相同進行S4,如不相同進行S5;步驟S4,進行另一判斷,第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行副判斷程序或使用視頻複合音源輸入,並於完成後返回S2;步驟S5,進行設定,將第一變數暫存區的值設為第二變數暫存區的值;步驟S6,進行另一判斷,第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行屏幕功能選單設定或直接返回S2,當屏幕功能選單設定完成後返回S2。 Please refer to FIG. 3 , which is a flowchart of a method for automatically detecting and switching the source of the sound source, and mainly includes steps S1 to S6, which are described as follows: Step S1 is mainly initialized, and the current state of the line input module is read, and The value of the current state is stored in the first variable temporary storage area; in step S2, the current state of the line input module is read, and the value of the current state is stored in the second variable temporary storage area; in step S3, the determination is made, the first variable Whether the value of the temporary storage area is equal to the value of the second variable temporary storage area, if the same is performed for S4, if not the same, S5; for step S4, another determination is made, whether the value of the first variable temporary storage area is connected, and according to the judgment As a result, the sub-judgment process is selectively performed or the video composite audio source is input, and after completion, the process returns to S2; in step S5, the setting is performed, and the value of the first variable temporary storage area is set as the value of the second variable temporary storage area; step S6, Another judgment is made as to whether the value of the first variable temporary storage area is a connection, and the screen function menu setting is selectively performed according to the judgment result or directly returns to S2, and when the screen function menu setting is completed, the process returns to S2.

透過這樣的方式,即可讓顯示器根據設定值來自動選擇並切換音源,讓整體使用上不需要過度的進行手動切換調整。 In this way, the display can automatically select and switch the sound source according to the set value, so that the overall use does not require excessive manual switching adjustment.

請參考圖4,為自動偵測及切換音源來源判斷方法的主判斷程序流程圖,在此提出了一個實際應用例,說明如下: S1':初始化:讀取線路輸入裝置狀態,並將"接上"或"未接上"儲存至變數線路輸入最終狀態,並於完成後進行S11;S11:顯示PC畫面,並於完成後進行S2';S2':讀取線路輸入裝置狀態,並將"接上"或"未接上"儲存至變數線路輸入臨時狀態,並於完成後進行S3';S3':判斷線路輸入臨時狀態是否等同線路輸入最終狀態?如為是的話進入S41',如為否的話進入S5';S41':判斷線路輸入最終狀態是否為"接上"?如為是的話進入S42,如為否的話進入S43;S42:進行副判斷程序,並於完成後進入S2';S43:使用HDMI/DP為音源,並於完成後進入S2';S5':將線路輸入最終狀態的值給於線路輸入臨時狀態,並於完成後進入S6';S6':判斷線路輸入最終狀態是否為"接上"?如為是的話進入S61,如為否的話進入S2';S61:顯示音源設定選單OSD,並於完成後進入S62;S62:使用者選擇音源設定並儲存至音頻設置,並於完成後進入S63;S63:關閉OSD,並於完成後進入S2'。 Please refer to FIG. 4 , which is a flow chart of the main judgment program for automatically detecting and switching the source source judgment method. Here, a practical application example is presented, which is described as follows: S1': Initialization: Read the status of the line input device, and store "connected" or "not connected" to the variable line input final state, and then complete S11 after completion; S11: display the PC screen, and after completion S2'; S2': Read the line input device status, and store "connected" or "not connected" to the variable line input temporary status, and after the completion of S3'; S3': determine whether the line input temporary status is Is the equivalent line input final state? If yes, go to S41'. If no, go to S5'; S41': Determine whether the final state of the line input is "connected"? If yes, go to S42. If no, go to S43; S42: Perform sub-judgment process and enter S2' after completion; S43: Use HDMI/DP as the sound source, and enter S2' after completion; S5': The value of the final state of the line input is given to the line input temporary state, and after completion, it enters S6'; S6': Determine whether the final state of the line input is "connected"? If yes, go to S61, if not, go to S2'; S61: display the sound source setting menu OSD, and after completion, go to S62; S62: the user selects the sound source setting and saves to the audio setting, and after completion, proceeds to S63; S63: Close the OSD and enter S2' after completion.

如此,根據這樣的判斷方式,即可達成本案所提出的顯示器自動偵測及切換音源來源之功效。 In this way, according to such a judgment manner, the effect of automatically detecting the display and switching the source of the sound source proposed in the present case can be achieved.

請參考圖5,為自動偵測及切換音源來源判斷方法的副判斷程序流程圖,主要是依據使用者在OSD選單中對Audio Source Select的選擇來進行一連串的判斷,說明如下:S4310判斷音頻設置是否為固定於線路輸入,如為是的話進入S4314,如為否的話進入S4311;S4311判斷音頻設置是否為固定於視頻複合音源,如為是的話進入S4315,如為否的話進入S4312;S4312判斷音頻設置是否為自動切換但視頻複合音源有較高優先權,如為是的話進入S4316,如為否的話進入S4313;S4313判斷音頻設置是否為自動切換但線路輸入有較高優先權,如為是的話結束副判斷程序,如為否的話進入S4317;S4314使用線路輸入為音源,並結束副判斷程序;S4315使用視頻複合音源為音源,並結束副判斷程序;S4316判斷視頻複合音源是否有收到聲音封包,如為是的話進入S4318,如為否的話進入S4319;S4317判斷類比數位轉換器是否偵測到線路輸入有聲音輸入,如為是的話進入S4320,如為否的話進入S4321;S4318使用視頻複合音源為音源,並結束副判斷程序;S4319使用線路輸入為音源,並結束副判斷程序;S4320使用線路輸入為音源,並結束副判斷程序;S4321使用視頻複合音源為音源,並結束副判斷程序。 Please refer to FIG. 5 , which is a flowchart of the judging program for automatically detecting and switching the source source judging method, mainly based on the user's selection of the Audio Source Select in the OSD menu to perform a series of judgments, as follows: S4310 determines the audio setting. Whether it is fixed to the line input, if yes, enter S4314, if not, enter S4311; S4311 determines whether the audio setting is fixed to the video composite sound source, if yes, enter S4315, if not, enter S4312; S4312 determine audio Set whether it is automatic switching but the video composite source has higher priority. If yes, go to S4316. If no, go to S4313. S4313 determines whether the audio setting is automatic switching but the line input has higher priority. If yes, End the sub-judgment program, if not, enter S4317; S4314 uses the line input as the sound source, and ends the sub-judgment program; S4315 uses the video composite sound source as the sound source, and ends the sub-judgment program; S4316 determines whether the video composite sound source has received the sound packet If yes, go to S4318, if not, go to S4319; S4317 judge analogy Whether the bit converter detects the line input has a sound input, if yes, enters S4320, if not, enters S4321; S4318 uses the video composite sound source as the sound source, and ends the sub-judgment program; S4319 uses the line input as the sound source, and ends The sub-judgment program; S4320 uses the line input as the sound source, and ends the sub-judgment program; S4321 uses the video composite sound source as the sound source, and ends the sub-judgment program.

請參考圖6,圖6為OSD選單中針對音源來源選擇的選單示意圖,由圖中可以看到,在顯示器1的畫面中,音源來源選擇有四個選項,分別為音頻設置為固定於線路輸入、音頻設置為固定於視頻複合音源、音頻設置為自動切換但視頻複合音源有較高優先權、音頻設置為自動切換但線路輸入有較高優先權等四個選項,這分別對應於副判斷程序的四個判斷,較佳的使用方式是將選擇設定在第三或第四選項,即會自動切換音源,差異處僅在於視頻複合音源(HDMI/DP)或線路輸入(Line-in)誰有較高的優先權;當中進行補充說明,關於線路輸入(Line-in)是否有聲音輸入,可透過類比數位轉換器(Analog-to-Digital Converter)來進行偵測,當類比數位轉換器取樣的訊號有高低變化時,則表示有聲音輸入,其原理在於聲音訊號的變化會遠大於雜訊,而關於視頻複合音源(HDMI/DP)則是透過是否有收到聲音的封包來進行判斷。 Please refer to FIG. 6. FIG. 6 is a schematic diagram of a menu for selecting an audio source in the OSD menu. As can be seen from the figure, in the screen of the display 1, there are four options for selecting the source source, and the audio is set to be fixed to the line input. The audio is set to be fixed to the video composite sound source, the audio setting is automatically switched, but the video composite sound source has higher priority, the audio setting is automatically switched, but the line input has higher priority, etc., which respectively correspond to the sub-judgment program. The four judgments, the preferred way to use the setting is to set the third or fourth option, that is, the source will be switched automatically. The difference lies only in the video composite source (HDMI/DP) or line-in (Line-in). A higher priority; a supplementary explanation is given as to whether there is an audio input to the line-in (Line-in), which can be detected by an analog-to-digital converter (Analog-to-Digital Converter), which is sampled by an analog-to-digital converter. When the signal has a high or low change, it means that there is a voice input. The principle is that the change of the sound signal will be much larger than the noise, and the video composite audio source (HDMI/DP) is You have received voice packets to be judged.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何本領域技術人員,在不脫離本發明的精神和範圍內,當可作些許更動與潤飾,因此本發明的保護範圍當視所附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the present invention, and those skilled in the art can make some modifications and refinements without departing from the spirit and scope of the present invention. The scope of protection is subject to the definition of the scope of the attached patent application.

S1‧‧‧進行初始化,將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第一變數暫存區 S1‧‧‧ initialization, will read the current state of the line input module, and store the current state value to the first variable temporary storage area

S2‧‧‧將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第二變數暫存區 S2‧‧‧ will read the current state of the line input module and store the current state value to the second variable temporary storage area

S3‧‧‧判斷第一變數暫存區的值是否等於第二變數暫存區的值 S3‧‧‧Review whether the value of the first variable temporary storage area is equal to the value of the second variable temporary storage area

S4‧‧‧判斷第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行副判斷程序或使用視頻複合音源輸入 S4‧‧‧Review whether the value of the first variable temporary storage area is connected, and selectively perform the secondary judgment procedure or use the video composite sound source input according to the judgment result

S5‧‧‧將第一變數暫存區的值設為第二變數暫存區的值 S5‧‧‧ Set the value of the first variable temporary storage area as the value of the second variable temporary storage area

S6‧‧‧判斷第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行屏幕功能選單設定或直接結束 S6‧‧‧Review whether the value of the first variable temporary storage area is connected, and selectively perform the screen function menu setting or directly end according to the judgment result

Claims (5)

一種顯示器自動偵測及切換音源來源之判斷方法,其包含:(S1)進行初始化,將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第一變數暫存區;(S2)將讀取線路輸入模組當前狀態,並將當前狀態的值儲存至第二變數暫存區;(S3)判斷第一變數暫存區的值是否等於第二變數暫存區的值;(S4)判斷第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行副判斷程序或使用視頻複合音源輸入;(S5)將第一變數暫存區的值設為第二變數暫存區的值;(S6)判斷第一變數暫存區的值是否為連接,並根據判斷結果選擇性進行屏幕功能選單設定或直接結束。 A method for judging and automatically switching a source of a sound source, comprising: (S1) initializing, reading a line input module current state, and storing a current state value to a first variable temporary storage area; (S2) The current state of the line input module is read, and the value of the current state is stored to the second variable temporary storage area; (S3) determining whether the value of the first variable temporary storage area is equal to the value of the second variable temporary storage area; (S4) Determining whether the value of the first variable temporary storage area is a connection, and selectively performing a secondary determination process or using a video composite sound source input according to the determination result; (S5) setting the value of the first variable temporary storage area as the second variable temporary storage The value of the area; (S6) determining whether the value of the first variable temporary storage area is a connection, and selectively performing the screen function menu setting or directly ending according to the determination result. 如申請專利範圍第1項所述之顯示器自動偵測及切換音源來源之判斷方法,其中,S1與S2之間更包含一步驟(S11)顯示PC畫面。 The method for judging the automatic detection and switching of the source of the sound source according to the first aspect of the patent application, wherein the S1 and S2 further comprise a step (S11) for displaying the PC screen. 如申請專利範圍第1項所述之顯示器自動偵測及切換音源來源之判斷方法,其中,S4包含:S41判斷第一變數暫存區的值是否為連接;S42進行副判斷程序;S43使用視頻複合音源輸入。 The method for judging and automatically switching the source of the sound source according to the first aspect of the patent application, wherein S4 includes: S41 determining whether the value of the first variable temporary storage area is a connection; S42 performing a sub-judgment process; and S43 using the video Composite source input. 如申請專利範圍第1項所述之顯示器自動偵測及切換音源來源之判斷方法,其中,S6包含: S61顯示音源設定選單OSD;S62使用者選擇音源設定並儲存至音頻設置;S63關閉OSD。 For example, the method for automatically detecting and switching the source of the sound source according to the first aspect of the patent application scope, wherein the S6 includes: S61 displays the sound source setting menu OSD; S62 user selects the sound source setting and stores it to the audio setting; S63 turns off the OSD. 如申請專利範圍第1項所述之顯示器自動偵測及切換音源來源之判斷方法,其中,副判斷程序包含:S4310判斷音頻設置是否為固定於線路輸入,如為是的話進入S4314,如為否的話進入S4311;S4311判斷音頻設置是否為固定於視頻複合音源,如為是的話進入S4315,如為否的話進入S4312;S4312判斷音頻設置是否為自動切換但視頻複合音源有較高優先權,如為是的話進入S4316,如為否的話進入S4313;S4313判斷音頻設置是否為自動切換但線路輸入有較高優先權,如為是的話結束副判斷程序,如為否的話進入S4317;S4314使用線路輸入為音源,並結束副判斷程序;S4315使用視頻複合音源為音源,並結束副判斷程序;S4316判斷視頻複合音源是否有收到聲音封包,如為是的話進入S4318,如為否的話進入S4319;S4317判斷類比數位轉換器是否偵測到線路輸入有聲音輸入,如為是的話進入S4320,如為否的話進入S4321;S4318使用視頻複合音源為音源,並結束副判斷程序;S4319使用線路輸入為音源,並結束副判斷程序; S4320使用線路輸入為音源,並結束副判斷程序;S4321使用視頻複合音源為音源,並結束副判斷程序。 The method for judging and switching the source of the sound source according to the first aspect of the patent application, wherein the sub-judgment program comprises: S4310 determining whether the audio setting is fixed to the line input, and if yes, entering S4314, if no If yes, enter S4311; S4311 determines whether the audio setting is fixed to the video composite sound source, if yes, enter S4315, if not, enter S4312; S4312 determines whether the audio setting is automatic switching but the video composite sound source has higher priority, such as If yes, go to S4316. If no, go to S4313. S4313 determines whether the audio setting is automatic switching but the line input has higher priority. If yes, end the sub-judgment procedure. If no, go to S4317; S4314 uses line input as Sound source, and end the sub-judgment program; S4315 uses the video composite sound source as the sound source, and ends the sub-judgment program; S4316 determines whether the video composite sound source has received the sound packet, if yes, enters S4318, if not, enters S4319; S4317 judges Does the analog digital converter detect that the line input has a voice input, and if so, enter S4320, as it enters the NO S4321; S4318 using the composite video source as the source, and ends the sub program is determined; S4319 using the line input as the source, and ends the sub program is determined; The S4320 uses the line input as the sound source and ends the sub-judgment program; the S4321 uses the video composite sound source as the sound source, and ends the sub-judgment process.
TW105101607A 2016-01-19 2016-01-19 Structure for automatically detecting and switching audio sources in display device and determining method thereof TWI564790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105101607A TWI564790B (en) 2016-01-19 2016-01-19 Structure for automatically detecting and switching audio sources in display device and determining method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105101607A TWI564790B (en) 2016-01-19 2016-01-19 Structure for automatically detecting and switching audio sources in display device and determining method thereof

Publications (2)

Publication Number Publication Date
TWI564790B true TWI564790B (en) 2017-01-01
TW201727474A TW201727474A (en) 2017-08-01

Family

ID=58407803

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105101607A TWI564790B (en) 2016-01-19 2016-01-19 Structure for automatically detecting and switching audio sources in display device and determining method thereof

Country Status (1)

Country Link
TW (1) TWI564790B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM416815U (en) * 2011-07-13 2011-11-21 Elitegroup Computer Systems Co Ltd Output/input module for switching audio source and audiovisual playback device thereof
US20110299705A1 (en) * 2010-06-07 2011-12-08 Hannstar Display Corporation Audio signal adjusting system and method
TWM439882U (en) * 2012-03-03 2012-10-21 Forecast Invest Co Ltd Audio signal processing device and audio signal processing system
CN102959979A (en) * 2010-06-30 2013-03-06 松下电器产业株式会社 Playback device, audio selection method and audio selection program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110299705A1 (en) * 2010-06-07 2011-12-08 Hannstar Display Corporation Audio signal adjusting system and method
CN102959979A (en) * 2010-06-30 2013-03-06 松下电器产业株式会社 Playback device, audio selection method and audio selection program
TWM416815U (en) * 2011-07-13 2011-11-21 Elitegroup Computer Systems Co Ltd Output/input module for switching audio source and audiovisual playback device thereof
TWM439882U (en) * 2012-03-03 2012-10-21 Forecast Invest Co Ltd Audio signal processing device and audio signal processing system

Also Published As

Publication number Publication date
TW201727474A (en) 2017-08-01

Similar Documents

Publication Publication Date Title
US8320594B2 (en) Audio/video device having a volume control function for an external audio reproduction unit by using volume control buttons of a remote controller and volume control method therefor
US20130155217A1 (en) Audio player and control method thereof
TWI441527B (en) Audio signal adjusting system and method
CN108134868A (en) A kind of speaker control method and mobile terminal
CN103270741A (en) Systems and methods for adjusting presentation attributes of a mobile communication device
US10866667B2 (en) Touch pressure control method and device
CN105260109A (en) Play speed adjusting method and terminal
TW200824446A (en) Dynamically adjustable elements of an on-screen display
CN103258548A (en) Audio playing device and its controlling method
WO2023011473A1 (en) Channel switching method and apparatus, and electronic device
US10268443B2 (en) Earphone status detection method and terminal
CN106851486B (en) Method for switching earphone channels and mobile terminal
US20150110262A1 (en) Method and Apparatus for Controlling Call Audio Channel on Communications Terminal, and Communications Terminal
CN102404524B (en) Video menu setting method, device and 3D television
TWI564790B (en) Structure for automatically detecting and switching audio sources in display device and determining method thereof
CN104062830A (en) Projectors and how to set them up
TWI233048B (en) Sound card, computer system using the sound card and control method thereof
US20120173007A1 (en) Audio player, audio player system, and method for turning off audio player
CN105208182A (en) Method enabling mobile terminal to automatically adjust parameters and mobile terminal
CN108513218A (en) Voice-frequency channel control method and electronic equipment
CN105578278A (en) Display equipment and method for realizing incoming-call on-function on MHL source
CN101163215A (en) Method and device for setting actual volume of TV
US20160100245A1 (en) Audio equipment
CN102299693B (en) Audio adjustment system and method
CN106126068A (en) Control method, control device and electronic installation

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees