USB音频适用于Android平台

时间:2014-03-24 08:09:41

标签: android audio usb alsa

我在Qualcomm APQ8064芯片组上使用Android 4.2.2。我想启用USB耳机的音频输出。我尝试使用aplay命令,但没有运气。 usb-audio的驱动程序已经存在于代码中。一切都是集成的,但我没有在USB耳机上得到任何输出。任何需要设置的标志??任何领导都会有很大的帮助。

@Micheal:以下是相同的日志,我刚刚注意到,当USB耳机未连接时,也可以看到来自AudioUsbALSA的以下日志。

3502:I/InputReader(  676): Device added: id=8, name='Logitech Inc. Logitech USB Headset H340', sources=0x00000501
3504:D/StatusBar.NetworkController(  769): refreshViews: Data not connected!! Set no data type icon / Roaming
3505:D/StatusBar.NetworkController(  769): refreshViews connected={ } level=?? combinedSignalIconId=0x7f02013d/com.android.systemui:drawable/stat_sys_signal_null combinedActivityIconId=0x0 mobileLabel=No Internet connection wifiLabel= emergencyOnly=false combinedLabel=No Internet connection mAirplaneMode=false mDataActivity=0 mPhoneSignalIconId=0x7f02013d mQSPhoneSignalIconId=0x7f020073 mDataDirectionIconId=0x0 mDataSignalIconId=0x7f02013d mDataTypeIconId=0x0 mQSDataTypeIconId=0x0 mNoSimIconId=0x0 mWifiIconId=0x0 mQSWifiIconId=0x0 mBluetoothTetherIconId=0x1080563
3600:V/PhoneStatusBar(  769): setLightsOn(true)
3627:V/AudioHardwareALSA(  272): closeUsbPlaybackIfNothingActive, musbPlaybackState: 0
3628:D/AudioUsbALSA(  272): exitPlaybackThread, mproxypfdPlayback: -1
3629:D/AudioUsbALSA(  272): closeDevice handle 0x0
3630:D/AudioUsbALSA(  272): closeDevice handle 0x0
3710:V/PhoneStatusBar(  769): setLightsOn(true)
3730:V/AudioHardwareALSA(  272): closeUsbPlaybackIfNothingActive, musbPlaybackState: 0
3731:D/AudioUsbALSA(  272): exitPlaybackThread, mproxypfdPlayback: -1
3732:D/AudioUsbALSA(  272): closeDevice handle 0x0
3733:D/AudioUsbALSA(  272): closeDevice handle 0x0

0 个答案:

没有答案