Skip to content

Commit 47b296a

Browse files
6by9popcornmix
authored andcommitted
drm/vc4: Set the b-frame marker to the match ALSA's default.
ALSA's iec958 plugin by default sets the block start preamble to 8, whilst this driver was programming the hardware to expect 0xF. Amend the hardware config to match ALSA. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent f7a8c77 commit 47b296a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/gpu/drm/vc4/vc4_hdmi.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,10 +866,11 @@ static int vc4_hdmi_audio_hw_params(struct snd_pcm_substream *substream,
866866

867867
vc4_hdmi_audio_set_mai_clock(vc4_hdmi);
868868

869+
/* The B frame identifier should match the value used by alsa-lib (8) */
869870
audio_packet_config =
870871
VC4_HDMI_AUDIO_PACKET_ZERO_DATA_ON_SAMPLE_FLAT |
871872
VC4_HDMI_AUDIO_PACKET_ZERO_DATA_ON_INACTIVE_CHANNELS |
872-
VC4_SET_FIELD(0xf, VC4_HDMI_AUDIO_PACKET_B_FRAME_IDENTIFIER);
873+
VC4_SET_FIELD(0x8, VC4_HDMI_AUDIO_PACKET_B_FRAME_IDENTIFIER);
873874

874875
channel_mask = GENMASK(vc4_hdmi->audio.channels - 1, 0);
875876
audio_packet_config |= VC4_SET_FIELD(channel_mask,

0 commit comments

Comments
 (0)