Loading hal/audio_extn/auto_hal.c +6 −4 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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: Loading Loading
hal/audio_extn/auto_hal.c +6 −4 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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: Loading