summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge/synopsys/dw-hdmi.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-08-12 14:07:25 +0200
committerNeil Armstrong <narmstrong@baylibre.com>2019-08-14 15:03:33 +0200
commit43e88f670a5e4618609822853a5f659631c32505 (patch)
treeba36c35792d76d7b67f7feed9e70121a0f23cfd3 /drivers/gpu/drm/bridge/synopsys/dw-hdmi.h
parentdrm/bridge: dw-hdmi-i2s: reset audio fifo before applying new params (diff)
downloadlinux-43e88f670a5e4618609822853a5f659631c32505.tar.xz
linux-43e88f670a5e4618609822853a5f659631c32505.zip
drm/bridge: dw-hdmi-i2s: enable only the required i2s lanes
Enable the i2s lanes depending on the number of channel in the stream Reviewed-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190812120726.1528-8-jbrunet@baylibre.com
Diffstat (limited to 'drivers/gpu/drm/bridge/synopsys/dw-hdmi.h')
-rw-r--r--drivers/gpu/drm/bridge/synopsys/dw-hdmi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.h b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.h
index a272fa393ae6..6988f12d89d9 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.h
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.h
@@ -865,7 +865,11 @@ enum {
/* AUD_CONF0 field values */
HDMI_AUD_CONF0_SW_RESET = 0x80,
- HDMI_AUD_CONF0_I2S_ALL_ENABLE = 0x2F,
+ HDMI_AUD_CONF0_I2S_SELECT = 0x20,
+ HDMI_AUD_CONF0_I2S_EN3 = 0x08,
+ HDMI_AUD_CONF0_I2S_EN2 = 0x04,
+ HDMI_AUD_CONF0_I2S_EN1 = 0x02,
+ HDMI_AUD_CONF0_I2S_EN0 = 0x01,
/* AUD_CONF1 field values */
HDMI_AUD_CONF1_MODE_I2S = 0x00,