Skip to content

Commit bb7d785

Browse files
committed
drm/vc4: Add HDMI audio support
The HDMI encoder IP embeds all needed blocks to output audio, with a custom DAI called MAI moving audio between the two parts of the HDMI core. This driver now exposes a sound card to let users stream audio to their display. Using the hdmi-codec driver has been considered here, but MAI meant having to significantly rework hdmi-codec, and it would have left little shared code with the I2S mode anyway. The encoder requires that the audio be SPDIF-formatted frames only, which alsalib will format-convert for us. This patch is the combined work of Eric Anholt (initial register setup with a separate dmaengine driver and using simple-audio-card) and Boris Brezillon (moving it all into HDMI, massive debug to get it actually working), and which Eric has the permission to release. v2: Drop "-audio" from sound card name, since that's already implied (suggestion by Boris) Signed-off-by: Eric Anholt <[email protected]> Acked-by: Boris Brezillon <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 199a769 commit bb7d785

File tree

3 files changed

+603
-2
lines changed

3 files changed

+603
-2
lines changed

drivers/gpu/drm/vc4/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ config DRM_VC4
22
tristate "Broadcom VC4 Graphics"
33
depends on ARCH_BCM2835 || COMPILE_TEST
44
depends on DRM
5+
depends on SND && SND_SOC
56
depends on COMMON_CLK
67
select DRM_KMS_HELPER
78
select DRM_KMS_CMA_HELPER
89
select DRM_GEM_CMA_HELPER
910
select DRM_PANEL
11+
select SND_PCM
12+
select SND_PCM_ELD
13+
select SND_SOC_GENERIC_DMAENGINE_PCM
1014
select DRM_MIPI_DSI
1115
help
1216
Choose this option if you have a system that has a Broadcom

0 commit comments

Comments
 (0)