# Patent

## Title
Source audio acoustic leakage detection and management in an adaptive noise canceling system

## Abstract

A personal audio device, such as a wireless telephone, includes an adaptive noise canceling (ANC) circuit that adaptively generates an anti-noise signal from a reference microphone signal and injects the anti-noise signal into the speaker or other transducer output to cause cancellation of ambient audio sounds. An error microphone is also provided proximate to the speaker to provide an error signal indicative of the effectiveness of the noise cancellation. A secondary path estimating adaptive filter is used to estimate the electro-acoustical path from the noise canceling circuit through the transducer so that source audio can be removed from the error signal. A level of the source audio with respect to the ambient audio is determined to determine whether the system may generate erroneous anti-noise and/or become unstable.

## Background
This U.S. Patent Application is a Division of U.S. patent application Ser. No. 13/727,718, filed on Dec. 27, 2012, and claims priority thereto under 35 U.S.C. §121. U.S. parent patent application Ser. No. 13/727,718 claims priority under 35 U.S.C. §119(e) to U.S. Provisional Patent Application Ser. No. 61/645,333 filed on May 10, 2012.


BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates generally to personal audio devices such as wireless telephones that include adaptive noise cancellation (ANC), and more specifically, to sequenced adaptation of ANC adaptive responses in a personal audio device that uses a secondary path estimate in addition to adaptive anti-noise filtering.
2. Background of the Invention
Wireless telephones, such as mobile/cellular telephones, cordless telephones, and other consumer audio devices, such as MP3 players, are in widespread use. Performance of such devices with respect to intelligibility can be improved by providing noise canceling using a microphone to measure ambient acoustic events and then using signal processing to insert an anti-noise signal into the output of the device to cancel the ambient acoustic events.
Noise canceling operation can be improved by measuring the transducer output of a device at the transducer to determine the effectiveness of the noise canceling using an error microphone. The measured output of the transducer is ideally the source audio, e.g., downlink audio in a telephone and/or playback audio in either a dedicated audio player or a telephone, since the noise canceling signal(s) are ideally canceled by the ambient noise at the location of the transducer. To remove the source audio from the error microphone signal, the secondary path from the transducer through the error microphone can be estimated and used to filter the source audio to the correct phase and amplitude for subtraction from the error microphone signal. However, when the source audio has a very high amplitude, acoustic leakage from the transducer to the reference microphone can cause the adaptive filter that generates the noise-canceling (anti-noise) signal to adapt improperly.
Therefore, it would be desirable to provide a personal audio device, including wireless telephones, that provides noise cancellation using a secondary path estimate to measure the output of the transducer and an adaptive filter that generates the anti-noise signal, in which recovery from an incorrect ANC response, such as an incorrect response occurring due to adaptation to leakage of the source audio signal into the reference microphone, can be accomplished.
SUMMARY OF THE INVENTION
The above-stated objective of providing a personal audio device providing noise canceling including a secondary path estimate that provides for recovery from an undesirable state of the anti-noise generating adaptive response, is accomplished in a personal audio device, a method of operation, and an integrated circuit.
The personal audio device includes a housing, with a transducer mounted on the housing for reproducing an audio signal that includes both source audio for providing to a listener and an anti-noise signal for countering the effects of ambient audio sounds in an acoustic output of the transducer. A reference microphone is mounted on the housing to provide a reference microphone signal indicative of the ambient audio sounds. The personal audio device further includes an adaptive noise canceling (ANC) processing circuit within the housing for adaptively generating an anti-noise signal from the reference microphone signal such that the anti-noise signal causes substantial cancellation of the ambient audio sounds. An error microphone is included for controlling the adaptation of the anti-noise signal to cancel the ambient audio sounds and for compensating for the electro-acoustical path from the output of the processing circuit through the transducer. The ANC processing circuit sequences adaptation of a secondary path adaptive filter that estimates the response of the secondary path and another adaptive filter that generates the anti-noise signal so that the overall ANC operation remains stable when the secondary path response changes and the secondary path estimate is updated.
In another feature, the ANC processing circuit detects that the source audio leakage from the output transducer to the reference microphone is, or will be, too great for proper operation and takes action on adaptation of the adaptive filter that generates the anti-noise signal to prevent or remedy improper operation.
The foregoing and other objectives, features, and advantages of the invention will be apparent from the following, more particular, description of the preferred embodiment of the invention, as illustrated in the accompanying drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is an illustration of an exemplary wireless telephone 10.
FIG. 2 is a block diagram of circuits within wireless telephone 10.
FIG. 3 is a block diagram depicting an example of signal processing circuits and functional blocks that may be included within ANC circuit 30 of CODEC integrated circuit 20 of FIG. 2.
FIGS. 4-5 are signal waveform diagrams illustrating operation of ANC circuit 30 of CODEC integrated circuit 20 of FIG. 2 in accordance with various implementations.
FIG. 6 is a flow chart depicting a signal processing algorithm implemented by CODEC integrated circuit 20.
FIG. 7 is a block diagram depicting signal processing circuits and functional blocks within CODEC integrated circuit 20.



DESCRIPTION OF ILLUSTRATIVE EMBODIMENT
Noise canceling techniques and circuits that can be implemented in a personal audio device, such as a wireless telephone, are disclosed. The personal audio device includes an adaptive noise canceling (ANC) circuit that measures the ambient acoustic environment and generates a signal that is injected into the speaker (or other transducer) output to cancel ambient acoustic events. A reference microphone is provided to measure the ambient acoustic environment, and an error microphone is included to measure the ambient audio and transducer output at the transducer, thus giving an indication of the effectiveness of the noise cancelation. A secondary path estimating adaptive filter is used to remove the playback audio from the error microphone signal in order to generate an error signal. However, depending on the level of the source audio reproduced by the personal audio device, e.g., downlink audio during a telephone conversation, leakage from the transducer to the reference microphone may cause unstable operation and/or improper adaptation of the ANC circuits. Further, on recovery from an improperly adapted state, or during initialization of the ANC circuits, unless the secondary path estimating adaptive filter has the proper response, the remainder of the ANC system may not adapt properly, or may become unstable. The exemplary personal audio devices, method and circuits shown below sequence adaptation of the secondary path estimating adaptive filter and the remainder of the ANC system to avoid instabilities and to adapt the ANC system to the proper response. Further, the magnitude of the leakage of the source audio into the reference microphone can be measured or estimated, and action taken on the adaptation of the ANC system and recovery from such a condition after the source audio has ended or decreased in volume such that stable operation can be expected.
FIG. 1 shows an exemplary wireless telephone 10 in proximity to a human ear 5. Illustrated wireless telephone 10 is an example of a device in which techniques illustrated herein may be employed, but it is understood that not all of the elements or configurations embodied in illustrated wireless telephone 10, or in the circuits depicted in subsequent illustrations, are required. Wireless telephone 10 includes a transducer such as speaker SPKR that reproduces distant speech received by wireless telephone 10, along with other local audio events such as ringtones, stored audio program material, near-end speech, sources from web-pages or other network communications received by wireless telephone 10 and audio indications such as battery low and other system event notifications. A near-speech microphone NS is provided to capture near-end speech, which is transmitted from wireless telephone 10 to the other conversation participant(s).
Wireless telephone 10 includes adaptive noise canceling (ANC) circuits and features that inject an anti-noise signal into speaker SPKR to improve intelligibility of the distant speech and other audio reproduced by speaker SPKR. A reference microphone R is provided for measuring the ambient acoustic environment and is positioned away from the typical position of a user's/talker's mouth, so that the near-end speech is minimized in the signal produced by reference microphone R. A third microphone, error microphone E, is provided in order to further improve the ANC operation by providing a measure of the ambient audio combined with the audio signal reproduced by speaker SPKR close to ear 5, when wireless telephone 10 is in close proximity to ear 5. Exemplary circuit 14 within wireless telephone 10 includes an audio CODEC integrated circuit 20 that receives the signals from reference microphone R, near speech microphone NS, and error microphone E and interfaces with other integrated circuits such as an RF integrated circuit 12 containing the wireless telephone transceiver. In other embodiments of the invention, the circuits and techniques disclosed herein may be incorporated in a single integrated circuit that contains control circuits and other functionality for implementing the entirety of the personal audio device, such as an MP3 player-on-a-chip integrated circuit.
In general, the ANC techniques disclosed herein measure ambient acoustic events (as opposed to the output of speaker SPKR and/or the near-end speech) impinging on reference microphone R, and by also measuring the same ambient acoustic events impinging on error microphone E, the ANC processing circuits of illustrated wireless telephone 10 adapt an anti-noise signal generated from the output of reference microphone R to have a characteristic that minimizes the amplitude of the ambient acoustic events present at error microphone E. Since acoustic path P(z) extends from reference microphone R to error microphone E, the ANC circuits are essentially estimating acoustic path P(z) combined with removing effects of an electro-acoustic path S(z). Electro-acoustic path S(z) represents the response of the audio output circuits of CODEC IC 20 and the acoustic/electric transfer function of speaker SPKR including the coupling between speaker SPKR and error microphone E in the particular acoustic environment. Electro-acoustic path S(z) is affected by the proximity and structure of ear 5 and other physical objects and human head structures that may be in proximity to wireless telephone 10, when wireless telephone 10 is not firmly pressed to ear 5. While the illustrated wireless telephone 10 includes a two microphone ANC system with a third near speech microphone NS, other systems that do not include separate error and reference microphones can implement the above-described techniques. Alternatively, speech microphone NS can be used to perform the function of the reference microphone R in the above-described system. Finally, in personal audio devices designed only for audio playback, near speech microphone NS will generally not be included, and the near-speech signal paths in the circuits described in further detail below can be omitted.
Referring now to FIG. 2, circuits within wireless telephone 10 are shown in a block diagram. CODEC integrated circuit 20 includes an analog-to-digital converter (ADC) 21A for receiving the reference microphone signal and generating a digital representation ref of the reference microphone signal, an ADC 21B for receiving the error microphone signal and generating a digital representation err of the error microphone signal, and an ADC 21C for receiving the near speech microphone signal and generating a digital representation of near speech microphone signal ns. CODEC IC 20 generates an output for driving speaker SPKR from an amplifier A1, which amplifies the output of a digital-to-analog converter (DAC) 23 that receives the output of a combiner 26. Combiner 26 combines audio signals ia from internal audio sources 24, the anti-noise signal anti-noise generated by ANC circuit 30, which by convention has the same polarity as the noise in reference microphone signal ref and is therefore subtracted by combiner 26, a portion of near speech signal ns so that the user of wireless telephone 10 hears their own voice in proper relation to downlink speech ds, which is received from radio frequency (RF) integrated circuit 22. In accordance with an embodiment of the present invention, downlink speech ds is provided to ANC circuit 30. The downlink speech ds, internal audio ia, and noise (or source audio/noise if applied as alternative signals) are provided to combiner 26, so that signal ds+ia is always present to estimate acoustic path S(z) with a secondary path adaptive filter within ANC circuit 30. Near speech signal ns is also provided to RF integrated circuit 22 and is transmitted as uplink speech to the service provider via antenna ANT.
FIG. 3 shows one example of details of ANC circuit 30 of FIG. 2. An adaptive filter 32 receives reference microphone signal ref and under ideal circumstances, adapts its transfer function W(z) to be P(z)/S(z) to generate the anti-noise signal anti-noise, which is provided to an output combiner that combines the anti-noise signal with the audio signal to be reproduced by the transducer, as exemplified by combiner 26 of FIG. 2. The coefficients of adaptive filter 32 are controlled by a W coefficient control block 31 that uses a correlation of two signals to determine the response of adaptive filter 32, which generally minimizes the error, in a least-mean squares sense, between those components of reference microphone signal ref present in error microphone signal err. The signals processed by W coefficient control block 31 are the reference microphone signal ref as shaped by a copy of an estimate of the response of path S(z) provided by filter 34B and another signal that includes error microphone signal err. By transforming reference microphone signal ref with a copy of the estimate of the response of path S(z), response SECOPY(z), and minimizing error microphone signal err after removing components of error microphone signal err due to playback of source audio, adaptive filter 32 adapts to the desired response of P(z)/S(z). In addition to error microphone signal err, the other signal processed along with the output of filter 34B by W coefficient control block 31 includes an inverted amount of the source audio including downlink audio signal ds and internal audio ia that has been processed by filter response SE(z), of which response SECOPY(z) is a copy. By injecting an inverted amount of source audio, adaptive filter 32 is prevented from adapting to the relatively large amount of source audio present in error microphone signal err. By transforming the inverted copy of downlink audio signal ds and internal audio ia with the estimate of the response of path S(z), the source audio that is removed from error microphone signal err before processing should match the expected version of downlink audio signal ds and internal audio ia reproduced at error microphone signal err. The source audio that is removed from error microphone signal err matches the combined downlink audio signal ds and internal audio ia reproduced at error microphone signal err, since the electrical and acoustical path of S(z) is the path taken by downlink audio signal ds and internal audio ia to arrive at error microphone E. Filter 34B is not an adaptive filter, per se, but has an adjustable response that is tuned to match the response of adaptive filter 34A, so that the response of filter 34B tracks the adapting of adaptive filter 34A.
To implement the above, adaptive filter 34A has coefficients controlled by SE coefficient control block 33, which processes the source audio (ds+ia) and error microphone signal err after removal, by a combiner 36, of the above-described filtered downlink audio signal ds and internal audio ia, that has been filtered by adaptive filter 34A to represent the expected source audio delivered to error microphone E. Adaptive filter 34A is thereby adapted to generate an error signal e from downlink audio signal ds and internal audio ia, that when subtracted from error microphone signal err, contains the content of error microphone signal err that is not due to source audio (ds+ia). However, if downlink audio signal ds and internal audio ia are both absent, e.g., at the beginning of a telephone call, or have very low amplitude, SE coefficient control block 33 will not have sufficient input to estimate acoustic path S(z). Therefore, in ANC circuit 30, a source audio detector 35A detects whether sufficient source audio (ds+ia) is present, and updates the secondary path estimate if sufficient source audio (ds+ia) is present. Source audio detector 35A may be replaced by a speech presence signal if a speech presence signal is available from a digital source of the downlink audio signal ds, or a playback active signal provided from media playback control circuits. A selector 38 is provided to select between source audio (ds+ia) and the output of a training signal generator 37 at an input to secondary path adaptive filter 34A and SE coefficient control block 33, according to a control signal inject, provided from control circuit 39, which when asserted, selects the output of training signal generator 37. Assertion of control signal inject allows ANC circuit 30 to update the estimate of acoustic path S(z) even when no suitable source audio signal is present. A noise burst or other training signal is thereby injected into secondary path adaptive filter 34A, when a control circuit 39 temporarily selects the output of training signal generator 37. Alternatively, selector 38 can be replaced with a combiner that adds the training signal to source audio (ds+ia).
Control circuit 39 receives inputs from a source audio detector 35A, which include a Ring indicator that indicates when a remote ring signal is present in downlink audio signal ds and a Source Level indication reflecting the detected level of the overall source audio (ds+ia). Control circuit also receives an input from an ambient audio detector 35B that provides an indication of the detected level of reference microphone signal ref. Control circuit 39 may receive an indication vol of the volume setting of the personal audio device. Control circuit 39 also receives a stability indication Wstable from W coefficient control 31, which is generally de-asserted when a stability measure Δ(Σ|Wk(z))|/Δt, which is the rate of change of the sum of the coefficients of response W(z), is greater than a threshold, but alternatively, stability indication Wstable may be based on fewer than all of the W(z) coefficients that determine the response of adaptive filter 32. Further, control circuit 39 generates control signal haltW to control adaptation of W coefficient control 31 and generates control signal haltSE to control adaptation of SE coefficient control 33. Similarly, SE coefficient control 33 provides stability indication SEstable, which indicates when stability measuren Δ(Σ|SEk(z))|/Δt is less than a threshold, but which also may be based on fewer than all of the coefficients of SE(z). Exemplary algorithms for sequencing of the adapting of W(z) and secondary path estimate SE(z) are discussed in further detail below with reference to FIGS. 4-6.
The exemplary circuits and methods illustrated herein provide sequencing of the training of SE coefficient control 33 and then W coefficient control 31 so that SE coefficient control 33 contains proper values, and thus response SECOPY(z) and response SE(z) have suitable characteristics prior to adapting response W(z). The above is accomplished by permitting W coefficient control 31 to adapt only after SE coefficient control 33 has adapted, and then adaptation of SE coefficient control 33 is halted. In the example shown in FIG. 4, secondary path adaptive filter adaptation is halted by asserting control signal haltSE after the estimated response SE(z) has become stable and W(z) is allowed to adapt by de-asserting control signal haltW. In the particular operation shown in FIG. 4, response SE(z) is only allowed to adapt when response W(z) is not adapting and vice-versa, although under other circumstances or in other operating modes, responses SE(z) and W(z) can be allowed to adapt at the same time. In the particular example, response SE(z) is adapting up until time t0, when either the amount of time that response SE(z) has been adapting, the assertion of indication SEstable, or other criteria indicates that response SE(z) has adapted sufficiently to estimate secondary paths S(z) and W(z) can then be adapted.
At time t0, control signal halt SE is asserted and control signal haltW is de-asserted, to transition from adapting SE(z) to adapting W(z). At time t1 the Source level indication provided to control circuit 39 from source audio detector 35A indicates that the downlink audio is greater than a threshold, which indicates that the leakage into reference microphone r will likely be too great for proper operation of the ANC system. The threshold may be determined from the amplitude of the reference channel provided from ambient audio detector 35B as indication Ambient level. Alternatively, the value of indication Source level may be scaled by the value of indication Ambient level in order to estimate the impact of source audio leakage into reference microphone signal ref. In response, control signal haltW is asserted to halt the adaptation of response W(z). Control signal halt SE is then de-asserted, since a strong (non-tone) downlink audio signal is generally a good training signal for response SE(z), although an upper threshold may also be applied to the Source level indication that will prevent adaptation of response SE(z) as well, if the downlink audio is so strong as to cause non-linear behavior of the ANC system. At time t2, the level indication has decreased below the threshold and response W(z) is again permitted to adapt for a short period of time, by de-asserting control signal haltW and adaptation of response SE(z) is halted by asserting control signal haltSE. At time t3, response W(z) is permitted to adapt for a maximum period of time, due to the amount of time response SE(z) has been cumulatively adapting crossing a threshold, or due to a stability criteria applied to the coefficients of response SE(z) or another rule that indicates that response SE(z) is of sufficient quality that response W(z) can be applied to adapt for a maximum time period Tmaxw.
The sequence of adaptation of SE(z) and W(z) continues until time t6, when a remote ring tone, or other tonal signal, is detected in downlink audio d. First, control circuit 39 determines that indication Source level exceeds the threshold, and asserts control signal haltW, halting adaptation of response W(z). Response SE(z) is permitted to adapt by de-asserting control signal haltSE, but at time t7, indication Ring is asserted due to source audio detector 35A determining that the source audio is predominantly a tone. At time t8, the tone in the source audio has ended, but response W(z) is not allowed to adapt, since adaptation of response SE(z) must be performed with a more appropriate training signal to ensure that the ring tone has not disrupted response SE(z) during the interval from time t6 to time t7, and no source audio is present to adapt response SE(z) at time t8. Normal operation resumes with the return of downlink speech d of sufficient amplitude at time t9, with a sequence of adaptation of response SE(z) followed by adaptation of response W(z) as directed by control signals haltSE and haltW.
In the example shown in FIG. 5, after a number of tones are detected, secondary path adaptive filter adaptation is reset, which reduces the impact of the short adaptation periods illustrated at the beginning of each remote tone, e.g., from time t10 until control signal haltSE is asserted. Then, as in the example of FIG. 4 after the ring tone sequence is complete, control signal haltSE is again de-asserted to adapt response SE(z) while downlink speech is present, and then control signal haltW is de-asserted while control signal halt SE is asserted to permit response W(z) to adapt to the ambient acoustic environment.
FIG. 6 illustrates a method that can be implemented by control circuit 39 of FIG. 3. While an estimate of the magnitude of source audio, e.g. downlink audio d with respect to reference microphone signal ref is greater than a threshold (decision 60), or response W(z) is determined to be unstable (decision 61), e.g. if the coefficients of response W(z) are changing rapidly, or downlink audio d is a tone (decision 62), then adaptation of response W(z) and response SE(z) is halted (step 63). Otherwise, after the estimate of the magnitude of source audio, e.g. downlink audio d with respect to reference microphone signal ref is less than or equal to the threshold (decision 60), response W(z) is determined to be stable (decision 61), and downlink audio d is not a tone (decision 62), then adaptation of responses SE(z) and W(z) is sequenced. First, adaptation of response SE(z) is enabled (step 64) while adaptation of response W(z) is still disabled (step 63). Then adaptation of response SE(z) is halted (step 65), and adaptation of response W(z) is enabled (step 66). Then, adaptation of response W(z) is halted again (step 67). Until ANC generation is ended (decision 68), steps 60-67 are repeated. The flowchart of FIG. 6 is a simplified flowchart that only shows the actions of the particular mechanisms illustrated in the waveform diagrams of FIGS. 4-5 and the circuit of FIG. 3, but does not include all of the various other mechanisms that control adaptation of responses W(z) and SE(z). For example, the sequence of adaptation of steps 64-steps 67 may be repeated periodically, even if the source audio magnitude is not large and response W(z) remains stable, in order to ensure that proper adaptation is maintained.
Referring now to FIG. 7, a block diagram of an ANC system is shown for implementing ANC techniques as depicted in FIG. 3, and having a processing circuit 40 as may be implemented within CODEC integrated circuit 20 of FIG. 2. Processing circuit 40 includes a processor core 42 coupled to a memory 44 in which are stored program instructions comprising a computer-program product that may implement some or all of the above-described ANC techniques, as well as other signal processing. Optionally, a dedicated digital signal processing (DSP) logic 46 may be provided to implement a portion of, or alternatively all of, the ANC signal processing provided by processing circuit 40. Processing circuit 40 also includes ADCs 21A-21C for receiving inputs from reference microphone R, error microphone E and near speech microphone NS, respectively. DAC 23 and amplifier A1 are also provided by processing circuit 40 for providing the transducer output signal, including anti-noise as described above.
While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that the foregoing, as well as other changes in form and details may be made therein without departing from the spirit and scope of the invention.

## Claims

1. A personal audio device, comprising:
a personal audio device housing;
an output transducer mounted on the housing for reproducing an audio signal including source audio and an anti-noise signal for countering effects of ambient audio sounds in an acoustic output of the output transducer;
a reference microphone mounted on the housing for providing a reference microphone signal indicative of the ambient audio sounds;
a processing circuit within the housing that adaptively generates the anti-noise signal by adaptively filtering the reference microphone signal with a first adaptive filter, such that the anti-noise signal causes substantial cancellation of the ambient audio sounds, wherein the processing circuit determines whether or not an amplitude of acoustic leakage of source audio into the reference microphone is substantial with respect to an amplitude of the ambient audio sounds, and in response to determining that the amplitude of acoustic leakage of source audio into the reference microphone is substantial with respect to the amplitude of the ambient audio sounds, takes action to prevent improper generation of the anti-noise signal; and
an error microphone mounted on the housing that generates an error microphone signal indicative of the acoustic output of the output transducer and the ambient audio sounds at the output transducer, wherein the processing circuit further generates the anti-noise signal in conformity with an error signal, wherein the processing circuit implements a secondary path adaptive filter having a secondary path response that shapes the source audio and a combiner that removes the source audio from the error microphone signal to provide the error signal, and wherein the taking action comprises sequencing adaptation of the secondary path adaptive filter and the first adaptive filter so that adaptation of the first adaptive filter is initiated only after adaptation of the secondary path adaptive filter is substantially completed, wherein the adaptation of the secondary path adaptive filter is performed while adaptation of the first adaptive filter is halted, and wherein the sequencing of the adaptation is performed in response to the processing circuit determining that the amplitude of acoustic leakage of the source audio into the reference microphone is substantial with respect to the amplitude of the ambient audio sounds.

2. The personal audio device of claim 1, wherein the processing circuit determining that an amplitude of acoustic leakage of the source audio into the reference microphone is substantial with respect to an amplitude of the ambient audio sounds by comparing an amplitude of the source audio to a threshold value.

3. The personal audio device of claim 2, wherein the processing circuit further determines the threshold value from a measurement of a magnitude of the ambient audio sounds.

4. The personal audio device of claim 2, wherein the processing circuit further determines the amplitude of the source audio from a volume setting of the personal audio device.

5. A method of countering effects of ambient audio sounds by a personal audio device, the method comprising:
adaptively generating an anti-noise signal from the reference microphone signal with a first adaptive filter and in conformity with an error signal such that the anti-noise signal causes substantial cancellation of the ambient audio sounds;
combining the anti-noise signal with source audio;
providing a result of the combining to a transducer;
measuring the ambient audio sounds with a reference microphone;
generating an error microphone signal indicative of an acoustic output of the transducer and the ambient audio sounds at the transducer;
implementing a secondary path adaptive filter having a secondary path response that shapes the source audio and a combiner that removes the source audio from the error microphone signal to provide the error signal;
determining whether an amplitude of acoustic leakage of the source audio into the reference microphone is substantial with respect to an amplitude of the ambient audio sounds; and
responsive to determining that the amplitude of the acoustic leakage of the source audio into the reference microphone is substantial with respect to the amplitude of the ambient audio sounds, taking action to prevent improper generation of the anti-noise signal by sequencing adaptation of the secondary path adaptive filter and the first adaptive filter so that adaptation of the first adaptive filter is initiated only after adaptation of the secondary path adaptive filter has completed, wherein the adaptation of the secondary path adaptive filter is performed while adaptation of the first adaptive filter is halted.

6. The method of claim 5, wherein the determining determines that an amplitude of acoustic leakage of the source audio into the reference microphone is substantial with respect to an amplitude of the ambient audio sounds by comparing an amplitude of the source audio to a threshold value.

7. The method of claim 6, further comprising determining the threshold value from a measurement of a magnitude of the ambient audio sounds.

8. The method of claim 6, wherein the determining determines the amplitude of the source audio from a volume setting of the personal audio device.

9. An integrated circuit for implementing at least a portion of a personal audio device, comprising:
an output for providing an output signal to an output transducer including both source audio for playback to a listener and an anti-noise signal for countering the effects of ambient audio sounds in an acoustic output of the output transducer;
a reference microphone input for receiving a reference microphone signal indicative of the ambient audio sounds;
a processing circuit within the housing that adaptively generates the anti-noise signal by adaptively filtering the reference microphone signal with a first adaptive filter, such that the anti-noise signal causes substantial cancellation of the ambient audio sounds, wherein the processing circuit determines whether or not an amplitude of acoustic leakage of source audio into the reference microphone is substantial with respect to an amplitude of the ambient audio sounds, and in response to determining that the amplitude of acoustic leakage of source audio into the reference microphone is substantial with respect to the amplitude of the ambient audio sounds, takes action to prevent improper generation of the anti-noise signal; and
an error microphone input for receiving an error microphone signal indicative of the acoustic output of the output transducer and the ambient audio sounds at the output transducer, wherein the processing circuit further generates the anti-noise signal in conformity with an error signal, wherein the processing circuit implements a secondary path adaptive filter having a secondary path response that shapes the source audio and a combiner that removes the source audio from the error microphone signal to provide the error signal, and wherein the taking action comprises sequencing adaptation of the secondary path adaptive filter and the first adaptive filter so that adaptation of the first adaptive filter is initiated only after adaptation of the secondary path adaptive filter is substantially completed, wherein the adaptation of the secondary path adaptive filter is performed while adaptation of the first adaptive filter is halted, and wherein the sequencing of the adaptation is performed in response to the processing circuit determining that the amplitude of acoustic leakage of the source audio into the reference microphone is substantial with respect to the amplitude of the ambient audio sounds.

10. The integrated circuit of claim 9, wherein the processing circuit determining that an amplitude of acoustic leakage of the source audio into the reference microphone is substantial with respect to an amplitude of the ambient audio sounds by comparing an amplitude of the source audio to a threshold value.

11. The integrated circuit of claim 10, wherein the processing circuit further determines the threshold value from a measurement of a magnitude of the ambient audio sounds.

12. The integrated circuit of claim 10, wherein the processing circuit further determines the amplitude of the source audio from a volume setting of the personal audio device.