CN111045632B - Audio playing device and operation method thereof - Google Patents

Audio playing device and operation method thereof Download PDF

Info

Publication number
CN111045632B
CN111045632B CN201811185004.6A CN201811185004A CN111045632B CN 111045632 B CN111045632 B CN 111045632B CN 201811185004 A CN201811185004 A CN 201811185004A CN 111045632 B CN111045632 B CN 111045632B
Authority
CN
China
Prior art keywords
host
audio
information
playing device
control function
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.)
Active
Application number
CN201811185004.6A
Other languages
Chinese (zh)
Other versions
CN111045632A (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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN201811185004.6A priority Critical patent/CN111045632B/en
Publication of CN111045632A publication Critical patent/CN111045632A/en
Application granted granted Critical
Publication of CN111045632B publication Critical patent/CN111045632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • 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
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • 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
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

An audio playing device and an operation method thereof are applied to the audio playing device, and the operation method comprises the following steps: the host is electrically coupled with the host through a bus; selecting first audio playing device information corresponding to the first bus transmission specification to respond to the host according to the state description element request of the host; judging whether an audio control function description element request instruction is received from a host or not; when the host receives the audio control function description element request instruction, the state description element request of the host is responded continuously; and when the host does not receive the audio control function description element request instruction, judging that the host does not support the first bus transmission specification, and is electrically coupled with the host again through the bus, responding to the host by using second audio playing device information corresponding to the second bus transmission specification according to the state description element request of the host, and continuously responding to the state description element request of the host when the host receives the audio control function description element request instruction.

Description

Audio playing device and operation method thereof
Technical Field
The present invention relates to audio playback technology, and in particular, to an audio playback apparatus and an operating method thereof.
Background
Analog audio earphone terminals used in many electronic goods such as smart phones, computers, tablet computers, etc. are facing the trend of digital conversion. The universal serial bus Type C (USB Type-C) is more popular in digital audio playing devices. However, the operating system of some hosts may not support the latest bus transmission specification, so that the digital audio playing device cannot operate with the host.
Therefore, how to design a new audio playing device and its operation method to solve the above-mentioned drawbacks is a problem to be solved in the industry.
Disclosure of Invention
The invention aims to provide an operation method of an audio playing device, which is applied to the audio playing device and comprises the following steps: the host is electrically coupled with the host through a bus; selecting first audio playing device information corresponding to the first bus transmission specification to respond to the host according to the state description element request of the host; judging whether an audio control function description element request instruction is received from a host or not; when the host receives the audio control function description element request instruction, the state description element request of the host is responded continuously; and when the host does not receive the audio control function description element request instruction, judging that the host does not support the first bus transmission specification, and is electrically coupled with the host again through the bus, responding to the host by using second audio playing device information corresponding to the second bus transmission specification according to the state description element request of the host, and continuously responding to the state description element request of the host when the host receives the audio control function description element request instruction.
Another object of the present invention is to provide an audio playing device, comprising: a storage unit and a processing unit. The storage unit is configured to store a plurality of audio playback device information and application programs corresponding to a plurality of bus transmission specifications. The processing unit is electrically coupled to the storage unit and configured to acquire an application program to execute an audio playing device operation method, where the audio playing device operation method includes: the host is electrically coupled with the host through a bus; selecting first audio playing device information corresponding to the first bus transmission specification to respond to the host according to the state description element request of the host; judging whether an audio control function description element request instruction is received from a host or not; when the host receives the audio control function description element request instruction, the state description element request of the host is responded continuously; and when the host does not receive the audio control function description element request instruction, judging that the host does not support the specific bus transmission specification, and is electrically coupled with the host again through the bus, responding to the host by using second audio playing device information corresponding to the second bus transmission specification according to the state description element request of the host, and continuously responding to the state description element request of the host when the host receives the audio control function description element request instruction.
The invention has the advantages that the audio playing device can detect whether the host supports the specific bus transmission specification or not by the audio playing device and the operation method of the audio playing device, and responds to the host by other bus transmission specifications when the host does not support the host, thereby solving the problem of compatibility.
Drawings
FIG. 1 is a block diagram of an audio playback device and a host according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for operating an audio playback device according to an embodiment of the present invention; and
fig. 3 is a schematic diagram illustrating a communication procedure between a host and an audio playback device according to an embodiment of the invention.
Symbol description
10: audio playback apparatus 100: memory cell
101: first audio playback device information 102: processing unit
103: second audio playback device information 105: application program
12: host 14: bus line
200: the audio playback apparatus runs the methods 201-205: method of
301. 301': device descriptor request instructions 303, 303': device description meta information
305: address setting instruction
307: generalized configuration descriptor request instruction 309: generalized configuration description meta-information
Detailed Description
Please refer to fig. 1. Fig. 1 is a block diagram of an audio playback device 10 and a host 12 according to an embodiment of the invention.
In one embodiment, the audio playing device 10 may be, for example, but not limited to, a headset or a speaker, etc. that may be used to receive and play audio data (not shown) from the host 12. The host 12 may be, for example, but not limited to, a desktop computer, a notebook computer, or a handheld electronic device such as a smart phone, a tablet computer, etc. that may be used to provide audio data.
In one embodiment, the audio playing device 10 is electrically coupled to the host 12 through the bus 14. In more detail, the bus 14 may be any connection interface that can provide physical and electrical coupling of the audio playback device 10 and the host 12, and transfer data and instructions. In one embodiment, bus 14 may be a universal serial bus.
The audio playback apparatus 10 includes: a memory unit 100 and a processing unit 102.
The storage unit 100 is configured to store first audio playback device information 101, second audio playback device information 103, and an application program 105. In one embodiment, the memory cell 100 may be a flash memory, a programmable read-only memory (PROM), or an electrically erasable programmable read-only memory (EEPROM). In other embodiments, the memory unit 100 may be implemented by other types of memory, or may be a composite memory unit including a plurality of different types of memory.
The first audio playback device information 101 corresponds to a first bus transmission specification, and the second audio playback device information 103 corresponds to a second bus transmission specification different from the first bus transmission specification. In one embodiment, when the bus 14 is a USB, the first bus transmission specification may be, for example, but not limited to, a USB audio playback device class definition second version (universal serial bus device class definition for audio devices v 2.0), and the second bus transmission specification may be, for example, but not limited to, a USB audio playback device class definition first version (universal serial bus device class definition for audio devices v 1.0).
It should be noted that the type of the bus 14 and the first audio playing device information 101 and the second audio playing device information 103 are just one embodiment. In other embodiments, the bus 14 may be another type of bus, and the first audio playing device information 101 and the second audio playing device information 103 may be corresponding types of buses 14, respectively.
The processing unit 102 is electrically coupled to the memory unit 100 and is configured to access the memory unit 100. In one embodiment, the application program 105 stored in the storage unit 100 may be, for example, but not limited to, firmware, and execute related operation programs after being acquired by the processing unit 102.
Please refer to fig. 2. Fig. 2 is a flowchart of a method 200 for operating an audio playing device according to an embodiment of the present invention. The audio playing device operation method 200 can be applied to the audio playing device 10 of fig. 1. In more detail, in an embodiment, the processing unit 102 of the audio playing device 10 may execute the application 105 after acquiring the application 105 stored in the storage unit 100, so as to further execute the audio playing device operation method 200.
The method 200 for operating an audio playing device includes the following steps (it should be understood that the steps mentioned in this embodiment may be performed simultaneously or partially simultaneously, and the order of the steps may be adjusted according to the actual needs, except for those specifically mentioned in the present embodiment.
In step 201, the audio playing device 10 is electrically coupled to the host 12 through the bus 14.
In step 202, the audio playback device 10 selects the first audio playback device information 101 to respond to the host 12 according to the state descriptor request of the host 12. In one embodiment, the first audio playback device information 101 includes, for example, but is not limited to, device description meta information (device descriptor)
Meta information is described in a generalized configuration.
Please refer to fig. 3 at the same time. Fig. 3 is a schematic diagram illustrating a communication procedure between the host 12 and the audio playback device 10 according to an embodiment of the present invention. In one embodiment, the communication procedure shown in fig. 3 is used to implement step 202 in fig. 2.
First, the audio playback device 10 will receive a device descriptor request command 301 from the host 12. The audio playback device 10 will transmit the device description meta-information 303 to the host 12. In one embodiment, the host 12 sends a device descriptor request 301 to the audio playback device 10 at address 0. The audio playing device 10 performs bus enumeration (bus enumeration) by transmitting the device description meta information 303.
The audio playback device 10 will then receive the address setting instruction 305 from the host 12. In one embodiment, before the host 12 transmits the address setting command 305, the audio playback device 10 is reset, and then the address setting command 305 is transmitted to assign a new address to the audio playback device 10 instead of the address 0.
The audio playback device 10 will again receive the device description meta-request command 301 'from the host 12 and again transmit the device description meta-information 303' to the host 12. In one embodiment, the host 12 sends the device descriptor request 301' according to the newly set address.
Next, the audio playing device 10 receives the generalized configuration description meta-request 307 from the host 12, and transmits the generalized configuration description meta-information 309 to the host 12 accordingly. In one embodiment, the generalized configuration description meta-information 309 includes information corresponding to a first bus transmission specification. In detail, the generalized configuration description meta information 309 includes, for example, but is not limited to, configuration description meta information, interface joint description meta information, audio control interface header description meta information, audio control clock source unit description meta information, audio control input port description meta information, audio control output port description meta information, endpoint description meta information, audio stream interface description meta information, audio stream format description meta information, audio data endpoint description meta information, or a combination thereof.
After the audio playing device 10 selects the first audio playing device information 101 according to the state descriptor request of the host 12 to respond to the host 12, in step 203, the audio playing device 10 determines whether to receive an audio control function descriptor request command (not shown) from the host 12.
When the audio playing device 10 receives the audio control function descriptor request instruction from the host 12, the audio playing device 10 will determine that the host 12 supports the first bus transmission specification. Thus, in step 204, the audio playback device 10 will continue to respond to the status descriptor request from the host 12.
In one embodiment, the audio playback device 10 responds to audio control function description meta information (not shown) to the host 12. In one embodiment, the audio control function description meta information includes, for example, but not limited to, a current state of the mute control function, a minimum volume of the volume control function, a maximum volume of the volume control function, a phase adjustment of the volume control function, or a combination thereof. And, the audio data transmission between the audio playing device 10 and the host 12 can be performed in response to a request from the host 12 to play audio.
When the audio playing device 10 does not receive the audio control function descriptor request instruction from the host 12, the audio playing device 10 will determine that the host 12 does not support the first bus transmission specification.
Therefore, in step 205, the audio playing device 10 is electrically coupled with the host 12 through the bus 14 again. In one embodiment, the audio playing device 10 disconnects the electrical coupling between the bus 14 and the host 12, and then electrically couples with the host 12 again through the bus 14. Further, the audio playing device 10 selects or changes to respond to the host 12 with the second audio playing device information 103 according to the request of the host 12, and continues to respond to the state descriptor request of the host 12 when receiving the audio control function descriptor request instruction from the host 12.
In one embodiment, the second bus transmission specification has a poorer transmission capability than the first bus transmission specification. For example, the second bus transmission specification has a lower bandwidth than the first bus transmission specification. In other embodiments, the second bus transmission specification has a lower transmission rate than the first bus transmission specification.
In the prior art, when the host 12 does not support the supported partial bus transmission specification of the audio playing device 10, compatibility problem is caused, so that the audio playing device 10 cannot operate smoothly with the host 12. By the audio playing device 10 and the operation method 200 of the audio playing device of the present invention, the audio playing device 10 can detect whether the host 12 supports the specific bus transmission specification, and respond to the host 12 with other bus transmission specifications when the host 12 is not supported, so as to solve the problem of compatibility.
In the above embodiment, the storage unit 100 is taken as an example to store two audio playing device information corresponding to two bus transmission specifications. In other embodiments, the storage unit 100 may store more than two audio playback device information, and correspond to more than two bus transmission specifications, and determine whether each bus transmission specification is supported by the host 12, so as to adjust the adopted bus transmission specification accordingly.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and any modifications, equivalent substitutions and improvements made within the principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. An audio playing device operation method is applied to an audio playing device and comprises the following steps:
electrically coupled to the host via a bus;
selecting a first audio playing device information corresponding to a first bus transmission specification to respond to the host according to a state descriptor request of the host;
judging whether an audio control function description element request instruction is received from the host;
when receiving the audio control function description element request instruction from the host, continuing to respond to the state description element request of the host; and
when the audio control function description element request instruction is not received from the host, the host is judged to not support the first bus transmission specification, and is electrically coupled with the host again through the bus, and according to the state description element request of the host, the host is responded by a second audio playing device information corresponding to a second bus transmission specification, and when the audio control function description element request instruction is received from the host, the state description element request of the host is responded continuously.
2. The method of claim 1, wherein the first audio playing device information and the second audio playing device information respectively include a device description meta information and a generalized configuration description meta information, and the step of selecting the first audio playing device information and the second audio playing device information to respond to the host further respectively includes:
receiving a device descriptor request command from the host;
transmitting the device description meta information to the host;
receiving an address setting instruction from the host;
receiving the device descriptor request command from the host again;
transmitting the device description meta information to the host again;
receiving a generalized configuration descriptor request command from the host; and
transmitting the generalized configuration description meta information to the host.
3. The method of claim 2, wherein the generalized configuration description meta-information includes information corresponding to the first bus transmission specification when the first audio playback device information is selected in response to the host, and the generalized configuration description meta-information includes information corresponding to the second bus transmission specification when the second audio playback device information is selected in response to the host.
4. The method of claim 2, wherein the generalized configuration description meta-information includes a configuration description meta-information, an interface association description meta-information, an audio control interface header description meta-information, an audio control clock source unit description meta-information, an audio control input port description meta-information, an audio control output port description meta-information, an endpoint description meta-information, an audio stream interface description meta-information, an audio stream format description meta-information, an audio data endpoint description meta-information, or a combination thereof.
5. The method of claim 1, wherein a bandwidth of the second bus transmission specification is lower than the first bus transmission specification.
6. The method of claim 1, wherein the step of responding to the state descriptor request of the host further comprises:
responding to the description meta information of an audio control function; and
and transmitting audio data with the host.
7. The method of claim 6, wherein the audio control function description metadata includes a mute control function current status, a volume control function minimum volume, a volume control function maximum volume, a volume control function stage adjustment, or a combination thereof.
8. The method of claim 1, wherein the first bus transmission specification defines a second version for a usb audio player class, and the second bus transmission specification defines a first version for a usb audio player class.
9. The method of claim 1, wherein when the audio control function descriptor request command is not received from the host, further comprising:
the electrical coupling between the bus and the host is disconnected, and then the electrical coupling between the bus and the host is re-performed.
10. An audio playing device, comprising:
the storage unit is configured to store a plurality of audio playing device information corresponding to a plurality of bus transmission specifications and an application program; and
the processing unit is electrically coupled to the storage unit and is configured to acquire the application program so as to execute an operation method of the audio playing device, and the operation method of the audio playing device comprises the following steps:
electrically coupled to the host via a bus;
selecting a first audio playing device information corresponding to a first bus transmission specification to respond to the host according to a state descriptor request of the host;
judging whether an audio control function description element request instruction is received from the host;
when receiving the audio control function description element request instruction from the host, continuing to respond to the state description element request of the host; and
when the audio control function description element request instruction is not received from the host, the host is judged to not support the first bus transmission specification, and is electrically coupled with the host again through the bus, and according to the state description element request of the host, the host is responded by a second audio playing device information corresponding to a second bus transmission specification, and when the audio control function description element request instruction is received from the host, the state description element request of the host is responded continuously.
CN201811185004.6A 2018-10-11 2018-10-11 Audio playing device and operation method thereof Active CN111045632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811185004.6A CN111045632B (en) 2018-10-11 2018-10-11 Audio playing device and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811185004.6A CN111045632B (en) 2018-10-11 2018-10-11 Audio playing device and operation method thereof

Publications (2)

Publication Number Publication Date
CN111045632A CN111045632A (en) 2020-04-21
CN111045632B true CN111045632B (en) 2024-01-30

Family

ID=70229168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811185004.6A Active CN111045632B (en) 2018-10-11 2018-10-11 Audio playing device and operation method thereof

Country Status (1)

Country Link
CN (1) CN111045632B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604063A (en) * 2004-11-16 2005-04-06 威盛电子股份有限公司 Bus data transmission standard coordination method, central processing unit and bridging chips
CN101466008A (en) * 2007-12-21 2009-06-24 瑞昱半导体股份有限公司 Signal acceptance method and circuit for judging transmission standard of input signal
CN101807415A (en) * 2009-02-17 2010-08-18 鸿富锦精密工业(深圳)有限公司 Audio playing device with interactive function and interactive method thereof
CN102067097A (en) * 2008-06-30 2011-05-18 三星电子株式会社 USB device and method for recognizing USB mode of the same
CN103019352A (en) * 2011-09-23 2013-04-03 广达电脑股份有限公司 Universal serial bus power supply method, device end device and system applying same
CN104364777A (en) * 2012-06-07 2015-02-18 苹果公司 Protocol translating adapter
CN106557377A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 Data transfer control method, main process equipment, USB device and system
CN107455009A (en) * 2017-07-03 2017-12-08 深圳市汇顶科技股份有限公司 Audio system and earphone
CN107734436A (en) * 2016-08-11 2018-02-23 Gn 奥迪欧有限公司 The apparatus and method and computer-readable recording medium to be communicated according to USB

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10631246B2 (en) * 2011-02-14 2020-04-21 Microsoft Technology Licensing, Llc Task switching on mobile devices

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604063A (en) * 2004-11-16 2005-04-06 威盛电子股份有限公司 Bus data transmission standard coordination method, central processing unit and bridging chips
CN101466008A (en) * 2007-12-21 2009-06-24 瑞昱半导体股份有限公司 Signal acceptance method and circuit for judging transmission standard of input signal
CN102067097A (en) * 2008-06-30 2011-05-18 三星电子株式会社 USB device and method for recognizing USB mode of the same
CN101807415A (en) * 2009-02-17 2010-08-18 鸿富锦精密工业(深圳)有限公司 Audio playing device with interactive function and interactive method thereof
CN103019352A (en) * 2011-09-23 2013-04-03 广达电脑股份有限公司 Universal serial bus power supply method, device end device and system applying same
CN104364777A (en) * 2012-06-07 2015-02-18 苹果公司 Protocol translating adapter
CN106557377A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 Data transfer control method, main process equipment, USB device and system
CN107734436A (en) * 2016-08-11 2018-02-23 Gn 奥迪欧有限公司 The apparatus and method and computer-readable recording medium to be communicated according to USB
CN107455009A (en) * 2017-07-03 2017-12-08 深圳市汇顶科技股份有限公司 Audio system and earphone

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张义和.《数字跟踪技术》.北京航空航天大学出版社,2012,第166页. *

Also Published As

Publication number Publication date
CN111045632A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN102483728B (en) Device-dependent selection between modes for asymmetric serial protocols
JP5917408B2 (en) Configurable connector for system level communication
US10380049B2 (en) Multi-host supported universal serial bus hub and automobile head unit using the same
WO2017113683A1 (en) Usb data line comprising extension interface and control method thereof
US20060136899A1 (en) Method for programming/updating software using USB OTG
KR102048222B1 (en) Apparatus and method for recognizing an external device in a communication system
US8135874B2 (en) Automatic mapping and updating computer switching device
US10782799B2 (en) Smart pen pairing and connection
CN105700732A (en) Apparatus, system and method for communication of touch sensor information
CN104618793A (en) Information processing method and electronic equipment
CN108347719B (en) Bluetooth device connection method, device, storage medium, mobile terminal and server
KR101588993B1 (en) Protocol translating adapter
CN109120973B (en) Method, device and storage medium for rewriting EDID data
US11928073B2 (en) Configurable USB-C alternate mode for multi-level controller communication
US11144205B2 (en) Audio playback device and operation method of the same
CN109976694B (en) Data transmission device, terminal, method and processor system
CN111045632B (en) Audio playing device and operation method thereof
US10521385B2 (en) Inter-device digital audio
US10515025B2 (en) Communication protocol adapter
CN216527162U (en) Screen transmission device
US9965421B2 (en) Electronic device coupling system and method
CN111949103B (en) Integrated electronic device with data access, transmission and power management and method thereof
CN113515258B (en) Control method and device of audio device
CN108804068B (en) Client of audio device redirection system and related audio device redirection method
TWI768803B (en) Audio control circuit, host device and associated control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant