summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2011-09-08 11:55:01 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-08 11:55:01 -0700
commit74841f79cc7d8d502498522ac20db392ef12c036 (patch)
tree6d83ebefc8dabe74c103fb2ca89f9b4264ad1f5a
parentd74a9e598c5d986c36c9c45ffb8f59d15fef0dbd (diff)
parentc95b443e4138bd00b67e8e40b2448d44929a7e0e (diff)
downloaddevice_samsung_tuna-74841f79cc7d8d502498522ac20db392ef12c036.zip
device_samsung_tuna-74841f79cc7d8d502498522ac20db392ef12c036.tar.gz
device_samsung_tuna-74841f79cc7d8d502498522ac20db392ef12c036.tar.bz2
Merge "audio: add logging to track call state"
-rw-r--r--audio/audio_hw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index d94f3e9..4e82d50 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -530,6 +530,8 @@ static int set_route_by_array(struct mixer *mixer, struct route_setting *route,
static int start_call(struct tuna_audio_device *adev)
{
+ LOGE("Opening modem PCMs");
+
/* Open modem PCM channels */
if (adev->pcm_modem_dl == NULL) {
adev->pcm_modem_dl = pcm_open(0, PORT_MODEM, PCM_OUT, &pcm_config_vx);
@@ -564,6 +566,8 @@ err_open_ul:
static void end_call(struct tuna_audio_device *adev)
{
+ LOGE("Closing modem PCMs");
+
pcm_stop(adev->pcm_modem_dl);
pcm_stop(adev->pcm_modem_ul);
pcm_close(adev->pcm_modem_dl);
@@ -673,6 +677,7 @@ static void force_all_standby(struct tuna_audio_device *adev)
static void select_mode(struct tuna_audio_device *adev)
{
if (adev->mode == AUDIO_MODE_IN_CALL) {
+ LOGE("Entering IN_CALL state, in_call=%d", adev->in_call);
if (!adev->in_call) {
force_all_standby(adev);
select_output_device(adev);
@@ -682,6 +687,8 @@ static void select_mode(struct tuna_audio_device *adev)
adev->in_call = 1;
}
} else {
+ LOGE("Leaving IN_CALL state, in_call=%d, mode=%d",
+ adev->in_call, adev->mode);
if (adev->in_call) {
adev->in_call = 0;
end_call(adev);