The invention discloses a USB audio device, a control method and a device thereof. The control methods of UAC devices include: detecting the type of request received by the USB interface of UAC devices; parsing the request according to the standard USB audio class protocol when receiving the request for interface setting, obtaining the target field value in the request for interface setting; and controlling UAC devices to enter the low-power mode or nominal mode according to the target field value. The technical scheme of the invention detects the type of request received by the USB interface in real time, parses and determines the target field value of the interface setting request based on the standard USB audio class protocol when receiving the interface setting request, so as to control the working mode of UAC device according to the target field value, and can control UAC device to enter the low-power mode when there is no audio data transmission on the PC terminal, to the maximum extent. Degree to reduce UAC power consumption, avoid unnecessary power generation.
【技术实现步骤摘要】
一种USB音频类设备及其控制方法、装置
本专利技术涉及一种USB音频类设备及其控制方法、装置。
技术介绍
通用串行总线(UniversalSerialBUS,USB)接口是目前电脑中的标准扩展接口。USB接口由于具有热插拔、标准统一、可连接多个设备等特点,在现代电子系统中有了广泛的应用。USB非常适合作为以PC为平台的音频(包括语音和音乐等)传输协议,USB音频类包括所有与USB接口兼容的音频流和音频控制功能,甚至包括使用模拟音源等功能。设备通过一根USB线就可以通过USB供电并利用内部的音频解码器播放PC端的声音,简单方便,因此USB音频类(USBAudioClass,UAC)设备被广泛使用。例如,UAC设备被广泛使用在消费类电子产品,如虚拟现实产品中,而在这些产品中,产品功耗一直是其需要面对和处理的主要问题之一。
技术实现思路
本专利技术提供了一种UAC设备及其控制方法、装置,以有效对UAC设备进行功耗控制。本专利技术一方面提供了一种UAC设备的控制方法,包括:检测UAC设备的USB接口接收到的请求类型;在接收到接口设置请求时,根据标准USB音频类协议解析接口设置 ...
【技术保护点】
1.一种USB音频类设备的控制方法,其特征在于,所述方法包括:检测USB音频类设备的USB接口接收到的请求类型;在接收到接口设置请求时,根据标准USB音频类协议解析所述接口设置请求,获得接口设置请求中的目标字段值;根据目标字段值控制USB音频类设备进入低功耗模式或标称模式。
【技术特征摘要】
1.一种USB音频类设备的控制方法,其特征在于,所述方法包括:检测USB音频类设备的USB接口接收到的请求类型;在接收到接口设置请求时,根据标准USB音频类协议解析所述接口设置请求,获得接口设置请求中的目标字段值;根据目标字段值控制USB音频类设备进入低功耗模式或标称模式。2.根据权利要求1所述的方法,其特征在于,所述根据目标字段值控制USB音频类设备进入低功耗模式或标称模式,包括:在所述目标字段值为1时,控制所述USB音频类设备进入低功耗模式;在所述目标字段值为0时,控制所述USB音频类设备进入标称模式。3.根据权利要求1或2所述的方法,其特征在于,所述方法包括:在所述USB音频类设备进入低功耗模式时,关闭所述USB音频类设备的功耗设备;在所述USB音频类设备进入标称模式时,开启所述USB音频类设备的功耗设备。4.根据权利要求3所述的方法,其特征在于,所述功耗设备包括音频编解码器、扬声器、麦克风、传感器和/或头戴视听装置。5.一种USB音频类设备的控制装置,其特征在于,所述装置包括:检测单元,用于检测USB音频类设备的USB接口接收到的请求类型;解析单元,用于在接收到接口设置请求时,根据标准USB音频类协议解析所述接口设...
【专利技术属性】
技术研发人员:徐宏燕,戴敏,马志伟,刘向伦,潘娜,
申请(专利权)人:歌尔科技有限公司,
类型:发明
国别省市:山东,37
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。