1. Field of the Invention
This invention relates to signal reproduction circuitry, in particular for use in an audio reproduction device, and to a method of operation of such signal reproduction circuitry.
2. Description of the Related Art
It is known in audio reproduction devices to use sigma-delta modulation to encode data for storage or transmission over a transmission channel. For example, in the Direct Stream Digital (DSD) data format used for encoding data for storage on Super Audio Compact Discs (SACDs), a 1-bit sigma-delta modulator is used.
In order to allow such a system to reproduce an audio signal accurately, a high sampling rate is used, and the quantization error is fed back into the system through a lowpass filter, so that the quantization noise is moved into the inaudible ultrasonic frequency range. The result is that a large proportion of the signal power of the encoded signal is located at ultrasonic frequencies.
In a playback device, a filter is then used to remove the ultrasonic noise, in order to protect the amplifier and speakers. This is effective, provided that the noise distribution is essentially constant over the ultrasonic frequency range.
However, situations can occur in which the ultrasonic power is concentrated at a single frequency or set of frequencies. Although these frequencies are in the inaudible ultrasonic range, they can overload the amplifier or speakers in the playback system. In such circumstances, the filter may be able to remove only a small part of the ultrasonic power, and the remaining ultrasonic power may cause audible artefacts or even damage to the amplifier or speakers in the playback system.
According to a first aspect of the present invention, there is provided a filter device, comprising:
According to a second aspect of the present invention, there is provided a method of filtering a signal, comprising:
This has the advantage that, when a repeated bit pattern is detected, frequency components at the frequency corresponding to the repeated bit pattern are removed or attenuated.
For a better understanding of the present invention, and to show how it may be put into effect, reference will now be made, by way of example only, to the accompanying drawings, in which:
The 1-bit data stream is applied to digital filter circuitry 14, which will be described in more detail below, but whose function, in general terms, is to remove as far as possible the unwanted ultrasonic components of the encoded signal.
The filtered multi-bit sigma-delta signal output from the filter 14 is applied to a multi-bit sigma-delta digital-analogue (D/A) converter 16, which reconstructs the original analogue signal waveform.
The D/A converter output signal is then applied to an analogue lowpass filter 18 to further smooth the signal. The resulting signal is applied to an amplifier 20, which then drives the loudspeaker 22.
Although an illustrative audio signal reproduction system 10 is shown in
The pattern detector 30 includes a cyclic behaviour detection block 38, for detecting cyclic behaviour in the DSD format input data stream, and a pattern duration verification block 40, for determining that the cyclic behaviour is sufficiently persistent that action should be taken to prevent it from impacting on the output signal.
For example, a sigma-delta modulator can become unstable, in which case the data stream may contain a repeating pattern of bits, which will have the effect of concentrating noise power at one frequency or set of frequencies. Also, the Super Audio CD (SACD) standard defines a silence pattern. Again, if this pattern persists, it will have the effect of concentrating noise power at one frequency or set of frequencies.
The delayed bit stream from the delay element 46 is applied to a second input of the comparator 44, which produces an output signal when the current value of the input data bit is equal to the bit value of the delayed bit stream.
The output signal from the cyclic behaviour detection block 38 is applied to a first input of an AND gate 48, the second input of which receives the clock signal used to synchronize the circuitry to the received bit stream. Thus, the AND gate 48 produces output clock pulses during the period when the cyclic behaviour detection block 38 is producing an output signal. The output signal from the cyclic behaviour detection block 38 is also applied to an inverter 50, which thus produces a high level output signal during the period when the cyclic behaviour detection block 38 is not producing an output signal.
Clock pulses from the AND gate 48 are applied to an UP input of a counter 52, which counts the number of such clock pulses that it receives. At the same time, the output signal from the inverter 50 is applied to a RESET input of the counter 52. Thus, the counter value is reset to zero whenever the cyclic behaviour detection block 38 stops producing an output signal.
The counter value from the counter 52 is applied to a first input of a comparator 54, which receives a threshold value as its second input. The comparator produces a high level output signal when the counter value from the counter 52 becomes equal to or greater than the threshold value. The threshold value is chosen based on the form of the actual data stream, including the effects of any noise shaping algorithms, in order that any pattern can be detected as quickly as possible, while minimizing the possibility of a false positive pattern detection.
Thus, when the comparator 54 produces a high level output tone_detect signal, it is known that the input data stream contains a bit pattern, having a length of N bits, that has persisted for enough repetitions to be able to assume that there is a pattern in the input data, rather than merely a coincidental repetition.
The tone_detect signal from the comparator 54 is supplied as a control input to the switch 36 illustrated in
When this control input is low, i.e. when the comparator 54 has detected a repeating pattern, the switch 36 outputs the input signal received from the cyclic pattern filter 34. The cyclic pattern filter output is therefore brought into action when a bit pattern, having a length of N bits and hence a corresponding frequency of fs/N, where fs is the sampling frequency of the data, has be detected. If no corrective action is taken, such a repeating pattern would generate a large signal at this frequency, which the ultrasonic noise filter 32 may be unable to remove to a sufficient extent to protect the amplifier 20 and speaker 22.
The cyclic pattern filter 34 is therefore designed, for example as a notch filter or a comb filter, such that it can remove signals at the frequency of fs/N.
It can thus be seen that the value output from the adder 62 at any time is the sum of the value of the current input sample and the values of the (N-1) immediately preceding samples.
That is, the output value y at a current time iT, where T is the sampling period, is based on input values x as follows:
Specifically, the DSD format input data stream from the playback device 12 is applied to one input of a first adder 70, and is also applied to a first delay unit 72 that delays the signal by N sample periods. The output of the first delay unit 72 is applied to a second input of the first adder 70, and subtracted from the first input.
The output of the first adder 70 is applied to a first input of a second adder 74, the output of which is fed back to a second delay unit 76, which delays the signal by one sample period. The output from this second delay unit 76 is applied to a second input of the second adder 74. The output of the second adder 74 is then also used as the output of the filter circuit 34.
The cyclic pattern filter 34, either as shown in
For example, when the input data stream is +1 +1 +1 −1 +1 +1 +1 −1+1 +1 +1 −1 etc, the repetition length N is equal to four samples, and the sum of any four consecutive bits in the input stream is equal to +2, irrespective of the position of those four bits in the input data stream, for as long as the cyclic behaviour persists.
In the frequency domain, the frequency response H(f) of the cyclic pattern filter 34, either as shown in
This illustrates that there is no attenuation at DC, and that there is minimal attenuation at audio frequencies such that the audio band information is intact, but that the filter response is zero (i.e. maximum attenuation) at a frequency f=fs/N and multiples thereof.
Thus, in step 90, the input data stream is applied to the filter circuitry 14 and, in step 92, the cyclic behaviour detection block 38 tests whether the current value of the input data bit is equal to the bit value of the delayed bit stream, as described above with reference to
If it is found in step 92 that the current value of the input data bit does equal the bit value of the delayed bit stream, a signal is passed to the pattern duration verification block 40, which determines in step 94 whether the length of the repeating sequence exceeds a threshold, as described above with reference to
If it is determined that the length of the repeating sequence does not exceed the threshold, the process passes to step 96, in which the ultrasonic noise filter 32 is selected for use. The ultrasonic noise filter 32 is also selected for use if there is no detection in step 92 of a repeating pattern.
If it is determined in step 94 that the length of the repeating sequence does exceed the threshold, the process passes to step 98, in which the cyclic pattern filter 34 is selected for use.
At the time T1, the data becomes cyclic. For example, it may contain the repeated eight bit pattern −1 +1 −1 −1 −1 +1 +1 −1. That is, the repetition length N=8. At this time, the output starts to show a cyclical pattern, and the pattern duration verification block 40 starts to count the number of samples for which the pattern persists.
At the time T2, the counted number of samples reaches the threshold value and the comparator 54 outputs a high level tone_detect signal, as shown by the dashed line in
The fact that the filter output becomes equal to its previous average level means that there are no glitches or sudden level changes that might adversely affect the output signal quality which is advantageous.
When the pattern in the input data ends, the standard filter circuitry 32 is re-engaged and, at this time, the substantially constant level output transitions into an output signal, again without glitches, which is again advantageous.
There is thus described a system for removing the effects of patterns in the input signal data stream.
The skilled person will recognise that the above-described apparatus and methods may be embodied as processor control code, for example on a carrier medium such as a disk, CD- or DVD-ROM, programmed memory such as read only memory (Firmware), or on a data carrier such as an optical or electrical signal carrier. For many applications embodiments of the invention will be implemented on a DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit) or FPGA (Field Programmable Gate Array). Thus the code may comprise conventional programme code or microcode or, for example code for setting up or controlling an ASIC or FPGA. The code may also comprise code for dynamically configuring re-configurable apparatus such as re-programmable logic gate arrays. Similarly the code may comprise code for a hardware description language such as Verilog™ or VHDL (Very high speed integrated circuit Hardware Description Language). As the skilled person will appreciate, the code may be distributed between a plurality of coupled components in communication with one another. Where appropriate, the embodiments may also be implemented using code running on a field-(re)programmable analogue array or similar device in order to configure analogue hardware.
It is noted that the invention may be used in a number of applications. These include, but are not limited to, consumer applications and automotive applications. For example, typical consumer applications include laptops, mobile phones, PDAs and personal computers. Typical automotive applications include in-car, in-train and in-plane entertainment systems.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word “comprising” does not exclude the presence of elements or steps other than those listed in a claim, “a” or “an” does not exclude a plurality, and a single feature or other unit may fulfill the functions of several units recited in the claims. Any reference signs in the claims shall not be construed so as to limit their scope.
Number | Date | Country | Kind |
---|---|---|---|
0706333.2 | Mar 2007 | GB | national |