Audio adapter with frequency modulation radio function and operation method thereof
20210144471 ยท 2021-05-13
Inventors
Cpc classification
H04R1/1091
ELECTRICITY
International classification
Abstract
An audio adapter with a frequency modulation (FM) radio function is provided. The audio adapter includes an audio jack, an FM processing circuit, an audio codec, a digital interface, a memory and a processing unit. The FM processing circuit is configured to receive an FM signal through the audio jack and process the FM signal to generate an FM audio. The audio codec is configured to receive the FM audio and output an analog output audio containing the FM audio through the audio jack. The digital interface transmits power. The memory is configured to store multiple codes or program instructions. The processing unit is configured to execute the codes or program instructions to control the FM processing circuit to search for FM channel(s).
Claims
1. An audio adapter with frequency modulation (FM) radio function, comprising: an audio jack; an FM processing circuit, coupled to the audio jack and configured to receive an FM signal through the audio jack and to process the FM signal to generate an FM audio; an audio codec, coupled to the FM processing circuit and the audio jack and configured to receive the FM audio and to output an analog output audio through the audio jack, wherein the analog output audio contains the FM audio; a digital interface configured to transmit power; a memory configured to store a plurality of program codes or program instructions; and a processing unit, coupled to the FM processing circuit, the audio codec, the digital interface and the memory and configured to execute the program codes or the program instructions to perform step of: controlling the FM processing circuit to search for an FM channel.
2. The audio adapter of claim 1, wherein the processing unit receives a digital input signal from a host through the digital interface, parses the digital input signal to generate a host audio, and sends the host audio to the audio codec, and the audio codec mixes the FM audio and the host audio to generate the analog output audio.
3. The audio adapter of claim 1, wherein the audio codec generates a digital output signal, and the processing unit outputs the digital output signal through the digital interface according to a transmission protocol of the digital interface.
4. The audio adapter of claim 3, wherein the digital output signal contains only the FM audio.
5. The audio adapter of claim 3, wherein the audio codec receives a microphone audio through the audio jack, and the digital output signal contains only the microphone audio.
6. The audio adapter of claim 3, wherein the processing unit receives a digital input signal from a host through the digital interface, parses the digital input signal to generate a host audio, and sends the host audio to the audio codec, and the digital output signal contains only the host audio.
7. The audio adapter of claim 3, wherein the audio codec receives a microphone audio through the audio jack and mixes the FM audio and the microphone audio to generate the digital output signal.
8. The audio adapter of claim 3, wherein the audio codec receives a microphone audio through the audio jack, the processing unit receives a digital input signal from a host through the digital interface, parses the digital input signal to generate a host audio, and sends the host audio to the audio codec, and the audio codec mixes the microphone audio and the host audio to generate the digital output signal.
9. The audio adapter of claim 3, wherein the processing unit receives a digital input signal from a host through the digital interface, parses the digital input signal to generate a host audio, and sends the host audio to the audio codec, and the audio codec mixes the FM audio and the host audio to generate the digital output signal.
10. The audio adapter of claim 3, wherein the audio codec receives a microphone audio through the audio jack, the processing unit receives a digital input signal from a host through the digital interface, parses the digital input signal to generate a host audio, and sends the host audio to the audio codec, and the audio codec mixes the FM audio, the microphone audio and the host audio to generate the digital output signal.
11. The audio adapter of claim 1, wherein the audio adapter is connected to a host through the digital interface, and the processing unit declares to the host that the audio adapter supports a first number of audio channels, the processing unit further performing steps of: controlling the audio adapter to disconnect from the host and connect to the host again when receiving an audio channel number switching signal from the host; and declaring to the host that the audio adapter supports a second number of audio channels; wherein the first number of audio channels is different from the second number of audio channels.
12. The audio adapter of claim 1, wherein the processing unit further performs steps of: searching for the FM channel in a first mode when receiving an enumeration command through the digital interface; searching for the FM channel in a second mode when the enumeration command is not received; wherein in the first mode a frequency interval is searched once, and in the second mode the frequency interval is searched repeatedly.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0007]
[0008]
[0009]
[0010]
[0011]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0012] The following description is written by referring to terms of this technical field. If any term is defined in this specification, such term should be interpreted accordingly. In addition, the connection between objects or events in the below-described embodiments can be direct or indirect provided that these embodiments are practicable under such connection. Said indirect means that an intermediate object or a physical space exists between the objects, or an intermediate event or a time interval exists between the events.
[0013] The disclosure herein includes an audio adapter with frequency modulation (FM) radio function and the operation method thereof. On account of that some or all elements of the audio adapter with FM radio function could be known, the detail of such elements is omitted provided that such detail has little to do with the features of this disclosure, and that this omission nowhere dissatisfies the specification and enablement requirements. Some or all of the processes of the operation method of the audio adapter with FM radio function may be implemented by software and/or firmware, and can be performed by the audio adapter with FM radio function or its equivalent. A person having ordinary skill in the art can choose components or steps equivalent to those described in this specification to carry out the present disclosure, which means that the scope of this disclosure is not limited to the embodiments in the specification.
[0014] In this document, the term circuitry may indicate a system formed with one or more circuits. The term circuit may indicate an object, which is formed with one or more transistors and/or one or more active/passive elements based on a specific arrangement, for processing signals. As used herein, the term and/or includes any combination of one or more of the listed items.
[0015] Although the terms first, second, etc., may be used herein to describe various elements, these elements should not be limited by these terms. Rather, these terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the embodiments.
[0016]
[0017] The FM processing circuit 110, which is coupled to the audio jack 101, receives the FM signal through the audio jack 101 and demodulates the FM signal to generate the FM audio Si_FM. In some embodiments, the FM processing circuit 110 has a built-in ADC (not shown), and the FM audio Si_FM is a digital signal.
[0018] The processing unit 140 receives the digital input signal Din from the host (not shown) through the digital interface 102 and parses the digital input signal Din to obtain an audio signal (hereinafter referred to as the host audio Si_hst) and/or a control signal Ctrl. For example, when the digital interface 102 is USB, the digital input signal Din includes one or more USB packets, and the processing unit 140 parses the USB packets, based on the USB protocol (e.g., the Universal Serial Bus Device Class Definition for Audio Devices Specification) to obtain the host audio Si_hst. In some embodiments, the control signal Ctrl is generated by the processing unit 140 instead of the host.
[0019] When the device inserted into the audio jack 101 possesses the function of a microphone, the ADC 130 converts the analog microphone audio into the digital microphone audio Si_mic and sends the microphone audio Si_mic to the mixer 122 of the audio codec 120.
[0020] The mixer 122 receives the FM audio Si_FM, host audio Si_hst, and/or microphone audio Si_mic. Depending on the control signal Ctrl, the mixer 122 mixes these audios or not. The mixer 122 generates the digital playback audio So_pbk in response to the control signal Ctrl. The mixer 122 also generates the digital recorded audio So_rcd in response to the control signal Ctrl and transmits the recorded audio So_rcd to the processing unit 140. The digital-to-analog converter (DAC) 124 of the audio codec 120 is used to convert the playback audio So_pbk to the analog output audio So_ang, and the analog output audio So_ang is transmitted through the audio jack 101 to the audio device coupled to the audio jack 101. The processing unit 140 packages the recorded audio So_rcd according to the transmission protocol of the digital interface 102 to generate the digital output signal Dout, and the digital output signal Dout is transmitted to the host through the digital interface 102.
[0021]
[0022]
[0023]
[0024]
[0025] In the interval mode, the FM processing circuit 110 scans from frequency A to frequency B and then stops the search at frequency B. In other words, the FM processing circuit 110 scans the frequency interval between frequency A and frequency B only once. In the loop mode, the FM processing circuit 110 scans from frequency A to frequency B and then starts from frequency A to scan the frequency again. In other words, the FM processing circuit 110 repeatedly scans the frequency interval between frequency A and frequency B until the FM channel(s) is/are found. In either mode, the FM processing circuit 110 records the frequency at which the signal strength is greater than a threshold value during the search (i.e., scan) process. The recorded frequency or frequencies are the available FM channel(s) to which the user can tune in to listen to.
[0026] In some embodiments, a host supporting USB can use the Format of Setup Data specified by the USB specification 2.0 to transmit the control commands which are included in the control signal Ctrl. More specifically, the host can generates a variety of control commands by assigning different values to the wIndex field and the wValue field, with the items data transfer direction, type and recipient in the bmRequestType field given host-to-device, vendor and device, respectively, and the bRequest field given a custom value other than the standard request. Table 1 is an implementation example.
TABLE-US-00001 TABLE 1 wIndex wValue Meaning of the control command 0x001 0x000 the analog output audio So_ang contains only the FM audio Si_FM 0x001 the analog output audio So_ang contains only the host audio Si_hst 0x002 the analog output audio So_ang is a mixture of the FM audio Si_FM and the host audio Si_hst 0x002 0x000 increase the volume of the FM audio Si_FM 0x001 decrease the volume of the FM audio Si_FM 0x003 0x000 mute the FM audio Si_FM 0x001 stop muting the FM audio Si_FM 0x004 0x000 search for the previous frequency at which the signal strength is greater than a threshold value 0x001 search for the previous frequency at which the signal strength is greater than a threshold value 0x002 search in the interval mode (from start to end) 0x003 search in the interval mode (from end to start) 0x004 search in the loop mode (from start to end) 0x005 search in the loop mode (from end to start) 0x005 Fch switch to the channel represented by Fch 0x006 Fch save the channel represented by Fch in the favorite channels 0x007 Fch remove the channel represented by Fch from the favorite channels 0x008 0x000 the recorded audio So_rcd is a 2-channel microphone audio Si_mic 0x001 the recorded audio So_rcd is a 2-channel FM audio Si_FM 0x002 the recorded audio So_rcd is a 2-channel host audio Si_hst 0x003 the recorded audio So_rcd is a 2-channel mixed audio of the FM audio Si_FM and the microphone audio Si_mic 0x004 the recorded audio So_rcd is a 2-channel mixed audio of the host audio Si_hst and the microphone audio Si_mic 0x005 the recorded audio So_rcd is a 2-channel mixed audio of the host audio Si_hst and the FM audio Si_FM 0x006 the recorded audio So_rcd is a 2-channel mixed audio of the FM audio Si_FM, the host audio Si_hst and the microphone audio Si_mic 0x007 the recorded audio So_rcd is a 4-channel audio containing a 2-channel FM audio Si_FM and a 2-channel microphone audio Si_mic 0x008 the recorded audio So_rcd is a 4-channel audio containing a 2-channel FM audio Si_FM and a 2-channel mixed audio of the host audio Si_hst and the microphone audio Si_mic 0x009 the recorded audio So_rcd is a 4-channel audio containing a 2-channel FM audio Si_FM and a 2-channel mixed audio of the host audio Si_hst, the FM audio Si_FM and the microphone audio Si_mic 0x009 0x000 generating the recorded audio So_rcd with 2 channels 0x001 generating the recorded audio So_rcd with 4 channels
[0027] The favorite channels can be stored in the storage circuit 160. Fch is the hexadecimal value of the target channel. For example, the Fch corresponding to channel 93.7 MHz is 0x249A, which is the hexadecimal value of 9370 in unit of 10.sup.4 Hz. This disclosure is not limited to 2 channels and 4 channels. People having ordinary skill in the art can generate the control commands for more channels according to the above embodiments.
[0028] Furthermore, this disclosure is not limited to USB. People having ordinary skill in the art can apply this disclosure to other types of digital interfaces.
[0029] Since a person having ordinary skill in the art can appreciate the implementation detail and the modification thereto of the present method embodiment through the disclosure of the device embodiment, repeated and redundant description is thus omitted. Please note that there is no step sequence limitation for the method embodiments as long as the execution of each step is applicable. Furthermore, the shape, size, and ratio of any element and the step sequence of any flow chart in the disclosed figures are exemplary for understanding, not for limiting the scope of this disclosure.
[0030] The aforementioned descriptions represent merely the preferred embodiments of this disclosure, without any intention to limit the scope of this disclosure thereto. Various equivalent changes, alterations, or modifications based on the claims of this disclosure are all consequently viewed as being embraced by the scope of this disclosure.