]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/msm/dpu: enable DPU_MDP_AUDIO_SELECT for sc8180x
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 15 Jan 2023 14:00:22 +0000 (16:00 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 21 Jan 2023 10:23:32 +0000 (12:23 +0200)
According to the discussion ([1]) on the mailing list, platforms before
sm8250 (and derivatives) should program HDMI_DP_CORE_SELECT register to
route audio to the DP ports. Enable DPU_MDP_AUDIO_SELECT on sc8180x to
program correponding register.

[1] https://lore.kernel.org/all/f86504ba-835a-6e30-6c30-8bb89b1359c4@quicinc.com/

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/518461/
Link: https://lore.kernel.org/r/20230115140022.489881-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

index 4375e72a9aab50364c268d9e4e7d3f38edf93b2a..2fd50c183ecfd09411fd1c5dc7c916a05181313d 100644 (file)
@@ -553,7 +553,7 @@ static const struct dpu_mdp_cfg sc8180x_mdp[] = {
        {
        .name = "top_0", .id = MDP_TOP,
        .base = 0x0, .len = 0x45C,
-       .features = 0,
+       .features = BIT(DPU_MDP_AUDIO_SELECT),
        .highest_bank_bit = 0x3,
        .clk_ctrls[DPU_CLK_CTRL_VIG0] = {
                        .reg_off = 0x2AC, .bit_off = 0},