Skip to content

Commit cb617f4

Browse files
committed
fixup! gpu: drm: apple: Add DCP audio driver
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 22c4ace commit cb617f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/apple/audio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ static int dcpaud_create_chmap_ctl(struct dcp_audio *dcpaud)
449449

450450
ret = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, NULL,
451451
dcp_pcm_hw.channels_max, 0, &chmap_info);
452+
if (ret < 0)
453+
return ret;
452454

453455
chmap_info->kctl->get = dcpaud_chmap_ctl_get;
454456
chmap_info->chmap = hdmi_codec_8ch_chmaps;

0 commit comments

Comments
 (0)