hal: Fix DisplayPort Passthrough Mixer Command
Address the incorrect mixer command being used
for setting the backend format
Change-Id: I871d3d731eb80e2cd24feaa116ad66dfd4dbfe4c
CRs-Fixed: 2002322
diff --git a/hal/audio_extn/keep_alive.c b/hal/audio_extn/keep_alive.c
index 1df6d08..bcc12d4 100644
--- a/hal/audio_extn/keep_alive.c
+++ b/hal/audio_extn/keep_alive.c
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
+* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -235,7 +235,7 @@
break;
case EXT_DISPLAY_TYPE_DP:
snd_device = SND_DEVICE_OUT_DISPLAY_PORT;
- set_mixer_control(adev->mixer, "Display Port Format", "LPCM");
+ set_mixer_control(adev->mixer, "Display Port RX Format", "LPCM");
set_mixer_control(adev->mixer, "Display Port RX SampleRate", "KHZ_48");
set_mixer_control(adev->mixer, "Display Port RX Channels", "Two");
break;
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index e76398d..a9ffa14 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -5046,7 +5046,7 @@
ext_disp_format = "HDMI RX Format";
set_ext_disp_format = true;
} else if (backend_idx == DISP_PORT_RX_BACKEND) {
- ext_disp_format = "Display Port Rx Format";
+ ext_disp_format = "Display Port RX Format";
set_ext_disp_format = true;
} else {
ALOGV("%s: Format doesnt have to be set", __func__);
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
old mode 100755
new mode 100644
index 501a347..c2ebb26
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -4945,7 +4945,7 @@
ext_disp_format = "HDMI RX Format";
set_ext_disp_format = true;
} else if (backend_idx == DISP_PORT_RX_BACKEND) {
- ext_disp_format = "Display Port Rx Format";
+ ext_disp_format = "Display Port RX Format";
set_ext_disp_format = true;
} else {
ALOGV("%s: Format doesnt have to be set", __func__);