这段log针对hal层,c++。
--------- beginning of /dev/log/main
I/OdekakeDcfFile( 278): Invalid content
I/AudioService( 747): AudioFocus requestAudioFocus() from android.media.AudioManager@41437cd8com.sonyericsson.music.proxyservice.worker.Worker$AudioFocusHandler$1@4143c278
I/OdekakeDcfFile( 278): Invalid content
E/MediaPlayer( 4251): Uri is <URL suppressed>
I/OdekakeDcfFile( 278): Invalid content
I/OdekakeDcfFile( 278): Invalid content
I/AudioService( 747): Remote Control registerMediaButtonIntent() for PendingIntent{427cf8e8: PendingIntentRecord{414176b8 com.sonyericsson.music broadcastIntent}}
I/SemcMusicPlayer( 4251): wakeLock isHeld: true
--------- beginning of /dev/log/system
E/NotificationService( 747): Ignoring notification with icon==0: Notification(pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 kind=[null])
I/SemcMusicPlayer( 4251): Received a CallState event. State: 0
I/OdekakeDcfFile( 278): Invalid content
D/QCUtilClass( 266): extended extractor not needed, return default
E/AwesomePlayer( 266): LPAPlayer::Clip duration setting of less than 30sec not supported, defaulting to 60sec
I/OdekakeDcfFile( 278): Invalid content
V/MusicFXControlPanelReceiver( 4577): onReceive
V/MusicFXControlPanelReceiver( 4577): Action: android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION
V/MusicFXControlPanelReceiver( 4577): Package name: com.sonyericsson.music
V/MusicFXControlPanelReceiver( 4577): Audio session: 88
V/MusicFXControlPanelEffect( 4577): openSession(android.app.ReceiverRestrictedContext@40f22fc8, com.sonyericsson.music, 88)
E/AwesomePlayer( 266): LPAPlayer::Clip duration setting of less than 30sec not supported, defaulting to 60sec
V/AudioPolicyManagerALSA( 266): getOutput() stream 3, samplingRate 0, format 0, channelMask 3, flags 0
V/AudioPolicyManagerALSA( 266): getOutput() returns output 2
V/AudioPolicyManagerALSA( 266): getOutput() stream 3, samplingRate 0, format 0, channelMask 3, flags 0
V/AudioPolicyManagerALSA( 266): getOutput() returns output 2
V/AudioPolicyManagerALSA( 266): getOutput() stream 3, samplingRate 44100, format 1, channelMask 3, flags 8
V/AudioPolicyManagerALSA( 266): getOutput() returns output 2
V/AudioPolicyManagerALSA( 266): getOutput() stream 3, samplingRate 0, format 0, channelMask 3, flags 0
V/AudioPolicyManagerALSA( 266): getOutput() returns output 2
V/AudioPolicyManagerALSA( 266): startOutput() output 2, stream 3, session 88
V/AudioPolicyManagerALSA( 266): getNewDevice() selected device 2
V/AudioPolicyManagerALSA( 266): setOutputDevice() output 2 device 0002 delayMs 0
E/AudioPolicyManagerALSA( 266): xiayu setOutputDevice() output 2 device 0002 delayMs 0 //以下是堆栈信息
D/CallStack( 266): #00 pc 0000b858 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+79)
D/CallStack( 266): #01 pc 0000bd0e /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::startOutput(int, android_audio_legacy::AudioSystem::stream_type, int)+289)
D/CallStack( 266): #02 pc 0000a2a8 /system/lib/hw/audio_policy.msm8960.so
D/CallStack( 266): #03 pc 000450ce /system/lib/libaudioflinger.so (android::AudioPolicyService::startOutput(int, audio_stream_type_t, int)+31)
D/CallStack( 266): #04 pc 0004ce9a /system/lib/libmedia.so (android::AudioSystem::startOutput(int, audio_stream_type_t, int)+23)
D/CallStack( 266): #05 pc 0003cb10 /system/lib/libaudioflinger.so (android::AudioFlinger::PlaybackThread::Track::start(android::AudioSystem::sync_event_t, int)+85)
D/CallStack( 266): #06 pc 0003342c /system/lib/libaudioflinger.so (android::AudioFlinger::TrackHandle::start()+9)
D/CallStack( 266): #07 pc 0004535c /system/lib/libmedia.so (android::AudioTrack::start()+199)
D/CallStack( 266): #08 pc 000708c0 /system/lib/libstagefright.so (android::AudioPlayer::start(bool)+515)
D/CallStack( 266): #09 pc 00073782 /system/lib/libstagefright.so (android::AwesomePlayer::startAudioPlayer_l(bool)+53)
D/CallStack( 266): #10 pc 000747fa /system/lib/libstagefright.so (android::AwesomePlayer::play_l()+1057)
D/CallStack( 266): #11 pc 00074bde /system/lib/libstagefright.so (android::AwesomePlayer::play()+45)
D/CallStack( 266): #12 pc 00034b28 /system/lib/libmediaplayerservice.so (android::MediaPlayerService::Client::start()+29)
D/CallStack( 266): #13 pc 000509be /system/lib/libmedia.so (android::BnMediaPlayer::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+513)
D/CallStack( 266): #14 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D/CallStack( 266): #15 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D/CallStack( 266): #16 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D/CallStack( 266): #17 pc 0001b184 /system/lib/libbinder.so
D/CallStack( 266): #18 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D/CallStack( 266): #19 pc 00010dca /system/lib/libutils.so
D/CallStack( 266): #20 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D/CallStack( 266): #21 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V/AudioPolicyManagerALSA( 266): setOutputDevice() prevDevice 0002
V/AudioPolicyManagerALSA( 266): setOutputDevice() setting same device 0002 or null device for output 2 //因为设备没有变化,所以直接返回,路由也不用改变了。
D/alsa_ucm( 266): snd_use_case_set(): uc_mgr 0x41f17578 identifier _enadev value xLoud Speaker
D/alsa_ucm( 266): snd_use_case_set(): uc_mgr 0x41f17578 identifier _verb value HiFi
D/alsa_ucm( 266): Set mixer controls for xLoud Speaker enable 1
D/alsa_ucm( 266): acdb_id 520 cap 1 enable 1
D/ACDB-LOADER( 266): ACDB -> send_audio_cal, acdb_id = 520, path = 0
D/ACDB-LOADER( 266): ACDB -> send_adm_topology
D/ACDB-LOADER( 266): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
D/ACDB-LOADER( 266): ACDB -> send_audtable
D/ACDB-LOADER( 266): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
D/ACDB-LOADER( 266): ACDB -> AUDIO_SET_AUDPROC_CAL
D/ACDB-LOADER( 266): ACDB -> send_audvoltable
D/ACDB-LOADER( 266): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_VOLTBL_STEP_COPP
D/ACDB-LOADER( 266): ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
D/ACDB-LOADER( 266): ACDB -> AUDIO_SET_AFE_CAL
D/alsa_ucm( 266): Setting mixer control: SLIM_0_RX Channels, value: Two
D/alsa_ucm( 266): Setting mixer control: RX3 MIX1 INP1, value: RX1
D/MediaPlayer( 4251): mContextLock Held Seek_To
D/MediaPlayer( 4251): seekTo() mUri is <URL suppressed>
D/alsa_ucm( 266): Setting mixer control: RX3 MIX1 INP2, value: RX2
D/alsa_ucm( 266): Setting mixer control: LINEOUT1 Volume, value: 100
D/alsa_ucm( 266): Setting mixer control: SLIM TX3 MUX, value: RMIX3
D/alsa_ucm( 266): Setting mixer control: SLIM TX5 MUX, value: RMIX3
D/alsa_ucm( 266): Setting mixer control: RX3 Digital Volume, value: 68
D/alsa_ucm( 266): Set mixer controls for HiFi enable 1
D/alsa_ucm( 266): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 1
D/Preeffect( 266): Clear Stereo Off(0x80000001) for Speaker
D/BluetoothA2dpService( 747): uri is <URI SUPPRESSED> mUri is <URI SUPPRESSED>
D/BluetoothA2dpService( 747): PlaySatus is 3
D/BluetoothA2dpService( 747): Metadata received
D/BluetoothA2dpService( 747): Duration 223242
D/BluetoothA2dpService( 747): position 36467
D/BluetoothA2dpService( 747): playstate is 3
D/BluetoothA2dpService( 747): Update for same Uri, ignoring
D/MediaPlayer( 4251): mContextLock Held PLAYER_PLAY
D/MediaPlayer( 4251): start() mUri is <URL suppressed>
D/BluetoothA2dpService( 747): uri is <URI SUPPRESSED> mUri is <URI SUPPRESSED>
D/BluetoothA2dpService( 747): PlaySatus is 1
D/BluetoothA2dpService( 747): Metadata received
D/BluetoothA2dpService( 747): Duration 223242
D/BluetoothA2dpService( 747): position 36598
D/BluetoothA2dpService( 747): playstate is 1
D/BluetoothA2dpService( 747): Update for same Uri, ignoring
I/SemcMusicPlayer( 4251): wakeLock isHeld: true
D/MediaPlayer( 4617): mContextLock Released
D/Preeffect( 266): Clear Stereo Off(0x80000001) for Speaker
E/NotificationService( 747): Ignoring notification with icon==0: Notification(pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 kind=[null])
D/MediaPlayer( 4617): mContextLock Released
D/Preeffect( 266): Clear Stereo Off(0x80000001) for Speaker
D/MediaPlayer( 4251): mContextLock Held Seek_Complete
D/BluetoothA2dpService( 747): uri is <URI SUPPRESSED> mUri is <URI SUPPRESSED>
D/BluetoothA2dpService( 747): PlaySatus is 1
D/BluetoothA2dpService( 747): Metadata received
D/BluetoothA2dpService( 747): Duration 223242
D/BluetoothA2dpService( 747): position 36624
D/BluetoothA2dpService( 747): playstate is 1
D/BluetoothA2dpService( 747): Update for same Uri, ignoring
D/MediaPlayer( 4617): mContextLock Released
D/Preeffect( 266): Clear Stereo Off(0x80000001) for Speaker
D/MediaPlayer( 4617): mContextLock Released
D/Preeffect( 266): Clear Stereo Off(0x80000001) for Speaker
D/MediaPlayer( 4617): mContextLock Released
D/Preeffect( 266): Clear Stereo Off(0x80000001) for Speaker
D/Preeffect( 266): Clear Stereo Off(0x80000001) for Speaker
D/MediaPlayer( 4617): mContextLock Released
D/Preeffect( 266): PRE_PARAM_CA_CHSEP Clear Stereo Off(0x80000001)
E/NotificationService( 747): Ignoring notification with icon==0: Notification(pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 kind=[null])
W/ContextImpl( 747): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1076 com.quicinc.cne.NsrmBackgroundEventHdlr.fireIntent:314 com.quicinc.cne.NsrmBackgroundEventHdlr.pollBackgroundEvents:407 com.quicinc.cne.NsrmBackgroundEventHdlr.access$600:41 com.quicinc.cne.NsrmBackgroundEventHdlr$3.run:251
W/ContextImpl( 747): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1076 com.quicinc.cne.NsrmBackgroundEventHdlr.fireIntent:314 com.quicinc.cne.NsrmBackgroundEventHdlr.pollBackgroundEvents:415 com.quicinc.cne.NsrmBackgroundEventHdlr.access$600:41 com.quicinc.cne.NsrmBackgroundEventHdlr$3.run:251
I/EventLogService( 1494): Aggregate from 91212127 (log), 91212127 (data)
D/dalvikvm( 1494): GC_CONCURRENT freed 455K, 75% free 2783K/10884K, paused 16ms+1ms, total 60ms
--------- beginning of /dev/log/main
V/AudioPolicyManagerALSA( 266): stopOutput() output 2, stream 3, session 102
V/AudioPolicyManagerALSA( 266): getNewDevice() selected device 0
V/AudioPolicyManagerALSA( 266): setOutputDevice() output 2 device 0000 delayMs 276
E/AudioPolicyManagerALSA( 266): xiayu setOutputDevice() output 2 device 0000 delayMs 276//以下是堆栈
--------- beginning of /dev/log/system
I/ActivityManager( 747): No longer want com.sonyericsson.extras.liveware (pid 4858): empty for 1802s
I/SemcMusicPlayer( 4251): wakeLock isHeld: false
D/CallStack( 266): #00 pc 0000b858 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+79)
D/CallStack( 266): #01 pc 0000bf44 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::stopOutput(int, android_audio_legacy::AudioSystem::stream_type, int)+191)
D/CallStack( 266): #02 pc 0000a2b6 /system/lib/hw/audio_policy.msm8960.so
D/CallStack( 266): #03 pc 00045098 /system/lib/libaudioflinger.so (android::AudioPolicyService::stopOutput(int, audio_stream_type_t, int)+31)
D/CallStack( 266): #04 pc 0004ce76 /system/lib/libmedia.so (android::AudioSystem::stopOutput(int, audio_stream_type_t, int)+23)
D/CallStack( 266): #05 pc 0003b06c /system/lib/libaudioflinger.so (android::AudioFlinger::PlaybackThread::Track::pause()+61)
D/CallStack( 266): #06 pc 000430b8 /system/lib/libmedia.so (android::AudioTrack::pause()+47)
D/CallStack( 266): #07 pc 00070b4c /system/lib/libstagefright.so (android::AudioPlayer::pause(bool)+71)
D/CallStack( 266): #08 pc 00074120 /system/lib/libstagefright.so (android::AwesomePlayer::pause_l(bool)+47)
D/CallStack( 266): #09 pc 00074254 /system/lib/libstagefright.so (android::AwesomePlayer::pause()+47)
D/CallStack( 266): #10 pc 00034ad6 /system/lib/libmediaplayerservice.so (android::MediaPlayerService::Client::pause()+19)
D/CallStack( 266): #11 pc 000509be /system/lib/libmedia.so (android::BnMediaPlayer::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+513)
D/CallStack( 266): #12 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D/CallStack( 266): #13 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D/CallStack( 266): #14 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D/CallStack( 266): #15 pc 0001b184 /system/lib/libbinder.so
D/CallStack( 266): #16 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D/CallStack( 266): #17 pc 00010dca /system/lib/libutils.so
D/CallStack( 266): #18 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D/CallStack( 266): #19 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V/AudioPolicyManagerALSA( 266): setOutputDevice() prevDevice 0002
V/AudioPolicyManagerALSA( 266): setOutputDevice() setting same device 0000 or null device for output 2 //路由不用变化直接返回。
I/SemcMusicPlayer( 4251): wakeLock isHeld: false
D/MediaPlayer( 4251): mContextLock Player_Pause
D/MediaPlayer( 4251): pause() mUri is <URL suppressed>
D/BluetoothA2dpService( 747): uri is <URI SUPPRESSED> mUri is <URI SUPPRESSED>
D/BluetoothA2dpService( 747): PlaySatus is 2
D/BluetoothA2dpService( 747): Metadata received
D/BluetoothA2dpService( 747): Duration 223242
D/BluetoothA2dpService( 747): position 47387
D/BluetoothA2dpService( 747): playstate is 2
D/BluetoothA2dpService( 747): Update for same Uri, ignoring
W/ContextImpl( 747): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1076 com.quicinc.cne.NsrmBackgroundEventHdlr.fireIntent:314 com.quicinc.cne.NsrmBackgroundEventHdlr.pollBackgroundEvents:407 com.quicinc.cne.NsrmBackgroundEventHdlr.access$600:41 com.quicinc.cne.NsrmBackgroundEventHdlr$3.run:251
W/ContextImpl( 747): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1076 com.quicinc.cne.NsrmBackgroundEventHdlr.fireIntent:314 com.quicinc.cne.NsrmBackgroundEventHdlr.pollBackgroundEvents:415 com.quicinc.cne.NsrmBackgroundEventHdlr.access$600:41 com.quicinc.cne.NsrmBackgroundEventHdlr$3.run:251
--------- beginning of /dev/log/system
D( 748: 986) notifyJackSwitchChanged(): switchValues 4 switchMask 4
D( 748: 986) update(): sending Message to IntentHander with delay of 100
V( 748: 986) notifyWiredAccessoryChanged: when=2143776831000 bits=SW_HEADPHONE_INSERT mask=4
V( 748: 986) newName=h2w newState=2 headsetState=2 prev headsetState=0
V( 748: 785) device h2w connected
--------- beginning of /dev/log/main
V( 269: 1051) setDeviceConnectionState() tid 1051
V( 269: 1051) setDeviceConnectionState() device: 8, state 1, address
V( 269: 1051) setDeviceConnectionState() connecting device 8
V( 269: 1051) checkOutputsForDevice(): adding opened output 2
V( 269: 1051) checkOutputsForDevice(): adding opened output 3
V( 269: 1051) checkOutputsForDevice(): adding profile 1 from module 0
V( 269: 1051) checkOutputsForDevice(): adding profile 2 from module 0
V( 269: 1051) checkOutputsForDevice(): adding profile 3 from module 0
V( 269: 1051) checkOutputsForDevice(): adding profile 4 from module 0
V( 269: 1051) checkOutputsForDevice(): adding profile 5 from module 0
V( 269: 1051) opening output for device 00000008
W( 269: 1051) checkOutputsForDevice() could not open output for device 8
V( 269: 1051) opening output for device 00000008
W( 269: 1051) checkOutputsForDevice() could not open output for device 8
V( 269: 1051) opening output for device 00000008
W( 269: 1051) checkOutputsForDevice() could not open output for device 8
V( 269: 1051) setDeviceConnectionState() checkOutputsForDevice() returned 2 outputs
E( 269: 1051) xiayu AudioPolicyService :setParameters ioHandle=0
D( 269: 1051) #00 pc 000498ec /system/lib/libaudioflinger.so (android::AudioPolicyService::setParameters(int, char const*, int)+39)
D( 269: 1051) #01 pc 00046f50 /system/lib/libaudioflinger.so
D( 269: 1051) #02 pc 000130cc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyCompatClient::setParameters(int, android::String8 const&, int)+7)
D( 269: 1051) #03 pc 0000d46a /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setDeviceConnectionState(unsigned int, android_audio_legacy::AudioSystem::device_connection_state, char const*)+553)
D( 269: 1051) #04 pc 0000a204 /system/lib/hw/audio_policy.msm8960.so
D( 269: 1051) #05 pc 0004792a /system/lib/libaudioflinger.so (android::AudioPolicyService::setDeviceConnectionState(unsigned int, audio_policy_dev_state_t, char const*)+105)
D( 269: 1051) #06 pc 0005862e /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+737)
D( 269: 1051) #07 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 1051) #08 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 1051) #09 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 1051) #10 pc 0001b184 /system/lib/libbinder.so
D( 269: 1051) #11 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 1051) #12 pc 00010dca /system/lib/libutils.so
D( 269: 1051) #13 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 1051) #14 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 1051) inserting command: 3 at index 0, num commands 0
V( 269: 1051) AudioCommandThread() adding set parameter string wiredAccessoryType=headphone, io 0 ,delay 0
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set parameters string wiredAccessoryType=headphone, io 0
V( 269: 839) setParameters(): io 0, keyvalue wiredAccessoryType=headphone, tid 839, calling pid 269
V( 269: 839) setFlags: flags 2578
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) getNewDevice() selected device 8
V( 269: 1051) getNewDevice() selected device 8
V( 269: 1051) getNewDevice() selected device 8
V( 269: 1051) setOutputDevice() output 2 device 0008 delayMs 0
E( 269: 1051) xiayu setOutputDevice() output 2 device 0008 delayMs 0
D( 269: 1051) #00 pc 0000b858 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+79)
D( 269: 1051) #01 pc 0000d8bc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setDeviceConnectionState(unsigned int, android_audio_legacy::AudioSystem::device_connection_state, char const*)+1659)
D( 269: 1051) #02 pc 0000a204 /system/lib/hw/audio_policy.msm8960.so
D( 269: 1051) #03 pc 0004792a /system/lib/libaudioflinger.so (android::AudioPolicyService::setDeviceConnectionState(unsigned int, audio_policy_dev_state_t, char const*)+105)
D( 269: 1051) #04 pc 0005862e /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+737)
D( 269: 1051) #05 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 1051) #06 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 1051) #07 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 1051) #08 pc 0001b184 /system/lib/libbinder.so
D( 269: 1051) #09 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 1051) #10 pc 00010dca /system/lib/libutils.so
D( 269: 1051) #11 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 1051) #12 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 1051) setOutputDevice() prevDevice 0002
V( 269: 1051) inserting command: 2 at index 0, num commands 0
V( 269: 1051) AudioCommandThread() adding set volume stream 1, volume 0.000000, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set volume stream 1, volume 0.000000, output 2
V( 269: 839) setStreamVolume stream 1, output 2, value 0.000000
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 2 at index 0, num commands 0
V( 269: 1051) AudioCommandThread() adding set volume stream 3, volume 0.000000, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set volume stream 3, volume 0.000000, output 2
V( 269: 839) setStreamVolume stream 3, output 2, value 0.000000
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 2 at index 0, num commands 0
V( 269: 1051) AudioCommandThread() adding set volume stream 9, volume 0.000000, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set volume stream 9, volume 0.000000, output 2
V( 269: 839) setStreamVolume stream 9, output 2, value 0.000000
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 5 at index 0, num commands 0
V( 269: 1051) AudioCommandThread() adding set fm volume volume 0.000000
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set fm volume volume 0.000000
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 2 at index 0, num commands 0
V( 269: 1051) AudioCommandThread() adding set volume stream 1, volume 0.042500, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 2 at index 1, num commands 1
V( 269: 1051) AudioCommandThread() adding set volume stream 3, volume 0.066835, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 2 at index 2, num commands 2
V( 269: 1051) AudioCommandThread() adding set volume stream 9, volume 0.088869, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 5 at index 3, num commands 3
V( 269: 1051) AudioCommandThread() adding set fm volume volume 0.066835
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() going to sleep
D( 748: 787) Headset detect: Inside handleMessage() for IntentHandlerHeadset
D( 748: 787) sendIntents(): mHeadsetJackState 2 mCurHeadsetState 0 mPrevHeadsetState 2
D( 748: 787) sendIntent(): device 8 state 1
V( 269: 1051) setOutputDevice() changing device:8
E( 269: 1051) xiayu AudioPolicyService :setParameters ioHandle=2
D( 269: 1051) #00 pc 000498ec /system/lib/libaudioflinger.so (android::AudioPolicyService::setParameters(int, char const*, int)+39)
D( 269: 1051) #01 pc 00046f50 /system/lib/libaudioflinger.so
D( 269: 1051) #02 pc 000130cc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyCompatClient::setParameters(int, android::String8 const&, int)+7)
D( 269: 1051) #03 pc 0000ba24 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+539)
D( 269: 1051) #04 pc 0000d8bc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setDeviceConnectionState(unsigned int, android_audio_legacy::AudioSystem::device_connection_state, char const*)+1659)
D( 269: 1051) #05 pc 0000a204 /system/lib/hw/audio_policy.msm8960.so
D( 269: 1051) #06 pc 0004792a /system/lib/libaudioflinger.so (android::AudioPolicyService::setDeviceConnectionState(unsigned int, audio_policy_dev_state_t, char const*)+105)
D( 269: 1051) #07 pc 0005862e /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+737)
D( 269: 1051) #08 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 1051) #09 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 1051) #10 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 1051) #11 pc 0001b184 /system/lib/libbinder.so
D( 269: 1051) #12 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 1051) #13 pc 00010dca /system/lib/libutils.so
D( 269: 1051) #14 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 1051) #15 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 1051) inserting command: 3 at index 0, num commands 4
V( 269: 1051) AudioCommandThread() adding set parameter string routing=8, io 2 ,delay 0
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set parameters string routing=8, io 2
V( 269: 839) setParameters(): io 2, keyvalue routing=8, tid 839, calling pid 269
E( 269: 839) xiayu AudioFlinger setParameters ioHandle=2
D( 269: 839) #00 pc 0004680e /system/lib/libaudioflinger.so (android::AudioFlinger::setParameters(int, android::String8 const&)+1105)
D( 269: 839) #01 pc 0004c778 /system/lib/libmedia.so (android::AudioSystem::setParameters(int, android::String8 const&)+19)
D( 269: 839) #02 pc 00049c40 /system/lib/libaudioflinger.so (android::AudioPolicyService::AudioCommandThread::threadLoop()+343)
D( 269: 839) #03 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 839) #04 pc 00010dca /system/lib/libutils.so
D( 269: 839) #05 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 839) #06 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 839) ThreadBase::setParameters() routing=8
V( 269: 872) mInChannels:1
D( 269: 872) route: devices 0x8 in mode 0
V( 269: 872) xiayu switchDevice: device 0x8 mode:0
D( 269: 872) #00 pc 0002811c /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSADevice::switchDevice(android_audio_legacy::alsa_handle_t*, unsigned int, unsigned int)+148)
D( 269: 872) #01 pc 00029118 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSADevice::route(android_audio_legacy::alsa_handle_t*, unsigned int, int)+92)
D( 269: 872) #02 pc 00011b18 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::AudioHardwareALSA::doRouting(int)+1456)
D( 269: 872) #03 pc 00017258 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSAStreamOps::setParameters(android::String8 const&)+516)
D( 269: 872) #04 pc 00018cb0 /system/lib/hw/audio.primary.msm8960.so
D( 269: 872) #05 pc 000420de /system/lib/libaudioflinger.so (android::AudioFlinger::MixerThread::checkForNewParameters_l()+393)
D( 269: 872) #06 pc 00040e40 /system/lib/libaudioflinger.so (android::AudioFlinger::PlaybackThread::threadLoop()+151)
D( 269: 872) #07 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 872) #08 pc 00010dca /system/lib/libutils.so
D( 269: 872) #09 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 872) #10 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 872) nonCallOutputRouting: 0x8
V( 269: 872) Routing to rx=Headphones
V( 269: 872) nonCallInputRouting: 0
V( 269: 872) Routing to tx=none
V( 269: 872) use case is HiFi
D( 269: 872) Deroute use case HiFi type is 1
D( 269: 872) snd_use_case_set(): uc_mgr 0x421b26e0 identifier _verb value Inactive
D( 269: 872) Set mixer controls for HiFi enable 0
D( 269: 872) Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 0
D( 269: 872) snd_use_case_set(): uc_mgr 0x421b26e0 identifier _disdev value xLoud Speaker
D( 269: 872) Set mixer controls for xLoud Speaker enable 0
D( 269: 872) Setting mixer control: RX3 MIX1 INP1, value: ZERO
D( 269: 872) Setting mixer control: RX3 MIX1 INP2, value: ZERO
D( 269: 872) Setting mixer control: LINEOUT1 Volume, value: 0
D( 269: 872) Setting mixer control: SLIM TX3 MUX, value: ZERO
D( 269: 872) Setting mixer control: SLIM TX5 MUX, value: ZERO
V( 269: 872) switchDevice,rxDev:Headphones, txDev:(null), curRxDev:xLoud Speaker, curTxDev:None
D( 269: 872) snd_use_case_set(): uc_mgr 0x421b26e0 identifier _enadev value Headphones
D( 269: 872) Route use case HiFi
D( 269: 872) snd_use_case_set(): uc_mgr 0x421b26e0 identifier _verb value HiFi
D( 269: 872) Set mixer controls for Headphones enable 1
D( 269: 872) acdb_id 10 cap 1 enable 1
D( 269: 872) ACDB -> send_audio_cal, acdb_id = 10, path = 0
D( 269: 872) ACDB -> send_adm_topology
D( 269: 872) ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
D( 269: 872) ACDB -> send_audtable
D( 269: 872) ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
D( 269: 872) ACDB -> AUDIO_SET_AUDPROC_CAL
D( 269: 872) ACDB -> send_audvoltable
D( 269: 872) ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_VOLTBL_STEP_COPP
D( 269: 872) ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
D( 269: 872) ACDB -> AUDIO_SET_AFE_CAL
D( 269: 872) Setting mixer control: SLIM_0_RX Channels, value: Two
D( 269: 872) Setting mixer control: RX1 MIX1 INP1, value: RX1
D( 269: 872) Setting mixer control: RX1 MIX1 INP2, value: RX6
D( 269: 872) Setting mixer control: RX2 MIX1 INP1, value: RX2
D( 269: 872) Setting mixer control: RX2 MIX1 INP2, value: RX7
D( 269: 872) Setting mixer control: HPHL DAC Switch, value: 1
D( 269: 872) Setting mixer control: HPHL Volume, value: 67
D( 269: 872) Setting mixer control: HPHR Volume, value: 67
D( 269: 872) Setting mixer control: SLIM TX3 MUX, value: RMIX1
D( 269: 872) Setting mixer control: SLIM TX5 MUX, value: RMIX2
D( 269: 872) Setting mixer control: RX1 Digital Volume, value: 68
D( 269: 872) Setting mixer control: RX2 Digital Volume, value: 68
D( 269: 872) Set mixer controls for HiFi enable 1
D( 269: 872) Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 1
D( 3571: 3571) GC_FOR_ALLOC freed 365K, 77% free 2587K/10884K, paused 20ms, total 20ms
D( 269: 872) switchDevice: mCurTxUCMDevivce None mCurRxDevDevice Headphones
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 2 at index 0, num commands 4
V( 269: 1051) AudioCommandThread() adding set volume stream 2, volume 0.066835, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set volume stream 2, volume 0.066835, output 2
V( 269: 839) setStreamVolume stream 2, output 2, value 0.066835
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 2 at index 0, num commands 4
V( 269: 1051) AudioCommandThread() adding set volume stream 4, volume 0.066835, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set volume stream 4, volume 0.066835, output 2
V( 269: 839) setStreamVolume stream 4, output 2, value 0.066835
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) inserting command: 2 at index 0, num commands 4
V( 269: 1051) AudioCommandThread() adding set volume stream 5, volume 0.066835, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set volume stream 5, volume 0.066835, output 2
V( 269: 839) setStreamVolume stream 5, output 2, value 0.066835
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) checkAndSetVolume() cannot set stream 6 volume with force use = 0 for comm
V( 269: 1051) inserting command: 2 at index 0, num commands 4
V( 269: 1051) AudioCommandThread() adding set volume stream 8, volume 0.087333, output 2
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set volume stream 8, volume 0.087333, output 2
V( 269: 839) setStreamVolume stream 8, output 2, value 0.087333
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) suppressing command: 5
V( 269: 1051) deleting mParam 0x423fda90 for command: 5
V( 269: 1051) inserting command: 5 at index 0, num commands 3
V( 269: 1051) AudioCommandThread() adding set fm volume volume 0.066835
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) getNewDevice() selected device 0
V( 269: 1051) getNewDevice() selected device 0
V( 269: 1051) setOutputDevice() output 3 device 0000 delayMs 0
E( 269: 1051) xiayu setOutputDevice() output 3 device 0000 delayMs 0
D( 269: 1051) #00 pc 0000b858 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+79)
D( 269: 1051) #01 pc 0000d8bc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setDeviceConnectionState(unsigned int, android_audio_legacy::AudioSystem::device_connection_state, char const*)+1659)
D( 269: 1051) #02 pc 0000a204 /system/lib/hw/audio_policy.msm8960.so
D( 269: 1051) #03 pc 0004792a /system/lib/libaudioflinger.so (android::AudioPolicyService::setDeviceConnectionState(unsigned int, audio_policy_dev_state_t, char const*)+105)
D( 269: 1051) #04 pc 0005862e /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+737)
D( 269: 1051) #05 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 1051) #06 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 1051) #07 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 1051) #08 pc 0001b184 /system/lib/libbinder.so
D( 269: 1051) #09 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 1051) #10 pc 00010dca /system/lib/libutils.so
D( 269: 1051) #11 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 1051) #12 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 1051) setOutputDevice() prevDevice 0002
V( 269: 1051) setOutputDevice() changing device:0
E( 269: 1051) xiayu AudioPolicyService :setParameters ioHandle=3
D( 269: 1051) #00 pc 000498ec /system/lib/libaudioflinger.so (android::AudioPolicyService::setParameters(int, char const*, int)+39)
D( 269: 1051) #01 pc 00046f50 /system/lib/libaudioflinger.so
D( 269: 1051) #02 pc 000130cc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyCompatClient::setParameters(int, android::String8 const&, int)+7)
D( 269: 1051) #03 pc 0000ba24 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+539)
D( 269: 1051) #04 pc 0000d8bc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setDeviceConnectionState(unsigned int, android_audio_legacy::AudioSystem::device_connection_state, char const*)+1659)
D( 269: 1051) #05 pc 0000a204 /system/lib/hw/audio_policy.msm8960.so
D( 269: 1051) #06 pc 0004792a /system/lib/libaudioflinger.so (android::AudioPolicyService::setDeviceConnectionState(unsigned int, audio_policy_dev_state_t, char const*)+105)
D( 269: 1051) #07 pc 0005862e /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+737)
D( 269: 1051) #08 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 1051) #09 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 1051) #10 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 1051) #11 pc 0001b184 /system/lib/libbinder.so
D( 269: 1051) #12 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 1051) #13 pc 00010dca /system/lib/libutils.so
D( 269: 1051) #14 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 1051) #15 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 1051) inserting command: 3 at index 0, num commands 4
V( 269: 1051) AudioCommandThread() adding set parameter string routing=0, io 3 ,delay 0
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set parameters string routing=0, io 3
V( 269: 839) setParameters(): io 3, keyvalue routing=0, tid 839, calling pid 269
E( 269: 839) xiayu AudioFlinger setParameters ioHandle=3
D( 269: 839) #00 pc 0004680e /system/lib/libaudioflinger.so (android::AudioFlinger::setParameters(int, android::String8 const&)+1105)
D( 269: 839) #01 pc 0004c778 /system/lib/libmedia.so (android::AudioSystem::setParameters(int, android::String8 const&)+19)
D( 269: 839) #02 pc 00049c40 /system/lib/libaudioflinger.so (android::AudioPolicyService::AudioCommandThread::threadLoop()+343)
D( 269: 839) #03 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 839) #04 pc 00010dca /system/lib/libutils.so
D( 269: 839) #05 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 839) #06 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 839) ThreadBase::setParameters() routing=0
V( 269: 875) thread 0x42279800 type 0 TID 875 waking up
V( 269: 875) acquireWakeLock_l() AudioOut_3 status 0
E( 269: 875) must not change mDevices to 0
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 1051) checkAndSetVolume() cannot set stream 6 volume with force use = 0 for comm
V( 269: 1052) setRingerMode() tid 1052
V( 269: 269) setForceUse() tid 269
V( 269: 269) setForceUse() usage 1, config 10, mPhoneState 0
V( 269: 269) getNewDevice() selected device 8
V( 269: 269) setOutputDevice() output 2 device 0008 delayMs 0
E( 269: 269) xiayu setOutputDevice() output 2 device 0008 delayMs 0
D( 269: 269) #00 pc 0000b858 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+79)
D( 269: 269) #01 pc 0000c736 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setForceUse(android_audio_legacy::AudioSystem::force_use, android_audio_legacy::AudioSystem::forced_config)+417)
D( 269: 269) #02 pc 0000a23c /system/lib/hw/audio_policy.msm8960.so
D( 269: 269) #03 pc 000477e2 /system/lib/libaudioflinger.so (android::AudioPolicyService::setForceUse(audio_policy_force_use_t, audio_policy_forced_cfg_t)+65)
D( 269: 269) #04 pc 000583fa /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+173)
D( 269: 269) #05 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 269) #06 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 269) #07 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 269) #08 pc 00000dae /system/bin/mediaserver
D( 269: 269) #09 pc 000127fc /system/lib/libc.so (__libc_init+35)
V( 269: 269) setOutputDevice() prevDevice 0008
V( 269: 269) setOutputDevice() Call routing with same device with zero delay
V( 269: 269) setOutputDevice() changing device:8
E( 269: 269) xiayu AudioPolicyService :setParameters ioHandle=2
W( 748: 1040) Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1076 com.quicinc.cne.NsrmBackgroundEventHdlr.fireIntent:314 com.quicinc.cne.NsrmBackgroundEventHdlr.pollBackgroundEvents:411 com.quicinc.cne.NsrmBackgroundEventHdlr.access$600:41 com.quicinc.cne.NsrmBackgroundEventHdlr$3.run:251
D( 269: 269) #00 pc 000498ec /system/lib/libaudioflinger.so (android::AudioPolicyService::setParameters(int, char const*, int)+39)
D( 269: 269) #01 pc 00046f50 /system/lib/libaudioflinger.so
D( 269: 269) #02 pc 000130cc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyCompatClient::setParameters(int, android::String8 const&, int)+7)
D( 269: 269) #03 pc 0000ba24 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+539)
D( 269: 269) #04 pc 0000c736 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setForceUse(android_audio_legacy::AudioSystem::force_use, android_audio_legacy::AudioSystem::forced_config)+417)
D( 269: 269) #05 pc 0000a23c /system/lib/hw/audio_policy.msm8960.so
D( 269: 269) #06 pc 000477e2 /system/lib/libaudioflinger.so (android::AudioPolicyService::setForceUse(audio_policy_force_use_t, audio_policy_forced_cfg_t)+65)
D( 269: 269) #07 pc 000583fa /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+173)
D( 269: 269) #08 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 269) #09 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 269) #10 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 269) #11 pc 00000dae /system/bin/mediaserver
D( 269: 269) #12 pc 000127fc /system/lib/libc.so (__libc_init+35)
V( 269: 269) inserting command: 3 at index 0, num commands 4
V( 269: 269) AudioCommandThread() adding set parameter string routing=8, io 2 ,delay 0
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set parameters string routing=8, io 2
V( 269: 839) setParameters(): io 2, keyvalue routing=8, tid 839, calling pid 269
E( 269: 839) xiayu AudioFlinger setParameters ioHandle=2
D( 269: 839) #00 pc 0004680e /system/lib/libaudioflinger.so (android::AudioFlinger::setParameters(int, android::String8 const&)+1105)
D( 269: 839) #01 pc 0004c778 /system/lib/libmedia.so (android::AudioSystem::setParameters(int, android::String8 const&)+19)
D( 269: 839) #02 pc 00049c40 /system/lib/libaudioflinger.so (android::AudioPolicyService::AudioCommandThread::threadLoop()+343)
D( 269: 839) #03 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 839) #04 pc 00010dca /system/lib/libutils.so
D( 269: 839) #05 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 839) #06 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 839) ThreadBase::setParameters() routing=8
V( 269: 872) mInChannels:1
D( 269: 872) route: devices 0x8 in mode 0
V( 269: 872) xiayu switchDevice: device 0x8 mode:0
D( 269: 872) #00 pc 0002811c /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSADevice::switchDevice(android_audio_legacy::alsa_handle_t*, unsigned int, unsigned int)+148)
D( 269: 872) #01 pc 00029118 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSADevice::route(android_audio_legacy::alsa_handle_t*, unsigned int, int)+92)
D( 269: 872) #02 pc 00011b18 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::AudioHardwareALSA::doRouting(int)+1456)
D( 269: 872) #03 pc 00017258 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSAStreamOps::setParameters(android::String8 const&)+516)
D( 269: 872) #04 pc 00018cb0 /system/lib/hw/audio.primary.msm8960.so
D( 269: 872) #05 pc 000420de /system/lib/libaudioflinger.so (android::AudioFlinger::MixerThread::checkForNewParameters_l()+393)
D( 269: 872) #06 pc 00040e40 /system/lib/libaudioflinger.so (android::AudioFlinger::PlaybackThread::threadLoop()+151)
D( 269: 872) #07 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 872) #08 pc 00010dca /system/lib/libutils.so
D( 269: 872) #09 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 872) #10 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 872) nonCallOutputRouting: 0x8
V( 269: 872) Routing to rx=Headphones
V( 269: 872) nonCallInputRouting: 0
V( 269: 872) Routing to tx=none
V( 269: 872) switchDevice,rxDev:Headphones, txDev:(null), curRxDev:Headphones, curTxDev:None
D( 269: 872) snd_use_case_set(): uc_mgr 0x421b26e0 identifier _enadev value Headphones
D( 269: 872) Set mixer controls for HiFi enable 1
D( 269: 872) Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 1
D( 269: 872) switchDevice: mCurTxUCMDevivce None mCurRxDevDevice Headphones
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 269) checkAndSetVolume() cannot set stream 6 volume with force use = 0 for comm
V( 269: 269) suppressing command: 5
V( 269: 269) deleting mParam 0x421e15d0 for command: 5
V( 269: 269) inserting command: 5 at index 0, num commands 3
V( 269: 269) AudioCommandThread() adding set fm volume volume 0.066835
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 269) getNewDevice() selected device 0
V( 269: 269) setOutputDevice() output 3 device 0000 delayMs 0
E( 269: 269) xiayu setOutputDevice() output 3 device 0000 delayMs 0
D( 269: 269) #00 pc 0000b858 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+79)
D( 269: 269) #01 pc 0000c736 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setForceUse(android_audio_legacy::AudioSystem::force_use, android_audio_legacy::AudioSystem::forced_config)+417)
D( 269: 269) #02 pc 0000a23c /system/lib/hw/audio_policy.msm8960.so
D( 269: 269) #03 pc 000477e2 /system/lib/libaudioflinger.so (android::AudioPolicyService::setForceUse(audio_policy_force_use_t, audio_policy_forced_cfg_t)+65)
D( 269: 269) #04 pc 000583fa /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+173)
D( 269: 269) #05 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 269) #06 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 269) #07 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 269) #08 pc 00000dae /system/bin/mediaserver
D( 269: 269) #09 pc 000127fc /system/lib/libc.so (__libc_init+35)
V( 269: 269) setOutputDevice() prevDevice 0002
V( 269: 269) setOutputDevice() setting same device 0000 or null device for output 3
V( 269: 876) setForceUse() tid 876
V( 269: 876) setForceUse() usage 1, config 10, mPhoneState 0
V( 269: 876) getNewDevice() selected device 8
V( 269: 876) setOutputDevice() output 2 device 0008 delayMs 0
E( 269: 876) xiayu setOutputDevice() output 2 device 0008 delayMs 0
D( 269: 876) #00 pc 0000b858 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+79)
D( 269: 876) #01 pc 0000c736 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setForceUse(android_audio_legacy::AudioSystem::force_use, android_audio_legacy::AudioSystem::forced_config)+417)
D( 269: 876) #02 pc 0000a23c /system/lib/hw/audio_policy.msm8960.so
D( 269: 876) #03 pc 000477e2 /system/lib/libaudioflinger.so (android::AudioPolicyService::setForceUse(audio_policy_force_use_t, audio_policy_forced_cfg_t)+65)
D( 269: 876) #04 pc 000583fa /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+173)
D( 269: 876) #05 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 876) #06 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 876) #07 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 876) #08 pc 0001b184 /system/lib/libbinder.so
D( 269: 876) #09 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 876) #10 pc 00010dca /system/lib/libutils.so
D( 269: 876) #11 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 876) #12 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 876) setOutputDevice() prevDevice 0008
V( 269: 876) setOutputDevice() Call routing with same device with zero delay
V( 269: 876) setOutputDevice() changing device:8
E( 269: 876) xiayu AudioPolicyService :setParameters ioHandle=2
D( 269: 876) #00 pc 000498ec /system/lib/libaudioflinger.so (android::AudioPolicyService::setParameters(int, char const*, int)+39)
D( 269: 876) #01 pc 00046f50 /system/lib/libaudioflinger.so
D( 269: 876) #02 pc 000130cc /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyCompatClient::setParameters(int, android::String8 const&, int)+7)
D( 269: 876) #03 pc 0000ba24 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+539)
D( 269: 876) #04 pc 0000c736 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setForceUse(android_audio_legacy::AudioSystem::force_use, android_audio_legacy::AudioSystem::forced_config)+417)
D( 269: 876) #05 pc 0000a23c /system/lib/hw/audio_policy.msm8960.so
D( 269: 876) #06 pc 000477e2 /system/lib/libaudioflinger.so (android::AudioPolicyService::setForceUse(audio_policy_force_use_t, audio_policy_forced_cfg_t)+65)
D( 269: 876) #07 pc 000583fa /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+173)
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set fm volume volume 0.066835
V( 269: 839) AudioCommandThread() processing set volume stream 1, volume 0.042500, output 2
V( 269: 839) setStreamVolume stream 1, output 2, value 0.042500
V( 269: 839) AudioCommandThread() processing set volume stream 3, volume 0.066835, output 2
V( 269: 839) setStreamVolume stream 3, output 2, value 0.066835
V( 269: 839) AudioCommandThread() processing set volume stream 9, volume 0.088869, output 2
V( 269: 839) setStreamVolume stream 9, output 2, value 0.088869
V( 269: 839) AudioCommandThread() going to sleep
D( 269: 876) #08 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 876) #09 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 876) #10 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 876) #11 pc 0001b184 /system/lib/libbinder.so
D( 269: 876) #12 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 876) #13 pc 00010dca /system/lib/libutils.so
D( 269: 876) #14 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 876) #15 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 876) inserting command: 3 at index 0, num commands 0
V( 269: 876) AudioCommandThread() adding set parameter string routing=8, io 2 ,delay 0
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set parameters string routing=8, io 2
V( 269: 839) setParameters(): io 2, keyvalue routing=8, tid 839, calling pid 269
E( 269: 839) xiayu AudioFlinger setParameters ioHandle=2
D( 269: 839) #00 pc 0004680e /system/lib/libaudioflinger.so (android::AudioFlinger::setParameters(int, android::String8 const&)+1105)
D( 269: 839) #01 pc 0004c778 /system/lib/libmedia.so (android::AudioSystem::setParameters(int, android::String8 const&)+19)
D( 269: 839) #02 pc 00049c40 /system/lib/libaudioflinger.so (android::AudioPolicyService::AudioCommandThread::threadLoop()+343)
D( 269: 839) #03 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 839) #04 pc 00010dca /system/lib/libutils.so
D( 269: 839) #05 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 839) #06 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 839) ThreadBase::setParameters() routing=8
W( 748: 785) Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1076 com.quicinc.cne.NsrmBackgroundEventHdlr.fireIntent:314 com.quicinc.cne.NsrmBackgroundEventHdlr.access$200:41 com.quicinc.cne.NsrmBackgroundEventHdlr$1.onReceive:133 android.app.LoadedApk$ReceiverDispatcher$Args.run:758
V( 269: 872) mInChannels:1
D( 269: 872) route: devices 0x8 in mode 0
V( 269: 872) xiayu switchDevice: device 0x8 mode:0
D( 269: 872) #00 pc 0002811c /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSADevice::switchDevice(android_audio_legacy::alsa_handle_t*, unsigned int, unsigned int)+148)
D( 269: 872) #01 pc 00029118 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSADevice::route(android_audio_legacy::alsa_handle_t*, unsigned int, int)+92)
D( 269: 872) #02 pc 00011b18 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::AudioHardwareALSA::doRouting(int)+1456)
D( 269: 872) #03 pc 00017258 /system/lib/hw/audio.primary.msm8960.so (android_audio_legacy::ALSAStreamOps::setParameters(android::String8 const&)+516)
D( 269: 872) #04 pc 00018cb0 /system/lib/hw/audio.primary.msm8960.so
D( 269: 872) #05 pc 000420de /system/lib/libaudioflinger.so (android::AudioFlinger::MixerThread::checkForNewParameters_l()+393)
D( 269: 872) #06 pc 00040e40 /system/lib/libaudioflinger.so (android::AudioFlinger::PlaybackThread::threadLoop()+151)
D( 269: 872) #07 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 872) #08 pc 00010dca /system/lib/libutils.so
D( 269: 872) #09 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 872) #10 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 872) nonCallOutputRouting: 0x8
V( 269: 872) Routing to rx=Headphones
V( 269: 872) nonCallInputRouting: 0
V( 269: 872) Routing to tx=none
V( 269: 872) switchDevice,rxDev:Headphones, txDev:(null), curRxDev:Headphones, curTxDev:None
D( 269: 872) snd_use_case_set(): uc_mgr 0x421b26e0 identifier _enadev value Headphones
D( 269: 872) Set mixer controls for HiFi enable 1
D( 269: 872) Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 1
D( 269: 872) switchDevice: mCurTxUCMDevivce None mCurRxDevDevice Headphones
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 876) checkAndSetVolume() cannot set stream 6 volume with force use = 0 for comm
V( 269: 876) inserting command: 5 at index 0, num commands 0
V( 269: 876) AudioCommandThread() adding set fm volume volume 0.066835
V( 269: 839) AudioCommandThread() waking up
V( 269: 839) AudioCommandThread() processing set fm volume volume 0.066835
V( 269: 839) AudioCommandThread() going to sleep
V( 269: 876) getNewDevice() selected device 0
V( 269: 876) setOutputDevice() output 3 device 0000 delayMs 0
E( 269: 876) xiayu setOutputDevice() output 3 device 0000 delayMs 0
D( 269: 876) #00 pc 0000b858 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setOutputDevice(int, unsigned int, bool, int)+79)
D( 269: 876) #01 pc 0000c736 /system/lib/hw/audio_policy.msm8960.so (android_audio_legacy::AudioPolicyManager::setForceUse(android_audio_legacy::AudioSystem::force_use, android_audio_legacy::AudioSystem::forced_config)+417)
D( 269: 876) #02 pc 0000a23c /system/lib/hw/audio_policy.msm8960.so
D( 269: 876) #03 pc 000477e2 /system/lib/libaudioflinger.so (android::AudioPolicyService::setForceUse(audio_policy_force_use_t, audio_policy_forced_cfg_t)+65)
D( 269: 876) #04 pc 000583fa /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+173)
D( 269: 876) #05 pc 0001435e /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+57)
D( 269: 876) #06 pc 00016f5a /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+513)
D( 269: 876) #07 pc 000173a8 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+183)
D( 269: 876) #08 pc 0001b184 /system/lib/libbinder.so
D( 269: 876) #09 pc 00011264 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+111)
D( 269: 876) #10 pc 00010dca /system/lib/libutils.so
D( 269: 876) #11 pc 0000e4b8 /system/lib/libc.so (__thread_entry+72)
D( 269: 876) #12 pc 0000dba4 /system/lib/libc.so (pthread_create+160)
V( 269: 876) setOutputDevice() prevDevice 0002
V( 269: 876) setOutputDevice() setting same device 0000 or null device for output 3
W( 748: 785) Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1076 com.quicinc.cne.NsrmBackgroundEventHdlr.fireIntent:314 com.quicinc.cne.NsrmBackgroundEventHdlr.access$200:41 com.quicinc.cne.NsrmBackgroundEventHdlr$1.onReceive:133 android.app.LoadedApk$ReceiverDispatcher$Args.run:758
D( 1282: 1282) handleQueryTTYModeResponse: TTY enable state successfully queried.
D( 1282: 1282) handleQueryTTYModeResponse:ttymode=0
V( 269: 1052) setParameters(): io 0, keyvalue tty_mode=tty_off, tid 1052, calling pid 1282
V( 269: 1052) setFlags: flags 2578
D( 1282: 1282) handleQueryTTYModeResponse: TTY enable state successfully queried.
D( 1282: 1282) handleQueryTTYModeResponse:ttymode=0
V( 269: 1051) setParameters(): io 0, keyvalue tty_mode=tty_off, tid 1051, calling pid 1282
V( 269: 1051) setFlags: flags 2578
E( 269: 1051) xiayu setOutputDevice() output 2 device 0008 delayMs 0 setDeviceConnectionState
E( 269: 1051) xiayu setOutputDevice() output 3 device 0000 delayMs 0
E( 269: 269) xiayu setOutputDevice() output 2 device 0008 delayMs 0 setForceUse(FOR_MEDIA,FORCE_NO_BT_A2DP)
E( 269: 269) xiayu setOutputDevice() output 3 device 0000 delayMs 0
E( 269: 876) xiayu setOutputDevice() output 2 device 0008 delayMs 0 setForceUse(FOR_MEDIA,FORCE_NO_BT_A2DP)
E( 269: 876) xiayu setOutputDevice() output 3 device 0000 delayMs 0
1.接受广播
2.AudioSystem.cpp : setDeviceConnectionState
3.通过Binder调用AudioPolicyService setOutputDevice --->setParameters
4.AudioFlinger.cpp:setParameters
5.android::AudioFlinger::PlaybackThread::threadLoop()
6.AudioFlinger::MixerThread::checkForNewParameters_l
7.ALSADevice::switchDevice hardware/qcom/audio/alsa_sound/ALSADevice.cpp
疑问:为什么要调用两次setForceUse