USB audio For Android Platform

核能气质少年 提交于 2019-12-22 12:43:25

问题


I am using Android 4.2.2 on Qualcomm APQ8064 Chip set. I want to enable audio output to the USB headset. I tried using aplay command but no luck. The driver for usb-audio is already there in the code. Everything is integrated but i don't get any output on the usb-headset. Any flags that need to be set?? Any lead will be of great help.

@Micheal:Following are the logs for the same, I just noticed that below logs from AudioUsbALSA can also be seen when the USB headset is not connected.

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

来源:https://stackoverflow.com/questions/22604002/usb-audio-for-android-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!