summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2011-09-08 11:03:32 -0700
committerSimon Wilson <simonwilson@google.com>2011-09-08 11:18:14 -0700
commitc95b443e4138bd00b67e8e40b2448d44929a7e0e (patch)
treeb30ef9f3c2d9d6db50410a7c2d308c6cef02dad0 /audio
parente967f722c9c0fd251518093d6e0c99b26e81c161 (diff)
downloaddevice_samsung_tuna-c95b443e4138bd00b67e8e40b2448d44929a7e0e.zip
device_samsung_tuna-c95b443e4138bd00b67e8e40b2448d44929a7e0e.tar.gz
device_samsung_tuna-c95b443e4138bd00b67e8e40b2448d44929a7e0e.tar.bz2
audio: add logging to track call state
Change-Id: Ic055b9680623ad9d9ad1d8edfbc9bafceab4c43a
Diffstat (limited to 'audio')
-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);