diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-11-07 20:01:45 +0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-10-09 19:14:12 +0300 |
commit | 7ed6c665e19d4c0456d01c01147e82563c482c4d (patch) | |
tree | ed6bb0a14799b8161e45ddc97cf2cce5032b5f45 /drivers/gpu/drm/bridge/dw_hdmi-audio.h | |
parent | aeac23bda87fd98049352d3bc27a1cb80445e7a0 (diff) | |
download | linux-7ed6c665e19d4c0456d01c01147e82563c482c4d.tar.xz |
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 <tiwai@suse.de>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/bridge/dw_hdmi-audio.h')
-rw-r--r-- | drivers/gpu/drm/bridge/dw_hdmi-audio.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/dw_hdmi-audio.h b/drivers/gpu/drm/bridge/dw_hdmi-audio.h new file mode 100644 index 000000000000..1e840118d90a --- /dev/null +++ b/drivers/gpu/drm/bridge/dw_hdmi-audio.h @@ -0,0 +1,13 @@ +#ifndef DW_HDMI_AUDIO_H +#define DW_HDMI_AUDIO_H + +struct dw_hdmi; + +struct dw_hdmi_audio_data { + phys_addr_t phys; + void __iomem *base; + int irq; + struct dw_hdmi *hdmi; +}; + +#endif |