CN101430640A - 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 PDF

Info

Publication number
CN101430640A
CN101430640A CNA2007101243566A CN200710124356A CN101430640A CN 101430640 A CN101430640 A CN 101430640A CN A2007101243566 A CNA2007101243566 A CN A2007101243566A CN 200710124356 A CN200710124356 A CN 200710124356A CN 101430640 A CN101430640 A CN 101430640A
Authority
CN
China
Prior art keywords
usb
communication terminal
sound card
audio
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.)
Granted
Application number
CNA2007101243566A
Other languages
Chinese (zh)
Other versions
CN101430640B (en
Inventor
钟伟峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konka Group Co Ltd
Original Assignee
Konka Group Co Ltd
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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN2007101243566A priority Critical patent/CN101430640B/en
Publication of CN101430640A publication Critical patent/CN101430640A/en
Application granted granted Critical
Publication of CN101430640B publication Critical patent/CN101430640B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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 I<2>S bus controller which is connected with the USB terminal controller and supports bidirectional I<2>S 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 I<2>S 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 I<2>S 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

Communication terminal with USB sound card reaches the method that realizes the USB sound card in communication terminal
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 by 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 quietly to occur on market.Because the USB sound card is built-in audio digital to analog converter (DAC) and active power amplifier, voice data enters the USB sound card with digital form, can stop the interference of simulating signal fully, 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, allow 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 realize the USB sound card in communication terminal, do carrier with communication terminals such as mobile phones, realize the USB sound card by 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, described central processing unit comprises: usb terminal controller and be connected with described 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 described analogue baseband processors; Multiplexing described usb terminal controller, described I 2S bus controller and described 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 described audio codec.
More excellent, described 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 described audio codec.
More excellent, described 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 realizes the USB sound card in communication terminal, comprising:
Central processing unit in the multiplexed communications terminal and audio codec, wherein, described central processing unit comprises: USB interface, usb terminal controller and be connected with described 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 by described usb terminal controller control, the parallel audio data are transferred to the serial voice data, and carry out D/A conversion back output through described audio codec by described I2S bus controller; Perhaps,, carry out the A/D conversion through described audio codec by the analog audio data of described audio codec input end input, and by described I 2After the S bus controller transfers the serial voice data to the parallel audio data, from described usb terminal controller output.
More excellent, the output terminal of described audio codec connects audio output apparatus.
More excellent, the input end of described 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 by the central processing unit in the multiplexed communications terminal and the partial function of analogue baseband processors 2The USB sound card of S bus; The multimedia functions such as MP3, MP4 of this USB sound card in can communication terminal is used, and makes 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 the central processing unit in the multiplexed communications terminal and the partial function of analogue baseband processors, 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 is to finish basic communication function, comprises 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.Described 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 described usb terminal controller 111 supports to carry out two-way I 2The I of S bus data format conversion 2S bus controller 112.Described I 2 S 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 described analogue baseband processors 120 is the chip of UDA1341TS such as the Analog Baseband chip or the model that are TWL3016 ABB for model.The Analog Baseband 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 described central processing unit 110 2The S pin connects.In addition, described audio codec 121 also provides the microphone and the speaker interface of standard, and its pin is linked described I respectively 2On 3 GPIO output pins of S bus controller 112; Described 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 described audio codec 121; Described 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 described audio codec 121; Described audio input device 140 comprise audio input interface, microphone and microphone at least one of them.
Thus, the present invention is by multiplexing described usb terminal controller 111, described I 2S bus controller 112 and described 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 by described usb terminal controller 111 controls, by described I 2S bus controller 112 transfers the parallel audio data to the serial voice data, and after carrying out D/A conversion through described audio codec 121, exports described audio output apparatus 130 to; Perhaps, outside sound, by described audio input device 140, analog audio data inputs to the input end of described audio codec 121, carries out the A/D conversion through described audio codec 121 then, and by described I 2After S bus controller 112 transfers the serial voice data to the parallel audio data, from described 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, described I 2S bus controller 112 is for realizing I 2The S bus transfer, described 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 described 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.By I is set 2S CON register can make described 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 for the playback and the recording that make 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 described 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 flutter or recording frame losing.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 promptly for the audio stream of 8kHz/16 position/single channel pcm encoder, every 1ms, 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, described 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 one by one the data among the FIFO is copied to buffer zone.
Because described 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 by 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, a kind of communication terminal with USB sound card comprises the central processing unit and the analogue baseband processors of interconnection it is characterized in that described central processing unit comprises: usb terminal controller and be connected with described 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 described analogue baseband processors; Multiplexing described usb terminal controller, described I 2S bus controller and described 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 described audio codec.
3, the communication terminal with USB sound card according to claim 2 is characterized in that, described 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 described audio codec.
5, the communication terminal with USB sound card according to claim 4 is characterized in that, described audio input device comprise audio input interface, microphone and microphone at least one of them.
6, a kind of method that realizes the USB sound card in communication terminal is characterized in that comprising:
Central processing unit in the multiplexed communications terminal and audio codec, wherein, described central processing unit comprises: USB interface, usb terminal controller and be connected with described 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 by described usb terminal controller control, by described I 2The S bus controller transfers the parallel audio data to the serial voice data, and carries out D/A conversion back output through described audio codec; Perhaps,, carry out the A/D conversion through described audio codec by the analog audio data of described audio codec input end input, and by described I 2After the S bus controller transfers the serial voice data to the parallel audio data, from described usb terminal controller output.
7, the method that realizes the USB sound card in communication terminal according to claim 6 is characterized in that, the output terminal of described audio codec connects audio output apparatus.
8, the method that realizes the USB sound card in communication terminal according to claim 6 is characterized in that, the input end of described audio codec connects audio input device.
CN2007101243566A 2007-11-05 2007-11-05 Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal Expired - Fee Related CN101430640B (en)

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 true CN101430640A (en) 2009-05-13
CN101430640B 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354278A (en) * 2011-06-29 2012-02-15 中兴通讯股份有限公司 Method and equipment for processing audio data
CN107894883A (en) * 2017-11-22 2018-04-10 佛山乐野音乐设备有限公司 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
CN114442992A (en) * 2022-01-25 2022-05-06 杭州国芯科技股份有限公司 Switching method of audio transmission protocol of USB sound card

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354278A (en) * 2011-06-29 2012-02-15 中兴通讯股份有限公司 Method and equipment for processing audio data
WO2013000213A1 (en) * 2011-06-29 2013-01-03 中兴通讯股份有限公司 Audio data processing method and device
CN102354278B (en) * 2011-06-29 2017-09-15 中兴通讯股份有限公司 The processing method and equipment of a kind of voice data
CN107894883A (en) * 2017-11-22 2018-04-10 佛山乐野音乐设备有限公司 Audio stream transmission method and sound card audio conversion circuit
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
CN114442992A (en) * 2022-01-25 2022-05-06 杭州国芯科技股份有限公司 Switching method of audio transmission protocol of USB sound card
CN114442992B (en) * 2022-01-25 2024-01-02 杭州国芯科技股份有限公司 Switching method of USB sound card audio transmission protocol

Also Published As

Publication number Publication date
CN101430640B (en) 2012-01-18

Similar Documents

Publication Publication Date Title
EP2360597B1 (en) Audio device
CN1997057B (en) Audio device
CN1997047B (en) Digital audio device and method
CN107637093B (en) Low latency Transmission system and method for the long range in SOUNDWIRE system
CN101430640B (en) Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal
CN107643994B (en) Terminal, terminal peripheral, signal sending and receiving method and data transmission system
CN101765243A (en) CDMA and GSM bimodule digital mobile communication terminal
CN101068412A (en) TD-SCDMA/GSM double-mode double-standby intelligent mobile terminal
CN107484143A (en) A kind of talk back equipment and its intercommunication means of communication based on wireless network
CN101453516A (en) Bluetooth MP3 playing method on mobile phone and mobile phone thereof
CN105228044A (en) A kind of harmless tonequality earphone
CN102098604A (en) Mobile phone Bluetooth sound box based on Bluetooth file transfer protocol
CN106294265A (en) A kind of audio data transmission method between USB sound card and smart machine
CN201957216U (en) Bluetooth earphone with sound recording function
CN101931680B (en) Bluetooth system
JP2001265360A (en) Portable digital media reproducing device
CN101009897A (en) Apparatus and method for outputting audio data using wireless terminal
CN212086427U (en) High sampling rate bluetooth voice transmission system
KR20080004097A (en) Bluetooth system module
CN107273087A (en) A kind of audio input/output system based on Type C interface, device and method
CN106658253A (en) Earphone and implementation method thereof
CN201022225Y (en) A TD-SCDMA/PHS dual mode dual standby intelligent mobile terminal
CN106454594A (en) Earphone
CN102202431B (en) Increase the apparatus and method of 3G communication module and Application Processor Interface flexibility
CN205647937U (en) Audio device

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