From ff241fc83151ed7cedd2325f6a61c89c4c88325b Mon Sep 17 00:00:00 2001 From: Surendar karka Date: Thu, 21 Sep 2017 10:25:50 +0530 Subject: [PATCH] hal: add support to route to line-out device For line out routing is always set to headphones. Instead add support to route to line-out device. Change-Id: Ic8fdba7fd385998d1648df606dbf036d61e131ce --- hal/msm8916/platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c index 45b02e30..5fc7759e 100644 --- a/hal/msm8916/platform.c +++ b/hal/msm8916/platform.c @@ -3989,6 +3989,8 @@ snd_device_t platform_get_output_snd_device(void *platform, struct stream_out *o snd_device = SND_DEVICE_OUT_HEADPHONES_44_1; } else if (out->format == AUDIO_FORMAT_DSD) { snd_device = SND_DEVICE_OUT_HEADPHONES_DSD; + } else if (devices & AUDIO_DEVICE_OUT_LINE) { + snd_device = SND_DEVICE_OUT_LINE; } else { #ifdef RECORD_PLAY_CONCURRENCY if (use_voip_out_devices)