From 1b35fee352fbbcf96d8f3c310c8b6013c5de8633 Mon Sep 17 00:00:00 2001 From: gkdeepa Date: Mon, 8 Feb 2021 16:09:20 +0530 Subject: [PATCH] Revert "Revert "Route HDMI audio to right device"" This reverts commit bb4691bab97c263252d8a414b37139d02128f5eb. Tracked-On: OAM-95960 Signed-off-by: Deepa G K --- hdmi/tinyaudio_hw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hdmi/tinyaudio_hw.c b/hdmi/tinyaudio_hw.c index 3db4b0b..8196462 100755 --- a/hdmi/tinyaudio_hw.c +++ b/hdmi/tinyaudio_hw.c @@ -72,6 +72,7 @@ #define DEFAULT_DEVICE 3 #define DEFAULT_DEVICE_EHL 7 +#define DEFAULT_DEVICE_TGL 11 /*this is used to avoid starvation*/ #define LATENCY_TO_BUFFER_SIZE_RATIO 2 @@ -240,6 +241,8 @@ static int start_output_stream(struct stream_out *out) property_get("ro.vendor.hdmi.audio", value, "0"); if (!strcmp(value,"ehl")) { adev->device = DEFAULT_DEVICE_EHL; + } else if (!strcmp(value,"tgl")) { + adev->device = DEFAULT_DEVICE_TGL; } else { adev->device = DEFAULT_DEVICE; }