Skip to content

Commit

Permalink
Revert "Revert "Route HDMI audio to right device""
Browse files Browse the repository at this point in the history
This reverts commit bb4691b.

Tracked-On: OAM-95960
Signed-off-by: Deepa G K <[email protected]>
  • Loading branch information
gkdeepa authored and sysopenci committed Feb 10, 2021
1 parent bb4691b commit 1b35fee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hdmi/tinyaudio_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1b35fee

Please sign in to comment.