[LG Optimus Black] redy2006:
Tracing audio bugs

@gabwerkz, and for everyone who involved with this CM development. Had you solved the bugs? :)

I just thought that I should give a few of information, about the "chronology" of the main problem: audio/sound that didn't ring at incoming call. So we knows what happen inside our device :)

Look at this log..

1) I/AudioService( 1410): AudioFocus requestAudioFocus() from AudioFocus_For_Phone_Ring_And_Calls
a I/HeadsetService( 1647): Phone status idle: enable DSP.
a I/Effect-BassBoost( 1321): New strength: 1000
a I/Effect-Equalizer( 1321): Setting band 2 to 0
a I/Effect-Equalizer( 1321): Setting band 2 to 1
a I/Effect-Equalizer( 1321): Setting band 2 to 2
2) I/TelephonyRegistry( 1410): notifyDataConnection: state=3 isDataConnectivityPossible=true reason=2GVoiceCallStarted interfaceName=vsnet0 networkType=2
a I/Effect-Equalizer( 1321): Setting band 2 to 3
a I/Effect-Equalizer( 1321): Setting band 2 to 4
a I/Effect-Equalizer( 1321): Setting band 2 to 5
3) I/Effect-Equalizer( 1321): Setting loudness correction reference to 100.000000 dB
4) D/AudioHardwareInterface( 1321): setMode(RINGTONE)
b D/Omap3ALSA( 1321): route called for devices 00000000 in mode 1...
b D/Omap3ALSA( 1321): route called for devices 00000000 in mode 1...
b D/Omap3ALSA( 1321): route called for devices 00000002 in mode 1...
b E/Omap3ALSA( 1321): Why are we routing to a device that isn't supported by this object?!?!?!?!
b D/Omap3ALSA( 1321): open called for devices 00000002 in mode 1 channels 00000000...
5) V/Omap3ALSAModem( 1321): voiceCallControls: devices 0002 mode 1
6) V/Omap3ALSAModem( 1321): Stop Audio Codec Voice call
c E/ALSAControl( 1321): Control 'BT Digital Playback Volume' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT Digital Capture Volume' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT Sidetone Volume' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT data out playback MUX' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Voice data out MUX' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT Tristate Switch' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Enable BT input' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Enable BT output' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT Interface Switch' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Analog Capture Main Mic Switch' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Main Microphone Bias Switch' cannot get element info: -2
c I/Omap3ALSA( 1321): Initialized ALSA PLAYBACK device default
5) V/Omap3ALSAModem( 1321): voiceCallControls: devices 0002 mode 1
6) V/Omap3ALSAModem( 1321): Stop Audio Codec Voice call
-cut- (only repeating)
7) I/AudioService( 1410): AudioFocus abandonAudioFocus() from AudioFocus_For_Phone_Ring_And_Calls
a I/HeadsetService( 1647): Phone status idle: enable DSP.
a I/Effect-BassBoost( 1321): New strength: 1000
a I/Effect-Equalizer( 1321): Setting band 2 to 0
a I/Effect-Equalizer( 1321): Setting band 2 to 1
8) I/TelephonyRegistry( 1410): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=2GVoiceCallEnded interfaceName=vsnet0 networkType=2
a I/Effect-Equalizer( 1321): Setting band 2 to 2
a I/Effect-Equalizer( 1321): Setting band 2 to 3
a I/Effect-Equalizer( 1321): Setting band 2 to 4
9) D/AudioHardwareInterface( 1321): setMode(NORMAL)
b D/Omap3ALSA( 1321): route called for devices 00000000 in mode 0...
b D/Omap3ALSA( 1321): route called for devices 00000000 in mode 0...
b D/Omap3ALSA( 1321): route called for devices 00000002 in mode 0...
5) V/Omap3ALSAModem( 1321): voiceCallControls: devices 0002 mode 0
6) V/Omap3ALSAModem( 1321): Stop Audio Codec Voice call
c E/ALSAControl( 1321): Control 'BT Digital Playback Volume' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT Digital Capture Volume' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT Sidetone Volume' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT data out playback MUX' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Voice data out MUX' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT Tristate Switch' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Enable BT input' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Enable BT output' cannot get element info: -2
c E/ALSAControl( 1321): Control 'BT Interface Switch' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Analog Capture Main Mic Switch' cannot get element info: -2
c E/ALSAControl( 1321): Control 'Main Microphone Bias Switch' cannot get element info: -2
a I/Effect-Equalizer( 1321): Setting band 2 to 5
10)I/Effect-Equalizer( 1321): Setting loudness correction reference to 100.000000 dB

Annotation

1) Request from AudioFocus_For_Phone_Ring_And_Calls to get audio.

2) Incoming call

3) The audio/sound should be out (reference 100.000000 dB)

4) set the RINGTONE,

5) Voicecall Control, at this point it should be ring, but...

6) The audio was stopped here, it means no ringtone.

7) Same as (1)

8) Missed call (call ended)

9) RINGTONE released, set mode to NORMAL.

10) Sometimes at the end of missed call, the sound of ringtone out.

a. I don't know why the Equalizer keep settings.

b. Audio routing?? :confused:

c. BT/AD2P not found.

So, what to do is bypass number (5) and (6) at the middle of RINGTONE, so it won't stop. How's your going gabzwerk? :D

Notes

This is just trace audio bugs event at ringtone. It doesn't related with the volume control (eg. music player), I haven't trace it yet..

It doesn't related with kernel (stock/nova), because kernel is to activating the audio hardware (it is already activated). Kernel aren't controlling the audio to work.

I don't know it happen since/on Nightly Build number XX. I trace it with Nightly #20, and already forgot the past version :p

-- Please CMIIW :)