MODE-SWITCHING OF AUDIO AMPLIFIERS
20220270582 · 2022-08-25
Inventors
Cpc classification
H04R2460/03
ELECTRICITY
H03F2200/435
ELECTRICITY
H03G3/348
ELECTRICITY
H04R2499/11
ELECTRICITY
H03G3/3005
ELECTRICITY
H04R3/02
ELECTRICITY
International classification
Abstract
In some embodiments, an audio amplifier can be controlled by a method that includes generating an enable signal based on a masking sound in an audio signal, and controlling a mode transition of the audio amplifier between a current source mode and a voltage source mode based on the enable signal. The mode transition of the audio amplifier can result in an artifact sound, the generating of the enable signal and the controlling of the mode transition can be achieved such that the artifact sound is substantially masked by the masking sound.
Claims
1. A method for controlling an audio amplifier, the method comprising: generating an enable signal based on a masking sound in an audio signal; and controlling a mode transition of the audio amplifier between a current source mode and a voltage source mode based on the enable signal, the mode transition of the audio amplifier resulting in an artifact sound, the generating of the enable signal and the controlling of the mode transition achieved such that the artifact sound is substantially masked by the masking sound.
2. The method of claim 1 wherein the masking sound is selected to be spectrally similar to the artifact sound.
3. The method of claim 1 further comprising generating the masking sound based on a comparison of a crest factor of the audio signal and a crest factor threshold level.
4. The method of claim 3 wherein the crest factor of the audio signal includes a high frequency crest factor.
5. The method of claim 4 wherein the generating of the masking sound includes generating an output based on a comparison of the high frequency crest factor and the crest factor threshold level, such that the audio signal passed through a high pass filter and an absolute value circuit provides the high frequency crest factor.
6. (canceled)
7. The method of claim 3 wherein the crest factor of the audio signal is obtained by a combining a peak audio level of the audio signal and an average audio level of the audio signal.
8. (canceled)
9. The method of claim 7 wherein the peak audio level and the average audio level are obtained from a common frequency range.
10. The method of claim 9 wherein the common frequency range includes a frequency associated with the artifact sound.
11. (canceled)
12. The method of claim 7 wherein the peak audio level is obtained from a first frequency range, and the average audio level is obtained from a second frequency range that is different than the first frequency range.
13. The method of claim 12 wherein the first frequency range includes a frequency associated with the artifact sound.
14. (canceled)
15. The method of claim 13 wherein the second frequency range includes a frequency range outside of the first frequency range.
16. The method of claim 15 wherein the second frequency range includes a low frequency range.
17. The method of claim 12 wherein the peak audio level is obtained by high pass-filtering the audio signal.
18. (canceled)
19. The method of claim 12 wherein the average audio level is obtained by passing the audio signal through an absolute value circuit.
20. (canceled)
21. (canceled)
22. The method of claim 1 further comprising identifying a target mode for the mode transition among a plurality of modes including the current source mode and the voltage source mode.
23. The method of claim 22 wherein the target mode is identified based on an average audio signal level and threshold levels associated with the current source mode and the voltage source mode.
24. (canceled)
25. (canceled)
26. (canceled)
27. (canceled)
28. (canceled)
29. (canceled)
30. (canceled)
31. (canceled)
32. (canceled)
33. The method of claim 1 further comprising identifying a low audio condition that provides a reduced level of the artifact sound when the mode transition occurs during the low audio condition.
34. (canceled)
35. The method of claim 1 further comprising implementing a change in output resistance of the amplifier in one or more steps.
36. (canceled)
37. (canceled)
38. (canceled)
39. (canceled)
40. (canceled)
41. (canceled)
42. (canceled)
43. (canceled)
44. A method for operating an electronic device, the method comprising: operating an amplifier to amplify an audio signal; and controlling the amplifier, the controlling including generating an enable signal based on a masking sound in the audio signal, the controlling of the amplifier further including controlling a mode transition of the amplifier between a current source mode and a voltage source mode based on the enable signal, the mode transition of the amplifier resulting in an artifact sound, the generating of the enable signal and the controlling of the mode transition achieved such that the artifact sound is substantially masked by the masking sound.
45. The method of claim 44 wherein the electronic device is a portable electronic device powered by a battery.
46. (canceled)
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
DETAILED DESCRIPTION OF SOME EMBODIMENTS
[0053] The headings provided herein, if any, are for convenience only and do not necessarily affect the scope or meaning of the claimed invention.
[0054] In many electronic devices such as portable audio products, it is desirable to improve battery life to allow a longer operating period before recharging or replacement of battery. A technique that can be employed is to change the operating mode of an amplifier to, for example, trade fidelity or noise floor for efficiency. For example, a desired performance characteristic of a portable audio device might be to have a high efficiency when program material is high level, but have a lower noise floor when the program material is low.
[0055] In many audio products, an issue of clicks or pops is typically known, and often can be problematic, especially if such noises occur during audio playback. Such noises can occur during mode switching operations, and are generally undesirable for a user.
[0056] Described herein are various examples related to techniques that allow minimization or reduction of likelihood of audible artifacts being detected by a user. As described herein, such techniques can include what could be considered masking of a noise associated with a mode switching disturbance. In some applications, such a technique can be viewed as preserving signal-to-noise-ratio (SNR) of the sound presented to the user during a mode switching disturbance.
[0057]
[0058]
[0059] Referring to
[0060] It is noted that an amplifier operating in a current source mode results in a lower noise level; thus, such an operating mode is desirable at low audio levels. It is also noted that efficiency of the amplifier operating in the current source mode is less efficient than a similar amplifier operating in a voltage source mode; thus, it is typically desirable to not always operate in the current source mode, in terms of efficiency.
[0061] When switching between the current source mode and the voltage source mode, there can be one or more mode-switching issues that result in undesirable sound artifacts. For example, gain errors can arise during a mode-switching process. In another example, phase errors can arise during a mode-switching process. In yet another example, switching transients can exist during a mode-switching process.
[0062] With respect to the gain errors, it is noted that in audio applications, a gain change involving an instantaneous or fast change in gain typically results in a discontinuity proportional to the signal level at or near the instant of switching. Since such a discontinuity is proportional to the signal level, switching of gain at a low signal level (e.g., relative to an average level) is better than switching of gain at a high signal level. In such a context, switching at a zero crossing of a signal is highly desirable and significantly reduces audible transients during a gain change.
[0063]
[0064]
[0065] As discussed above, a discontinuity in phase arises during a mode switching operation even if the operation occurs at a zero crossing.
[0066]
[0067] As described herein, a mode switching operation (e.g., between current source mode and voltage source mode) results in one or more discontinuities due to signal components. Such discontinuities typically have associated with them a significant amount of energy at frequencies with large phase errors.
[0068] In some embodiments, a mode switching operation can be controlled by reducing the effects of the foregoing discontinuities, and/or by masking an audible event associated with the discontinuities (whether or not the effects are reduced). With the latter, a mode transition may be delayed for a selected condition to provide the masking functionality. Examples of such a selected condition are described herein in greater detail.
[0069] In some embodiments, an algorithm can be implemented to tune the foregoing selected condition based mode transition, so as to provide a balance between power usage efficiency and subjective audibility (or masking effectiveness) of the masking functionality.
[0070]
[0071] For example, a high logic signal provided by the low audio detection component 126 can correspond to the foregoing zero crossing or sufficiently low audio signal level and be utilized by itself or with one or more other conditions to allow a mode-switching operation. In such a configuration, a low logic signal provided by the low audio detection component 126 can indicate that the audio signal is not at or near a zero crossing, or has a high audio signal level. In some embodiments, such a low logic signal can be utilized to veto any other enabled condition(s), so that a mode-switching operation does not occur. In some embodiments, a mode-switching operation can proceed despite a low logic signal provided by the low audio detection component 126, if one or more selected conditions are satisfied.
[0072] In another example, and referring to
[0073] By way of an example, the foregoing average audio signal level can be obtained by an audio level detector 150 configured to receive an audio signal (e.g., a 48 KHz audio signal) and obtain an absolute value of the audio signal with an absolute value circuit (ABS) 152. Such an absolute value signal can then be passed through a low pass filter (LPF) 154 to obtain the average audio signal level.
[0074] Also by way of an example, the foregoing threshold level can be based on the present mode. In
[0075] With the foregoing inputs to the comparator 158, the following example target mode determination can be implemented in some embodiments. If the present mode is a current source mode, and the average audio signal level is greater than the current source mode threshold value (T2 in
[0076] In some embodiments, the foregoing target mode can be utilized to effectuate a masking event induced transition (from the present mode to the target mode). If no attempt is made to transition based on a masking event, then a transition (from the present mode to the target mode) can be made if the low audio component 126 is enabled (e.g., at the next zero crossing), assuming that the target mode is different than the present mode.
[0077] In yet another example, and referring to
[0078] In some embodiments, a masking event can be identified based on a crest factor (CF) of an audio signal being amplified (e.g., a 48 KHz audio signal). Such a crest factor can be calculated as a ratio of a peak value over an average value.
[0079] By way of an example, the foregoing high frequency crest factor can be obtained by passing an audio signal (e.g., a 48 KHz audio signal) through a high pass filter (HPF) 160, and then obtaining an absolute value of the high pass filtered signal with an absolute value circuit (ABS) 162. In the example of
[0080] Also by way of an example, the foregoing crest factor threshold level can be provided to another of the inputs of the first comparator 168, by mixing (at mixer 166) with a signal obtained from the foregoing absolute value of the high pass filtered signal (output of the ABS circuit 162) passed through a low pass filter 164. In
[0081] In some embodiments, and as shown in the example of
[0082] It is noted that many sounds that are spectrally similar to the discontinuity-induced mode-switching sound (e.g., sound resulting from phase error) have relatively high frequencies. Thus, the foregoing technique of identifying events with masking sounds (e.g., with high pass filtering of an audio signal) results in the masking sounds to be more similar to the discontinuity-induced mode-switching sound. Accordingly, even if a discontinuity-induced mode-switching sound is audible to a listener during a mode-switching operation, a masking sound present during the masking event-triggered mode-switch operation desirably masks the perception of the audible discontinuity-induced mode-switching sound.
[0083] In the example of
[0084] As discussed above, effects of discontinuities during a mode switching operation can be reduced. Performing a mode-switching operation at or close to a zero crossing is an example of such a reduction. A reduction in effects of discontinuities can also be achieved by performing a mode-switching operation in a plurality of output impedance (Rout) changing steps, instead of a single impedance change, between current source and voltage source modes. Such stepped impedance changes between two values typically result in smaller phase errors than a single impedance change between the two values. Thus, in the example of
[0085] In the example of
[0086]
[0087] In
[0088] As described herein, a masking event can be identified and utilized to mask a sound associated with a mode switching operation. As also described herein, such a masking event can be based on comparison of a crest factor of an audio signal, with the crest factor being calculated as, for example, a ratio of a peak value over an average value associated with the audio signal. In the example of
[0089] In some embodiments, it may be desirable to obtain peak and average values that are based on different frequency components or ranges of an audio signal. For example, a peak value can be based on a high pass component to identify sounds such as, for example, snare drum sound, guitar strumming sound, onset of a phrase, etc. that can mask, for a listening user, a sound artifact associated with a mode-switching operation. An average value, however, can be based on a frequency range having a portion outside of a frequency range associated with the high pass component being utilized for the peak value. Such a frequency range for the average value determination may or may not include the frequency range associated with the high pass component.
[0090] For example,
[0091] More particularly, and referring to
[0092] Also referring to
[0093] In some embodiments, a crest factor can be obtained from the Peak_HP signal and the average audio level of
[0094] It is noted that the example of
[0095]
[0096] In the example of
[0097] As described above, a mode-switching operation involving a plurality of output impedance (Rout) changing steps can provide a reduction in effects of discontinuities.
[0098] Referring to
[0099] It is noted that in some embodiments, it may be desirable to skip a plurality of impedance change steps if a masking event is sufficiently strong. In such a situation, the corresponding mode switching operation can be achieved faster while benefitting from the masking effect. Accordingly, in some embodiments, the size of a masking event can drive such logic algorithm instead of the size of error associated with a mode switching operation.
[0100]
[0101] For example, and assuming that the crest factor utilized for the stepped Rout circuit 193 of
[0102] Similarly, the second comparator 194b can be provided with the high pass peak level (Peak_HP) as one input, and the average audio level mixed with a crest factor threshold level for 2-step impedance change (CF_Th_2step) as another input. If Peak_HP is greater than the corresponding threshold value, the comparator 194b can generate an output (2step_OK) indicating at least two steps of impedance change is desired.
[0103] Similarly, the N-th comparator 194c can be provided with the high pass peak level (Peak_HP) as one input, and the average audio level mixed with a crest factor threshold level for N-step impedance change (CF_Th_Nstep) as another input. If Peak_HP is greater than the corresponding threshold value, the comparator 194c can generate an output (Nstep_OK) indicating at least N steps of impedance change is desired.
[0104] In the example of
[0105] In yet another example, a minimum step time (Min_step_time) can be provided as an input to the control circuit 195. Such an input can control timing and/or duration of the stepped changes in the output resistance.
[0106] In yet another example, an exclusive-OR (XOR) of target mode (Mode_target) and present mode state (Mode_state) can be provided as an input to the control circuit 195. In some embodiments, such an input can be utilized to ensure that the stepped impedance change be implemented only when the target mode is different than the present mode. For example, if the present mode is a voltage source mode (e.g., Mode_state=1), and the target mode is also a voltage source mode (e.g., Mode_target=1), then there is no need for a mode switch (and the XOR of such two inputs is 0). In another example, if the present mode is a voltage source mode (e.g., Mode_state=1), and the target mode is a current source mode (e.g., Mode_target=0), then a mode switch can proceed (and the XOR of such two inputs is 1). It will be understood that similar logic can also be utilized if the present mode is a current source mode (e.g., Mode_state=0). It is noted that the foregoing feature can allow saving of power by not performing mode switching when the present state and the target state are the same.
[0107] In the example of
[0108]
[0109] In some embodiments, the control circuit 195 can be configured such that the control signal Ro_target is generated to enable an output resistance change with the smallest number of step(s) (with the corresponding step size) acceptable among the various crest factor threshold levels (CF_Th_1step to CF_Th_Nstep) to provide efficiency in the corresponding mode switching operation without significantly impacting audibility of the mode switching sound. Such efficiency can include, for example, a quicker transition between the current and voltage source modes.
[0110]
[0111] In some embodiments, when an output impedance (also referred to herein as an output resistance) change is implemented in N steps during a mode switching operation, a corresponding disturbance has a reduced normalized value that is roughly 1/N.
[0112] It is noted that in a voltage source mode, the corresponding output resistance is approximately zero or very low. In contrast, in a current source mode, the corresponding output resistance is relatively high. Accordingly, a mode switching operation from a voltage source mode to a current source mode involves a resistance change from a low value to a high value. In contrast, a mode switching operation from a current source mode to a voltage source mode involves a resistance change from a high value to a low value.
[0113] In some embodiments, a resistance change from a low value (voltage source mode) to a high value (current source mode) (also referred to as an up resistance change) can be substantially the same as, or be different than, a resistance change from a high value (current source mode) to a low value (voltage source mode) (also referred to as a down resistance change). For example, the crest factor threshold levels (CF_Th_1step to CF_Th_Nstep in
[0114] In some embodiments, a crest factor threshold for an up resistance change (associated with a switch from a voltage source mode to a current source mode) can be selected to be lower than a corresponding crest factor threshold for a down resistance change (associated with a switch from a current source mode to a voltage source mode). Such a configuration can improve efficiency of the corresponding mode switching operation, especially when implemented with the stepped resistance change as described herein.
[0115] In some embodiments, the control circuit 195 of
[0116]
[0117] In
[0118]
[0119] In various examples described herein, sound levels such as average audio level and peak level are utilized by one or more features of the present disclosure, and related circuits such as absolute value circuits are configured to process such sound levels. It will be understood that one or more features of the present disclosure can also be implemented utilizing other forms of representation of sound. For example, instead of using an average level to determine a current source/voltage source target mode, similar determination can also be achieved using average energy. With such an example implementation, a square block can be utilized instead of an absolute value block.
[0120] In some embodiments, a mode-switching controller having one or more features as described herein can be implemented in a number of products. For example,
[0121]
[0122]
[0123]
[0124]
[0125] In some implementations, the portable electronic device 400 of
[0126] It is noted that an electronic device can include a plurality of audio channels (with corresponding speakers) to provide, for example, stereo functionality. In some embodiments, a mode-switching controller 100 having one or more features as described herein can be configured to support switching of, for example, left and right audio channels at the same time to minimize or reduce stereo stage balance issues.
[0127] The present disclosure describes various features, no single one of which is solely responsible for the benefits described herein. It will be understood that various features described herein may be combined, modified, or omitted, as would be apparent to one of ordinary skill. Other combinations and sub-combinations than those specifically described herein will be apparent to one of ordinary skill, and are intended to form a part of this disclosure. Various methods are described herein in connection with various flowchart steps and/or phases. It will be understood that in many cases, certain steps and/or phases may be combined together such that multiple steps and/or phases shown in the flowcharts can be performed as a single step and/or phase. Also, certain steps and/or phases can be broken into additional sub-components to be performed separately. In some instances, the order of the steps and/or phases can be rearranged and certain steps and/or phases may be omitted entirely. Also, the methods described herein are to be understood to be open-ended, such that additional steps and/or phases to those shown and described herein can also be performed.
[0128] Some aspects of the systems and methods described herein can advantageously be implemented using, for example, computer software, hardware, firmware, or any combination of computer software, hardware, and firmware. Computer software can comprise computer executable code stored in a computer readable medium (e.g., non-transitory computer readable medium) that, when executed, performs the functions described herein. In some embodiments, computer-executable code is executed by one or more general purpose computer processors. A skilled artisan will appreciate, in light of this disclosure, that any feature or function that can be implemented using software to be executed on a general purpose computer can also be implemented using a different combination of hardware, software, or firmware. For example, such a module can be implemented completely in hardware using a combination of integrated circuits. Alternatively or additionally, such a feature or function can be implemented completely or partially using specialized computers designed to perform the particular functions described herein rather than by general purpose computers.
[0129] Multiple distributed computing devices can be substituted for any one computing device described herein. In such distributed embodiments, the functions of the one computing device are distributed (e.g., over a network) such that some functions are performed on each of the distributed computing devices.
[0130] Some embodiments may be described with reference to equations, algorithms, and/or flowchart illustrations. These methods may be implemented using computer program instructions executable on one or more computers. These methods may also be implemented as computer program products either separately, or as a component of an apparatus or system. In this regard, each equation, algorithm, block, or step of a flowchart, and combinations thereof, may be implemented by hardware, firmware, and/or software including one or more computer program instructions embodied in computer-readable program code logic. As will be appreciated, any such computer program instructions may be loaded onto one or more computers, including without limitation a general purpose computer or special purpose computer, or other programmable processing apparatus to produce a machine, such that the computer program instructions which execute on the computer(s) or other programmable processing device(s) implement the functions specified in the equations, algorithms, and/or flowcharts. It will also be understood that each equation, algorithm, and/or block in flowchart illustrations, and combinations thereof, may be implemented by special purpose hardware-based computer systems which perform the specified functions or steps, or combinations of special purpose hardware and computer-readable program code logic means.
[0131] Furthermore, computer program instructions, such as embodied in computer-readable program code logic, may also be stored in a computer readable memory (e.g., a non-transitory computer readable medium) that can direct one or more computers or other programmable processing devices to function in a particular manner, such that the instructions stored in the computer-readable memory implement the function(s) specified in the block(s) of the flowchart(s). The computer program instructions may also be loaded onto one or more computers or other programmable computing devices to cause a series of operational steps to be performed on the one or more computers or other programmable computing devices to produce a computer-implemented process such that the instructions which execute on the computer or other programmable processing apparatus provide steps for implementing the functions specified in the equation(s), algorithm(s), and/or block(s) of the flowchart(s).
[0132] Some or all of the methods and tasks described herein may be performed and fully automated by a computer system. The computer system may, in some cases, include multiple distinct computers or computing devices (e.g., physical servers, workstations, storage arrays, etc.) that communicate and interoperate over a network to perform the described functions. Each such computing device typically includes a processor (or multiple processors) that executes program instructions or modules stored in a memory or other non-transitory computer-readable storage medium or device. The various functions disclosed herein may be embodied in such program instructions, although some or all of the disclosed functions may alternatively be implemented in application-specific circuitry (e.g., ASICs or FPGAs) of the computer system. Where the computer system includes multiple computing devices, these devices may, but need not, be co-located. The results of the disclosed methods and tasks may be persistently stored by transforming physical storage devices, such as solid state memory chips and/or magnetic disks, into a different state.
[0133] Unless the context clearly requires otherwise, throughout the description and the claims, the words “comprise,” “comprising,” and the like are to be construed in an inclusive sense, as opposed to an exclusive or exhaustive sense; that is to say, in the sense of “including, but not limited to.” The word “coupled”, as generally used herein, refers to two or more elements that may be either directly connected, or connected by way of one or more intermediate elements. Additionally, the words “herein,” “above,” “below,” and words of similar import, when used in this application, shall refer to this application as a whole and not to any particular portions of this application. Where the context permits, words in the above Detailed Description using the singular or plural number may also include the plural or singular number respectively. The word “or” in reference to a list of two or more items, that word covers all of the following interpretations of the word: any of the items in the list, all of the items in the list, and any combination of the items in the list. The word “exemplary” is used exclusively herein to mean “serving as an example, instance, or illustration.” Any implementation described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other implementations.
[0134] The disclosure is not intended to be limited to the implementations shown herein. Various modifications to the implementations described in this disclosure may be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other implementations without departing from the spirit or scope of this disclosure. The teachings of the invention provided herein can be applied to other methods and systems, and are not limited to the methods and systems described above, and elements and acts of the various embodiments described above can be combined to provide further embodiments. Accordingly, the novel methods and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the disclosure. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the disclosure.