mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
45 lines
1.6 KiB
Diff
45 lines
1.6 KiB
Diff
From f0c8b2eb56560cf14c1582cef7a03d9a4a85cedf Mon Sep 17 00:00:00 2001
|
|
From: Alex Bee <knaerzche@gmail.com>
|
|
Date: Sat, 30 Oct 2021 12:19:19 +0200
|
|
Subject: [PATCH 46/59] WIP/1002: drm: bridge: dw-hdmi: switch from .hw_parmas
|
|
to .prepare for i2s
|
|
|
|
Seems to be the only way to get AES bits correctly as set by
|
|
userspace.
|
|
TODO: check other consequences.
|
|
|
|
Signed-off-by: Alex Bee <knaerzche@gmail.com>
|
|
---
|
|
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c
|
|
index 2c903c9fe805..7476690b889b 100644
|
|
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c
|
|
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c
|
|
@@ -34,9 +34,9 @@ static inline u8 hdmi_read(struct dw_hdmi_i2s_audio_data *audio, int offset)
|
|
return audio->read(hdmi, offset);
|
|
}
|
|
|
|
-static int dw_hdmi_i2s_hw_params(struct device *dev, void *data,
|
|
- struct hdmi_codec_daifmt *fmt,
|
|
- struct hdmi_codec_params *hparms)
|
|
+static int dw_hdmi_i2s_prepare(struct device *dev, void *data,
|
|
+ struct hdmi_codec_daifmt *fmt,
|
|
+ struct hdmi_codec_params *hparms)
|
|
{
|
|
struct dw_hdmi_i2s_audio_data *audio = data;
|
|
struct dw_hdmi *hdmi = audio->hdmi;
|
|
@@ -179,7 +179,7 @@ static int dw_hdmi_i2s_hook_plugged_cb(struct device *dev, void *data,
|
|
}
|
|
|
|
static const struct hdmi_codec_ops dw_hdmi_i2s_ops = {
|
|
- .hw_params = dw_hdmi_i2s_hw_params,
|
|
+ .prepare = dw_hdmi_i2s_prepare,
|
|
.audio_startup = dw_hdmi_i2s_audio_startup,
|
|
.audio_shutdown = dw_hdmi_i2s_audio_shutdown,
|
|
.get_eld = dw_hdmi_i2s_get_eld,
|
|
--
|
|
2.34.1
|
|
|