Direct mapping
11621012 · 2023-04-04
Assignee
Inventors
Cpc classification
H03M5/14
ELECTRICITY
G10L19/167
PHYSICS
G06F3/165
PHYSICS
International classification
G10L19/02
PHYSICS
Abstract
A single-bit audio stream can be converted to a modified single-bit audio stream with a constant edge rate while maintaining a modulation index of the original audio stream using direct mapping. With direct mapping, a pre-filter bank may be combined with a multi-bit symbol mapper to select symbols for the modified audio stream with a constant edge rate per symbol and the same modulation index as the original audio stream. The output of the pre-filter bank may be an audio stream with no consecutive full-scale symbols. Using the output of the pre-filter bank, a multi-bit symbol mapper may use the symbol selector to output a symbol with a constant edge rate per symbol and the same modulation index as the original signal. The symbols may be converted to an analog signal for reproduction of audio content using a transducer.
Claims
1. An apparatus, comprising: a pre-filter bank configured to receive an input single-bit audio stream and to select multi-bit symbols based, at least in part, on the input single-bit audio stream; and a pulse width modulation (PWM) mapper coupled to receive the selected multi-bit symbols from the pre-filter bank and configured to output a converted single-bit audio stream having equivalent audio content as the input single-bit audio stream based, at least in part, on the selected multi-bit symbols with a constant edge rate and a modulation index that can be as high as the modulation index of the received single-bit audio stream.
2. The apparatus of claim 1, wherein the pre-filter bank is configured to select the multi-bit symbols to generate the converted single-bit audio stream without consecutive full-scale symbols.
3. The apparatus of claim 1, wherein the pre-filter bank is configured to select the multi-bit symbols to generate equivalent audio content by using multiple representations of a particular quantization symbol, wherein the multiple representations are alternatively encoded in the converted single-bit audio stream.
4. The apparatus of claim 1, wherein the pre-filter bank is configured to select the multi-bit symbols to produce the converted single-bit audio stream with a modulation index equivalent to the input single-bit audio stream.
5. The apparatus of claim 1, wherein the pre-filter bank is configured to modify a volume of audio content of the input single-bit audio stream.
6. The apparatus of claim 1, wherein the pre-filter bank is configured to perform magnitude compensation on the input single-bit audio stream.
7. The apparatus of claim 1, wherein the pre-filter bank is configured to select multi-bit symbols to filter out-of-band noise from the input single-bit audio stream.
8. The apparatus of claim 1, further comprising a digital-to-analog converter coupled to receive the converted single-bit audio stream as input from the pulse width modulation (PWM) mapper.
9. The apparatus of claim 1, further comprising a polyphase filter bank coupled to receive the converted single-bit audio stream from the pulse width modulation (PWM) mapper and configured to output a plurality of one-bit audio signals.
10. The apparatus of claim 9, further comprising a digital-to-analog converter (DAC) coupled to receive the plurality of one-bit audio signals form the polyphase filter bank and configured to generate an analog output for reproducing the equivalent audio content with a plurality of analog finite impulse response (FIR) filters.
11. The apparatus of claim 9, further comprising a noise shaper coupled to the pulse width modulation (PWM) mapper, wherein the pulse width modulation (PWM) mapper is configured to output a converted single-bit audio stream by selecting a particular representation from a plurality of representations for the equivalent audio content based, at least in part, on an output of the noise shaper.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) For a more complete understanding of the disclosed system and methods, reference is now made to the following descriptions taken in conjunction with the accompanying drawings.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION
(11) Audio quality while playing a single-bit audio stream can be improved by modifying the single-bit audio stream to have a constant edge rate while preserving a modulation index of the audio stream. Modifying an audio stream to have a constant edge rate with the same modulation index improves playback, particularly in devices using current-steering digital-to-analog converters (DACs) such as mobile phones. Playback of a single-bit audio stream, such as a pulse density modulation (PDM) encoded high quality audio file, is illustrated in
(12)
(13) Conversion of the single-bit audio stream may be performed with a direct mapper that outputs a single-bit PWM output comprising multi-bit symbols selected based, in part, on the original audio stream such that the audio content in the original audio stream is preserved. One embodiment of a circuit for conversion using a direct mapper is shown in
(14) In one embodiment of direct mapper 310, the direct mapper 310 may include a pre-filter bank 312 and a PWM mapper 314. The pre-filter bank 312 may include a plurality of low-pass filters that implement a multi-bit symbol selector, a filter for out-of-band noise, a filter for quantization noise, a volume control, and/or magnitude compensation. The output of the pre-filter bank 312 is a symbol selector, which may be interpreted by PWM mapper 314 to select a multi-bit symbol for output as the converted single-bit audio stream. The symbol selection performed by the pre-filter bank 312 may be configured to select a symbol from the PWM mapper 314 such that the audio stream at output node 316 has a constant edge rate per symbol and the same modulation index as the original audio stream received at input node 302. When a constant edge rate per symbol is achieved, the converted audio stream may have few or no consecutive full-scale symbols at output node 316. The pre-filter bank 312 achieves this by inserting 0's without using a modulator that would otherwise decrease sound quality.
(15) The likelihood of consecutive full-scale symbols may be reduced by selecting an appropriate window size for the pre-filter bank 312. A constant edge rate may be achieved by screening the original audio stream in a long enough window of time such that no two full-scale symbols are selected consecutively. Thus, the pre-filter bank 312 may have a number of taps selected such that there are enough taps to avoid two consecutive full-scale symbols at a designed modulation index. A modulation index is calculated as (28−2N)/28 and N is the number of 1's in a 28-bit window. A Direct Stream Digital (DSD) signal for a 0 dB Super Audio Compact Disc (SACD) may have a modulation index of 50% with on average six 1's in an 8-bit wide window. A DSD signal for a +3 dB SACD may have a modulation index of 71% with on average 7 1's in an 8-bit wide window. A pre-filter bank 312 with a seventh-order FIR filter has an 8-bit wide window and may sufficiently reduce the likelihood of consecutive full-scale symbols. A longer window for the pre-filter bank 312 may be chosen to guarantee that no consecutive two-full scale symbols are selected. For a DSD signal with a 71% modulation index, a window of 24 bits can guarantee no consecutive full-scale symbols. At a 71% modulation index, there are 24 1's and 4 0's in a 28-bit window, guaranteeing that every 24 bits of consecutive 1's will be followed by 4 bits of 0's.
(16) One method of configuring the pre-filter bank 312 to select symbols to achieve non-consecutive full-scale symbols is to select symbols such that a gap of 0's separates symbols. For example, symbols are selected such that when a full-scale symbol is used, a previous symbol will end in zero and the next symbol will begin with a 0. Thus, a full-scale symbol is always surrounded by 0's in neighboring symbols, such as in the audio stream of “1111-1110/1111-1111/0111-1111,” where the slashes indicate symbol boundaries. As another example, symmetric symbols starting and ending with 0's can be used except for full-scale symbols, which will be all 1's. These example symbol selection schemes achieve a constant edge rate while preserving the modulation index.
(17) A direct mapper as illustrated in
(18)
(19) A PWM mapper 314 may have multiple representations for any selected symbol. A representation may be selected for an indicated symbol based on one or more criteria. In one embodiment, a representation is selected based, in part, on a noise shaping algorithm as shown in
(20) The input to the PWM mapper 314 is a symbol selector indication generated by the pre-filter bank 312. The pre-filter bank 312 may select symbols to represent the original single-bit audio stream based on criteria including desired volume level indicated by a volume selector indicator and/or a magnitude compensation indicator. An example configuration of a pre-bank filter 312 to generate a symbol selection is shown in
(21) Volume control may additionally or alternatively be implemented in analog circuitry processing the converted single-bit audio stream. In some embodiments, two-stage volume control may be implemented using a digital volume control and an analog volume control.
(22) A method for performing two-stage volume control is shown in
(23) The volume control method 800 may be implemented in any mixed signal circuit, including a mixed signal circuit including a processor such as a digital signal processor (DSP). For example, the single-bit audio stream may be received, processed, and converted to symbols by a digital signal processor (DSP). The output of the DSP may be provided to a DAC for conversion to analog signals, which are then processed for output to a transducer. The DSP and the DAC may be coupled in an integrated circuit (IC). The IC may be packaged and incorporated into consumer electronic devices, such as mobile phones.
(24) One advantageous embodiment for an audio processor described herein is a personal media device for playing back music, high-fidelity music, and/or speech from telephone calls.
(25) The operations described above as performed by a controller may be performed by any circuit configured to perform the described operations. Such a circuit may be an integrated circuit (IC) constructed on a semiconductor substrate and include logic circuitry, such as transistors configured as logic gates, and memory circuitry, such as transistors and capacitors configured as dynamic random access memory (DRAM), electronically programmable read-only memory (EPROM), or other memory devices. The logic circuitry may be configured through hard-wire connections or through programming by instructions contained in firmware. Further, the logic circuitry may be configured as a general-purpose processor (e.g., CPU or DSP) capable of executing instructions contained in software. The firmware and/or software may include instructions that cause the processing of signals described herein to be performed. The circuitry or software may be organized as blocks that are configured to perform specific functions. Alternatively, some circuitry or software may be organized as shared blocks that can perform several of the described operations. In some embodiments, the integrated circuit (IC) that is the controller may include other functionality. For example, the controller IC may include an audio coder/decoder (CODEC) along with circuitry for performing the functions described herein. Such an IC is one example of an audio controller. Other audio functionality may be additionally or alternatively integrated with the IC circuitry described herein to form an audio controller.
(26) If implemented in firmware and/or software, functions described above may be stored as one or more instructions or code on a computer-readable medium. Examples include non-transitory computer-readable media encoded with a data structure and computer-readable media encoded with a computer program. Computer-readable media includes physical computer storage media. A storage medium may be any available medium that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise random access memory (RAM), read-only memory (ROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Disk and disc includes compact discs (CD), laser discs, optical discs, digital versatile discs (DVD), floppy disks and Blu-ray discs. Generally, disks reproduce data magnetically, and discs reproduce data optically. Combinations of the above should also be included within the scope of computer-readable media.
(27) In addition to storage on computer readable medium, instructions and/or data may be provided as signals on transmission media included in a communication apparatus. For example, a communication apparatus may include a transceiver having signals indicative of instructions and data. The instructions and data are configured to cause one or more processors to implement the functions outlined in the claims.
(28) The described methods are generally set forth in a logical flow of steps. As such, the described order and labeled steps of representative figures are indicative of aspects of the disclosed method. Other steps and methods may be conceived that are equivalent in function, logic, or effect to one or more steps, or portions thereof, of the illustrated method. Additionally, the format and symbols employed are provided to explain the logical steps of the method and are understood not to limit the scope of the method. Although various arrow types and line types may be employed in the flow chart diagram, they are understood not to limit the scope of the corresponding method. Indeed, some arrows or other connectors may be used to indicate only the logical flow of the method. For instance, an arrow may indicate a waiting or monitoring period of unspecified duration between enumerated steps of the depicted method. Additionally, the order in which a particular method occurs may or may not strictly adhere to the order of the corresponding steps shown.
(29) Although the present disclosure and certain representative advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the disclosure as defined by the appended claims. Moreover, the scope of the present application is not intended to be limited to the particular embodiments of the process, machine, manufacture, composition of matter, means, methods and steps described in the specification. For example, although ones (1s) and zeros (0s) or highs and lows are given as example bit values throughout the description, the function of ones and zeros may be reversed without change in operation of the processor described in embodiments above. As another example, where general purpose processors are described as implementing certain processing steps, the general purpose processor may be a digital signal processors (DSPs), a graphics processing units (GPUs), a central processing units (CPUs), or other configurable logic circuitry. As a further example, although processing of audio data is described, other data may be processed through the filters and other circuitry described above. As one of ordinary skill in the art will readily appreciate from the present disclosure, processes, machines, manufacture, compositions of matter, means, methods, or steps, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding embodiments described herein may be utilized. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or steps.