CN101430640B - Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal - Google Patents
Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal Download PDFInfo
- Publication number
- CN101430640B CN101430640B CN2007101243566A CN200710124356A CN101430640B CN 101430640 B CN101430640 B CN 101430640B CN 2007101243566 A CN2007101243566 A CN 2007101243566A CN 200710124356 A CN200710124356 A CN 200710124356A CN 101430640 B CN101430640 B CN 101430640B
- Authority
- CN
- China
- Prior art keywords
- usb
- audio
- communication terminal
- sound card
- terminal
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
- 238000004891 communication Methods 0.000 title claims abstract description 54
- 238000000034 method Methods 0.000 title claims abstract description 13
- 238000012545 processing Methods 0.000 claims abstract description 24
- 238000006243 chemical reaction Methods 0.000 claims abstract description 12
- 238000012546 transfer Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 abstract description 14
- 230000002457 bidirectional effect Effects 0.000 abstract 1
- 230000005540 biological transmission Effects 0.000 description 10
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a method for a communication terminal with a USB sound card and a method used for realizing the USB sound card in the communication terminal. The communication terminal comprises a central processing unit and an analog baseband processor which are interlinked with each other. The central processing unit comprises a USB terminal controller and an I2S bus controller which is connected with the USB terminal controller and supports bidirectional I2S bus data format conversion. The analog baseband processor is internally provided with an audio frequency codec which is used for coding and decoding audio frequency data. The USB terminal controller, the I2S bus controller and the audio frequency codec are multiplexed to form the USB sound card. In the invention, partial functions of the central processing unit and the analog baseband processor in the communication terminal are multiplexed, so as to realize the USB sound card based on I2S bus, and the USB sound card can match and use the functions of multimedia such as MP3, MP4 and the like in the communication terminal, so as to ensure that the communication terminal has the application value of the multimedia furthermore.
Description
Technical field
The present invention relates to audio signal processing technique, especially relate to a kind of communication terminal of integration USB sound card, and a kind ofly do carrier, realize the method for USB sound card through multiplexing functional module wherein with communication terminals such as mobile phones.
Background technology
The USB product emerges in an endless stream in recent years, and the USB audio class has become a kind of standard of standard under the effort of USB Developers Forum, and the USB sound card also begins on market, quietly to occur.Because the USB sound card is built-in audio digital to analog converter (DAC) and active power amplifier, voice data gets into the USB sound card with digital form, and the interference that can stop simulating signal fully will be so the USB sound card might become the substitute that has built-in sound card now.
Along with the continuous maturation and the development of mobile communication technology, the use of the mobile communication terminal of mobile phone, personal electric Business Assistant personal consumption classes such as (PDA) is more and more general.Be to improve the function of communication terminal, let the user have more multimachine can experience multimedia, multimedia functions such as MP3, MP4 that present mobile phone is integrated usually.Yet because though traditional built-in sound card can provide audio frequency effect preferably, its volume is bigger, is difficult for being integrated among the short and small portable communication terminal.Therefore, how in communication terminal, to propose a kind of technical scheme, become one of technical matters of current urgent need solution with better Audio Processing effect.
Summary of the invention
Technical matters to be solved by this invention is the method that proposes a kind of communication terminal of integration USB sound card and in communication terminal, realize the USB sound card; Do carrier with communication terminals such as mobile phones; Realize the USB sound card through multiplexing functional module wherein, thereby improve the multimedia handling property of communication terminal.
For solving technical matters of the present invention; The present invention discloses a kind of communication terminal of the USB of having sound card; Comprise the central processing unit and the analogue baseband processors of interconnection, said central processing unit comprises: usb terminal controller and be connected with said usb terminal controller, support to carry out two-way I
2The I of S bus data format conversion
2The S bus controller; The built-in audio codec that is used for voice data is carried out the encoding and decoding processing of said analogue baseband processors; Multiplexing said usb terminal controller, said I
2S bus controller and said audio codec constitute the USB sound card.
More excellent, the communication terminal that the present invention has the USB sound card also comprises audio output apparatus, its input end connects the output terminal of said audio codec.
More excellent, said audio output apparatus comprise audio output interface, loudspeaker and earphone at least one of them.
More excellent, the communication terminal that the present invention has the USB sound card also comprises audio input device, its output terminal connects the input end of said audio codec.
More excellent, said audio input device comprise audio input interface, microphone and microphone at least one of them.
In addition, the present invention discloses a kind of method that in communication terminal, realizes the USB sound card, comprising:
Central processing unit in the multiplexed communications terminal and audio codec, wherein, said central processing unit comprises: USB interface, usb terminal controller and be connected with said usb terminal controller, support to carry out two-way I
2The I of S bus data format conversion
2The S bus controller;
Receive voice data through said usb terminal controller control, by said I
2The S bus controller transfers the parallel audio data to the serial voice data, and carries out D/A conversion back output through said audio codec; Perhaps,, carry out the A/D conversion through said audio codec through the analog audio data of said audio codec input end input, and by said I
2After the S bus controller transfers the serial voice data to the parallel audio data, from said usb terminal controller output.
More excellent, the output terminal of said audio codec connects audio output apparatus.
More excellent, the input end of said audio codec connects audio input device.
Compared with prior art, the present invention has following beneficial effect:
The present invention has realized based on I through the central processing unit in the multiplexed communications terminal and the partial function of analogue baseband processors
2The USB sound card of S bus; Multimedia functions such as the MP3 of this USB sound card in can communication terminal, MP4 are used, and make communication terminal have more the value of multimedia application.
Description of drawings
Fig. 1 is the structural representation that the present invention has the communication terminal of USB sound card.
Embodiment
Core concept of the present invention is central processing unit and the partial function of analogue baseband processors in the multiplexed communications terminal, realizes the function of USB sound card with this.
Please refer to shown in Figure 1ly, is the structural representation that the present invention has the communication terminal of USB sound card.Communication terminal of the present invention refers in particular to the personal consumption communication facilities that can communicate, such as, the mobile phone of support GSM/GPRS communication, PDA(Personal Digital Assistant) etc.Specifically how to realize communication function, have which kind of communication structure as for communication terminal of the present invention, do not do detailed description at this; It is the function that how to realize the USB sound card that following emphasis is described communication terminal of the present invention.
Communication terminal of the present invention comprises for accomplishing basic communication function at least: interconnective central processing unit 110 and the built-in analogue baseband processors 120 that is used for voice data is carried out the audio codec 121 of encoding and decoding processing.Said central processing unit 110 can be that to adopt that Texas Instruments produces, model be the processor of OMAP730; Perhaps, adopting that Samsung produces, model is the processor of S3C2410; Or even the processor of other models.
With the OMAP730 processor is example, and it is built-in usb terminal controller (USB Slaver) 111 and be connected with said usb terminal controller 111 supports to carry out two-way I
2The I of S bus data format conversion
2S bus controller 112.Said I
2S bus controller 112 has been realized the interface of 8/16 the stereo audio encoding/decoding chip in an outside, supports I
2S bus data form and MSB-justified data layout, and support DMA (high definition stream media broadcast) transmission mode.
And said analogue baseband processors 120 is the chip of UDA1341TS such as the ABB chip or the model that are TWL3016 ABB for model.The ABB chip that with the model is TWL3016 ABB is an example, and it is a chip in the GSM/GPRS communication chipset in the communication terminal, and it provides the I of standard
2The S interface, I that can direct and said central processing unit 110
2The S pin connects.In addition, said audio codec 121 also provides the microphone and the speaker interface of standard, and its pin is linked said I respectively
2On 3 GPIO output pins of S bus controller 112; Said audio codec 121 is gone back integrated digital audio frequency and mixer function, and the digitized audio function can be play digitized voice or recorded voice, and frequency mixer is used for volume of controlling various I/O etc.
Communication terminal of the present invention also comprises audio output apparatus 130, and its input end connects the output terminal of said audio codec 121; Said audio output apparatus 130 comprise audio output interface, loudspeaker and earphone at least one of them
Communication terminal of the present invention also comprises audio input device 140, and its output terminal connects the input end of said audio codec 121; Said audio input device 140 comprise audio input interface, microphone and microphone at least one of them.
Thus, the present invention is through multiplexing said usb terminal controller 111, said I
2S bus controller 112 and said audio codec 121 constitute the USB sound card.Voice data on the external unit that is connected with the present invention (such as, computer) receives through said usb terminal controller 111 controls, by said I
2S bus controller 112 transfers the parallel audio data to the serial voice data, and after carrying out D/A conversion through said audio codec 121, exports said audio output apparatus 130 to; Perhaps, outside sound, through said audio input device 140, analog audio data inputs to the input end of said audio codec 121, carries out the A/D conversion through said audio codec 121 then, and by said I
2After S bus controller 112 transfers the serial voice data to the parallel audio data, from said usb terminal controller 111 outputs.
Because USB audio class equipment is a kind of standard device; The USB audio driven that standard is arranged on Windows operating system; So only need the developer to drive design according to the protocol development USB sound card Design of Firmware and the host side Windows of USB audio class; Can realize that promptly mobile phone and external unit (such as, computer) carry out the mutual transmission of voice data.
Simultaneously, said I
2S bus controller 112 is for realizing I
2The S bus transfer, said I
2S bus controller 112 provides three kinds of data-transmission modes: normal transmission pattern, DMA transmission mode, transmission pattern.What native system adopted is the transmission pattern, and it has binary channels DMA function, steals bus control right on the one hand, improves the handling capacity of system, on the other hand, can realize receiving simultaneously and sending voice data, i.e. full-duplex mode.
In said central processing unit 110, there are 4 DMA channel controllers to be used to control various external units, wherein the DMA passage of shared two the bridge joint DMA types of I2S and other serial peripherals.Through I is set
2S CON register can make said I
2 S bus controller 112 is operated under the DMA pattern.The control of fifo register group is grasped on dma controller under this pattern.When FIFO is full, the data among the FIFO are handled by dma controller.The selection of DMA pattern is by I
2The the 4th and the 5th control of S CON register.
Can carry out simultaneously with recording for the playback that makes the USB sound card, promptly realize full duplex, data transmission is used two DMA passages, and passage 0 is used for playback, and passage 1 is used for recording.During audio data playback, obtain voice data by usb bus earlier, write the DMA buffer zone, steal bus control right, write I by dma controller passage 0
2The S bus also is transferred to said audio codec 121.The passage 1 of dma controller is adopted in recording, and its data flow procedure and playback are opposite.
Because the amount of audio data of handling is bigger, and consider the speed and the I of external device (such as computer) reception/transmission data
2The speed of S bus deal with data can not be mated fully, and this has just caused the phenomenon of the flutter or the frame losing of recording.In order to address this problem, the most simple method is to use bigger annular buffer memory.But in fact big buffer area needs the longer filling time, can occur time-delay in use.In order to solve the problem of time-delay, use annular, multistage caching mechanism.Under this mechanism, buffer area is divided into the piece of several same size, and uses algorithm to realize loop buffer.
Broadcast with 8kHz/16 position/single channel audio stream is the operation of example explanation buffer zone below.The USB synchronous transmission cycle of USB audio class regulation is 1ms, and is every at a distance from 1ms promptly for the audio stream of 8kHz/16 position/single channel pcm encoder, and USB device will be received the data that main frame transmits, and the packet size is 16 bytes, in order to keep I as far as possible
2The transmitting synchronous of S bus and usb bus can be got the size of 16 bytes as a buffer memory section.After the USB sound card received data, said central processing unit 110 judged whether the clear area is arranged in the buffer zone earlier, if there are not enough buffer zones just to skip a sample, and then copies to buffer zone to the data among the FIFO one by one.
Because said I
2The dma controller deal with data of S bus controller 112 is to be undertaken by section, and every segment length is 16 bytes, before dma controller fetches data; Judge the data volume in the buffer zone earlier; If there are not enough data (16 byte), then add quiet data, and then carry out the DMA transmission.
To sum up, the present invention has realized based on I through the central processing unit in the multiplexed communications terminal and the partial function of analogue baseband processors
2The USB sound card of S bus makes communication terminal have more the value of multimedia application.
Claims (8)
1. communication terminal with USB sound card comprises the central processing unit and the analogue baseband processors of interconnection it is characterized in that said central processing unit comprises: usb terminal controller and be connected with said usb terminal controller, support to carry out two-way I
2The I of S bus data format conversion
2The S bus controller; The built-in audio codec that is used for voice data is carried out the encoding and decoding processing of said analogue baseband processors; Multiplexing said usb terminal controller, said I
2S bus controller and said audio codec constitute the USB sound card.
2. the communication terminal with USB sound card according to claim 1 is characterized in that, also comprises audio output apparatus, and its input end connects the output terminal of said audio codec.
3. the communication terminal with USB sound card according to claim 2 is characterized in that, said audio output apparatus comprise audio output interface, loudspeaker and earphone at least one of them.
4. the communication terminal with USB sound card according to claim 1 is characterized in that, also comprises audio input device, and its output terminal connects the input end of said audio codec.
5. the communication terminal with USB sound card according to claim 4 is characterized in that, said audio input device comprise audio input interface, microphone and microphone at least one of them.
6. method that in communication terminal, realizes the USB sound card is characterized in that comprising:
Central processing unit in the multiplexed communications terminal and audio codec, wherein, said central processing unit comprises: USB interface, usb terminal controller and be connected with said usb terminal controller, support to carry out two-way I
2The I of S bus data format conversion
2The S bus controller;
Receive voice data through said usb terminal controller control, by said I
2The S bus controller transfers the parallel audio data to the serial voice data, and carries out D/A conversion back output through said audio codec; Perhaps,, carry out the A/D conversion through said audio codec through the analog audio data of said audio codec input end input, and by said I
2After the S bus controller transfers the serial voice data to the parallel audio data, from said usb terminal controller output.
7. the method that in communication terminal, realizes the USB sound card according to claim 6 is characterized in that the output terminal of said audio codec connects audio output apparatus.
8. the method that in communication terminal, realizes the USB sound card according to claim 6 is characterized in that the input end of said audio codec connects audio input device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101243566A CN101430640B (en) | 2007-11-05 | 2007-11-05 | Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101243566A CN101430640B (en) | 2007-11-05 | 2007-11-05 | Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101430640A CN101430640A (en) | 2009-05-13 |
CN101430640B true CN101430640B (en) | 2012-01-18 |
Family
ID=40646052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101243566A Expired - Fee Related CN101430640B (en) | 2007-11-05 | 2007-11-05 | Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101430640B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110444233A (en) * | 2019-07-02 | 2019-11-12 | 福建新大陆通信科技股份有限公司 | A kind of the audio reception playback method and system of number sound shadow amusement equipment |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102354278B (en) * | 2011-06-29 | 2017-09-15 | 中兴通讯股份有限公司 | The processing method and equipment of a kind of voice data |
CN107894883B (en) * | 2017-11-22 | 2023-11-28 | 广州艾美网络科技有限公司 | Audio stream transmission method and sound card audio conversion circuit |
TWI722574B (en) * | 2019-09-18 | 2021-03-21 | 新唐科技股份有限公司 | Audio and data synchronization device and method thereof |
CN114442992B (en) * | 2022-01-25 | 2024-01-02 | 杭州国芯科技股份有限公司 | Switching method of USB sound card audio transmission protocol |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633145A (en) * | 2004-12-30 | 2005-06-29 | 上海贝豪通讯电子有限公司 | A TD-SCDMA handset circuit board realizing efficient integral layout |
CN1681036A (en) * | 2005-01-07 | 2005-10-12 | 深圳市江波龙电子有限公司 | Movable memory for integrating digital musical play with network telephone communicating software automatic run |
CN101060570A (en) * | 2007-03-09 | 2007-10-24 | 林明辉 | A method for realizing the plug-in wireless telephone voice communication and storage on the computer |
-
2007
- 2007-11-05 CN CN2007101243566A patent/CN101430640B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633145A (en) * | 2004-12-30 | 2005-06-29 | 上海贝豪通讯电子有限公司 | A TD-SCDMA handset circuit board realizing efficient integral layout |
CN1681036A (en) * | 2005-01-07 | 2005-10-12 | 深圳市江波龙电子有限公司 | Movable memory for integrating digital musical play with network telephone communicating software automatic run |
CN101060570A (en) * | 2007-03-09 | 2007-10-24 | 林明辉 | A method for realizing the plug-in wireless telephone voice communication and storage on the computer |
Non-Patent Citations (1)
Title |
---|
闵华松,孙程建.基于I2S的USB声卡系统设计.《老古开发网http://www.laogu.com/wz_48065.htm》.2007, * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110444233A (en) * | 2019-07-02 | 2019-11-12 | 福建新大陆通信科技股份有限公司 | A kind of the audio reception playback method and system of number sound shadow amusement equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101430640A (en) | 2009-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2360597B1 (en) | Audio device | |
CN1997057B (en) | Audio device | |
CN1997047B (en) | Digital audio device and method | |
US20060062400A1 (en) | Bluetooth headset device capable of processing both audio and digital data signals | |
CN101430640B (en) | Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal | |
CN101068412A (en) | TD-SCDMA/GSM double-mode double-standby intelligent mobile terminal | |
CN203289645U (en) | Sound system capable of conversation based on wireless technology | |
CN107484143A (en) | A kind of talk back equipment and its intercommunication means of communication based on wireless network | |
CN105228044A (en) | A kind of harmless tonequality earphone | |
CN106294265A (en) | A kind of audio data transmission method between USB sound card and smart machine | |
CN201957216U (en) | Bluetooth earphone with sound recording function | |
CN102576300A (en) | Portable computer having multiple embedded audio controllers | |
JP2001265360A (en) | Portable digital media reproducing device | |
CN212086427U (en) | High sampling rate bluetooth voice transmission system | |
CN101009897A (en) | Apparatus and method for outputting audio data using wireless terminal | |
CN101931680A (en) | Bluetooth system | |
KR20080004097A (en) | Bluetooth system module | |
CN208444294U (en) | Electronic equipment | |
CN106658253A (en) | Earphone and implementation method thereof | |
CN201022225Y (en) | A TD-SCDMA/PHS dual mode dual standby intelligent mobile terminal | |
CN204929162U (en) | Multi -purpose bluetooth speaker | |
CN202473237U (en) | Voice recording equipment | |
CN2888536Y (en) | Playing device with wireless communication function | |
TW201419686A (en) | Advance connection transmission device | |
CN202261829U (en) | Dual-mode digital audio system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120118 Termination date: 20121105 |