Skip to content

Commit 7ed6c66

Browse files
author
Russell King
committed
drm: bridge/dw_hdmi-ahb-audio: add audio driver
Add ALSA based HDMI AHB audio driver for dw_hdmi. The only buffer format supported by the hardware is its own special IEC958 based format, which is not compatible with any ALSA format. To avoid doing too much data manipulation within the driver, we support only ALSAs IEC958 LE and 24-bit PCM formats for 2 to 6 channels, which we convert to its hardware format. A more desirable solution would be to have this conversion in userspace, but ALSA does not appear to allow such transformations outside of libasound itself. Reviewed-by: Takashi Iwai <[email protected]> Tested-by: Fabio Estevam <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent aeac23b commit 7ed6c66

File tree

6 files changed

+631
-0
lines changed

6 files changed

+631
-0
lines changed

drivers/gpu/drm/bridge/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ config DRM_DW_HDMI
1111
tristate
1212
select DRM_KMS_HELPER
1313

14+
config DRM_DW_HDMI_AHB_AUDIO
15+
tristate "Synopsis Designware AHB Audio interface"
16+
depends on DRM_DW_HDMI && SND
17+
select SND_PCM
18+
select SND_PCM_IEC958
19+
help
20+
Support the AHB Audio interface which is part of the Synopsis
21+
Designware HDMI block. This is used in conjunction with
22+
the i.MX6 HDMI driver.
23+
24+
1425
config DRM_NXP_PTN3460
1526
tristate "NXP PTN3460 DP/LVDS bridge"
1627
depends on OF

drivers/gpu/drm/bridge/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ccflags-y := -Iinclude/drm
22

33
obj-$(CONFIG_DRM_DW_HDMI) += dw_hdmi.o
4+
obj-$(CONFIG_DRM_DW_HDMI_AHB_AUDIO) += dw_hdmi-ahb-audio.o
45
obj-$(CONFIG_DRM_NXP_PTN3460) += nxp-ptn3460.o
56
obj-$(CONFIG_DRM_PARADE_PS8622) += parade-ps8622.o

0 commit comments

Comments
 (0)