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

Commit 7b54d4ee authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Merge commit 'android-4.4.1_r1' into HEAD"

parents 20d8342e 116f1ecc
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -384,6 +384,13 @@ static void check_usecases_codec_backend(struct audio_device *adev,
            }
        }

        list_for_each(node, &adev->usecase_list) {
            usecase = node_to_item(node, struct audio_usecase, list);
            if (switch_device[usecase->id]) {
                enable_snd_device(adev, snd_device, false);
            }
        }

        list_for_each(node, &adev->usecase_list) {
            usecase = node_to_item(node, struct audio_usecase, list);
            if (switch_device[usecase->id]) {
@@ -1261,8 +1268,8 @@ static int out_standby(struct audio_stream *stream)
    }

    pthread_mutex_lock(&out->lock);
    pthread_mutex_lock(&adev->lock);
    if (!out->standby) {
        pthread_mutex_lock(&adev->lock);
        out->standby = true;
        if (out->usecase != USECASE_AUDIO_PLAYBACK_OFFLOAD) {
            if (out->pcm) {
@@ -1279,8 +1286,8 @@ static int out_standby(struct audio_stream *stream)
            }
        }
        stop_output_stream(out);
    }
        pthread_mutex_unlock(&adev->lock);
    }
    pthread_mutex_unlock(&out->lock);
    ALOGV("%s: exit", __func__);
    return 0;
@@ -1786,12 +1793,12 @@ static int in_standby(struct audio_stream *stream)

    pthread_mutex_lock(&in->lock);
    if (!in->standby) {
        pthread_mutex_lock(&adev->lock);
        in->standby = true;
        if (in->pcm) {
            pcm_close(in->pcm);
            in->pcm = NULL;
        }
        pthread_mutex_lock(&adev->lock);
        status = stop_input_stream(in);
        pthread_mutex_unlock(&adev->lock);
    }