[Galaxy S II Original Android Development] codeworkx:
[B]### START PLAYBACK TROUGH HEADPHONES WITH VOLUME 31[/B]

I/ALSAModule( 1865): Initialized ALSA PLAYBACK device hifi
V/yamaha::media::VolumeCtrl( 1865): VolumeCtrl::createVolume()
D/yamaha::media::VolumeCtrl( 1865): Dir0 : AP Playback Music HP (0001h)
D/yamaha::media::VolumeCtrl( 1865): Dir0Att : AP Playback Music HP (0001h)
D/yamaha::media::VolumeCtrl( 1865): DacMaster : AP Playback Music HP (0001h)
D/yamaha::media::VolumeCtrl( 1865): Hp : AP Playback Music HP (F801h)
D/yamaha::media::VolumeCtrl( 1865): HpGain : AP Playback Music HP (0001h)
V/yamaha::media::VolumeCtrl( 1865): [B]Hp = 31 (0001h)[/B]
V/yamaha::media::VolumeCtrl( 1865): VolumeCtrl::setVolume()
D/yamaha::media::VolumeCtrl( 1865): VolumeCtrl::setVolume() FM Playback: Ready
D/yamaha::media::VolumeCtrl( 1865): VolumeCtrl::setVolume() VoiceCall: Ready

[B]### MODIFY NOTIFICATION VOLUME[/B]

D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 2
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 5
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 2
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 5
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 2
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 5
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 2
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 5
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 2
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 5
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 2
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 5
D/AudioSystem( 1865): isSeparatedStream: false

[B]### GET NOTIFICATION, SET HEADPHONE VOLUME=0[/B]

I/AudioService( 2030): AudioFocus requestAudioFocus() from android.media.AudioManager@415a3ad0
I/AudioPolicyManager( 1865): stopOutput() output 1, stream 3, session 63
I/AudioPolicyManager( 1865): startOutput() output 1, stream 5, session 64
I/AudioPolicyManager( 1865): setStreamMute() stream 1, mute 1, output 1, mMuteCount 0
I/AudioPolicyManager( 1865): setStreamMute() stream 3, mute 1, output 1, mMuteCount 0
I/AudioPolicyManager( 1865): getDeviceForStrategy() strategy 2, device 6
E/AudioHardwareYamaha( 1865): setHeadphoneVolume: Set Headset Analog Volume control(0)
V/yamaha::media::CManager( 1865): [B]setHeadphoneVolume(volume=0)[/B]
I/AudioPolicyManager( 1865): setStreamMute() stream 9, mute 1, output 1, mMuteCount 0
I/AudioPolicyManager( 1865): setStreamMute() stream 10, mute 1, output 1, mMuteCount 0
I/AudioPolicyManager( 1865): setStreamMute() stream 12, mute 1, output 1, mMuteCount 0
I/AudioPolicyManager( 1865): setStreamMute() stream 13, mute 1, output 1, mMuteCount 0
I/AudioPolicyManager( 1865): setStreamMute() stream 14, mute 1, output 1, mMuteCount 0
D/dalvikvm( 2208): GC_CONCURRENT freed 391K, 54% free 10205K/22151K, paused 4ms+5ms
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 0
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 1
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 2
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 3
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 4
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 5
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 6
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 7
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 8
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 9
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 10
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 11
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 12
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 13
D/AudioSystem( 1865): isSeparatedStream: false
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 14
D/AudioSystem( 1865): isSeparatedStream: false

[B]### SWITCH BACK TO HEADPHONE AND RESET VOLUME TO 31[/B]

I/AudioHardwareYamaha( 1865): AudioHardware::setDevices(devices=00000006h, mask=00023FFFh)
V/yamaha::media::CManager( 1865): setDevices(devices=00000006h)
V/yamaha::media::VolumeCtrl( 1865): VolumeCtrl::createVolume()
D/yamaha::media::VolumeCtrl( 1865): Dir0 : AP Playback Music HP (0001h)
D/yamaha::media::VolumeCtrl( 1865): Dir0Att : AP Playback Music HP (0001h)
D/yamaha::media::VolumeCtrl( 1865): DacMaster : AP Playback Music HP (0001h)
D/yamaha::media::VolumeCtrl( 1865): Hp : AP Playback Music HP (F801h)
D/yamaha::media::VolumeCtrl( 1865): HpGain : AP Playback Music HP (0001h)
D/yamaha::media::VolumeCtrl( 1865): Sp : AP Playback Music HP (FD81h)
V/yamaha::media::VolumeCtrl( 1865):[B] Hp = 31 (0001h)[/B]
V/yamaha::media::VolumeCtrl( 1865): VolumeCtrl::setVolume()
D/yamaha::media::VolumeCtrl( 1865): VolumeCtrl::setVolume() FM Playback: Ready
D/yamaha::media::VolumeCtrl( 1865): VolumeCtrl::setVolume() VoiceCall: Ready
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!
D/AudioSystem( 1865): audio_stream_type_t: 5
D/AudioSystem( 1865): isSeparatedStream: false
I/AudioPolicyManager( 1865): stopOutput() output 1, stream 5, session 64
I/AudioService( 2030): AudioFocus abandonAudioFocus() from android.media.AudioManager@415a3ad0
I/AudioService( 2030): AudioFocus requestAudioFocus() from android.media.AudioManager@413e5178com.android.music.AudioPreview$2@41362460
I/AudioPolicyManager( 1865): startOutput() output 1, stream 3, session 63
D/AudioSystem( 1865): android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!