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

Commit ff241fc8 authored by Surendar karka's avatar Surendar karka
Browse files

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
parent b43695e6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)