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

Commit ad09dddf authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audio-hal: fixes for VTS hal v7.0"

parents d894beaf 6e4aa7db
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -379,7 +379,8 @@ int auto_hal_open_output_stream(struct stream_out *out)

    switch(out->car_audio_stream) {
    case CAR_AUDIO_STREAM_MEDIA:
        if (out->flags == AUDIO_OUTPUT_FLAG_PRIMARY) {
        if (out->flags == AUDIO_OUTPUT_FLAG_PRIMARY ||
         out->flags == AUDIO_OUTPUT_FLAG_NONE) {
            /* media bus stream shares pcm device with deep-buffer */
            out->usecase = USECASE_AUDIO_PLAYBACK_MEDIA;
            out->config = pcm_config_media;
@@ -403,14 +404,15 @@ int auto_hal_open_output_stream(struct stream_out *out)
                out->config=pcm_config_system_48KHz;
            }
        }
        else if (out->flags == AUDIO_OUTPUT_FLAG_NONE ||
            out->flags == AUDIO_OUTPUT_FLAG_PRIMARY) {
            out->flags |= AUDIO_OUTPUT_FLAG_MEDIA;
        }
        else {
            ALOGE("%s: Output profile flag(%#x) is not valid", __func__,out->flags);
            ret = -EINVAL;
            goto error;
        }
        if (out->flags == AUDIO_OUTPUT_FLAG_NONE ||
            out->flags == AUDIO_OUTPUT_FLAG_PRIMARY)
            out->flags |= AUDIO_OUTPUT_FLAG_MEDIA;
        out->volume_l = out->volume_r = MAX_VOLUME_GAIN;
        break;
    case CAR_AUDIO_STREAM_SYS_NOTIFICATION: