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

Commit 033364ac authored by Ashish Jain's avatar Ashish Jain
Browse files

hal: Update check to include DISPLAY Port RX backend

-For HDMI or Display port, before configuring the backend with
stream configuration, it is suppose to be validated against the
edid of the connected device.
-As display port check was missing, this lead to bypass of the
edid validation, leading to no audio on certain display port
sinks.
-Update the check to include DISPLAY port along with HDMI.

Change-Id: I8b5ba0b16cf05048418f43cf7995c7a96d9f0f16
parent a9b9d18d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5332,7 +5332,7 @@ static bool platform_check_codec_backend_cfg(struct audio_device* adev,
               sample_rate = CODEC_BACKEND_DEFAULT_SAMPLE_RATE;
    }

    if (backend_idx == HDMI_RX_BACKEND) {
    if ((backend_idx == HDMI_RX_BACKEND) || (backend_idx == DISP_PORT_RX_BACKEND)) {
        struct audio_backend_cfg hdmi_backend_cfg;
        hdmi_backend_cfg.bit_width = bit_width;
        hdmi_backend_cfg.sample_rate = sample_rate;