Skip to content

Commit a3ed24c

Browse files
Peter Ujfalusigregkh
authored andcommitted
omapdrm: hdmi4: Correct the SoC revision matching
commit 23970e1 upstream. I believe the intention of the commit 2c9fc9b ("drm: omapdrm: Move FEAT_HDMI_* features to hdmi4 driver") was to identify omap4430 ES1.x, omap4430 ES2.x and other OMAP4 revisions, like omap4460. By using family=OMAP4 in the match the code will treat omap4460 ES1.x in a same way as it would treat omap4430 ES1.x This breaks HDMI audio on OMAP4460 devices (PandaES for example). Correct the match rule so we are not going to get false positive match. Fixes: 2c9fc9b ("drm: omapdrm: Move FEAT_HDMI_* features to hdmi4 driver") Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4479ade commit a3ed24c

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

‎drivers/gpu/drm/omapdrm/dss/hdmi4_core.c‎

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -889,25 +889,36 @@ struct hdmi4_features {
889889
bool audio_use_mclk;
890890
};
891891

892-
static const struct hdmi4_features hdmi4_es1_features = {
892+
static const struct hdmi4_features hdmi4430_es1_features = {
893893
.cts_swmode = false,
894894
.audio_use_mclk = false,
895895
};
896896

897-
static const struct hdmi4_features hdmi4_es2_features = {
897+
static const struct hdmi4_features hdmi4430_es2_features = {
898898
.cts_swmode = true,
899899
.audio_use_mclk = false,
900900
};
901901

902-
static const struct hdmi4_features hdmi4_es3_features = {
902+
static const struct hdmi4_features hdmi4_features = {
903903
.cts_swmode = true,
904904
.audio_use_mclk = true,
905905
};
906906

907907
static const struct soc_device_attribute hdmi4_soc_devices[] = {
908-
{ .family = "OMAP4", .revision = "ES1.?", .data = &hdmi4_es1_features },
909-
{ .family = "OMAP4", .revision = "ES2.?", .data = &hdmi4_es2_features },
910-
{ .family = "OMAP4", .data = &hdmi4_es3_features },
908+
{
909+
.machine = "OMAP4430",
910+
.revision = "ES1.?",
911+
.data = &hdmi4430_es1_features,
912+
},
913+
{
914+
.machine = "OMAP4430",
915+
.revision = "ES2.?",
916+
.data = &hdmi4430_es2_features,
917+
},
918+
{
919+
.family = "OMAP4",
920+
.data = &hdmi4_features,
921+
},
911922
{ /* sentinel */ }
912923
};
913924

0 commit comments

Comments
 (0)