KR100722930B1 - Apparatus and method for playing audio using dma - Google Patents

Apparatus and method for playing audio using dma Download PDF

Info

Publication number
KR100722930B1
KR100722930B1 KR1020050088950A KR20050088950A KR100722930B1 KR 100722930 B1 KR100722930 B1 KR 100722930B1 KR 1020050088950 A KR1020050088950 A KR 1020050088950A KR 20050088950 A KR20050088950 A KR 20050088950A KR 100722930 B1 KR100722930 B1 KR 100722930B1
Authority
KR
South Korea
Prior art keywords
data
audio
memory
dma controller
audio data
Prior art date
Application number
KR1020050088950A
Other languages
Korean (ko)
Other versions
KR20070034352A (en
Inventor
이재호
Original Assignee
엠텍비젼 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엠텍비젼 주식회사 filed Critical 엠텍비젼 주식회사
Priority to KR1020050088950A priority Critical patent/KR100722930B1/en
Priority to PCT/KR2006/003752 priority patent/WO2007035043A1/en
Publication of KR20070034352A publication Critical patent/KR20070034352A/en
Application granted granted Critical
Publication of KR100722930B1 publication Critical patent/KR100722930B1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

본 발명은 디엠에이를 이용한 오디오 혼합 재생 장치 및 방법에 관한 것으로서, 본 발명에 따르면, 복수의 오디오 데이터를 혼합 재생하는 장치에 있어서, 상기 복수의 오디오 데이터를 저장하는 메모리; 상기 복수의 오디오 데이터를 편집 및 가공하는 오디오 프로세서; 상기 오디오 프로세서로부터 데이터 읽기 또는 쓰기를 위한 제어 신호를 수신하며, 상기 메모리로부터 복수의 데이터를 읽어 먹싱(muxing)하고, 먹싱된 데이터를 출력하는 DMA 제어기; 및 상기 먹싱된 데이터를 디지털/아날로그 컨버터(DAC)로 전송하는 입출력 인터페이스를 포함하는 오디오 혼합 재생 장치가 제공된다. 본 발명에 따르면, 별도의 하드웨어 추가 및 오디오 프로세서의 부하 증가 없이 복수의 오디오 데이터를 재생할 수 있는 장점이 있다.An apparatus for mixing and reproducing a plurality of audio data, the apparatus comprising: a memory for storing the plurality of audio data; An audio processor for editing and processing the plurality of audio data; A DMA controller for receiving a control signal for reading or writing data from the audio processor, muxing a plurality of data from the memory, and outputting the muxed data; And an input / output interface for transmitting the edited data to a digital-to-analog converter (DAC). According to the present invention, it is possible to reproduce a plurality of audio data without adding additional hardware and increasing the load of the audio processor.

오디오, 디엠에이, DMA, 오디오 프로세서, PCM, 혼합, 먹스 Audio, DMA, DMA, Audio Processor, PCM, Mixed, Mux

Description

디엠에이를 이용한 오디오 혼합 재생 장치 및 방법{APPARATUS AND METHOD FOR PLAYING AUDIO USING DMA}BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to an apparatus,

도 1은 일반적인 오디오 혼합 재생 장치를 도시한 블록도.1 is a block diagram showing a general audio mixing / reproducing apparatus;

도 2는 종래기술에 따른 오디오 혼합 재생 장치를 도시한 블록도.2 is a block diagram showing an audio mixing / reproducing apparatus according to the prior art;

도 3은 종래기술에 따른 오디오 혼합 재생 장치를 도시한 블록도.3 is a block diagram showing an audio mixing / reproducing apparatus according to the prior art;

도 4는 도 3에 따른 오디오 MUX의 데이터 처리 과정을 도시한 도면. FIG. 4 illustrates a data process of an audio MUX according to FIG. 3; FIG.

도 5는 본 발명의 바람직한 일 실시예에 따른 오디오 혼합 재생 장치를 도시한 블록도.5 is a block diagram showing an audio mixing / reproducing apparatus according to a preferred embodiment of the present invention.

도 6은 본 발명의 바람직한 일 실시예에 따른 DMA 제어기의 블록도.6 is a block diagram of a DMA controller in accordance with a preferred embodiment of the present invention.

도 7은 본 발명의 바람직한 일 실시예에 따른 오디오 혼합 재생 과정을 도시한 도면.FIG. 7 illustrates an audio mixing / reproducing process according to a preferred embodiment of the present invention. FIG.

도 8은 일반적인 오디오 DMA의 데이터 처리 과정을 도시한 도면. 8 is a diagram illustrating a data processing process of a general audio DMA;

본 발명은 디엠에이를 이용한 오디오 혼합 재생 장치 및 방법에 관한 것으로서, 보다 상세하게는 디엠에이에서 복수의 디지털 오디오 데이터를 먹싱하여 출력 함으로써 데이터 처리의 효율을 높일 수 있는 디엠에이를 이용한 오디오 혼합 재생 장치 및 방법에 관한 것이다. The present invention relates to an audio mixing / reproducing apparatus and method using DME. More specifically, the present invention relates to an audio mixing / reproducing apparatus and method using DME which can increase efficiency of data processing by feeding a plurality of digital audio data by DME And methods.

과거, 오디오 재생 장치는 아날로그 오디오 신호 자체를 소정 카세트 테이프와 같은 기록매체로부터 독출하여 재생하는 방식을 사용하였으나, 근래에는 오디오 재생 장치가 디지털 데이터를 처리하는 단말로서 제공되고 있고, 오디오 데이터의 저장 효율 및 네트워크를 통한 전송 효율을 높이기 위해 오디오 신호를 디지털 데이터로 변환하는 과정이 일반적으로 수행되고 있으며, 나아가 디지털 데이터를 압축 및 신장하는 과정이 일반적으로 수행되고 있다. In recent years, an audio reproducing apparatus has been used as a terminal for processing digital data. In recent years, an audio reproducing apparatus has been proposed as a terminal for processing audio data, And a process of converting an audio signal into digital data in order to increase transmission efficiency through a network are generally performed, and a process of compressing and expanding digital data is generally performed.

도 1은 일반적인 오디오 혼합 재생 장치를 도시한 블록도로서, 도 1을 참조하면, 오디오 재생 장치는 오디오 프로세서(100), 메모리(106), DAC(108) 및 오디오 출력 장치(110)를 구비한다. 1 is a block diagram showing a general audio mixing and reproducing apparatus. Referring to FIG. 1, an audio reproducing apparatus includes an audio processor 100, a memory 106, a DAC 108, and an audio output apparatus 110 .

일반적으로, 아날로그 오디오 신호는 ADC(미도시)에 의해 디지털 데이터로 변환되어 메모리(106)에 저장되는데, 디지털 데이터로의 변환은 표본화, 양자화 및 부호화 과정을 통해 이루어진다. Generally, the analog audio signal is converted into digital data by an ADC (not shown) and stored in the memory 106, which is converted, through sampling, quantization, and encoding, to digital data.

표본화(샘플링)는 미리 정의된 샘플링 주파수로 아날로그 파형에 대해 샘플을 추출하는 과정이고, 양자화는 추출된 샘플에 대한 데이터 값을 소정 비트수로 표현하는 과정이며, 이와 같이 양자화된 데이터는 부호화를 거쳐 디지털 정보로서 표현된다. Sampling (sampling) is a process of extracting a sample with respect to an analog waveform at a predefined sampling frequency, quantization is a process of expressing a data value of the extracted sample by a predetermined number of bits, and the quantized data is encoded It is expressed as digital information.

오디오 프로세서(100)는 오디오 데이터를 편집, 가공 처리하는 것으로서, 중앙처리장치(Central Processor Unit, CPU)와 별도로 제공되는 디지털 신호 처리기 (Digital Signal Processor : DSP)일 수 있다. The audio processor 100 edits and processes audio data and may be a digital signal processor (DSP) provided separately from a central processing unit (CPU).

상기와 같은 과정을 통해 디지털로 변환된 오디오 데이터를 일반적으로 PCM 데이터라 하며, 오디오 출력이 필요한 경우, 오디오 프로세서(100)는 메모리(106)에 저장된 PCM 데이터를 읽어 I2S 인터페이스(104)를 통해 DAC(108)로 보내며, DAC(108)는 디지털 데이터인 PCM 데이터를 아날로그 신호로 변환하여 오디오 출력 장치(스피커, 110)를 통해 외부로 출력한다. If audio output is required, the audio processor 100 reads the PCM data stored in the memory 106 and transmits the PCM data stored in the memory 106 to the DAC 110 via the I2S interface 104. [ The DAC 108 converts the PCM data, which is digital data, into an analog signal and outputs the analog signal to the outside via an audio output device (speaker) 110.

한편, 도 1에서 DMA 제어기(Direct Memory Access, 102)는 오디오 프로세서를 거치지 않고 DAC(108) 및 오디오 출력 장치(110)와 같은 주변 장치와 메모리(106) 사이에 직접 데이터를 전달하도록 제어하는 과정을 수행한다. 1, a direct memory access (DMA) controller 102 controls to transfer data directly between a peripheral device such as the DAC 108 and the audio output device 110 and the memory 106 without going through an audio processor .

이와 같은 DMA 제어기(102)는 프로세서를 대신하여 메모리로부터 데이터를 읽거나 메모리에 데이터를 쓰는 과정을 전담하게 된다. The DMA controller 102 is dedicated to the process of reading data from or writing data to the memory on behalf of the processor.

오디오 재생 장치에 있어서, 메모리에는 다양한 음원이 저장되어 있고, 여러 가지 음원을 동시에 재생시키는 경우가 존재할 수 있는데, 예를 들어, 모바일에서 MP3 데이터의 재생 중에 외부로부터 통화 연결 요청이 있는 경우, 벨소리를 출력하는 것과 같이 여러 가지 음원을 선택적으로 재생해야 할 경우가 자주 발생한다. In the audio reproducing apparatus, there may be a case where various sound sources are stored in the memory and various sound sources are simultaneously reproduced. For example, when there is a call connection request from the outside during playback of MP3 data on the mobile, It is often necessary to selectively reproduce various sound sources such as an output sound.

도 2는 종래기술에 따른 오디오 혼합 재생 장치를 도시한 블록도이다.2 is a block diagram showing an audio mixing / reproducing apparatus according to the prior art.

도 2는 하드웨어적으로 복수의 오디오 데이터를 혼합 재생하는데 필요한 구성을 도시한 것으로서, 도 2에는 DAC(210)에서 복수의 오디오 데이터를 먹싱(muxing)하여 출력하는 구성을 도시한 것이다. FIG. 2 shows a configuration required for mixing and reproducing a plurality of audio data in hardware. FIG. 2 shows a configuration in which a DAC 210 muxes and outputs a plurality of audio data.

도 2에 도시된 바와 같이, DAC(210)에서 먹싱을 수행하는 경우, DAC(210)에 두개의 입출력 포트가 구비되어야 하며, 또한 오디오 프로세서(200)로부터 복수의 오디오 데이터를 수신해야 하기 때문에 추가적인 I2S 인터페이스(206,208)가 필요해진다. As shown in FIG. 2, in the DAC 210, two input / output ports must be provided in the DAC 210, and since a plurality of audio data must be received from the audio processor 200, The I2S interfaces 206 and 208 are required.

따라서, 도 2와 같은 오디오 재생 장치에 따르면, DAC(210)가 많은 입출력 포트를 구비하여야 하기 때문에 면적이 커지는 문제점이 있으며, 추가적인 I2S 인터페이스의 필요로 인해 제조 공정이 번거로우며, 제조 단가가 높아지는 문제점이 있었다. Therefore, the audio reproducing apparatus shown in FIG. 2 has a problem that an area is increased because the DAC 210 has many input / output ports, and the manufacturing process is troublesome due to the necessity of an additional I2S interface, .

한편, 도 3은 종래기술에 따른 오디오 혼합 재생 장치를 도시한 블록도로서, 도 3에는 별도의 하드웨어 추가 없이 소프트웨어적으로 복수의 오디오 데이터를 혼합 재생하기 위한 구성이 도시된다. FIG. 3 is a block diagram illustrating an audio mixing / reproducing apparatus according to the related art. In FIG. 3, a configuration for mixing and reproducing a plurality of audio data in software is shown without additional hardware.

도 3에 도시된 오디오 프로세서(300)에는 복수의 오디오 데이터를 먹싱하기 위한 프로그램이 포팅(porting)되며, 예를 들어, 메모리(306)로부터 두 개의 PCM 데이터(PCM Data1, PCM Data2)를 읽어 이를 먹싱하고, 먹싱에 의해 혼합된 데이터(Mixed PCM Data) 다시 메모리(306)에 저장한다. A program for feeding a plurality of audio data is ported to the audio processor 300 shown in FIG. 3. For example, the audio processor 300 reads two pieces of PCM data (PCM Data 1 and PCM Data 2) from the memory 306, (Mixed PCM Data) is stored in the memory 306 again.

도 4는 도 3에 따른 오디오 MUX의 데이터 처리 과정을 도시한 도면으로서, 도 4에 도시된 바와 같이, 종래의 오디오 MUX는 메모리로부터 복수의 오디오 데이터를 먹싱하는 과정을 수행하며, 먹싱된 데이터를 다시 메모리에 저장하는 과정을 수행한다. FIG. 4 illustrates a data processing process of the audio MUX according to FIG. 3. Referring to FIG. 4, a conventional audio MUX performs a process of muxing a plurality of audio data from a memory, And stores it in the memory again.

종래의 오디오 MUX의 의미 코드를 살펴보면 다음과 같다. The meaning code of the conventional audio MUX is as follows.

for(loop=1;loop<=Sample_Count;loop++)for (loop = 1; loop <= Sample_Count; loop ++)

{{

pcm1=read_one_sample_of_sound1_from_memory(loop);pcm1 = read_one_sample_of_sound1_from_memory (loop);

pcm2=read_one_sample_of_sound2_from_memory(loop);pcm2 = read_one_sample_of_sound2_from_memory (loop);

pcm=mux_one_sample(pcm1,pcm2);pcm = mux_one_sample (pcm1, pcm2);

write one_sample_of_output_sound(pcm);write one_sample_of_output_sound (pcm);

}}

상기한 오디오 MUX의 의미 코드에서 알 수 있는 바와 같이, 오디오 먹싱을 소프트웨어적으로 처리하는 경우, 오디오 MUX는 메모리로부터 복수의 데이터를 읽는 과정(read), 복수의 데이터를 먹싱하는 과정(mux) 및 먹싱된 데이터를 다시 메모리에 쓰는 과정(write)을 수행하게 된다. As can be seen from the meaning code of the above-mentioned audio MUX, when the audio mux is processed by software, the audio MUX includes a process of reading a plurality of data from a memory, a process of muxing a plurality of data, And the process of writing the muxed data back to the memory is performed.

도 3에 도시된 바와 같이, DMA 제어기(302)는 이와 같이 먹싱되어 메모리(306)에 저장된 데이터를 읽어 I2S 인터페이스(308)를 통해 DAC(310)로 출력하며, DAC(310)는 혼합된 데이터를 아날로그 데이터로 변환하는 과정을 수행한다. 3, the DMA controller 302 reads data stored in the memory 306 in this manner and outputs the data to the DAC 310 via the I2S interface 308. The DAC 310 reads the mixed data To analog data.

도 3 및 도 4에 도시된 오디오 재생 장치는 별도의 하드웨어를 추가하지 않기 때문에 듀얼 포트의 DAC 및 추가적인 I2S 인터페이스가 필요하지는 않으나, 오디오 프로세서에서 복수의 오디오 데이터를 먹싱하는 과정 및 먹싱에 의해 혼합된 데이터를 다시 메모리에 저장하는 과정을 수행하여야 하기 때문에 오디오 프로세서의 부하가 증가하는 문제점이 있었으며, 상기한 프로세스 수행을 위해 오디오 프로세서의 성능이 일정 수준 이상일 것을 요구하기 때문에 제조 단가가 상승하는 문제점이 있었다. The audio reproducing apparatus shown in FIG. 3 and FIG. 4 does not require any additional hardware, so that a dual port DAC and an additional I2S interface are not required. However, in the audio processor, There is a problem that the load of the audio processor is increased because the data must be stored in the memory again and the cost of the audio processor is required to be higher than a certain level in order to perform the process, .

본 발명에서는 상기한 바와 같은 종래기술의 문제점을 해결하기 위해, 별도의 하드웨어의 추가 없이 복수의 오디오 데이터를 재생할 수 있는 디엠에이를 이용한 오디오 혼합 재생 장치 및 방법을 제안하고자 한다. In order to solve the problems of the related art as described above, the present invention proposes an audio mixing / reproducing apparatus and method using a DM which can reproduce a plurality of audio data without adding any additional hardware.

본 발명의 다른 목적은 복수의 오디오 데이터를 재생하는데 있어 오디오 프로세서의 부하를 증가시키지 않는 디엠에이를 이용한 오디오 혼합 재생 장치 및 방법을 제공하는 것이다. It is another object of the present invention to provide an audio mixing / reproducing apparatus and method using a DM which does not increase the load of an audio processor in reproducing a plurality of audio data.

상기한 바와 같은 목적을 달성하기 위해, 본 발명의 바람직한 일 실시예에 따르면, 복수의 오디오 데이터를 혼합 재생하는 장치에 있어서, 상기 복수의 오디오 데이터를 저장하는 메모리; 상기 복수의 오디오 데이터를 편집 및 가공하는 오디오 프로세서; 상기 오디오 프로세서로부터 데이터 읽기 또는 쓰기를 위한 제어 신호를 수신하며, 상기 메모리로부터 복수의 데이터를 읽어 먹싱(muxing)하고, 먹싱된 데이터를 출력하는 DMA 제어기; 및 상기 먹싱된 데이터를 디지털/아날로그 컨버터(DAC)로 전송하는 입출력 인터페이스를 포함하는 오디오 혼합 재생 장치가 제공된다. In order to achieve the above object, according to a preferred embodiment of the present invention, there is provided an apparatus for mixing and reproducing a plurality of audio data, the apparatus comprising: a memory for storing the plurality of audio data; An audio processor for editing and processing the plurality of audio data; A DMA controller for receiving a control signal for reading or writing data from the audio processor, muxing a plurality of data from the memory, and outputting the muxed data; And an input / output interface for transmitting the edited data to a digital-to-analog converter (DAC).

상기 DMA 제어기는, 상기 메모리로부터 읽은 복수의 오디오 데이터 및 상기 먹싱된 데이터를 임시 저장하는 데이터 버퍼; 및 상기 데이터 버퍼에 임시 저장된 복수의 오디오 데이터를 먹싱하는 먹스를 포함할 수 있다. The DMA controller comprising: a data buffer for temporarily storing a plurality of audio data read from the memory and the muxed data; And a mux for muxing a plurality of audio data temporarily stored in the data buffer.

여기서, 상기 먹스는 미리 설정된 가중치에 따라 상기 복수의 오디오 데이터 를 먹싱하는 것이 바람직하며, 또한, 상기 입출력 인터페이스는 I2S 인터페이스인 것이 바람직하다. Here, it is preferable that the mux muxes the plurality of audio data according to a predetermined weight, and the input / output interface is preferably an I2S interface.

한편, 본 발명의 다른 측면에 따르면, 복수의 오디오 데이터를 저장하는 메모리, 상기 복수의 오디오 데이터를 편집 및 가공하는 오디오 프로세서, 데이터 읽기 또는 쓰기를 수행하는 DMA 제어기 및 상기 DMA 제어기가 전송하는 데이터를 디지털/아날로그 컨버터로 출력하는 입출력 인터페이스를 포함하는 장치에서, 상기 DMA 제어기에서 수행되는 방법으로서, 상기 오디오 프로세서로부터 상기 복수의 오디오 데이터의 읽기 또는 쓰기를 위한 제어 신호를 수신하는 단계(a); 상기 제어 신호에 응답하여 상기 복수의 오디오 데이터를 먹싱하는 단계(b); 및 상기 먹싱된 데이터를 상기 입출력 인터페이스로 전송하는 단계(c)를 포함하는 오디오 데이터 혼합 재생 방법이 제공된다. According to another aspect of the present invention, there is provided a data processing apparatus including: a memory for storing a plurality of audio data; an audio processor for editing and processing the plurality of audio data; a DMA controller for performing data reading or writing; A method performed in the DMA controller, the method comprising: (a) receiving a control signal for reading or writing the plurality of audio data from the audio processor, in an apparatus including an input / output interface for outputting to a digital / analog converter; (B) feeding the plurality of audio data in response to the control signal; And (c) transmitting the edited data to the input / output interface.

상기 (b) 단계는 상기 메모리로부터 복수의 오디오 데이터를 읽어 데이터 버퍼에 임시 저장하는 단계; 상기 데이터 버퍼에 임시 저장된 데이터를 먹싱하는 단계; 및 상기 먹싱된 데이터를 상기 데이터 버퍼에 임시 저장하는 단계를 포함할 수 있다. Wherein the step (b) comprises: reading a plurality of audio data from the memory and temporarily storing the audio data in a data buffer; Midding data temporarily stored in the data buffer; And temporarily storing the muxed data in the data buffer.

상기 먹싱 단계는 미리 설정된 가중치에 따라 상기 복수의 오디오 데이터를 먹싱하는 것을 포함할 수 있다. The muxing step may include muxing the plurality of audio data according to preset weights.

이하에서, 첨부된 도면을 참조하여 본 발명에 따른 디엠에이를 이용한 오디오 혼합 재생 장치 및 방법에 관한 바람직한 실시예를 상세하게 설명한다. Hereinafter, preferred embodiments of an audio mixing / reproducing apparatus and method using a DME according to the present invention will be described in detail with reference to the accompanying drawings.

도 5는 본 발명의 바람직한 일 실시예에 따른 오디오 혼합 재생 장치를 도시한 블록도이다. 5 is a block diagram illustrating an audio mixing / reproducing apparatus according to an exemplary embodiment of the present invention.

도 5에 도시된 바와 같이, 본 발명에 따른 오디오 혼합 재생 장치는 오디오 프로세서(500), 먹싱 기능을 수행하는 DMA 제어기(502), 메모리(506), I2S 인터페이스(508), DAC(Digital Analog Converter: 510) 및 오디오 출력 장치(512)를 포함할 수 있다. 5, an audio mixing / reproducing apparatus according to the present invention includes an audio processor 500, a DMA controller 502 performing a muxing function, a memory 506, an I2S interface 508, a DAC : 510 and an audio output device 512. [

본 발명에 따른 DMA 제어기(502)에는 복수의 오디오 데이터(PCM 데이터)의 먹싱을 위한 모듈(504)이 추가적으로 제공되고, 이와 같은 DMA 제어기(502)는 메모리(506)로부터 복수의 오디오 데이터(샘플)를 읽고, 이를 먹싱하는 과정을 수행하며, 먹싱된 데이터를 하나의 출력으로서 DAC(510)로 전송한다. A DMA controller 502 according to the present invention is additionally provided with a module 504 for feeding a plurality of pieces of audio data (PCM data), and such a DMA controller 502 receives a plurality of audio data ), Performs a process of feeding the data, and transmits the fed data to the DAC 510 as one output.

여기서, 메모리(506)는 복수의 오디오 데이터를 저장하는 것으로서, ROM(Read Only Memory), RAM(Random Access Memory), 플래시 메모리 및 SD 메모리 카드 등을 모두 포함할 수 있다. Here, the memory 506 stores a plurality of audio data, and may include a ROM (Read Only Memory), a RAM (Random Access Memory), a flash memory, and an SD memory card.

종래에는, 복수의 오디오 데이터를 DAC에서 먹싱함에 따라 하드웨어적인 구성이 추가적으로 필요하거나 오디오 프로세서에서 소프트웨어적으로 먹싱 과정을 수행함에 따라 오디오 프로세서의 부하가 증가하였으나, 본 발명에 따르면, 오디오 프로세서를 대신하여 데이터의 입출력 기능을 수행하는 DMA 제어기(502)가 복수의 오디오 데이터(PCM 데이터)를 먹싱함에 따라 별도의 하드웨어적 구성 요소의 추가 또는 오디오 프로세서의 부하 증가 문제를 해결할 수 있다. In the related art, a plurality of audio data is dubbed in the DAC, and a hardware configuration is additionally required. In addition, a load of the audio processor is increased as a result of performing a middling process in software in the audio processor. However, according to the present invention, As the DMA controller 502 performing the data input / output function feeds a plurality of pieces of audio data (PCM data), it is possible to solve the problem of adding a separate hardware component or increasing the load of the audio processor.

도 6은 본 발명의 바람직한 일 실시예에 따른 DMA 제어기의 블록도로서, 도 6에 도시된 바와 같이, 본 발명에 따른 DMA 제어기는 제어부(600), 데이터 버퍼(602), 주소 레지스터(604), 워드 카운트 레지스터(606), 제어 레지스터(608) 및 먹스(MUX, 610)를 포함할 수 있다. 6, a DMA controller according to an embodiment of the present invention includes a controller 600, a data buffer 602, an address register 604, A word count register 606, a control register 608, and a MUX 610. [

제어부(600)는 DMA 제어기(502)의 읽기 및 쓰기 동작 전반을 제어하는 과정을 수행하는 것으로서, 오디오 프로세서(500)로부터 소정 제어 신호를 수신하여 데이터 읽기 또는 쓰기 과정이 이루어질 수 있도록 한다. The control unit 600 controls the entire read and write operations of the DMA controller 502 and receives a predetermined control signal from the audio processor 500 so that a process of reading or writing data can be performed.

데이터 버퍼(602)는 메모리(506)로부터 읽은 데이터를 임시 저장하거나 또는 본 발명에 따라 먹싱된 데이터를 DAC(510)로 출력하기 전에 임시 저장한다. The data buffer 602 temporarily stores the data read from the memory 506 or temporarily stores the muxed data according to the present invention before outputting the data to the DAC 510. [

주소 레지스터(604)는 메모리 또는 주변 장치(예를 들어, DAC)에 데이터를 전송하기 위한 주소를 기록하는 것으로서, 데이터의 전송이 이루어지는 경우, 레지스터 값이 1씩 증가하게 된다. The address register 604 records an address for transmitting data to a memory or a peripheral device (for example, a DAC). When data is transferred, the register value is incremented by one.

한편, 워드 카운트 레지스터(606)는 전송할 데이터의 크기를 나타내는 레지스터로서, 데이터 전송 시, 오디오 프로세서(500)가 전송할 데이터의 워드 수 정보를 DMA 제어기(502)로 전송하는데, 워드 수 정보에 따라 워드 카운트 레지스터(606)는 1 워드의 데이터 전송이 이루어질 때마다 레지스터 값을 1씩 감소시키며, 그 값이 0이 될 때까지(데이터 전송이 완료될 때까지) 레지스터 값을 감소시키는 과정을 수행한다. On the other hand, the word count register 606 is a register for indicating the size of data to be transmitted. When the data is transferred, the word processor 606 transmits the word number information of the data to be transmitted by the audio processor 500 to the DMA controller 502, The count register 606 decrements the register value by 1 each time one word of data is transferred and decrements the register value until the value becomes 0 (until the data transfer is completed).

제어 레지스터(608)는 데이터 읽기 및 쓰기 등의 전송 모드를 지정하는데 사용된다. The control register 608 is used to specify a transfer mode such as data read and write.

본 발명의 바람직한 일 실시예에 따르면, 데이터 버퍼(602)에 복수의 오디오 데이터가 존재하는 경우, 먹스(610)는 복수의 오디오 데이터를 먹싱하는 과정을 수행한다. According to a preferred embodiment of the present invention, when there are a plurality of audio data in the data buffer 602, the mux 610 performs a process of muxing a plurality of audio data.

한편, 복수의 오디오 데이터의 혼합 재생에 있어서, 각 오디오 데이터에 대해 미리 설정된 가중치가 존재할 수 있는데, 예를 들어, 모바일에서 MP3 재생 중, 통화 요청에 의한 벨소리의 재생이 필요한 경우, 두 개의 오디오 데이터에 대해 MP3에는 가중치 0, 벨소리에는 가중치 1이 설정될 수 있다. On the other hand, in a mixed reproduction of a plurality of audio data, there may be a predetermined weight for each audio data. For example, if it is necessary to reproduce a ringing tone by a call request during MP3 playback on a mobile, A weight of 0 for MP3, and a weight of 1 for the ringtone.

본 발명에 따른 먹스(610)는 복수의 오디오 데이터에 대해 미리 설정된 가중치 정보를 이용하여 먹싱하는 과정을 수행하며, 본 발명에 따른 DMA 제어기(502)는 이와 같이 먹싱된 데이터를 바로 DAC(510)로 출력한다. The DMA controller 502 according to the present invention directly transmits the muxed data to the DAC 510. The DMA controller 502 according to an embodiment of the present invention performs a muxing process using a predetermined weight information for a plurality of audio data, .

본 발명에 따른 오디오 데이터의 혼합 재생에 대한 이해의 편의를 위해, 일반적인 오디오 DMA의 데이터 처리 과정과 본 발명에 따른 DMA 제어기의 처리 과정을 비교 설명한다. For convenience of understanding the mixed reproduction of audio data according to the present invention, a data processing process of a general audio DMA and a process of a DMA controller according to the present invention will be compared.

도 8은 일반적인 오디오 DMA 제어기의 데이터 처리 과정을 도시한 도면이다. 8 is a diagram illustrating a data processing process of a general audio DMA controller.

도 8을 참조하면, 일반적인 오디오 DMA 제어기는 메모리로부터 복수의 오디오 데이터를 읽어 출력단으로 보내는 역할을 수행한다. Referring to FIG. 8, a general audio DMA controller reads a plurality of audio data from a memory and sends the audio data to an output terminal.

일반적인 DMA 제어기의 의미 코드를 살펴보면 다음과 같다. The meaning code of a general DMA controller is as follows.

for(loop=1; loop<=Sample_Count, loop++)for (loop = 1; loop <= Sample_Count, loop ++)

{{

pcm = read_one_sample_from_memory(loop);pcm = read_one_sample_from_memory (loop);

send_one_sample_to_I2S_output_block(pcm);send_one_sample_to_I2S_output_block (pcm);

}}

상기한 의미 코드에 기재된 바와 같이, 오디오 혼합 재생 장치에서 일반적인 DMA 제어기는 메모리부터 데이터를 읽고(read), 이를 I2S 인터페이스를 통해 DAC로 전송(send)하는 과정만을 수행한다.As described in the above code, the general DMA controller in the audio mixing / reproducing apparatus performs a process of reading data from the memory and transmitting it to the DAC through the I2S interface.

그러나, 본 발명에 따르면, DMA 제어기(502)에서 먹싱 과정 및 먹싱된 데이터를 바로 I2S 인터페이스로 출력하는 과정이 수행된다. However, according to the present invention, the DMA controller 502 performs a process of outputting the muxing process and the muxed data directly to the I2S interface.

도 7은 본 발명의 바람직한 일 실시예에 따른 오디오 혼합 재생 과정을 도시한 도면으로서, 도 7에 도시된 바와 같이, 본 발명에 따른 DMA 제어기는 메모리로부터 복수의 오디오 데이터를 읽고, 이를 먹싱한 후, 바로 I2S 인터페이스로 출력한다. 7, a DMA controller according to an embodiment of the present invention reads a plurality of audio data from a memory and mutes it, as shown in FIG. 7. Referring to FIG. 7, , And outputs it directly to the I2S interface.

본 발명에 따른 DMA 제어기(502)의 의미 코드를 살펴보면 다음과 같다. The meaning code of the DMA controller 502 according to the present invention is as follows.

for(loop=1;loop<=Sample_Count;loop++)for (loop = 1; loop <= Sample_Count; loop ++)

{{

pcm1=read_one_sample_of_sound1_from_memory(loop);pcm1 = read_one_sample_of_sound1_from_memory (loop);

pcm2=read_one_sample_of_sound2_from_memory(loop);pcm2 = read_one_sample_of_sound2_from_memory (loop);

pcm=mux_one_sample(pcm1,pcm2);pcm = mux_one_sample (pcm1, pcm2);

send one_sample_of_output_sound(pcm);send one_sample_of_output_sound (pcm);

}}

상기한 의미 코드에 나타난 바와 같이, 본 발명에 따른 DMA 제어기(502)는 메모리(506)로부터 복수의 데이터를 읽는 과정(read) 및 읽은 데이터를 먹싱하는 과정(mux)을 수행하며, 이를 바로 I2S 인터페이스로 전송(send)하는 과정을 수행한다.The DMA controller 502 according to the present invention performs a process of reading a plurality of data from the memory 506 and a process of muxing the read data, And transmits the data to the interface.

본 발명에 따르면, 데이터의 먹싱 과정은 미리 설정된 가중치 정보를 참조하여 이루어질 수 있으며, 이에 따라 오디오 출력 장치(512)에서는 해당 가중치에 따라 음원을 외부로 출력할 수 있을 것이다. According to the present invention, the data mixing process can be performed by referring to preset weight information, and the audio output device 512 can output the sound source according to the weight.

상기한 바와 같이, 본 발명에 따른 DMA 제어기(502)는 먹스(610)를 포함함으로써 단순한 데이터의 읽기/쓰기 이외에 복수 오디오 데이터의 먹싱 과정을 함께 수행하며, 이를 바로 I2S 인터페이스로 전송하기 때문에 추가적인 하드웨어가 필요하지 않으며, 오디오 프로세서의 부하를 증가시키지 않게 된다. As described above, the DMA controller 502 according to the present invention includes a mux 610 to perform a muxing process of a plurality of audio data in addition to reading / writing of data, and transmits the mux data to the I2S interface. And does not increase the load of the audio processor.

한편, 상기에서는 DMA 제어기와 DAC가 I2S 인터페이스를 통해 연결되는 것으로 설명하였으나 이는 일 예에 불과하며, I2S 인터페이스 외에 다른 입출력 인터페이스를 적용하는 것도 본 발명의 범주에 속할 수 있다는 점을 이해하여야 할 것이다. In the above description, the DMA controller and the DAC are connected through the I2S interface. However, this is merely an example, and it should be understood that the application of the I / O interface other than the I2S interface may also be included in the scope of the present invention.

상기한 본 발명의 바람직한 실시예는 예시의 목적을 위해 개시된 것이고, 본 발명에 대해 통상의 지식을 가진 당업자라면 본 발명의 사상과 범위 안에서 다양한 수정, 변경, 부가가 가능할 것이며, 이러한 수정, 변경 및 부가는 하기의 특허청구범위에 속하는 것으로 보아야 할 것이다. It will be apparent to those skilled in the relevant art that various modifications, additions and substitutions are possible, without departing from the spirit and scope of the invention as defined by the appended claims. The appended claims are to be considered as falling within the scope of the following claims.

이상에서 설명한 바와 같이, 본 발명에 따르면, DMA 제어기에서 오디오 데이터의 먹싱 과정을 수행하기 때문에 듀얼 포트의 DAC 및 추가적인 I2S 인터페이스를 구비할 필요가 없는 장점이 있다. As described above, according to the present invention, there is an advantage that it is not necessary to provide a dual-port DAC and an additional I2S interface because the DMA controller carries out the audio data muxing process.

또한, 본 발명에 따르면, DMA 제어기에서 먹싱 과정 수행 후, 먹싱된 데이터를 바로 I2S 인터페이스로 전송하기 때문에 오디오 프로세서의 부하를 증가시키지 않아 오디오 데이터 처리 효율을 높일 수 있는 장점이 있다. In addition, according to the present invention, since the DMA controller transmits the muxed data directly to the I2S interface after performing the muxing process, there is an advantage that the audio data processing efficiency can be improved without increasing the load of the audio processor.

Claims (7)

복수의 오디오 데이터를 혼합 재생하는 장치에 있어서, An apparatus for mixing and reproducing a plurality of audio data, 상기 복수의 오디오 데이터를 저장하는 메모리;A memory for storing the plurality of audio data; 상기 복수의 오디오 데이터를 편집 및 가공하는 오디오 프로세서;An audio processor for editing and processing the plurality of audio data; 상기 오디오 프로세서로부터 데이터 읽기 또는 쓰기를 위한 제어 신호를 수신하며, 상기 메모리로부터 복수의 데이터를 읽어 먹싱(muxing)하고, 먹싱된 데이터를 출력하는 DMA 제어기; 및A DMA controller for receiving a control signal for reading or writing data from the audio processor, muxing a plurality of data from the memory, and outputting the muxed data; And 상기 먹싱된 데이터를 디지털/아날로그 컨버터(DAC)로 전송하는 입출력 인터페이스를 포함하는 오디오 혼합 재생 장치.And an input / output interface for transmitting the muxed data to a digital-to-analog converter (DAC). 제1항에 있어서, The method according to claim 1, 상기 DMA 제어기는, The DMA controller comprising: 상기 메모리로부터 읽은 복수의 오디오 데이터 및 상기 먹싱된 데이터를 임시 저장하는 데이터 버퍼; 및A data buffer for temporarily storing a plurality of audio data read from the memory and the muxed data; And 상기 데이터 버퍼에 임시 저장된 복수의 오디오 데이터를 먹싱하는 먹스를 포함하는 오디오 혼합 재생 장치.And a mux for muxing a plurality of audio data temporarily stored in the data buffer. 제2항에 있어서,3. The method of claim 2, 상기 먹스는 미리 설정된 가중치에 따라 상기 복수의 오디오 데이터를 먹싱하는 오디오 혼합 재생 장치.And the mux muxes the plurality of audio data according to a predetermined weight. 제1항에 있어서, The method according to claim 1, 상기 입출력 인터페이스는 I2S 인터페이스인 오디오 혼합 재생 장치.Wherein the input / output interface is an I2S interface. 복수의 오디오 데이터를 저장하는 메모리, 상기 복수의 오디오 데이터를 편집 및 가공하는 오디오 프로세서, 데이터 읽기 또는 쓰기를 수행하는 DMA 제어기 및 상기 DMA 제어기가 전송하는 데이터를 디지털/아날로그 컨버터로 출력하는 입출력 인터페이스를 포함하는 장치에서, 상기 DMA 제어기에서 수행되는 방법으로서, An audio processor for editing and processing the plurality of audio data, a DMA controller for reading or writing data, and an input / output interface for outputting the data transmitted by the DMA controller to a digital / analog converter A method performed in the DMA controller, the method comprising: 상기 오디오 프로세서로부터 상기 복수의 오디오 데이터의 읽기 또는 쓰기를 위한 제어 신호를 수신하는 단계(a);(A) receiving a control signal for reading or writing the plurality of audio data from the audio processor; 상기 제어 신호에 응답하여 상기 메모리로부터 복수의 데이터를 읽어 먹싱하는 단계(b); 및(B) reading a plurality of data from the memory in response to the control signal; And 상기 먹싱된 데이터를 상기 입출력 인터페이스로 전송하는 단계(c)를 포함하는 오디오 데이터 혼합 재생 방법. And (c) transmitting the muxed data to the input / output interface. 제5항에 있어서, 6. The method of claim 5, 상기 (b) 단계는,The step (b) 상기 메모리로부터 복수의 오디오 데이터를 읽어 데이터 버퍼에 임시 저장하는 단계; Reading a plurality of audio data from the memory and temporarily storing the audio data in a data buffer; 상기 데이터 버퍼에 임시 저장된 데이터를 먹싱하는 단계; 및Midding data temporarily stored in the data buffer; And 상기 먹싱된 데이터를 상기 데이터 버퍼에 임시 저장하는 단계를 포함하는 오디오 데이터 혼합 재생 방법.And temporarily storing the muxed data in the data buffer. 제5항에 있어서, 6. The method of claim 5, 상기 먹싱 단계는 미리 설정된 가중치에 따라 상기 복수의 오디오 데이터를 먹싱하는 오디오 데이터 혼합 재생 방법.Wherein the muxing step muxes the plurality of audio data according to a predetermined weight.
KR1020050088950A 2005-09-23 2005-09-23 Apparatus and method for playing audio using dma KR100722930B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020050088950A KR100722930B1 (en) 2005-09-23 2005-09-23 Apparatus and method for playing audio using dma
PCT/KR2006/003752 WO2007035043A1 (en) 2005-09-23 2006-09-21 Apparatus and method for playing audio using dma

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050088950A KR100722930B1 (en) 2005-09-23 2005-09-23 Apparatus and method for playing audio using dma

Publications (2)

Publication Number Publication Date
KR20070034352A KR20070034352A (en) 2007-03-28
KR100722930B1 true KR100722930B1 (en) 2007-05-30

Family

ID=37889055

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050088950A KR100722930B1 (en) 2005-09-23 2005-09-23 Apparatus and method for playing audio using dma

Country Status (2)

Country Link
KR (1) KR100722930B1 (en)
WO (1) WO2007035043A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150115307A (en) * 2014-04-03 2015-10-14 주식회사 아이리버 Apparatus for playing dsd audio file and method thereof
KR20150115308A (en) * 2014-04-03 2015-10-14 주식회사 아이리버 Apparatus for playing dsd audio file with external devices and method thereof

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000062878A (en) * 1999-03-22 2000-10-25 포만 제프리 엘 System and method for merging multiple audio streams

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2210375C (en) * 1997-07-11 2002-04-02 Robert Chow Multiplexer for multiple media streams
US7085710B1 (en) * 1998-01-07 2006-08-01 Microsoft Corporation Vehicle computer system audio entertainment system
US6310898B1 (en) * 1998-01-27 2001-10-30 Tektronix, Inc. Compressed video and audio transport stream multiplexer
GB2377840A (en) * 2001-07-18 2003-01-22 Sony Uk Ltd Audio/video recording and multiplexing apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000062878A (en) * 1999-03-22 2000-10-25 포만 제프리 엘 System and method for merging multiple audio streams

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1020000062878

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150115307A (en) * 2014-04-03 2015-10-14 주식회사 아이리버 Apparatus for playing dsd audio file and method thereof
KR20150115308A (en) * 2014-04-03 2015-10-14 주식회사 아이리버 Apparatus for playing dsd audio file with external devices and method thereof
KR102120337B1 (en) * 2014-04-03 2020-06-08 (주)드림어스컴퍼니 Apparatus for playing dsd audio file with external devices and method thereof
KR102128907B1 (en) * 2014-04-03 2020-07-01 (주)드림어스컴퍼니 Apparatus for playing dsd audio file and method thereof

Also Published As

Publication number Publication date
KR20070034352A (en) 2007-03-28
WO2007035043A1 (en) 2007-03-29

Similar Documents

Publication Publication Date Title
KR101116617B1 (en) Method and apparatus for transmitting and processing audio with I2S format
KR100664961B1 (en) Mobile device for supporting multi-audio output
RU2008107745A (en) ADDITIONAL DEVICE OF MOBILE TERMINAL FOR RECEIVING AND PLAYBACK OF DMB DATA, AND METHOD FOR THIS
KR100931843B1 (en) Multimedia processor chip and audio signal processing method
US5815583A (en) Audio serial digital interconnect
KR100722930B1 (en) Apparatus and method for playing audio using dma
KR100587425B1 (en) Handset for reinforcing multimedia function
KR200302150Y1 (en) Mp3 player combined use wireless headset having bluetooth module
KR20010082125A (en) Multiple message multilevel analog signal recording and playback system having memory array configurable for analog and digital storage and serial communication
CN115617303A (en) Audio input and output system, method and electronic equipment
US7421518B2 (en) Communication method and processor
CN1835107B (en) Mobile communication terminal with music automatic stop function and music stop method
US8121713B2 (en) Electronic apparatus, method for generating digital signal, digital signal recording medium, and signal processing apparatus
CN106488044B (en) Mobile phone and system for mobile sound card and implementation method
US7937266B2 (en) Audio reproduction circuit
KR100708298B1 (en) Apparatus and Method for Providing Word Information Digital Audio Source of Mobile Communication Terminal
US11706273B2 (en) Host communication circuit, client communication circuit, communication system, sound reproducing device and communication method
KR20020090552A (en) A direct digital audio encoder and the encoding method thereof
KR100339100B1 (en) Compound Mobile Telephone Terminal Apparatus
KR101619878B1 (en) Apparatus for playing dsd audio file using i2s transmission scheme and method thereof
JPH0983673A (en) Voice communication system, voice communication method and transmitting-receiving device
KR19990033706U (en) Mobile Subscriber Unit
KR20140131734A (en) Method for reproducing high-quality sound source on PC
KR20030009701A (en) MP3 player using a wireless communication and replaying method therefore
JPS5849997A (en) Voice synthesizer

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130422

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20140428

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20150428

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20180425

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20190425

Year of fee payment: 13