Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e140aaf authored by Eric Laurent's avatar Eric Laurent
Browse files

Enable more logging in audio HAL

Temporary enable more logging on device selection for issue
29578630

Bug: 29578630
Change-Id: I7ff5113f1c8f88b277cd175379080134dbc86deb
parent 152b09a1
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -446,7 +446,7 @@ int enable_audio_route(struct audio_device *adev,

    strcpy(mixer_path, use_case_table[usecase->id]);
    platform_add_backend_name(adev->platform, mixer_path, snd_device);
    ALOGV("%s: apply and update mixer path: %s", __func__, mixer_path);
    ALOGD("%s: usecase(%d) apply and update mixer path: %s", __func__,  usecase->id, mixer_path);
    audio_route_apply_and_update_path(adev->audio_route, mixer_path);

    ALOGV("%s: exit", __func__);
@@ -469,7 +469,7 @@ int disable_audio_route(struct audio_device *adev,
        snd_device = usecase->out_snd_device;
    strcpy(mixer_path, use_case_table[usecase->id]);
    platform_add_backend_name(adev->platform, mixer_path, snd_device);
    ALOGV("%s: reset and update mixer path: %s", __func__, mixer_path);
    ALOGD("%s: usecase(%d) reset and update mixer path: %s", __func__, usecase->id, mixer_path);
    audio_route_reset_and_update_path(adev->audio_route, mixer_path);

    ALOGV("%s: exit", __func__);
@@ -528,7 +528,7 @@ int enable_snd_device(struct audio_device *adev,
            goto on_error;
        }

        ALOGV("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
        ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
        audio_route_apply_and_update_path(adev->audio_route, device_name);
    }
on_success:
@@ -572,7 +572,7 @@ int disable_snd_device(struct audio_device *adev,
                return -EINVAL;
            }

            ALOGV("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
            ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
            audio_route_reset_and_update_path(adev->audio_route, device_name);
        }
        audio_extn_sound_trigger_update_device_status(snd_device,
@@ -1671,7 +1671,7 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
    bool select_new_device = false;
    int status = 0;

    ALOGV("%s: enter: usecase(%d: %s) kvpairs: %s",
    ALOGD("%s: enter: usecase(%d: %s) kvpairs: %s",
          __func__, out->usecase, use_case_table[out->usecase], kvpairs);
    parms = str_parms_create_str(kvpairs);
    ret = str_parms_get_str(parms, AUDIO_PARAMETER_STREAM_ROUTING, value, sizeof(value));