aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_hdmi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c
index 2ca9f6a64dab..d62e685cec73 100644
--- a/drivers/gpu/drm/mediatek/mtk_hdmi.c
+++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c
@@ -1576,6 +1576,11 @@ static int mtk_hdmi_audio_hw_params(struct device *dev, void *data,
1576 hdmi_params.aud_i2s_fmt = HDMI_I2S_MODE_I2S_24BIT; 1576 hdmi_params.aud_i2s_fmt = HDMI_I2S_MODE_I2S_24BIT;
1577 hdmi_params.aud_mclk = HDMI_AUD_MCLK_128FS; 1577 hdmi_params.aud_mclk = HDMI_AUD_MCLK_128FS;
1578 break; 1578 break;
1579 case HDMI_SPDIF:
1580 hdmi_params.aud_codec = HDMI_AUDIO_CODING_TYPE_PCM;
1581 hdmi_params.aud_sampe_size = HDMI_AUDIO_SAMPLE_SIZE_16;
1582 hdmi_params.aud_input_type = HDMI_AUD_INPUT_SPDIF;
1583 break;
1579 default: 1584 default:
1580 dev_err(hdmi->dev, "%s: Invalid DAI format %d\n", __func__, 1585 dev_err(hdmi->dev, "%s: Invalid DAI format %d\n", __func__,
1581 daifmt->fmt); 1586 daifmt->fmt);