Commit f8723484 authored by Maxime Ripard's avatar Maxime Ripard Committed by Heiko Stuebner

drm/rockchip: inno_hdmi: Remove unneeded has audio flag

The sink_has_audio flag is not used anywhere in the driver so let's get
rid of it. It's redundant with drm_display_info.has_audio anyway.
Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
Tested-by: default avatarAlex Bee <knaerzche@gmail.com>
Signed-off-by: default avatarAlex Bee <knaerzche@gmail.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222174220.55249-10-knaerzche@gmail.com
parent d7ba3d71
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "inno_hdmi.h" #include "inno_hdmi.h"
struct hdmi_data_info { struct hdmi_data_info {
bool sink_has_audio;
unsigned int enc_in_format; unsigned int enc_in_format;
unsigned int enc_out_format; unsigned int enc_out_format;
unsigned int colorimetry; unsigned int colorimetry;
...@@ -553,7 +552,6 @@ static int inno_hdmi_connector_get_modes(struct drm_connector *connector) ...@@ -553,7 +552,6 @@ static int inno_hdmi_connector_get_modes(struct drm_connector *connector)
edid = drm_get_edid(connector, hdmi->ddc); edid = drm_get_edid(connector, hdmi->ddc);
if (edid) { if (edid) {
hdmi->hdmi_data.sink_has_audio = drm_detect_monitor_audio(edid);
drm_connector_update_edid_property(connector, edid); drm_connector_update_edid_property(connector, edid);
ret = drm_add_edid_modes(connector, edid); ret = drm_add_edid_modes(connector, edid);
kfree(edid); kfree(edid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment