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

Commit 54efc710 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

release-request-c72e46fd-06a9-4104-bad3-f7ba8aeb3e1d-for-git_oc-release-402991...

release-request-c72e46fd-06a9-4104-bad3-f7ba8aeb3e1d-for-git_oc-release-4029917 snap-temp-L38800000066299680

Change-Id: I1dfb75bb7c48a87ffa9f1ed13ce74b8916d0b779
parents a03f5008 104fdfd7
Loading
Loading
Loading
Loading
+10 −14
Original line number Diff line number Diff line
@@ -345,12 +345,6 @@ static void request_out_focus(struct stream_out *out, long ns)
{
    struct audio_device *adev = out->dev;

    if (out->routing_change) {
        out->routing_change = false;
        if (adev->adm_on_routing_change)
            adev->adm_on_routing_change(adev->adm_data, out->handle);
    }

    if (adev->adm_request_focus_v2) {
        adev->adm_request_focus_v2(adev->adm_data, out->handle, ns);
    } else if (adev->adm_request_focus) {
@@ -362,12 +356,6 @@ static void request_in_focus(struct stream_in *in, long ns)
{
    struct audio_device *adev = in->dev;

    if (in->routing_change) {
        in->routing_change = false;
        if (adev->adm_on_routing_change)
            adev->adm_on_routing_change(adev->adm_data, in->capture_handle);
    }

    if (adev->adm_request_focus_v2) {
        adev->adm_request_focus_v2(adev->adm_data, in->capture_handle, ns);
    } else if (adev->adm_request_focus) {
@@ -2039,7 +2027,11 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
            if (!out->standby) {
                if (!same_dev) {
                    ALOGV("update routing change");
                    out->routing_change = true;
                    // inform adm before actual routing to prevent glitches.
                    if (adev->adm_on_routing_change) {
                        adev->adm_on_routing_change(adev->adm_data,
                                                    out->handle);
                    }
                }
                select_devices(adev, out->usecase);
                audio_extn_tfa_98xx_update();
@@ -2791,7 +2783,11 @@ static int in_set_parameters(struct audio_stream *stream, const char *kvpairs)
            /* If recording is in progress, change the tx device to new device */
            if (!in->standby) {
                ALOGV("update input routing change");
                in->routing_change = true;
                // inform adm before actual routing to prevent glitches.
                if (adev->adm_on_routing_change) {
                    adev->adm_on_routing_change(adev->adm_data,
                                                in->capture_handle);
                }
                select_devices(adev, in->usecase);
            }
        }
+0 −2
Original line number Diff line number Diff line
@@ -204,7 +204,6 @@ struct stream_out {
    int send_new_metadata;
    bool realtime;
    int af_period_multiplier;
    bool routing_change;
    struct audio_device *dev;
    card_status_t card_status;

@@ -234,7 +233,6 @@ struct stream_in {
    bool is_st_session_active;
    bool realtime;
    int af_period_multiplier;
    bool routing_change;
    struct audio_device *dev;
    audio_format_t format;
    card_status_t card_status;