mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 10:29:52 +00:00
vc4/drm: Avoid full hdmi audio fifo writes
We are getting occasional VC4_HD_MAI_CTL_ERRORF in HDMI_MAI_CTL which seem to correspond with audio dropouts. Reduce the threshold where we deassert DREQ to avoid the fifo overfilling Signed-off-by: Dom Cobley <popcornmix@gmail.com>
This commit is contained in:
@@ -1614,10 +1614,10 @@ static int vc4_hdmi_audio_prepare(struct snd_pcm_substream *substream,
|
||||
|
||||
/* Set the MAI threshold */
|
||||
HDMI_WRITE(HDMI_MAI_THR,
|
||||
VC4_SET_FIELD(0x10, VC4_HD_MAI_THR_PANICHIGH) |
|
||||
VC4_SET_FIELD(0x10, VC4_HD_MAI_THR_PANICLOW) |
|
||||
VC4_SET_FIELD(0x10, VC4_HD_MAI_THR_DREQHIGH) |
|
||||
VC4_SET_FIELD(0x10, VC4_HD_MAI_THR_DREQLOW));
|
||||
VC4_SET_FIELD(0x08, VC4_HD_MAI_THR_PANICHIGH) |
|
||||
VC4_SET_FIELD(0x08, VC4_HD_MAI_THR_PANICLOW) |
|
||||
VC4_SET_FIELD(0x06, VC4_HD_MAI_THR_DREQHIGH) |
|
||||
VC4_SET_FIELD(0x08, VC4_HD_MAI_THR_DREQLOW));
|
||||
|
||||
HDMI_WRITE(HDMI_MAI_CONFIG,
|
||||
VC4_HDMI_MAI_CONFIG_BIT_REVERSE |
|
||||
|
||||
Reference in New Issue
Block a user