mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/bridge: synopsys: dw-hdmi: Fix nlpcm bitstream
Clear the Audio Logic to fix the NLPCM and HBR situation switch. Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com> Change-Id: I98c25e36c76c1308c5b4d50a1d861e3b043e2235
This commit is contained in:
@@ -59,6 +59,8 @@ static int dw_hdmi_i2s_hw_params(struct device *dev, void *data,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
dw_hdmi_audio_disable(hdmi);
|
||||
|
||||
/* Reset the FIFOs before applying new params */
|
||||
hdmi_update_bits(audio, HDMI_AUD_CONF0_SW_RESET,
|
||||
HDMI_AUD_CONF0_SW_RESET, HDMI_AUD_CONF0);
|
||||
@@ -138,6 +140,11 @@ static int dw_hdmi_i2s_hw_params(struct device *dev, void *data,
|
||||
hdmi_write(audio, conf1, HDMI_AUD_CONF1);
|
||||
hdmi_write(audio, conf2, HDMI_AUD_CONF2);
|
||||
|
||||
dw_hdmi_audio_enable(hdmi);
|
||||
hdmi_update_bits(audio, HDMI_AUD_CONF0_SW_RESET,
|
||||
HDMI_AUD_CONF0_SW_RESET, HDMI_AUD_CONF0);
|
||||
hdmi_write(audio, (u8)~HDMI_MC_SWRSTZ_I2SSWRST_REQ, HDMI_MC_SWRSTZ);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user